3 # from OpenLDAP: pkg/ldap/configure.in,v 1.306 2000/06/05 05:19:11 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-referrals enable V2 Referrals extension (yes)"
40 --enable-kbind enable V2 Kerberos IV bind (auto)"
42 --enable-cldap enable connectionless ldap (no)"
44 --enable-ldapi enable domain socket (PF_LOCAL) ldap (no)"
46 --enable-x-compile enable cross compiling (no)"
48 --with-cyrus-sasl with Cyrus SASL support (auto)"
50 --with-fetch with fetch URL support (auto)"
52 --with-kerberos with support (auto)"
54 --with-readline with readline support (auto)"
56 --with-threads use threads (auto)"
58 --with-tls with TLS/SSL support (auto)"
60 --with-yielding-select with implicitly yielding select (auto)"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd (yes)"
66 --enable-cleartext enable cleartext passwords (yes)"
68 --enable-crypt enable crypt(3) passwords (auto)"
70 --enable-kpasswd enable kerberos password verification (no)"
72 --enable-spasswd enable (Cyrus) SASL password verification (no)"
74 --enable-modules enable dynamic module support (no)"
76 --enable-multimaster enable multimaster replication (no)"
78 --enable-phonetic enable phonetic/soundex (no)"
80 --enable-quipu build quipu migration tools (no)"
82 --enable-rlookups enable reverse lookups (auto)"
84 --enable-aci enable per-object ACIs (no)"
86 --enable-wrappers enable tcp wrapper support (no)"
88 --enable-dynamic enable linking built binaries with dynamic libs (no)"
90 --enable-bdb2 enable bdb2 backend (no)"
92 --with-bdb2-module module type (static)"
94 --enable-dnssrv enable bdb2 backend (no)"
96 --with-dnssrv-module module type (static)"
98 --enable-ldap enable ldap backend (no)"
100 --with-ldap-module module type (static)"
102 --enable-ldbm enable ldbm backend (yes)"
104 --with-ldbm-api use LDBM API (auto)"
106 --with-ldbm-module module type (static)"
108 --with-ldbm-type use LDBM type (auto)"
110 --enable-passwd enable passwd backend (no)"
112 --with-passwd-module module type (static)"
114 --enable-perl enable perl backend (no)"
116 --with-perl-module module type (static)"
118 --enable-shell enable shell backend (no)"
120 --with-shell-module module type (static)"
122 --enable-sql enable sql backend (no)"
124 --with-sql-module module type (static)"
126 --enable-tcl enable tcl backend (no)"
128 --with-tcl-module module type (static)"
130 SLURPD (Replication Daemon) Options:"
132 --enable-slurpd enable building slurpd (auto)"
134 Library Generation & Linking Options"
136 --enable-static[=PKGS] build static libraries [default=yes]"
138 --enable-shared[=PKGS] build shared libraries [default=yes]"
140 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
142 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
144 --disable-libtool-lock avoid locking (might break parallel builds)"
146 # Initialize some variables set by options.
147 # The variables have the same names as the options, with
148 # dashes changed to underlines.
150 cache_file=./config.cache
159 program_transform_name=s,x,x,
167 bindir='${exec_prefix}/bin'
168 sbindir='${exec_prefix}/sbin'
169 libexecdir='${exec_prefix}/libexec'
170 datadir='${prefix}/share'
171 sysconfdir='${prefix}/etc'
172 sharedstatedir='${prefix}/com'
173 localstatedir='${prefix}/var'
174 libdir='${exec_prefix}/lib'
175 includedir='${prefix}/include'
176 oldincludedir='/usr/include'
177 infodir='${prefix}/info'
178 mandir='${prefix}/man'
180 # Initialize some other variables.
183 SHELL=${CONFIG_SHELL-/bin/sh}
184 # Maximum number of lines to put in a shell here document.
191 # If the previous option needs an argument, assign it.
192 if test -n "$ac_prev"; then
193 eval "$ac_prev=\$ac_option"
199 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir="$ac_optarg" ;;
212 -build | --build | --buil | --bui | --bu)
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build="$ac_optarg" ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file="$ac_optarg" ;;
224 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
226 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
228 datadir="$ac_optarg" ;;
230 -disable-* | --disable-*)
231 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
232 # Reject names that are not valid shell variable names.
233 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
234 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
236 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
237 eval "enable_${ac_feature}=no" ;;
239 -enable-* | --enable-*)
240 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
243 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
245 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
250 eval "enable_${ac_feature}='$ac_optarg'" ;;
252 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
253 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
254 | --exec | --exe | --ex)
255 ac_prev=exec_prefix ;;
256 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
257 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
258 | --exec=* | --exe=* | --ex=*)
259 exec_prefix="$ac_optarg" ;;
261 -gas | --gas | --ga | --g)
262 # Obsolete; use --with-gas.
265 -help | --help | --hel | --he)
266 # Omit some internal or obsolete options to make the list less imposing.
267 # This message is too long to be a string in the A/UX 3.1 sh.
269 Usage: configure [options] [host]
270 Options: [defaults in brackets after descriptions]
272 --cache-file=FILE cache test results in FILE
273 --help print this message
274 --no-create do not create output files
275 --quiet, --silent do not print \`checking...' messages
276 --version print the version of autoconf that created configure
277 Directory and file names:
278 --prefix=PREFIX install architecture-independent files in PREFIX
280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
282 --bindir=DIR user executables in DIR [EPREFIX/bin]
283 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
284 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
285 --datadir=DIR read-only architecture-independent data in DIR
287 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
288 --sharedstatedir=DIR modifiable architecture-independent data in DIR
290 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
291 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
292 --includedir=DIR C header files in DIR [PREFIX/include]
293 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
294 --infodir=DIR info documentation in DIR [PREFIX/info]
295 --mandir=DIR man documentation in DIR [PREFIX/man]
296 --srcdir=DIR find the sources in DIR [configure dir or ..]
297 --program-prefix=PREFIX prepend PREFIX to installed program names
298 --program-suffix=SUFFIX append SUFFIX to installed program names
299 --program-transform-name=PROGRAM
300 run sed PROGRAM on installed program names
304 --build=BUILD configure for building on BUILD [BUILD=HOST]
305 --host=HOST configure for HOST [guessed]
306 --target=TARGET configure for TARGET [TARGET=HOST]
307 Features and packages:
308 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
309 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
310 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
311 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
312 --x-includes=DIR X include files are in DIR
313 --x-libraries=DIR X library files are in DIR
315 if test -n "$ac_help"; then
316 echo "--enable and --with options recognized:$ac_help"
320 -host | --host | --hos | --ho)
322 -host=* | --host=* | --hos=* | --ho=*)
325 -includedir | --includedir | --includedi | --included | --include \
326 | --includ | --inclu | --incl | --inc)
327 ac_prev=includedir ;;
328 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
329 | --includ=* | --inclu=* | --incl=* | --inc=*)
330 includedir="$ac_optarg" ;;
332 -infodir | --infodir | --infodi | --infod | --info | --inf)
334 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
335 infodir="$ac_optarg" ;;
337 -libdir | --libdir | --libdi | --libd)
339 -libdir=* | --libdir=* | --libdi=* | --libd=*)
340 libdir="$ac_optarg" ;;
342 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
343 | --libexe | --libex | --libe)
344 ac_prev=libexecdir ;;
345 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
346 | --libexe=* | --libex=* | --libe=*)
347 libexecdir="$ac_optarg" ;;
349 -localstatedir | --localstatedir | --localstatedi | --localstated \
350 | --localstate | --localstat | --localsta | --localst \
351 | --locals | --local | --loca | --loc | --lo)
352 ac_prev=localstatedir ;;
353 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
354 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
355 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
356 localstatedir="$ac_optarg" ;;
358 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
360 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
361 mandir="$ac_optarg" ;;
364 # Obsolete; use --without-fp.
367 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
371 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
372 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
375 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
376 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
377 | --oldin | --oldi | --old | --ol | --o)
378 ac_prev=oldincludedir ;;
379 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
380 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
381 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
382 oldincludedir="$ac_optarg" ;;
384 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
386 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
387 prefix="$ac_optarg" ;;
389 -program-prefix | --program-prefix | --program-prefi | --program-pref \
390 | --program-pre | --program-pr | --program-p)
391 ac_prev=program_prefix ;;
392 -program-prefix=* | --program-prefix=* | --program-prefi=* \
393 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
394 program_prefix="$ac_optarg" ;;
396 -program-suffix | --program-suffix | --program-suffi | --program-suff \
397 | --program-suf | --program-su | --program-s)
398 ac_prev=program_suffix ;;
399 -program-suffix=* | --program-suffix=* | --program-suffi=* \
400 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
401 program_suffix="$ac_optarg" ;;
403 -program-transform-name | --program-transform-name \
404 | --program-transform-nam | --program-transform-na \
405 | --program-transform-n | --program-transform- \
406 | --program-transform | --program-transfor \
407 | --program-transfo | --program-transf \
408 | --program-trans | --program-tran \
409 | --progr-tra | --program-tr | --program-t)
410 ac_prev=program_transform_name ;;
411 -program-transform-name=* | --program-transform-name=* \
412 | --program-transform-nam=* | --program-transform-na=* \
413 | --program-transform-n=* | --program-transform-=* \
414 | --program-transform=* | --program-transfor=* \
415 | --program-transfo=* | --program-transf=* \
416 | --program-trans=* | --program-tran=* \
417 | --progr-tra=* | --program-tr=* | --program-t=*)
418 program_transform_name="$ac_optarg" ;;
420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
421 | -silent | --silent | --silen | --sile | --sil)
424 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
426 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
428 sbindir="$ac_optarg" ;;
430 -sharedstatedir | --sharedstatedir | --sharedstatedi \
431 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
432 | --sharedst | --shareds | --shared | --share | --shar \
434 ac_prev=sharedstatedir ;;
435 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
436 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
437 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
439 sharedstatedir="$ac_optarg" ;;
441 -site | --site | --sit)
443 -site=* | --site=* | --sit=*)
446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
449 srcdir="$ac_optarg" ;;
451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
452 | --syscon | --sysco | --sysc | --sys | --sy)
453 ac_prev=sysconfdir ;;
454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
456 sysconfdir="$ac_optarg" ;;
458 -target | --target | --targe | --targ | --tar | --ta | --t)
460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
461 target="$ac_optarg" ;;
463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
466 -version | --version | --versio | --versi | --vers)
467 echo "configure generated by autoconf version 2.13.1"
471 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
472 # Reject names that are not valid shell variable names.
473 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
474 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
476 ac_package=`echo $ac_package| sed 's/-/_/g'`
481 eval "with_${ac_package}='$ac_optarg'" ;;
483 -without-* | --without-*)
484 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
485 # Reject names that are not valid shell variable names.
486 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
487 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
489 ac_package=`echo $ac_package| sed 's/-/_/g'`
490 eval "with_${ac_package}=no" ;;
493 # Obsolete; use --with-x.
496 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
497 | --x-incl | --x-inc | --x-in | --x-i)
498 ac_prev=x_includes ;;
499 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
500 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
501 x_includes="$ac_optarg" ;;
503 -x-libraries | --x-libraries | --x-librarie | --x-librari \
504 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
505 ac_prev=x_libraries ;;
506 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
507 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
508 x_libraries="$ac_optarg" ;;
510 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
514 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
515 echo "configure: warning: $ac_option: invalid host type" 1>&2
517 if test "x$nonopt" != xNONE; then
518 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
526 if test -n "$ac_prev"; then
527 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
530 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
532 # File descriptor usage:
535 # 2 errors and warnings
536 # 3 some systems may open it to /dev/tty
537 # 4 used on the Kubota Titan
538 # 6 checking for... messages and results
539 # 5 compiler messages saved in config.log
540 if test "$silent" = yes; then
548 This file contains any messages produced by compilers while
549 running configure, to aid debugging if configure makes a mistake.
552 # Strip out --no-create and --no-recursion so they do not pile up.
553 # Also quote any args containing shell metacharacters.
558 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
559 | --no-cr | --no-c) ;;
560 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
561 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
562 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
563 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
564 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
569 # Only set these to C if already set. These must not be set unconditionally
570 # because not all systems understand e.g. LANG=C (notably SCO).
571 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
572 # Non-C LC_CTYPE values break the ctype check.
573 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
574 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
575 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
576 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
579 rm -rf conftest* confdefs.h
580 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
583 # A filename unique to this package, relative to the directory that
584 # configure is in, which we can look for to find out if srcdir is correct.
585 ac_unique_file=build/version
587 # Find the source files, if location was not specified.
588 if test -z "$srcdir"; then
589 ac_srcdir_defaulted=yes
590 # Try the directory containing this script, then its parent.
592 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
593 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
595 if test ! -r $srcdir/$ac_unique_file; then
599 ac_srcdir_defaulted=no
601 if test ! -r $srcdir/$ac_unique_file; then
602 if test "$ac_srcdir_defaulted" = yes; then
603 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
605 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
608 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
610 # Prefer explicitly selected file to automatically selected ones.
611 if test -z "$CONFIG_SITE"; then
612 if test "x$prefix" != xNONE; then
613 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
615 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
618 for ac_site_file in $CONFIG_SITE; do
619 if test -r "$ac_site_file"; then
620 echo "loading site script $ac_site_file"
627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
628 ac_cpp='$CPP $CPPFLAGS'
629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
631 cross_compiling=$ac_cv_prog_cc_cross
635 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
636 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
637 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
644 ac_n= ac_c='\c' ac_t=
648 for ac_dir in build $srcdir/build; do
649 if test -f $ac_dir/install-sh; then
651 ac_install_sh="$ac_aux_dir/install-sh -c"
653 elif test -f $ac_dir/install.sh; then
655 ac_install_sh="$ac_aux_dir/install.sh -c"
657 elif test -f $ac_dir/shtool; then
659 ac_install_sh="$ac_aux_dir/shtool install -c"
663 if test -z "$ac_aux_dir"; then
664 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
666 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
667 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
668 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
670 OL_VERSION=`cat $ac_aux_dir/version`
671 if test -z "$OL_VERSION"; then
672 { echo "configure: error: could not determine version" 1>&2; exit 1; }
675 echo "Configuring OpenLDAP $OL_VERSION ..."
678 echo $ac_n "checking host system type""... $ac_c" 1>&6
679 echo "configure:680: checking host system type" >&5
680 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
682 # Make sure we can run config.sub.
683 if $ac_config_sub sun4 >/dev/null 2>&1; then :
684 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
687 ac_cv_host_alias=$host
688 case "$ac_cv_host_alias" in
692 if ac_cv_host_alias=`$ac_config_guess`; then :
693 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
695 *) ac_cv_host_alias=$nonopt ;;
699 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
700 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
701 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
702 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
704 echo $ac_n "(cached) $ac_c" 1>&6
707 echo "$ac_t""$ac_cv_host" 1>&6
710 host_alias=$ac_cv_host_alias
711 host_cpu=$ac_cv_host_cpu
712 host_vendor=$ac_cv_host_vendor
713 host_os=$ac_cv_host_os
719 echo $ac_n "checking target system type""... $ac_c" 1>&6
720 echo "configure:721: checking target system type" >&5
721 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
723 # Make sure we can run config.sub.
724 if $ac_config_sub sun4 >/dev/null 2>&1; then :
725 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
728 ac_cv_target_alias=$target
729 case "$ac_cv_target_alias" in
733 ac_cv_target_alias=$host_alias ;;
735 *) ac_cv_target_alias=$nonopt ;;
739 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
740 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
741 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
742 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
744 echo $ac_n "(cached) $ac_c" 1>&6
747 echo "$ac_t""$ac_cv_target" 1>&6
750 target_alias=$ac_cv_target_alias
751 target_cpu=$ac_cv_target_cpu
752 target_vendor=$ac_cv_target_vendor
753 target_os=$ac_cv_target_os
759 echo $ac_n "checking build system type""... $ac_c" 1>&6
760 echo "configure:761: checking build system type" >&5
761 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
763 # Make sure we can run config.sub.
764 if $ac_config_sub sun4 >/dev/null 2>&1; then :
765 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
768 ac_cv_build_alias=$build
769 case "$ac_cv_build_alias" in
773 ac_cv_build_alias=$host_alias ;;
775 *) ac_cv_build_alias=$nonopt ;;
779 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
780 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
781 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
782 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
784 echo $ac_n "(cached) $ac_c" 1>&6
787 echo "$ac_t""$ac_cv_build" 1>&6
790 build_alias=$ac_cv_build_alias
791 build_cpu=$ac_cv_build_cpu
792 build_vendor=$ac_cv_build_vendor
793 build_os=$ac_cv_build_os
799 # Do some error checking and defaulting for the host and target type.
801 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
804 # 1. You are not allowed to specify --host, --target, and nonopt at the
806 # 2. Host defaults to nonopt.
807 # 3. If nonopt is not specified, then host defaults to the current host,
808 # as determined by config.guess.
809 # 4. Target and build default to nonopt.
810 # 5. If nonopt is not specified, then target and build default to host.
812 # The aliases save the names the user supplied, while $host etc.
813 # will get canonicalized.
814 case $host---$target---$nonopt in
815 NONE---*---* | *---NONE---* | *---*---NONE) ;;
816 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
819 test "$host_alias" != "$target_alias" &&
820 test "$program_prefix$program_suffix$program_transform_name" = \
822 program_prefix=${target_alias}-
825 # Find a good install program. We prefer a C program (faster),
826 # so one script is as good as another. But avoid the broken or
827 # incompatible versions:
828 # SysV /etc/install, /usr/sbin/install
829 # SunOS /usr/etc/install
832 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
833 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
834 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
835 # ./install, which can be erroneously created by make from ./install.sh.
836 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
837 echo "configure:838: checking for a BSD compatible install" >&5
838 if test -z "$INSTALL"; then
839 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
843 for ac_dir in $PATH; do
844 # Account for people who put trailing slashes in PATH elements.
846 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
848 # OSF1 and SCO ODT 3.0 have their own names for install.
849 # Don't use installbsd from OSF since it installs stuff as root
851 for ac_prog in ginstall scoinst install; do
852 if test -f $ac_dir/$ac_prog; then
853 if test $ac_prog = install &&
854 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
855 # AIX install. It has an incompatible calling convention.
857 elif test $ac_prog = install &&
858 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
859 # program-specific install script used by HP pwplus--don't use.
862 ac_cv_path_install="$ac_dir/$ac_prog -c"
873 if test "${ac_cv_path_install+set}" = set; then
874 INSTALL="$ac_cv_path_install"
876 # As a last resort, use the slow shell script. We don't cache a
877 # path for INSTALL within a source directory, because that will
878 # break other packages using the cache if that directory is
879 # removed, or if the path is relative.
880 INSTALL="$ac_install_sh"
883 echo "$ac_t""$INSTALL" 1>&6
885 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
886 # It thinks the first close brace ends the variable substitution.
887 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
889 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
891 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
893 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
894 echo "configure:895: checking whether build environment is sane" >&5
897 echo timestamp > conftestfile
898 # Do `set' in a subshell so we don't clobber the current shell's
899 # arguments. Must try -L first in case configure is actually a
900 # symlink; some systems play weird games with the mod time of symlinks
901 # (eg FreeBSD returns the mod time of the symlink's containing
904 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
905 if test "$*" = "X"; then
907 set X `ls -t $srcdir/configure conftestfile`
909 if test "$*" != "X $srcdir/configure conftestfile" \
910 && test "$*" != "X conftestfile $srcdir/configure"; then
912 # If neither matched, then we have a broken ls. This can happen
913 # if, for instance, CONFIG_SHELL is bash and it inherits a
914 # broken ls alias from the environment. This has actually
915 # happened. Such a system could not be considered "sane".
916 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
917 alias in your environment" 1>&2; exit 1; }
920 test "$2" = conftestfile
926 { echo "configure: error: newly created file is older than distributed files!
927 Check your system clock" 1>&2; exit 1; }
930 echo "$ac_t""yes" 1>&6
931 if test "$program_transform_name" = s,x,x,; then
932 program_transform_name=
934 # Double any \ or $. echo might interpret backslashes.
935 cat <<\EOF_SED > conftestsed
936 s,\\,\\\\,g; s,\$,$$,g
938 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
941 test "$program_prefix" != NONE &&
942 program_transform_name="s,^,${program_prefix},;$program_transform_name"
943 # Use a double $ so make ignores it.
944 test "$program_suffix" != NONE &&
945 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
947 # sed with no file args requires a program.
948 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
950 for ac_prog in mawk gawk nawk awk
952 # Extract the first word of "$ac_prog", so it can be a program name with args.
953 set dummy $ac_prog; ac_word=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
959 if test -n "$AWK"; then
960 ac_cv_prog_AWK="$AWK" # Let the user override the test.
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
964 for ac_dir in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir=.
966 if test -f $ac_dir/$ac_word; then
967 ac_cv_prog_AWK="$ac_prog"
974 AWK="$ac_cv_prog_AWK"
975 if test -n "$AWK"; then
976 echo "$ac_t""$AWK" 1>&6
978 echo "$ac_t""no" 1>&6
981 test -n "$AWK" && break
984 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
985 echo "configure:986: checking whether ${MAKE-make} sets \${MAKE}" >&5
986 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
987 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 cat > conftestmake <<\EOF
992 @echo 'ac_maketemp="${MAKE}"'
994 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
995 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
996 if test -n "$ac_maketemp"; then
997 eval ac_cv_prog_make_${ac_make}_set=yes
999 eval ac_cv_prog_make_${ac_make}_set=no
1003 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1004 echo "$ac_t""yes" 1>&6
1007 echo "$ac_t""no" 1>&6
1008 SET_MAKE="MAKE=${MAKE-make}"
1017 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1018 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1023 missing_dir=`cd $ac_aux_dir && pwd`
1024 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1025 echo "configure:1026: checking for working aclocal" >&5
1026 # Run test in a subshell; some versions of sh will print an error if
1027 # an executable is not found, even if stderr is redirected.
1028 # Redirect stdin to placate older versions of autoconf. Sigh.
1029 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1031 echo "$ac_t""found" 1>&6
1033 ACLOCAL="$missing_dir/missing aclocal"
1034 echo "$ac_t""missing" 1>&6
1037 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1038 echo "configure:1039: checking for working autoconf" >&5
1039 # Run test in a subshell; some versions of sh will print an error if
1040 # an executable is not found, even if stderr is redirected.
1041 # Redirect stdin to placate older versions of autoconf. Sigh.
1042 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1044 echo "$ac_t""found" 1>&6
1046 AUTOCONF="$missing_dir/missing autoconf"
1047 echo "$ac_t""missing" 1>&6
1050 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1051 echo "configure:1052: checking for working automake" >&5
1052 # Run test in a subshell; some versions of sh will print an error if
1053 # an executable is not found, even if stderr is redirected.
1054 # Redirect stdin to placate older versions of autoconf. Sigh.
1055 if (automake --version) < /dev/null > /dev/null 2>&1; then
1057 echo "$ac_t""found" 1>&6
1059 AUTOMAKE="$missing_dir/missing automake"
1060 echo "$ac_t""missing" 1>&6
1063 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1064 echo "configure:1065: checking for working autoheader" >&5
1065 # Run test in a subshell; some versions of sh will print an error if
1066 # an executable is not found, even if stderr is redirected.
1067 # Redirect stdin to placate older versions of autoconf. Sigh.
1068 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1069 AUTOHEADER=autoheader
1070 echo "$ac_t""found" 1>&6
1072 AUTOHEADER="$missing_dir/missing autoheader"
1073 echo "$ac_t""missing" 1>&6
1076 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1077 echo "configure:1078: checking for working makeinfo" >&5
1078 # Run test in a subshell; some versions of sh will print an error if
1079 # an executable is not found, even if stderr is redirected.
1080 # Redirect stdin to placate older versions of autoconf. Sigh.
1081 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1083 echo "$ac_t""found" 1>&6
1085 MAKEINFO="$missing_dir/missing makeinfo"
1086 echo "$ac_t""missing" 1>&6
1089 install_sh="$missing_dir/install-sh"
1090 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1092 for ac_prog in gnutar gtar tar
1094 # Extract the first word of "$ac_prog", so it can be a program name with args.
1095 set dummy $ac_prog; ac_word=$2
1096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1097 echo "configure:1098: checking for $ac_word" >&5
1098 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1101 if test -n "$AMTAR"; then
1102 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1106 for ac_dir in $ac_dummy; do
1107 test -z "$ac_dir" && ac_dir=.
1108 if test -f $ac_dir/$ac_word; then
1109 ac_cv_prog_AMTAR="$ac_prog"
1116 AMTAR="$ac_cv_prog_AMTAR"
1117 if test -n "$AMTAR"; then
1118 echo "$ac_t""$AMTAR" 1>&6
1120 echo "$ac_t""no" 1>&6
1123 test -n "$AMTAR" && break
1128 if test -n "$AMTAR"; then
1129 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1136 cat >> confdefs.h <<EOF
1137 #define OPENLDAP_PACKAGE "$PACKAGE"
1140 cat >> confdefs.h <<EOF
1141 #define OPENLDAP_VERSION "$VERSION"
1147 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1148 echo "configure:1149: checking configure arguments" >&5
1153 ldap_subdir="/openldap"
1155 # Check whether --with-subdir or --without-subdir was given.
1156 if test "${with_subdir+set}" = set; then
1157 withval="$with_subdir"
1164 ldap_subdir="$withval"
1167 ldap_subdir="/$withval"
1174 # OpenLDAP --enable-debug
1175 # Check whether --enable-debug or --disable-debug was given.
1176 if test "${enable_debug+set}" = set; then
1177 enableval="$enable_debug"
1180 for ol_val in auto yes no ; do
1181 if test "$enableval" = "$ol_val" ; then
1185 if test "$ol_arg" = "invalid" ; then
1186 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1188 ol_enable_debug="$ol_arg"
1191 ol_enable_debug="yes"
1193 # end --enable-debug
1194 # OpenLDAP --enable-syslog
1195 # Check whether --enable-syslog or --disable-syslog was given.
1196 if test "${enable_syslog+set}" = set; then
1197 enableval="$enable_syslog"
1200 for ol_val in auto yes no ; do
1201 if test "$enableval" = "$ol_val" ; then
1205 if test "$ol_arg" = "invalid" ; then
1206 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1208 ol_enable_syslog="$ol_arg"
1211 ol_enable_syslog="auto"
1213 # end --enable-syslog
1214 # OpenLDAP --enable-proctitle
1215 # Check whether --enable-proctitle or --disable-proctitle was given.
1216 if test "${enable_proctitle+set}" = set; then
1217 enableval="$enable_proctitle"
1220 for ol_val in auto yes no ; do
1221 if test "$enableval" = "$ol_val" ; then
1225 if test "$ol_arg" = "invalid" ; then
1226 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1228 ol_enable_proctitle="$ol_arg"
1231 ol_enable_proctitle="yes"
1233 # end --enable-proctitle
1234 # OpenLDAP --enable-cache
1235 # Check whether --enable-cache or --disable-cache was given.
1236 if test "${enable_cache+set}" = set; then
1237 enableval="$enable_cache"
1240 for ol_val in auto yes no ; do
1241 if test "$enableval" = "$ol_val" ; then
1245 if test "$ol_arg" = "invalid" ; then
1246 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1248 ol_enable_cache="$ol_arg"
1251 ol_enable_cache="yes"
1253 # end --enable-cache
1254 # OpenLDAP --enable-referrals
1255 # Check whether --enable-referrals or --disable-referrals was given.
1256 if test "${enable_referrals+set}" = set; then
1257 enableval="$enable_referrals"
1260 for ol_val in auto yes no ; do
1261 if test "$enableval" = "$ol_val" ; then
1265 if test "$ol_arg" = "invalid" ; then
1266 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1268 ol_enable_referrals="$ol_arg"
1271 ol_enable_referrals="yes"
1273 # end --enable-referrals
1274 # OpenLDAP --enable-kbind
1275 # Check whether --enable-kbind or --disable-kbind was given.
1276 if test "${enable_kbind+set}" = set; then
1277 enableval="$enable_kbind"
1280 for ol_val in auto yes no ; do
1281 if test "$enableval" = "$ol_val" ; then
1285 if test "$ol_arg" = "invalid" ; then
1286 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1288 ol_enable_kbind="$ol_arg"
1291 ol_enable_kbind="auto"
1293 # end --enable-kbind
1294 # OpenLDAP --enable-cldap
1295 # Check whether --enable-cldap or --disable-cldap was given.
1296 if test "${enable_cldap+set}" = set; then
1297 enableval="$enable_cldap"
1300 for ol_val in auto yes no ; do
1301 if test "$enableval" = "$ol_val" ; then
1305 if test "$ol_arg" = "invalid" ; then
1306 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1308 ol_enable_cldap="$ol_arg"
1311 ol_enable_cldap="no"
1313 # end --enable-cldap
1314 # OpenLDAP --enable-ldapi
1315 # Check whether --enable-ldapi or --disable-ldapi was given.
1316 if test "${enable_ldapi+set}" = set; then
1317 enableval="$enable_ldapi"
1320 for ol_val in auto yes no ; do
1321 if test "$enableval" = "$ol_val" ; then
1325 if test "$ol_arg" = "invalid" ; then
1326 { echo "configure: error: bad value $enableval for --enable-ldapi" 1>&2; exit 1; }
1328 ol_enable_ldapi="$ol_arg"
1331 ol_enable_ldapi="no"
1333 # end --enable-ldapi
1334 # OpenLDAP --enable-x_compile
1335 # Check whether --enable-x_compile or --disable-x_compile was given.
1336 if test "${enable_x_compile+set}" = set; then
1337 enableval="$enable_x_compile"
1340 for ol_val in yes no ; do
1341 if test "$enableval" = "$ol_val" ; then
1345 if test "$ol_arg" = "invalid" ; then
1346 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1348 ol_enable_x_compile="$ol_arg"
1351 ol_enable_x_compile="no"
1353 # end --enable-x_compile
1356 # OpenLDAP --with-cyrus_sasl
1357 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1358 if test "${with_cyrus_sasl+set}" = set; then
1359 withval="$with_cyrus_sasl"
1362 for ol_val in auto yes no ; do
1363 if test "$withval" = "$ol_val" ; then
1367 if test "$ol_arg" = "invalid" ; then
1368 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1370 ol_with_cyrus_sasl="$ol_arg"
1373 ol_with_cyrus_sasl="auto"
1375 # end --with-cyrus_sasl
1377 # OpenLDAP --with-fetch
1378 # Check whether --with-fetch or --without-fetch was given.
1379 if test "${with_fetch+set}" = set; then
1380 withval="$with_fetch"
1383 for ol_val in auto yes no ; do
1384 if test "$withval" = "$ol_val" ; then
1388 if test "$ol_arg" = "invalid" ; then
1389 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1391 ol_with_fetch="$ol_arg"
1394 ol_with_fetch="auto"
1398 # OpenLDAP --with-kerberos
1399 # Check whether --with-kerberos or --without-kerberos was given.
1400 if test "${with_kerberos+set}" = set; then
1401 withval="$with_kerberos"
1404 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1405 if test "$withval" = "$ol_val" ; then
1409 if test "$ol_arg" = "invalid" ; then
1410 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1412 ol_with_kerberos="$ol_arg"
1415 ol_with_kerberos="auto"
1417 # end --with-kerberos
1419 # OpenLDAP --with-readline
1420 # Check whether --with-readline or --without-readline was given.
1421 if test "${with_readline+set}" = set; then
1422 withval="$with_readline"
1425 for ol_val in auto yes no ; do
1426 if test "$withval" = "$ol_val" ; then
1430 if test "$ol_arg" = "invalid" ; then
1431 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1433 ol_with_readline="$ol_arg"
1436 ol_with_readline="auto"
1438 # end --with-readline
1440 # OpenLDAP --with-threads
1441 # Check whether --with-threads or --without-threads was given.
1442 if test "${with_threads+set}" = set; then
1443 withval="$with_threads"
1446 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1447 if test "$withval" = "$ol_val" ; then
1451 if test "$ol_arg" = "invalid" ; then
1452 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1454 ol_with_threads="$ol_arg"
1457 ol_with_threads="auto"
1459 # end --with-threads
1461 # OpenLDAP --with-tls
1462 # Check whether --with-tls or --without-tls was given.
1463 if test "${with_tls+set}" = set; then
1467 for ol_val in auto ssleay openssl yes no ; do
1468 if test "$withval" = "$ol_val" ; then
1472 if test "$ol_arg" = "invalid" ; then
1473 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1475 ol_with_tls="$ol_arg"
1482 # OpenLDAP --with-yielding_select
1483 # Check whether --with-yielding_select or --without-yielding_select was given.
1484 if test "${with_yielding_select+set}" = set; then
1485 withval="$with_yielding_select"
1488 for ol_val in auto yes no manual ; do
1489 if test "$withval" = "$ol_val" ; then
1493 if test "$ol_arg" = "invalid" ; then
1494 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1496 ol_with_yielding_select="$ol_arg"
1499 ol_with_yielding_select="auto"
1501 # end --with-yielding_select
1505 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1506 if test "${with_xxslapdoptions+set}" = set; then
1507 withval="$with_xxslapdoptions"
1511 # OpenLDAP --enable-slapd
1512 # Check whether --enable-slapd or --disable-slapd was given.
1513 if test "${enable_slapd+set}" = set; then
1514 enableval="$enable_slapd"
1517 for ol_val in auto yes no ; do
1518 if test "$enableval" = "$ol_val" ; then
1522 if test "$ol_arg" = "invalid" ; then
1523 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1525 ol_enable_slapd="$ol_arg"
1528 ol_enable_slapd="yes"
1530 # end --enable-slapd
1531 # OpenLDAP --enable-cleartext
1532 # Check whether --enable-cleartext or --disable-cleartext was given.
1533 if test "${enable_cleartext+set}" = set; then
1534 enableval="$enable_cleartext"
1537 for ol_val in auto yes no ; do
1538 if test "$enableval" = "$ol_val" ; then
1542 if test "$ol_arg" = "invalid" ; then
1543 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1545 ol_enable_cleartext="$ol_arg"
1548 ol_enable_cleartext="yes"
1550 # end --enable-cleartext
1551 # OpenLDAP --enable-crypt
1552 # Check whether --enable-crypt or --disable-crypt was given.
1553 if test "${enable_crypt+set}" = set; then
1554 enableval="$enable_crypt"
1557 for ol_val in auto yes no ; do
1558 if test "$enableval" = "$ol_val" ; then
1562 if test "$ol_arg" = "invalid" ; then
1563 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1565 ol_enable_crypt="$ol_arg"
1568 ol_enable_crypt="auto"
1570 # end --enable-crypt
1571 # OpenLDAP --enable-kpasswd
1572 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1573 if test "${enable_kpasswd+set}" = set; then
1574 enableval="$enable_kpasswd"
1577 for ol_val in auto yes no ; do
1578 if test "$enableval" = "$ol_val" ; then
1582 if test "$ol_arg" = "invalid" ; then
1583 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1585 ol_enable_kpasswd="$ol_arg"
1588 ol_enable_kpasswd="no"
1590 # end --enable-kpasswd
1591 # OpenLDAP --enable-spasswd
1592 # Check whether --enable-spasswd or --disable-spasswd was given.
1593 if test "${enable_spasswd+set}" = set; then
1594 enableval="$enable_spasswd"
1597 for ol_val in auto yes no ; do
1598 if test "$enableval" = "$ol_val" ; then
1602 if test "$ol_arg" = "invalid" ; then
1603 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1605 ol_enable_spasswd="$ol_arg"
1608 ol_enable_spasswd="no"
1610 # end --enable-spasswd
1611 # OpenLDAP --enable-modules
1612 # Check whether --enable-modules or --disable-modules was given.
1613 if test "${enable_modules+set}" = set; then
1614 enableval="$enable_modules"
1617 for ol_val in auto yes no ; do
1618 if test "$enableval" = "$ol_val" ; then
1622 if test "$ol_arg" = "invalid" ; then
1623 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1625 ol_enable_modules="$ol_arg"
1628 ol_enable_modules="no"
1630 # end --enable-modules
1631 # OpenLDAP --enable-multimaster
1632 # Check whether --enable-multimaster or --disable-multimaster was given.
1633 if test "${enable_multimaster+set}" = set; then
1634 enableval="$enable_multimaster"
1637 for ol_val in auto yes no ; do
1638 if test "$enableval" = "$ol_val" ; then
1642 if test "$ol_arg" = "invalid" ; then
1643 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1645 ol_enable_multimaster="$ol_arg"
1648 ol_enable_multimaster="no"
1650 # end --enable-multimaster
1651 # OpenLDAP --enable-phonetic
1652 # Check whether --enable-phonetic or --disable-phonetic was given.
1653 if test "${enable_phonetic+set}" = set; then
1654 enableval="$enable_phonetic"
1657 for ol_val in auto yes no ; do
1658 if test "$enableval" = "$ol_val" ; then
1662 if test "$ol_arg" = "invalid" ; then
1663 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1665 ol_enable_phonetic="$ol_arg"
1668 ol_enable_phonetic="no"
1670 # end --enable-phonetic
1671 # OpenLDAP --enable-quipu
1672 # Check whether --enable-quipu or --disable-quipu was given.
1673 if test "${enable_quipu+set}" = set; then
1674 enableval="$enable_quipu"
1677 for ol_val in auto yes no ; do
1678 if test "$enableval" = "$ol_val" ; then
1682 if test "$ol_arg" = "invalid" ; then
1683 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1685 ol_enable_quipu="$ol_arg"
1688 ol_enable_quipu="no"
1690 # end --enable-quipu
1691 # OpenLDAP --enable-rlookups
1692 # Check whether --enable-rlookups or --disable-rlookups was given.
1693 if test "${enable_rlookups+set}" = set; then
1694 enableval="$enable_rlookups"
1697 for ol_val in auto yes no ; do
1698 if test "$enableval" = "$ol_val" ; then
1702 if test "$ol_arg" = "invalid" ; then
1703 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1705 ol_enable_rlookups="$ol_arg"
1708 ol_enable_rlookups="auto"
1710 # end --enable-rlookups
1711 # OpenLDAP --enable-aci
1712 # Check whether --enable-aci or --disable-aci was given.
1713 if test "${enable_aci+set}" = set; then
1714 enableval="$enable_aci"
1717 for ol_val in auto yes no ; do
1718 if test "$enableval" = "$ol_val" ; then
1722 if test "$ol_arg" = "invalid" ; then
1723 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1725 ol_enable_aci="$ol_arg"
1731 # OpenLDAP --enable-wrappers
1732 # Check whether --enable-wrappers or --disable-wrappers was given.
1733 if test "${enable_wrappers+set}" = set; then
1734 enableval="$enable_wrappers"
1737 for ol_val in auto yes no ; do
1738 if test "$enableval" = "$ol_val" ; then
1742 if test "$ol_arg" = "invalid" ; then
1743 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1745 ol_enable_wrappers="$ol_arg"
1748 ol_enable_wrappers="no"
1750 # end --enable-wrappers
1751 # OpenLDAP --enable-dynamic
1752 # Check whether --enable-dynamic or --disable-dynamic was given.
1753 if test "${enable_dynamic+set}" = set; then
1754 enableval="$enable_dynamic"
1757 for ol_val in auto yes no ; do
1758 if test "$enableval" = "$ol_val" ; then
1762 if test "$ol_arg" = "invalid" ; then
1763 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1765 ol_enable_dynamic="$ol_arg"
1768 ol_enable_dynamic="no"
1770 # end --enable-dynamic
1772 # OpenLDAP --enable-bdb2
1773 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1774 if test "${enable_bdb2+set}" = set; then
1775 enableval="$enable_bdb2"
1778 for ol_val in auto yes no ; do
1779 if test "$enableval" = "$ol_val" ; then
1783 if test "$ol_arg" = "invalid" ; then
1784 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1786 ol_enable_bdb2="$ol_arg"
1792 # OpenLDAP --with-bdb2_module
1793 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1794 if test "${with_bdb2_module+set}" = set; then
1795 withval="$with_bdb2_module"
1798 for ol_val in static dynamic ; do
1799 if test "$withval" = "$ol_val" ; then
1803 if test "$ol_arg" = "invalid" ; then
1804 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1806 ol_with_bdb2_module="$ol_arg"
1809 ol_with_bdb2_module="static"
1811 # end --with-bdb2_module
1813 # OpenLDAP --enable-dnssrv
1814 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1815 if test "${enable_dnssrv+set}" = set; then
1816 enableval="$enable_dnssrv"
1819 for ol_val in auto yes no ; do
1820 if test "$enableval" = "$ol_val" ; then
1824 if test "$ol_arg" = "invalid" ; then
1825 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1827 ol_enable_dnssrv="$ol_arg"
1830 ol_enable_dnssrv="no"
1832 # end --enable-dnssrv
1833 # OpenLDAP --with-dnssrv_module
1834 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1835 if test "${with_dnssrv_module+set}" = set; then
1836 withval="$with_dnssrv_module"
1839 for ol_val in static dynamic ; do
1840 if test "$withval" = "$ol_val" ; then
1844 if test "$ol_arg" = "invalid" ; then
1845 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1847 ol_with_dnssrv_module="$ol_arg"
1850 ol_with_dnssrv_module="static"
1852 # end --with-dnssrv_module
1854 # OpenLDAP --enable-ldap
1855 # Check whether --enable-ldap or --disable-ldap was given.
1856 if test "${enable_ldap+set}" = set; then
1857 enableval="$enable_ldap"
1860 for ol_val in auto yes no ; do
1861 if test "$enableval" = "$ol_val" ; then
1865 if test "$ol_arg" = "invalid" ; then
1866 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1868 ol_enable_ldap="$ol_arg"
1874 # OpenLDAP --with-ldap_module
1875 # Check whether --with-ldap_module or --without-ldap_module was given.
1876 if test "${with_ldap_module+set}" = set; then
1877 withval="$with_ldap_module"
1880 for ol_val in static dynamic ; do
1881 if test "$withval" = "$ol_val" ; then
1885 if test "$ol_arg" = "invalid" ; then
1886 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1888 ol_with_ldap_module="$ol_arg"
1891 ol_with_ldap_module="static"
1893 # end --with-ldap_module
1895 # OpenLDAP --enable-ldbm
1896 # Check whether --enable-ldbm or --disable-ldbm was given.
1897 if test "${enable_ldbm+set}" = set; then
1898 enableval="$enable_ldbm"
1901 for ol_val in auto yes no ; do
1902 if test "$enableval" = "$ol_val" ; then
1906 if test "$ol_arg" = "invalid" ; then
1907 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1909 ol_enable_ldbm="$ol_arg"
1912 ol_enable_ldbm="yes"
1915 # OpenLDAP --with-ldbm_api
1916 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1917 if test "${with_ldbm_api+set}" = set; then
1918 withval="$with_ldbm_api"
1921 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1922 if test "$withval" = "$ol_val" ; then
1926 if test "$ol_arg" = "invalid" ; then
1927 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1929 ol_with_ldbm_api="$ol_arg"
1932 ol_with_ldbm_api="auto"
1934 # end --with-ldbm_api
1936 # OpenLDAP --with-ldbm_module
1937 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1938 if test "${with_ldbm_module+set}" = set; then
1939 withval="$with_ldbm_module"
1942 for ol_val in static dynamic ; do
1943 if test "$withval" = "$ol_val" ; then
1947 if test "$ol_arg" = "invalid" ; then
1948 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1950 ol_with_ldbm_module="$ol_arg"
1953 ol_with_ldbm_module="static"
1955 # end --with-ldbm_module
1957 # OpenLDAP --with-ldbm_type
1958 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1959 if test "${with_ldbm_type+set}" = set; then
1960 withval="$with_ldbm_type"
1963 for ol_val in auto btree hash ; do
1964 if test "$withval" = "$ol_val" ; then
1968 if test "$ol_arg" = "invalid" ; then
1969 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1971 ol_with_ldbm_type="$ol_arg"
1974 ol_with_ldbm_type="auto"
1976 # end --with-ldbm_type
1978 # OpenLDAP --enable-passwd
1979 # Check whether --enable-passwd or --disable-passwd was given.
1980 if test "${enable_passwd+set}" = set; then
1981 enableval="$enable_passwd"
1984 for ol_val in auto yes no ; do
1985 if test "$enableval" = "$ol_val" ; then
1989 if test "$ol_arg" = "invalid" ; then
1990 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1992 ol_enable_passwd="$ol_arg"
1995 ol_enable_passwd="no"
1997 # end --enable-passwd
1998 # OpenLDAP --with-passwd_module
1999 # Check whether --with-passwd_module or --without-passwd_module was given.
2000 if test "${with_passwd_module+set}" = set; then
2001 withval="$with_passwd_module"
2004 for ol_val in static dynamic ; do
2005 if test "$withval" = "$ol_val" ; then
2009 if test "$ol_arg" = "invalid" ; then
2010 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2012 ol_with_passwd_module="$ol_arg"
2015 ol_with_passwd_module="static"
2017 # end --with-passwd_module
2019 # OpenLDAP --enable-perl
2020 # Check whether --enable-perl or --disable-perl was given.
2021 if test "${enable_perl+set}" = set; then
2022 enableval="$enable_perl"
2025 for ol_val in auto yes no ; do
2026 if test "$enableval" = "$ol_val" ; then
2030 if test "$ol_arg" = "invalid" ; then
2031 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2033 ol_enable_perl="$ol_arg"
2039 # OpenLDAP --with-perl_module
2040 # Check whether --with-perl_module or --without-perl_module was given.
2041 if test "${with_perl_module+set}" = set; then
2042 withval="$with_perl_module"
2045 for ol_val in static dynamic ; do
2046 if test "$withval" = "$ol_val" ; then
2050 if test "$ol_arg" = "invalid" ; then
2051 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2053 ol_with_perl_module="$ol_arg"
2056 ol_with_perl_module="static"
2058 # end --with-perl_module
2060 # OpenLDAP --enable-shell
2061 # Check whether --enable-shell or --disable-shell was given.
2062 if test "${enable_shell+set}" = set; then
2063 enableval="$enable_shell"
2066 for ol_val in auto yes no ; do
2067 if test "$enableval" = "$ol_val" ; then
2071 if test "$ol_arg" = "invalid" ; then
2072 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2074 ol_enable_shell="$ol_arg"
2077 ol_enable_shell="no"
2079 # end --enable-shell
2080 # OpenLDAP --with-shell_module
2081 # Check whether --with-shell_module or --without-shell_module was given.
2082 if test "${with_shell_module+set}" = set; then
2083 withval="$with_shell_module"
2086 for ol_val in static dynamic ; do
2087 if test "$withval" = "$ol_val" ; then
2091 if test "$ol_arg" = "invalid" ; then
2092 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2094 ol_with_shell_module="$ol_arg"
2097 ol_with_shell_module="static"
2099 # end --with-shell_module
2101 # OpenLDAP --enable-sql
2102 # Check whether --enable-sql or --disable-sql was given.
2103 if test "${enable_sql+set}" = set; then
2104 enableval="$enable_sql"
2107 for ol_val in auto yes no ; do
2108 if test "$enableval" = "$ol_val" ; then
2112 if test "$ol_arg" = "invalid" ; then
2113 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2115 ol_enable_sql="$ol_arg"
2121 # OpenLDAP --with-sql_module
2122 # Check whether --with-sql_module or --without-sql_module was given.
2123 if test "${with_sql_module+set}" = set; then
2124 withval="$with_sql_module"
2127 for ol_val in static dynamic ; do
2128 if test "$withval" = "$ol_val" ; then
2132 if test "$ol_arg" = "invalid" ; then
2133 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2135 ol_with_sql_module="$ol_arg"
2138 ol_with_sql_module="static"
2140 # end --with-sql_module
2142 # OpenLDAP --enable-tcl
2143 # Check whether --enable-tcl or --disable-tcl was given.
2144 if test "${enable_tcl+set}" = set; then
2145 enableval="$enable_tcl"
2148 for ol_val in auto yes no ; do
2149 if test "$enableval" = "$ol_val" ; then
2153 if test "$ol_arg" = "invalid" ; then
2154 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2156 ol_enable_tcl="$ol_arg"
2162 # OpenLDAP --with-tcl_module
2163 # Check whether --with-tcl_module or --without-tcl_module was given.
2164 if test "${with_tcl_module+set}" = set; then
2165 withval="$with_tcl_module"
2168 for ol_val in static dynamic ; do
2169 if test "$withval" = "$ol_val" ; then
2173 if test "$ol_arg" = "invalid" ; then
2174 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2176 ol_with_tcl_module="$ol_arg"
2179 ol_with_tcl_module="static"
2181 # end --with-tcl_module
2184 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2185 if test "${with_xxslurpdoptions+set}" = set; then
2186 withval="$with_xxslurpdoptions"
2190 # OpenLDAP --enable-slurpd
2191 # Check whether --enable-slurpd or --disable-slurpd was given.
2192 if test "${enable_slurpd+set}" = set; then
2193 enableval="$enable_slurpd"
2196 for ol_val in auto yes no ; do
2197 if test "$enableval" = "$ol_val" ; then
2201 if test "$ol_arg" = "invalid" ; then
2202 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2204 ol_enable_slurpd="$ol_arg"
2207 ol_enable_slurpd="auto"
2209 # end --enable-slurpd
2211 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2212 if test "${with_xxliboptions+set}" = set; then
2213 withval="$with_xxliboptions"
2217 # Check whether --enable-static or --disable-static was given.
2218 if test "${enable_static+set}" = set; then
2219 enableval="$enable_static"
2220 p=${PACKAGE-default}
2221 case "$enableval" in
2222 yes) enable_static=yes ;;
2223 no) enable_static=no ;;
2226 # Look at the argument we got. We use all the common list separators.
2227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2228 for pkg in $enableval; do
2229 if test "X$pkg" = "X$p"; then
2240 # Check whether --enable-shared or --disable-shared was given.
2241 if test "${enable_shared+set}" = set; then
2242 enableval="$enable_shared"
2243 p=${PACKAGE-default}
2244 case "$enableval" in
2245 yes) enable_shared=yes ;;
2246 no) enable_shared=no ;;
2249 # Look at the argument we got. We use all the common list separators.
2250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2251 for pkg in $enableval; do
2252 if test "X$pkg" = "X$p"; then
2266 if test $ol_enable_slapd = no ; then
2267 if test $ol_enable_bdb2 = yes ; then
2268 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2270 if test $ol_enable_dnssrv = yes ; then
2271 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2273 if test $ol_enable_ldap = yes ; then
2274 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2276 if test $ol_enable_ldbm = yes ; then
2277 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2279 if test $ol_enable_passwd = yes ; then
2280 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2282 if test $ol_enable_perl = yes ; then
2283 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2285 if test $ol_enable_shell = yes ; then
2286 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2288 if test $ol_enable_tcl = yes ; then
2289 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2291 if test $ol_enable_sql = yes ; then
2292 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2294 if test $ol_enable_modules = yes ; then
2295 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2297 if test $ol_enable_multimaster = yes ; then
2298 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2300 if test $ol_enable_wrappers = yes ; then
2301 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2303 if test $ol_enable_phonetic = yes ; then
2304 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2306 if test $ol_enable_quipu = yes ; then
2307 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2309 if test $ol_enable_rlookups = yes ; then
2310 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2312 if test $ol_enable_aci = yes ; then
2313 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2315 if test $ol_with_ldbm_api != auto ; then
2316 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2318 if test $ol_with_ldbm_type != auto ; then
2319 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2321 if test $ol_with_bdb2_module != static ; then
2322 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2324 if test $ol_with_dnssrv_module != static ; then
2325 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2327 if test $ol_with_ldap_module != static ; then
2328 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2330 if test $ol_with_ldbm_module != static ; then
2331 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2333 if test $ol_with_passwd_module != static ; then
2334 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2336 if test $ol_with_perl_module != static ; then
2337 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2339 if test $ol_with_shell_module != static ; then
2340 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2342 if test $ol_with_tcl_module != static ; then
2343 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2345 if test $ol_with_sql_module != static ; then
2346 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2348 if test $ol_enable_slurpd = yes ; then
2349 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2352 # force settings to no
2363 ol_enable_modules=no
2364 ol_enable_multimaster=no
2365 ol_enable_phonetic=no
2367 ol_enable_rlookups=no
2369 ol_enable_wrappers=no
2370 ol_enable_dynamic=no
2373 ol_with_ldbm_type=no
2375 ol_with_bdb2_module=static
2376 ol_with_dnssrv_module=static
2377 ol_with_ldap_module=static
2378 ol_with_ldbm_module=static
2379 ol_with_passwd_module=static
2380 ol_with_perl_module=static
2381 ol_with_shell_module=static
2382 ol_with_tcl_module=static
2383 ol_with_sql_module=static
2387 elif test $ol_enable_ldbm = no ; then
2389 if test $ol_with_ldbm_api != auto ; then
2390 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2393 if test $ol_with_ldbm_type != auto ; then
2394 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2397 if test $ol_with_ldbm_module != static ; then
2398 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2401 if test $ol_enable_bdb2 = yes ; then
2402 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2405 if test $ol_enable_modules != yes -a \
2406 $ol_enable_dnssrv = no -a \
2407 $ol_enable_ldap = no -a \
2408 $ol_enable_passwd = no -a \
2409 $ol_enable_perl = no -a \
2410 $ol_enable_shell = no -a \
2411 $ol_enable_sql = no -a \
2412 $ol_enable_tcl = no ; then
2413 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2417 ol_with_ldbm_type=no
2418 ol_with_ldbm_module=static
2420 elif test $ol_enable_bdb2 = yes ; then
2422 if test $ol_with_ldbm_api != auto -a \
2423 $ol_with_ldbm_api != berkeley ; then
2424 { echo "configure: error: BDB2 requires LDBM API berkeley or auto" 1>&2; exit 1; }
2427 ol_with_ldbm_api=db2
2431 if test $ol_enable_bdb2 != no ; then
2432 if test $ol_with_ldbm_api != auto -a \
2433 $ol_with_ldbm_api != berkeley ; then
2434 echo "configure: warning: BDB2 requires LDBM api berkeley or auto" 1>&2
2439 if test $ol_with_ldbm_api = gdbm -a \
2440 $ol_with_ldbm_type = btree ; then
2441 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2443 if test $ol_with_ldbm_api = mdbm -a \
2444 $ol_with_ldbm_type = btree ; then
2445 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2447 if test $ol_with_ldbm_api = ndbm -a \
2448 $ol_with_ldbm_type = btree ; then
2449 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2453 if test $ol_enable_slurpd = yes ; then
2454 if test $ol_with_threads = no ; then
2455 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2459 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2460 if test $ol_with_kerberos = no ; then
2461 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2463 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2464 if test $ol_with_kerberos != auto ; then
2465 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2471 if test $ol_enable_spasswd = yes ; then
2472 if test $ol_with_cyrus_sasl = no ; then
2473 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2478 echo "$ac_t""done" 1>&6
2506 BUILD_BDB2_DYNAMIC=static
2507 BUILD_DNSSRV_DYNAMIC=static
2508 BUILD_LDAP_DYNAMIC=static
2509 BUILD_LDBM_DYNAMIC=static
2510 BUILD_PASSWD_DYNAMIC=static
2511 BUILD_PERL_DYNAMIC=static
2512 BUILD_SHELL_DYNAMIC=static
2513 BUILD_TCL_DYNAMIC=static
2514 BUILD_SQL_DYNAMIC=static
2516 SLAPD_MODULES_LDFLAGS=
2517 SLAPD_MODULES_CPPFLAGS=
2540 cat >> confdefs.h <<\EOF
2541 #define HAVE_MKVERSION 1
2549 *-*-aix*) if test -z "$CC" ; then
2550 case "$ol_with_threads" in
2551 auto | yes | posix) ol_aix_threads=yes ;;
2557 if test $ol_aix_threads = yes ; then
2558 if test -z "${CC}" ; then
2559 for ac_prog in cc_r xlc_r cc
2561 # Extract the first word of "$ac_prog", so it can be a program name with args.
2562 set dummy $ac_prog; ac_word=$2
2563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2564 echo "configure:2565: checking for $ac_word" >&5
2565 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 if test -n "$CC"; then
2569 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2573 for ac_dir in $ac_dummy; do
2574 test -z "$ac_dir" && ac_dir=.
2575 if test -f $ac_dir/$ac_word; then
2576 ac_cv_prog_CC="$ac_prog"
2584 if test -n "$CC"; then
2585 echo "$ac_t""$CC" 1>&6
2587 echo "$ac_t""no" 1>&6
2590 test -n "$CC" && break
2594 if test "$CC" = cc ; then
2595 if test $ol_with_threads != auto ; then
2596 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2598 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2604 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2605 ol_with_threads=posix
2606 ol_cv_pthread_create=yes
2610 if test -z "${CC}"; then
2613 # Extract the first word of "$ac_prog", so it can be a program name with args.
2614 set dummy $ac_prog; ac_word=$2
2615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2616 echo "configure:2617: checking for $ac_word" >&5
2617 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2625 for ac_dir in $ac_dummy; do
2626 test -z "$ac_dir" && ac_dir=.
2627 if test -f $ac_dir/$ac_word; then
2628 ac_cv_prog_CC="$ac_prog"
2636 if test -n "$CC"; then
2637 echo "$ac_t""$CC" 1>&6
2639 echo "$ac_t""no" 1>&6
2642 test -n "$CC" && break
2650 # Check whether --enable-fast-install or --disable-fast-install was given.
2651 if test "${enable_fast_install+set}" = set; then
2652 enableval="$enable_fast_install"
2653 p=${PACKAGE-default}
2654 case "$enableval" in
2655 yes) enable_fast_install=yes ;;
2656 no) enable_fast_install=no ;;
2658 enable_fast_install=no
2659 # Look at the argument we got. We use all the common list separators.
2660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2661 for pkg in $enableval; do
2662 if test "X$pkg" = "X$p"; then
2663 enable_fast_install=yes
2670 enable_fast_install=yes
2673 # Extract the first word of "ranlib", so it can be a program name with args.
2674 set dummy ranlib; ac_word=$2
2675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2676 echo "configure:2677: checking for $ac_word" >&5
2677 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 if test -n "$RANLIB"; then
2681 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2685 for ac_dir in $ac_dummy; do
2686 test -z "$ac_dir" && ac_dir=.
2687 if test -f $ac_dir/$ac_word; then
2688 ac_cv_prog_RANLIB="ranlib"
2693 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2696 RANLIB="$ac_cv_prog_RANLIB"
2697 if test -n "$RANLIB"; then
2698 echo "$ac_t""$RANLIB" 1>&6
2700 echo "$ac_t""no" 1>&6
2703 # Extract the first word of "gcc", so it can be a program name with args.
2704 set dummy gcc; ac_word=$2
2705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2706 echo "configure:2707: checking for $ac_word" >&5
2707 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 if test -n "$CC"; then
2711 ac_cv_prog_CC="$CC" # Let the user override the test.
2713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2715 for ac_dir in $ac_dummy; do
2716 test -z "$ac_dir" && ac_dir=.
2717 if test -f $ac_dir/$ac_word; then
2726 if test -n "$CC"; then
2727 echo "$ac_t""$CC" 1>&6
2729 echo "$ac_t""no" 1>&6
2732 if test -z "$CC"; then
2733 # Extract the first word of "cc", so it can be a program name with args.
2734 set dummy cc; ac_word=$2
2735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2736 echo "configure:2737: checking for $ac_word" >&5
2737 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2740 if test -n "$CC"; then
2741 ac_cv_prog_CC="$CC" # Let the user override the test.
2743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2746 for ac_dir in $ac_dummy; do
2747 test -z "$ac_dir" && ac_dir=.
2748 if test -f $ac_dir/$ac_word; then
2749 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2750 ac_prog_rejected=yes
2758 if test $ac_prog_rejected = yes; then
2759 # We found a bogon in the path, so make sure we never use it.
2760 set dummy $ac_cv_prog_CC
2762 if test $# -gt 0; then
2763 # We chose a different compiler from the bogus one.
2764 # However, it has the same basename, so the bogon will be chosen
2765 # first if we set CC to just the basename; use the full file name.
2767 set dummy "$ac_dir/$ac_word" "$@"
2775 if test -n "$CC"; then
2776 echo "$ac_t""$CC" 1>&6
2778 echo "$ac_t""no" 1>&6
2781 if test -z "$CC"; then
2782 case "`uname -s`" in
2783 *win32* | *WIN32* | *CYGWIN*)
2784 # Extract the first word of "cl", so it can be a program name with args.
2785 set dummy cl; ac_word=$2
2786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2787 echo "configure:2788: checking for $ac_word" >&5
2788 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2796 for ac_dir in $ac_dummy; do
2797 test -z "$ac_dir" && ac_dir=.
2798 if test -f $ac_dir/$ac_word; then
2807 if test -n "$CC"; then
2808 echo "$ac_t""$CC" 1>&6
2810 echo "$ac_t""no" 1>&6
2815 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2818 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2819 echo "configure:2820: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2823 ac_cpp='$CPP $CPPFLAGS'
2824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2826 cross_compiling=$ac_cv_prog_cc_cross
2828 cat > conftest.$ac_ext << EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2835 if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2836 ac_cv_prog_cc_works=yes
2837 # If we can't run a trivial program, we are probably using a cross compiler.
2838 if (./conftest; exit) 2>/dev/null; then
2839 ac_cv_prog_cc_cross=no
2841 ac_cv_prog_cc_cross=yes
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 ac_cv_prog_cc_works=no
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 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2857 if test $ac_cv_prog_cc_works = no; then
2858 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2860 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2861 echo "configure:2862: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2862 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2863 cross_compiling=$ac_cv_prog_cc_cross
2865 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2866 echo "configure:2867: checking whether we are using GNU C" >&5
2867 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 cat > conftest.c <<EOF
2875 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2882 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2884 if test $ac_cv_prog_gcc = yes; then
2890 ac_test_CFLAGS="${CFLAGS+set}"
2891 ac_save_CFLAGS="$CFLAGS"
2893 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2894 echo "configure:2895: checking whether ${CC-cc} accepts -g" >&5
2895 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 echo 'void f(){}' > conftest.c
2899 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2908 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2909 if test "$ac_test_CFLAGS" = set; then
2910 CFLAGS="$ac_save_CFLAGS"
2911 elif test $ac_cv_prog_cc_g = yes; then
2912 if test "$GCC" = yes; then
2918 if test "$GCC" = yes; then
2925 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2926 if test "${with_gnu_ld+set}" = set; then
2927 withval="$with_gnu_ld"
2928 test "$withval" = no || with_gnu_ld=yes
2934 if test "$ac_cv_prog_gcc" = yes; then
2935 # Check if gcc -print-prog-name=ld gives a path.
2936 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2937 echo "configure:2938: checking for ld used by GCC" >&5
2938 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2940 # Accept absolute paths.
2941 [\\/]* | [A-Za-z]:[\\/]*)
2942 re_direlt='/[^/][^/]*/\.\./'
2943 # Canonicalize the path of ld
2944 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2945 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2946 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2948 test -z "$LD" && LD="$ac_prog"
2951 # If it fails, then pretend we aren't using GCC.
2955 # If it is relative, then search for the first ld in PATH.
2959 elif test "$with_gnu_ld" = yes; then
2960 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2961 echo "configure:2962: checking for GNU ld" >&5
2963 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2964 echo "configure:2965: checking for non-GNU ld" >&5
2966 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 if test -z "$LD"; then
2970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2971 for ac_dir in $PATH; do
2972 test -z "$ac_dir" && ac_dir=.
2973 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2974 ac_cv_path_LD="$ac_dir/$ac_prog"
2975 # Check to see if the program is GNU ld. I'd rather use --version,
2976 # but apparently some GNU ld's only accept -v.
2977 # Break only if it was the GNU/non-GNU ld that we prefer.
2978 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2979 test "$with_gnu_ld" != no && break
2981 test "$with_gnu_ld" != yes && break
2987 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2992 if test -n "$LD"; then
2993 echo "$ac_t""$LD" 1>&6
2995 echo "$ac_t""no" 1>&6
2997 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2998 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2999 echo "configure:3000: checking if the linker ($LD) is GNU ld" >&5
3000 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3003 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3004 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3005 ac_cv_prog_gnu_ld=yes
3007 ac_cv_prog_gnu_ld=no
3011 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3014 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3015 echo "configure:3016: checking for BSD-compatible nm" >&5
3016 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 if test -n "$NM"; then
3020 # Let the user override the test.
3023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3024 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3025 test -z "$ac_dir" && ac_dir=.
3026 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3027 # Check to see if the nm accepts a BSD-compat flag.
3028 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3029 # nm: unknown option "B" ignored
3030 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3031 ac_cv_path_NM="$ac_dir/nm -B"
3033 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3034 ac_cv_path_NM="$ac_dir/nm -p"
3037 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3038 continue # so that we can try to find one that supports BSD flags
3043 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3048 echo "$ac_t""$NM" 1>&6
3050 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3051 echo "configure:3052: checking whether ln -s works" >&5
3052 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3056 if ln -s X conftestdata 2>/dev/null
3059 ac_cv_prog_LN_S="ln -s"
3064 LN_S="$ac_cv_prog_LN_S"
3065 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3066 echo "$ac_t""yes" 1>&6
3068 echo "$ac_t""no" 1>&6
3071 if test $host != $build; then
3072 ac_tool_prefix=${host_alias}-
3079 NONE) lt_target="$host" ;;
3080 *) lt_target="$target" ;;
3083 # Check for any special flags to pass to ltconfig.
3084 libtool_flags="--cache-file=$cache_file"
3085 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3086 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3087 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3088 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3089 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3090 libtool_flags="$libtool_flags --enable-dlopen"
3091 libtool_flags="$libtool_flags --enable-win32-dll"
3092 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3093 if test "${enable_libtool_lock+set}" = set; then
3094 enableval="$enable_libtool_lock"
3098 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3099 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3101 # Some flags need to be propagated to the compiler or linker for good
3103 case "$lt_target" in
3105 # Find out which ABI we are using.
3106 echo '#line 3107 "configure"' > conftest.$ac_ext
3107 if { (eval echo configure:3108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3108 case "`/usr/bin/file conftest.o`" in
3124 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3125 SAVE_CFLAGS="$CFLAGS"
3126 CFLAGS="$CFLAGS -belf"
3127 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3128 echo "configure:3129: checking whether the C compiler needs -belf" >&5
3129 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3132 cat > conftest.$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3140 if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3142 lt_cv_cc_needs_belf=yes
3144 echo "configure: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3147 lt_cv_cc_needs_belf=no
3152 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3153 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3154 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3155 CFLAGS="$SAVE_CFLAGS"
3159 *-*-cygwin* | *-*-mingw*)
3160 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3163 echo "configure:3164: checking for $ac_word" >&5
3164 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 if test -n "$DLLTOOL"; then
3168 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3172 for ac_dir in $ac_dummy; do
3173 test -z "$ac_dir" && ac_dir=.
3174 if test -f $ac_dir/$ac_word; then
3175 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3182 DLLTOOL="$ac_cv_prog_DLLTOOL"
3183 if test -n "$DLLTOOL"; then
3184 echo "$ac_t""$DLLTOOL" 1>&6
3186 echo "$ac_t""no" 1>&6
3190 if test -z "$ac_cv_prog_DLLTOOL"; then
3191 if test -n "$ac_tool_prefix"; then
3192 # Extract the first word of "dlltool", so it can be a program name with args.
3193 set dummy dlltool; ac_word=$2
3194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3195 echo "configure:3196: checking for $ac_word" >&5
3196 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3199 if test -n "$DLLTOOL"; then
3200 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3204 for ac_dir in $ac_dummy; do
3205 test -z "$ac_dir" && ac_dir=.
3206 if test -f $ac_dir/$ac_word; then
3207 ac_cv_prog_DLLTOOL="dlltool"
3212 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3215 DLLTOOL="$ac_cv_prog_DLLTOOL"
3216 if test -n "$DLLTOOL"; then
3217 echo "$ac_t""$DLLTOOL" 1>&6
3219 echo "$ac_t""no" 1>&6
3227 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3228 set dummy ${ac_tool_prefix}as; ac_word=$2
3229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3230 echo "configure:3231: checking for $ac_word" >&5
3231 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 if test -n "$AS"; then
3235 ac_cv_prog_AS="$AS" # Let the user override the test.
3237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3239 for ac_dir in $ac_dummy; do
3240 test -z "$ac_dir" && ac_dir=.
3241 if test -f $ac_dir/$ac_word; then
3242 ac_cv_prog_AS="${ac_tool_prefix}as"
3250 if test -n "$AS"; then
3251 echo "$ac_t""$AS" 1>&6
3253 echo "$ac_t""no" 1>&6
3257 if test -z "$ac_cv_prog_AS"; then
3258 if test -n "$ac_tool_prefix"; then
3259 # Extract the first word of "as", so it can be a program name with args.
3260 set dummy as; ac_word=$2
3261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3262 echo "configure:3263: checking for $ac_word" >&5
3263 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 if test -n "$AS"; then
3267 ac_cv_prog_AS="$AS" # Let the user override the test.
3269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3271 for ac_dir in $ac_dummy; do
3272 test -z "$ac_dir" && ac_dir=.
3273 if test -f $ac_dir/$ac_word; then
3279 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3283 if test -n "$AS"; then
3284 echo "$ac_t""$AS" 1>&6
3286 echo "$ac_t""no" 1>&6
3294 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3295 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3297 echo "configure:3298: checking for $ac_word" >&5
3298 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 if test -n "$OBJDUMP"; then
3302 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3306 for ac_dir in $ac_dummy; do
3307 test -z "$ac_dir" && ac_dir=.
3308 if test -f $ac_dir/$ac_word; then
3309 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3316 OBJDUMP="$ac_cv_prog_OBJDUMP"
3317 if test -n "$OBJDUMP"; then
3318 echo "$ac_t""$OBJDUMP" 1>&6
3320 echo "$ac_t""no" 1>&6
3324 if test -z "$ac_cv_prog_OBJDUMP"; then
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "objdump", so it can be a program name with args.
3327 set dummy objdump; ac_word=$2
3328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3329 echo "configure:3330: checking for $ac_word" >&5
3330 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3333 if test -n "$OBJDUMP"; then
3334 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3338 for ac_dir in $ac_dummy; do
3339 test -z "$ac_dir" && ac_dir=.
3340 if test -f $ac_dir/$ac_word; then
3341 ac_cv_prog_OBJDUMP="objdump"
3346 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3349 OBJDUMP="$ac_cv_prog_OBJDUMP"
3350 if test -n "$OBJDUMP"; then
3351 echo "$ac_t""$OBJDUMP" 1>&6
3353 echo "$ac_t""no" 1>&6
3366 # Save cache, so that ltconfig can load it
3369 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3370 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3371 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3372 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3373 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3374 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3375 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3376 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3378 # Reload cache, that may have been modified by ltconfig
3381 # This can be used to rebuild libtool when needed
3382 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3384 # Always use our own libtool.
3385 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3387 # Redirect the config.log output again, so that the ltconfig log is not
3388 # clobbered by the next message.
3389 exec 5>>./config.log
3392 for ac_prog in mawk gawk nawk awk
3394 # Extract the first word of "$ac_prog", so it can be a program name with args.
3395 set dummy $ac_prog; ac_word=$2
3396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3397 echo "configure:3398: checking for $ac_word" >&5
3398 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3401 if test -n "$AWK"; then
3402 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3406 for ac_dir in $ac_dummy; do
3407 test -z "$ac_dir" && ac_dir=.
3408 if test -f $ac_dir/$ac_word; then
3409 ac_cv_prog_AWK="$ac_prog"
3416 AWK="$ac_cv_prog_AWK"
3417 if test -n "$AWK"; then
3418 echo "$ac_t""$AWK" 1>&6
3420 echo "$ac_t""no" 1>&6
3423 test -n "$AWK" && break
3426 # test for ln hardlink support
3427 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3428 echo "configure:3429: checking whether ln works" >&5
3429 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3432 rm -f conftest.src conftest.dst
3433 echo "conftest" > conftest.src
3434 if ln conftest.src conftest.dst 2>/dev/null
3436 ol_cv_prog_LN_H="ln"
3438 ol_cv_prog_LN_H="cp"
3440 rm -f conftest.src conftest.dst
3443 LN_H="$ol_cv_prog_LN_H"
3444 if test "$ol_cv_prog_LN_H" = "ln"; then
3445 echo "$ac_t""yes" 1>&6
3447 echo "$ac_t""no" 1>&6
3450 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3451 echo "configure:3452: checking whether ln -s works" >&5
3452 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3456 if ln -s X conftestdata 2>/dev/null
3459 ac_cv_prog_LN_S="ln -s"
3464 LN_S="$ac_cv_prog_LN_S"
3465 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3466 echo "$ac_t""yes" 1>&6
3468 echo "$ac_t""no" 1>&6
3472 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3476 # Extract the first word of "sendmail", so it can be a program name with args.
3477 set dummy sendmail; ac_word=$2
3478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3479 echo "configure:3480: checking for $ac_word" >&5
3480 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3485 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3488 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3492 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3493 for ac_dir in $ac_dummy; do
3494 test -z "$ac_dir" && ac_dir=.
3495 if test -f $ac_dir/$ac_word; then
3496 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3501 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3505 SENDMAIL="$ac_cv_path_SENDMAIL"
3506 if test -n "$SENDMAIL"; then
3507 echo "$ac_t""$SENDMAIL" 1>&6
3509 echo "$ac_t""no" 1>&6
3512 # Extract the first word of "vi", so it can be a program name with args.
3513 set dummy vi; ac_word=$2
3514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3515 echo "configure:3516: checking for $ac_word" >&5
3516 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3521 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3524 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3528 ac_dummy="$PATH:/usr/ucb"
3529 for ac_dir in $ac_dummy; do
3530 test -z "$ac_dir" && ac_dir=.
3531 if test -f $ac_dir/$ac_word; then
3532 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3537 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3541 EDITOR="$ac_cv_path_EDITOR"
3542 if test -n "$EDITOR"; then
3543 echo "$ac_t""$EDITOR" 1>&6
3545 echo "$ac_t""no" 1>&6
3548 # Extract the first word of "finger", so it can be a program name with args.
3549 set dummy finger; ac_word=$2
3550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3551 echo "configure:3552: checking for $ac_word" >&5
3552 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3557 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3560 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3564 ac_dummy="$PATH:/usr/ucb"
3565 for ac_dir in $ac_dummy; do
3566 test -z "$ac_dir" && ac_dir=.
3567 if test -f $ac_dir/$ac_word; then
3568 ac_cv_path_FINGER="$ac_dir/$ac_word"
3573 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3577 FINGER="$ac_cv_path_FINGER"
3578 if test -n "$FINGER"; then
3579 echo "$ac_t""$FINGER" 1>&6
3581 echo "$ac_t""no" 1>&6
3586 if test $ol_enable_perl != no ; then
3587 # Extract the first word of "perl", so it can be a program name with args.
3588 set dummy perl; ac_word=$2
3589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3590 echo "configure:3591: checking for $ac_word" >&5
3591 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3596 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3599 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3604 for ac_dir in $ac_dummy; do
3605 test -z "$ac_dir" && ac_dir=.
3606 if test -f $ac_dir/$ac_word; then
3607 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3612 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3616 PERLBIN="$ac_cv_path_PERLBIN"
3617 if test -n "$PERLBIN"; then
3618 echo "$ac_t""$PERLBIN" 1>&6
3620 echo "$ac_t""no" 1>&6
3624 if test "no$PERLBIN" = "no" ; then
3625 if test $ol_enable_perl = yes ; then
3626 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3630 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3631 if test x"$ol_with_perl_module" = "xstatic" ; then
3632 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3634 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3640 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3641 echo "configure:3642: checking how to run the C preprocessor" >&5
3642 # On Suns, sometimes $CPP names a directory.
3643 if test -n "$CPP" && test -d "$CPP"; then
3646 if test -z "$CPP"; then
3647 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 # This must be in double quotes, not single quotes, because CPP may get
3651 # substituted into the Makefile and "${CC-cc}" will confuse make.
3653 # On the NeXT, cc -E runs the code through the compiler's parser,
3654 # not just through cpp.
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3662 { (eval echo configure:3663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3664 if test -z "$ac_err"; then
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3671 CPP="${CC-cc} -E -traditional-cpp"
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3679 { (eval echo configure:3680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3681 if test -z "$ac_err"; then
3685 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3688 CPP="${CC-cc} -nologo -E"
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3696 { (eval echo configure:3697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3698 if test -z "$ac_err"; then
3702 echo "configure: failed program was:" >&5
3703 cat conftest.$ac_ext >&5
3712 ac_cv_prog_CPP="$CPP"
3714 CPP="$ac_cv_prog_CPP"
3716 ac_cv_prog_CPP="$CPP"
3718 echo "$ac_t""$CPP" 1>&6
3721 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3722 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3724 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3725 echo "configure: warning: programs compiled here do run here..." 1>&2
3726 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3728 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3729 echo "configure: warning: programs compiled here do not run here..." 1>&2
3730 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3733 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3734 echo "configure:3735: checking for AIX" >&5
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3744 egrep "yes" >/dev/null 2>&1; then
3746 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3747 #define _ALL_SOURCE 1
3752 echo "$ac_t""no" 1>&6
3757 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3758 echo "configure:3759: checking for POSIXized ISC" >&5
3759 if test -d /etc/conf/kconfig.d &&
3760 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3762 echo "$ac_t""yes" 1>&6
3763 ISC=yes # If later tests want to check for ISC.
3764 cat >> confdefs.h <<\EOF
3765 #define _POSIX_SOURCE 1
3768 if test "$GCC" = yes; then
3774 echo "$ac_t""no" 1>&6
3778 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3779 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3780 echo "configure:3781: checking for minix/config.h" >&5
3781 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 #include <minix/config.h>
3789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3790 { (eval echo configure:3791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3792 if test -z "$ac_err"; then
3794 eval "ac_cv_header_$ac_safe=yes"
3797 echo "configure: failed program was:" >&5
3798 cat conftest.$ac_ext >&5
3800 eval "ac_cv_header_$ac_safe=no"
3804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3805 echo "$ac_t""yes" 1>&6
3808 echo "$ac_t""no" 1>&6
3812 if test "$MINIX" = yes; then
3813 cat >> confdefs.h <<\EOF
3814 #define _POSIX_SOURCE 1
3817 cat >> confdefs.h <<\EOF
3818 #define _POSIX_1_SOURCE 2
3821 cat >> confdefs.h <<\EOF
3828 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3829 echo "configure:3830: checking for Cygwin environment" >&5
3830 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3840 #define __CYGWIN__ __CYGWIN32__
3845 if { (eval echo configure:3846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3849 echo "configure: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3857 echo "$ac_t""$ac_cv_cygwin" 1>&6
3859 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3860 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3861 echo "configure:3862: checking for mingw32 environment" >&5
3862 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3873 if { (eval echo configure:3874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3877 echo "configure: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3885 echo "$ac_t""$ac_cv_mingw32" 1>&6
3887 test "$ac_cv_mingw32" = yes && MINGW32=yes
3888 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3889 echo "configure:3890: checking for EMX OS/2 environment" >&5
3890 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3891 echo $ac_n "(cached) $ac_c" 1>&6
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3901 if { (eval echo configure:3902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3913 echo "$ac_t""$ac_cv_emxos2" 1>&6
3915 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3919 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3920 echo "configure:3921: checking for executable suffix" >&5
3921 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3924 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3928 echo 'int main () { return 0; }' > conftest.$ac_ext
3930 if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3931 for file in conftest.*; do
3933 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3934 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3938 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3941 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3946 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3947 echo "$ac_t""${ac_cv_exeext}" 1>&6
3950 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3951 echo "configure:3952: checking for object suffix" >&5
3952 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3956 echo 'int i = 1;' > conftest.$ac_ext
3957 if { (eval echo configure:3958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3958 for ac_file in conftest.*; do
3961 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3965 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3970 echo "$ac_t""$ac_cv_objext" 1>&6
3971 OBJEXT=$ac_cv_objext
3972 ac_objext=$ac_cv_objext
3975 cat >> confdefs.h <<EOF
3976 #define EXEEXT "${EXEEXT}"
3980 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3981 echo "configure:3982: checking for be_app in -lbe" >&5
3982 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3983 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3986 ac_save_LIBS="$LIBS"
3987 LIBS="-lbe -lroot -lnet $LIBS"
3988 cat > conftest.$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3991 /* Override any gcc2 internal prototype to avoid an error. */
3992 /* We use char because int might match the return type of a gcc2
3993 builtin and then its argument prototype would still apply. */
4000 if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4002 eval "ac_cv_lib_$ac_lib_var=yes"
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4007 eval "ac_cv_lib_$ac_lib_var=no"
4010 LIBS="$ac_save_LIBS"
4013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4015 LIBS="$LIBS -lbe -lroot -lnet"
4017 echo "$ac_t""no" 1>&6
4025 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4026 echo "configure:4027: checking for ${CC-cc} option to accept ANSI C" >&5
4027 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4030 am_cv_prog_cc_stdc=no
4032 # Don't try gcc -ansi; that turns off useful extensions and
4033 # breaks some systems' header files.
4034 # AIX -qlanglvl=ansi
4035 # Ultrix and OSF/1 -std1
4036 # HP-UX 10.20 and later -Ae
4037 # HP-UX older versions -Aa -D_HPUX_SOURCE
4038 # SVR4 -Xc -D__EXTENSIONS__
4039 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4041 CC="$ac_save_CC $ac_arg"
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4047 #include <sys/types.h>
4048 #include <sys/stat.h>
4049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4050 struct buf { int x; };
4051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4052 static char *e (p, i)
4058 static char *f (char * (*g) (char **, int), char **p, ...)
4063 s = g (p, va_arg (v,int));
4067 int test (int i, double x);
4068 struct s1 {int (*f) (int a);};
4069 struct s2 {int (*f) (double a);};
4070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4076 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4080 if { (eval echo configure:4081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4082 am_cv_prog_cc_stdc="$ac_arg"; break
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4093 if test -z "$am_cv_prog_cc_stdc"; then
4094 echo "$ac_t""none needed" 1>&6
4096 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4098 case "x$am_cv_prog_cc_stdc" in
4100 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4103 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4104 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4107 # test for make depend flag
4110 if test -z "${MKDEP}"; then
4112 if test -z "${MKDEP_FLAGS}"; then
4113 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4114 echo "configure:4115: checking for ${OL_MKDEP} depend flag" >&5
4115 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4116 echo $ac_n "(cached) $ac_c" 1>&6
4120 for flag in "-M" "-xM"; do
4121 cat > conftest.c <<EOF
4124 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4125 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4127 if test ! -f conftest."${ac_object}" ; then
4129 OL_MKDEP_FLAGS="$flag"
4138 echo "$ac_t""$ol_cv_mkdep" 1>&6
4141 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4146 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4151 if test "${ol_cv_mkdep}" = no ; then
4152 # this will soon become an error
4153 echo "configure: warning: do not know how to generate dependencies" 1>&2
4156 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4157 echo "configure:4158: checking for afopen in -ls" >&5
4158 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4159 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4162 ac_save_LIBS="$LIBS"
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4167 /* Override any gcc2 internal prototype to avoid an error. */
4168 /* We use char because int might match the return type of a gcc2
4169 builtin and then its argument prototype would still apply. */
4176 if { (eval echo configure:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4178 eval "ac_cv_lib_$ac_lib_var=yes"
4180 echo "configure: failed program was:" >&5
4181 cat conftest.$ac_ext >&5
4183 eval "ac_cv_lib_$ac_lib_var=no"
4186 LIBS="$ac_save_LIBS"
4189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4190 echo "$ac_t""yes" 1>&6
4193 cat >> confdefs.h <<\EOF
4194 #define HAVE_AIX_SECURITY 1
4199 echo "$ac_t""no" 1>&6
4204 if test $ol_enable_modules != no ; then
4205 for ac_hdr in ltdl.h
4207 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4209 echo "configure:4210: checking for $ac_hdr" >&5
4210 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4219 { (eval echo configure:4220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4221 if test -z "$ac_err"; then
4223 eval "ac_cv_header_$ac_safe=yes"
4226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4229 eval "ac_cv_header_$ac_safe=no"
4233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4234 echo "$ac_t""yes" 1>&6
4235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4236 cat >> confdefs.h <<EOF
4237 #define $ac_tr_hdr 1
4241 echo "$ac_t""no" 1>&6
4246 if test $ac_cv_header_ltdl_h = no ; then
4247 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4250 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4251 echo "configure:4252: checking for lt_dlinit in -lltdl" >&5
4252 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4253 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4256 ac_save_LIBS="$LIBS"
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 /* Override any gcc2 internal prototype to avoid an error. */
4262 /* We use char because int might match the return type of a gcc2
4263 builtin and then its argument prototype would still apply. */
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4272 eval "ac_cv_lib_$ac_lib_var=yes"
4274 echo "configure: failed program was:" >&5
4275 cat conftest.$ac_ext >&5
4277 eval "ac_cv_lib_$ac_lib_var=no"
4280 LIBS="$ac_save_LIBS"
4283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4284 echo "$ac_t""yes" 1>&6
4287 cat >> confdefs.h <<\EOF
4288 #define HAVE_LIBLTDL 1
4293 echo "$ac_t""no" 1>&6
4297 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4298 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4302 ol_with_bdb2_module=static
4303 ol_with_dnssrv_module=static
4304 ol_with_ldap_module=static
4305 ol_with_ldbm_module=static
4306 ol_with_passwd_module=static
4307 ol_with_perl_module=static
4308 ol_with_shell_module=static
4309 ol_with_tcl_module=static
4310 ol_with_sql_module=static
4314 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4315 echo "configure:4316: checking for EBCDIC" >&5
4316 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4320 cat > conftest.$ac_ext <<EOF
4321 #line 4322 "configure"
4322 #include "confdefs.h"
4325 #include <__ASCII__/generate_error.h>
4329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4330 { (eval echo configure:4331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4332 if test -z "$ac_err"; then
4334 ol_cv_cpp_ebcdic=yes
4337 echo "configure: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4345 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4346 if test $ol_cv_cpp_ebcdic = yes ; then
4347 cat >> confdefs.h <<\EOF
4348 #define HAVE_EBCDIC 1
4353 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4354 echo "configure:4355: checking for ANSI C header files" >&5
4355 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4356 echo $ac_n "(cached) $ac_c" 1>&6
4358 cat > conftest.$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4367 { (eval echo configure:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4369 if test -z "$ac_err"; then
4371 ol_cv_header_stdc=yes
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4377 ol_cv_header_stdc=no
4381 if test $ol_cv_header_stdc = yes; then
4382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4383 cat > conftest.$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4389 egrep "memchr" >/dev/null 2>&1; then
4393 ol_cv_header_stdc=no
4399 if test $ol_cv_header_stdc = yes; then
4400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407 egrep "free" >/dev/null 2>&1; then
4411 ol_cv_header_stdc=no
4417 if test $ol_cv_header_stdc = yes; then
4418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4419 if test "$cross_compiling" = yes; then
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4430 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4431 || ('j' <= (c) && (c) <= 'r') \
4432 || ('s' <= (c) && (c) <= 'z'))
4433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4436 int main () { int i; for (i = 0; i < 256; i++)
4437 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4441 if { (eval echo configure:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4445 echo "configure: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4448 ol_cv_header_stdc=no
4456 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4457 if test $ol_cv_header_stdc = yes; then
4458 cat >> confdefs.h <<\EOF
4459 #define STDC_HEADERS 1
4463 ac_cv_header_stdc=disable
4466 if test $ol_cv_header_stdc != yes; then
4467 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4471 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4474 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4475 echo "configure:4476: checking for $ac_hdr that defines DIR" >&5
4476 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4479 cat > conftest.$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4482 #include <sys/types.h>
4488 if { (eval echo configure:4489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4490 eval "ac_cv_header_dirent_$ac_safe=yes"
4492 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4495 eval "ac_cv_header_dirent_$ac_safe=no"
4499 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4502 cat >> confdefs.h <<EOF
4503 #define $ac_tr_hdr 1
4505 ac_header_dirent=$ac_hdr; break
4507 echo "$ac_t""no" 1>&6
4510 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4511 if test $ac_header_dirent = dirent.h; then
4512 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4513 echo "configure:4514: checking for opendir in -ldir" >&5
4514 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4515 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4518 ac_save_LIBS="$LIBS"
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 /* Override any gcc2 internal prototype to avoid an error. */
4524 /* We use char because int might match the return type of a gcc2
4525 builtin and then its argument prototype would still apply. */
4532 if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4534 eval "ac_cv_lib_$ac_lib_var=yes"
4536 echo "configure: failed program was:" >&5
4537 cat conftest.$ac_ext >&5
4539 eval "ac_cv_lib_$ac_lib_var=no"
4542 LIBS="$ac_save_LIBS"
4545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4546 echo "$ac_t""yes" 1>&6
4549 echo "$ac_t""no" 1>&6
4553 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4554 echo "configure:4555: checking for opendir in -lx" >&5
4555 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4556 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 ac_save_LIBS="$LIBS"
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 /* Override any gcc2 internal prototype to avoid an error. */
4565 /* We use char because int might match the return type of a gcc2
4566 builtin and then its argument prototype would still apply. */
4573 if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4575 eval "ac_cv_lib_$ac_lib_var=yes"
4577 echo "configure: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4580 eval "ac_cv_lib_$ac_lib_var=no"
4583 LIBS="$ac_save_LIBS"
4586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4587 echo "$ac_t""yes" 1>&6
4590 echo "$ac_t""no" 1>&6
4595 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4596 echo "configure:4597: checking for sys/wait.h that is POSIX.1 compatible" >&5
4597 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4600 cat > conftest.$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4603 #include <sys/types.h>
4604 #include <sys/wait.h>
4606 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4609 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4614 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4617 if { (eval echo configure:4618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4619 ac_cv_header_sys_wait_h=yes
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4624 ac_cv_header_sys_wait_h=no
4629 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4630 if test $ac_cv_header_sys_wait_h = yes; then
4631 cat >> confdefs.h <<\EOF
4632 #define HAVE_SYS_WAIT_H 1
4637 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4638 echo "configure:4639: checking POSIX termios" >&5
4639 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4640 echo $ac_n "(cached) $ac_c" 1>&6
4642 cat > conftest.$ac_ext <<EOF
4643 #line 4644 "configure"
4644 #include "confdefs.h"
4645 #include <sys/types.h>
4647 #include <termios.h>
4649 /* SunOS 4.0.3 has termios.h but not the library calls. */
4653 if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4655 am_cv_sys_posix_termios=yes
4657 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
4660 am_cv_sys_posix_termios=no
4665 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4668 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4669 echo "configure:4670: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4670 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4671 echo $ac_n "(cached) $ac_c" 1>&6
4673 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4675 gwinsz_in_termios_h=no
4676 if test $am_cv_sys_posix_termios = yes; then
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <sys/types.h>
4681 # include <termios.h>
4687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4688 egrep "yes" >/dev/null 2>&1; then
4690 gwinsz_in_termios_h=yes
4696 if test $gwinsz_in_termios_h = no; then
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4700 #include <sys/types.h>
4701 # include <sys/ioctl.h>
4707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708 egrep "yes" >/dev/null 2>&1; then
4710 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4718 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4719 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4720 cat >> confdefs.h <<\EOF
4721 #define GWINSZ_IN_SYS_IOCTL 1
4726 if test $am_cv_sys_posix_termios = yes ; then
4727 cat >> confdefs.h <<\EOF
4728 #define HAVE_POSIX_TERMIOS 1
4779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4781 echo "configure:4782: checking for $ac_hdr" >&5
4782 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4791 { (eval echo configure:4792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4793 if test -z "$ac_err"; then
4795 eval "ac_cv_header_$ac_safe=yes"
4798 echo "configure: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4801 eval "ac_cv_header_$ac_safe=no"
4805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4806 echo "$ac_t""yes" 1>&6
4807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4808 cat >> confdefs.h <<EOF
4809 #define $ac_tr_hdr 1
4813 echo "$ac_t""no" 1>&6
4820 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4821 echo "configure:4822: checking for sigset in -lV3" >&5
4822 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4823 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4826 ac_save_LIBS="$LIBS"
4828 cat > conftest.$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4831 /* Override any gcc2 internal prototype to avoid an error. */
4832 /* We use char because int might match the return type of a gcc2
4833 builtin and then its argument prototype would still apply. */
4840 if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4842 eval "ac_cv_lib_$ac_lib_var=yes"
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4847 eval "ac_cv_lib_$ac_lib_var=no"
4850 LIBS="$ac_save_LIBS"
4853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4854 echo "$ac_t""yes" 1>&6
4855 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4856 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4857 cat >> confdefs.h <<EOF
4858 #define $ac_tr_lib 1
4864 echo "$ac_t""no" 1>&6
4868 if test $ac_cv_header_winsock_h = yes; then
4869 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4870 echo "configure:4871: checking for winsock" >&5
4871 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4877 #include <winsock.h>
4881 select(0,NULL,NULL,NULL,NULL);
4883 gethostname(NULL,0);
4887 if { (eval echo configure:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4891 echo "configure: failed program was:" >&5
4892 cat conftest.$ac_ext >&5
4899 echo "$ac_t""$ol_cv_winsock" 1>&6
4901 if test $ol_cv_winsock = yes ; then
4902 cat >> confdefs.h <<\EOF
4903 #define HAVE_WINSOCK 1
4906 ac_cv_func_socket=yes
4907 ac_cv_func_select=yes
4908 ac_cv_func_closesocket=yes
4909 ac_cv_func_gethostname=yes
4914 echo $ac_n "checking for socket""... $ac_c" 1>&6
4915 echo "configure:4916: checking for socket" >&5
4916 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4919 cat > conftest.$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4922 /* System header to define __stub macros and hopefully few prototypes,
4923 which can conflict with char socket(); below. */
4925 /* Override any gcc2 internal prototype to avoid an error. */
4926 /* We use char because int might match the return type of a gcc2
4927 builtin and then its argument prototype would still apply. */
4933 /* The GNU C library defines this for functions which it implements
4934 to always fail with ENOSYS. Some functions are actually named
4935 something starting with __ and the normal name is an alias. */
4936 #if defined (__stub_socket) || defined (__stub___socket)
4944 if { (eval echo configure:4945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4946 eval "ac_cv_func_socket=yes"
4948 echo "configure: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4951 eval "ac_cv_func_socket=no"
4956 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4957 echo "$ac_t""yes" 1>&6
4960 echo "$ac_t""no" 1>&6
4962 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4963 echo "configure:4964: checking for main in -lsocket" >&5
4964 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4965 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4966 echo $ac_n "(cached) $ac_c" 1>&6
4968 ac_save_LIBS="$LIBS"
4969 LIBS="-lsocket $LIBS"
4970 cat > conftest.$ac_ext <<EOF
4971 #line 4972 "configure"
4972 #include "confdefs.h"
4978 if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4980 eval "ac_cv_lib_$ac_lib_var=yes"
4982 echo "configure: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4985 eval "ac_cv_lib_$ac_lib_var=no"
4988 LIBS="$ac_save_LIBS"
4991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4992 echo "$ac_t""yes" 1>&6
4993 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4994 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4995 cat >> confdefs.h <<EOF
4996 #define $ac_tr_lib 1
4999 LIBS="-lsocket $LIBS"
5002 echo "$ac_t""no" 1>&6
5005 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5006 echo "configure:5007: checking for main in -lnet" >&5
5007 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5008 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5009 echo $ac_n "(cached) $ac_c" 1>&6
5011 ac_save_LIBS="$LIBS"
5013 cat > conftest.$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5021 if { (eval echo configure:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5023 eval "ac_cv_lib_$ac_lib_var=yes"
5025 echo "configure: failed program was:" >&5
5026 cat conftest.$ac_ext >&5
5028 eval "ac_cv_lib_$ac_lib_var=no"
5031 LIBS="$ac_save_LIBS"
5034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5035 echo "$ac_t""yes" 1>&6
5036 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5037 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5038 cat >> confdefs.h <<EOF
5039 #define $ac_tr_lib 1
5045 echo "$ac_t""no" 1>&6
5048 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5049 echo "configure:5050: checking for main in -lnsl_s" >&5
5050 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5051 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5052 echo $ac_n "(cached) $ac_c" 1>&6
5054 ac_save_LIBS="$LIBS"
5055 LIBS="-lnsl_s $LIBS"
5056 cat > conftest.$ac_ext <<EOF
5057 #line 5058 "configure"
5058 #include "confdefs.h"
5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5066 eval "ac_cv_lib_$ac_lib_var=yes"
5068 echo "configure: failed program was:" >&5
5069 cat conftest.$ac_ext >&5
5071 eval "ac_cv_lib_$ac_lib_var=no"
5074 LIBS="$ac_save_LIBS"
5077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5078 echo "$ac_t""yes" 1>&6
5079 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5080 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5081 cat >> confdefs.h <<EOF
5082 #define $ac_tr_lib 1
5085 LIBS="-lnsl_s $LIBS"
5088 echo "$ac_t""no" 1>&6
5091 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5092 echo "configure:5093: checking for main in -lnsl" >&5
5093 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5094 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5097 ac_save_LIBS="$LIBS"
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5107 if { (eval echo configure:5108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5109 eval "ac_cv_lib_$ac_lib_var=yes"
5111 echo "configure: failed program was:" >&5
5112 cat conftest.$ac_ext >&5
5114 eval "ac_cv_lib_$ac_lib_var=no"
5117 LIBS="$ac_save_LIBS"
5120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5121 echo "$ac_t""yes" 1>&6
5122 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5123 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5124 cat >> confdefs.h <<EOF
5125 #define $ac_tr_lib 1
5131 echo "$ac_t""no" 1>&6
5134 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5135 echo "configure:5136: checking for socket in -linet" >&5
5136 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 ac_save_LIBS="$LIBS"
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5145 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5154 if { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5156 eval "ac_cv_lib_$ac_lib_var=yes"
5158 echo "configure: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5161 eval "ac_cv_lib_$ac_lib_var=no"
5164 LIBS="$ac_save_LIBS"
5167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5168 echo "$ac_t""yes" 1>&6
5169 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5171 cat >> confdefs.h <<EOF
5172 #define $ac_tr_lib 1
5178 echo "$ac_t""no" 1>&6
5181 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5182 echo "configure:5183: checking for main in -lgen" >&5
5183 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5184 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6
5187 ac_save_LIBS="$LIBS"
5189 cat > conftest.$ac_ext <<EOF
5190 #line 5191 "configure"
5191 #include "confdefs.h"
5197 if { (eval echo configure:5198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5199 eval "ac_cv_lib_$ac_lib_var=yes"
5201 echo "configure: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5204 eval "ac_cv_lib_$ac_lib_var=no"
5207 LIBS="$ac_save_LIBS"
5210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5211 echo "$ac_t""yes" 1>&6
5212 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5213 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5214 cat >> confdefs.h <<EOF
5215 #define $ac_tr_lib 1
5221 echo "$ac_t""no" 1>&6
5228 echo $ac_n "checking for select""... $ac_c" 1>&6
5229 echo "configure:5230: checking for select" >&5
5230 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5236 /* System header to define __stub macros and hopefully few prototypes,
5237 which can conflict with char select(); below. */
5239 /* Override any gcc2 internal prototype to avoid an error. */
5240 /* We use char because int might match the return type of a gcc2
5241 builtin and then its argument prototype would still apply. */
5247 /* The GNU C library defines this for functions which it implements
5248 to always fail with ENOSYS. Some functions are actually named
5249 something starting with __ and the normal name is an alias. */
5250 #if defined (__stub_select) || defined (__stub___select)
5258 if { (eval echo configure:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5260 eval "ac_cv_func_select=yes"
5262 echo "configure: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5265 eval "ac_cv_func_select=no"
5270 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5271 echo "$ac_t""yes" 1>&6
5274 echo "$ac_t""no" 1>&6
5275 { echo "configure: error: select() required." 1>&2; exit 1; }
5279 if test "${ac_cv_header_winsock_h}" != yes; then
5280 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5281 echo "configure:5282: checking types of arguments for select()" >&5
5282 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5285 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5286 echo $ac_n "(cached) $ac_c" 1>&6
5288 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5289 echo $ac_n "(cached) $ac_c" 1>&6
5291 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5292 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5293 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5294 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5297 #ifdef HAVE_SYS_TYPES_H
5298 #include <sys/types.h>
5300 #ifdef HAVE_SYS_TIME_H
5301 #include <sys/time.h>
5303 #ifdef HAVE_SYS_SELECT_H
5304 #include <sys/select.h>
5306 #ifdef HAVE_SYS_SOCKET_H
5307 #include <sys/socket.h>
5309 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);
5314 if { (eval echo configure:5315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5316 ac_not_found=no ; break 3
5318 echo "configure: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5333 if test "$ac_not_found" = yes; then
5334 ac_cv_func_select_arg1=int
5335 ac_cv_func_select_arg234='int *'
5336 ac_cv_func_select_arg5='struct timeval *'
5338 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5339 cat >> confdefs.h <<EOF
5340 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5343 cat >> confdefs.h <<EOF
5344 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5347 cat >> confdefs.h <<EOF
5348 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5355 for ac_hdr in regex.h
5357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5359 echo "configure:5360: checking for $ac_hdr" >&5
5360 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5361 echo $ac_n "(cached) $ac_c" 1>&6
5363 cat > conftest.$ac_ext <<EOF
5364 #line 5365 "configure"
5365 #include "confdefs.h"
5368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5369 { (eval echo configure:5370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5371 if test -z "$ac_err"; then
5373 eval "ac_cv_header_$ac_safe=yes"
5376 echo "configure: failed program was:" >&5
5377 cat conftest.$ac_ext >&5
5379 eval "ac_cv_header_$ac_safe=no"
5383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5384 echo "$ac_t""yes" 1>&6
5385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5386 cat >> confdefs.h <<EOF
5387 #define $ac_tr_hdr 1
5391 echo "$ac_t""no" 1>&6
5395 if test "$ac_cv_header_regex_h" != yes ; then
5396 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5398 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5399 echo "configure:5400: checking for regfree" >&5
5400 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5403 cat > conftest.$ac_ext <<EOF
5404 #line 5405 "configure"
5405 #include "confdefs.h"
5406 /* System header to define __stub macros and hopefully few prototypes,
5407 which can conflict with char regfree(); below. */
5409 /* Override any gcc2 internal prototype to avoid an error. */
5410 /* We use char because int might match the return type of a gcc2
5411 builtin and then its argument prototype would still apply. */
5417 /* The GNU C library defines this for functions which it implements
5418 to always fail with ENOSYS. Some functions are actually named
5419 something starting with __ and the normal name is an alias. */
5420 #if defined (__stub_regfree) || defined (__stub___regfree)
5428 if { (eval echo configure:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430 eval "ac_cv_func_regfree=yes"
5432 echo "configure: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5435 eval "ac_cv_func_regfree=no"
5440 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5441 echo "$ac_t""yes" 1>&6
5444 echo "$ac_t""no" 1>&6
5445 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5450 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5451 echo "configure:5452: checking for compatible POSIX regex" >&5
5452 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5453 echo $ac_n "(cached) $ac_c" 1>&6
5456 if test "$cross_compiling" = yes; then
5457 ol_cv_c_posix_regex=cross
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5463 #include <sys/types.h>
5465 static char *pattern, *string;
5473 if(regcomp(&re, pattern, 0)) {
5477 string = "ALL MATCH";
5479 rc = regexec(&re, string, 0, (void*)0, 0);
5486 if { (eval echo configure:5487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5488 ol_cv_c_posix_regex=yes
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5493 ol_cv_c_posix_regex=no
5500 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5502 if test "$ol_cv_c_posix_regex" = no ; then
5503 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5507 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5508 echo "configure:5509: checking for res_query" >&5
5509 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5510 echo $ac_n "(cached) $ac_c" 1>&6
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515 /* System header to define __stub macros and hopefully few prototypes,
5516 which can conflict with char res_query(); below. */
5518 /* Override any gcc2 internal prototype to avoid an error. */
5519 /* We use char because int might match the return type of a gcc2
5520 builtin and then its argument prototype would still apply. */
5526 /* The GNU C library defines this for functions which it implements
5527 to always fail with ENOSYS. Some functions are actually named
5528 something starting with __ and the normal name is an alias. */
5529 #if defined (__stub_res_query) || defined (__stub___res_query)
5537 if { (eval echo configure:5538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5539 eval "ac_cv_func_res_query=yes"
5541 echo "configure: failed program was:" >&5
5542 cat conftest.$ac_ext >&5
5544 eval "ac_cv_func_res_query=no"
5549 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5550 echo "$ac_t""yes" 1>&6
5553 echo "$ac_t""no" 1>&6
5556 if test $ac_cv_func_res_query = no ; then
5557 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5558 echo "configure:5559: checking for res_query in -lbind" >&5
5559 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5560 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5563 ac_save_LIBS="$LIBS"
5565 cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5568 /* Override any gcc2 internal prototype to avoid an error. */
5569 /* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5579 eval "ac_cv_lib_$ac_lib_var=yes"
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5584 eval "ac_cv_lib_$ac_lib_var=no"
5587 LIBS="$ac_save_LIBS"
5590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5591 echo "$ac_t""yes" 1>&6
5592 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5593 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5594 cat >> confdefs.h <<EOF
5595 #define $ac_tr_lib 1
5601 echo "$ac_t""no" 1>&6
5604 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5607 if test $ac_cv_func_res_query = no ; then
5608 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5609 echo "configure:5610: checking for __res_query in -lbind" >&5
5610 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5611 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5612 echo $ac_n "(cached) $ac_c" 1>&6
5614 ac_save_LIBS="$LIBS"
5616 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5619 /* Override any gcc2 internal prototype to avoid an error. */
5620 /* We use char because int might match the return type of a gcc2
5621 builtin and then its argument prototype would still apply. */
5628 if { (eval echo configure:5629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5630 eval "ac_cv_lib_$ac_lib_var=yes"
5632 echo "configure: failed program was:" >&5
5633 cat conftest.$ac_ext >&5
5635 eval "ac_cv_lib_$ac_lib_var=no"
5638 LIBS="$ac_save_LIBS"
5641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5642 echo "$ac_t""yes" 1>&6
5643 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5644 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5645 cat >> confdefs.h <<EOF
5646 #define $ac_tr_lib 1
5652 echo "$ac_t""no" 1>&6
5655 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5658 if test $ac_cv_func_res_query = no ; then
5659 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5660 echo "configure:5661: checking for res_query in -lresolv" >&5
5661 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5662 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 ac_save_LIBS="$LIBS"
5666 LIBS="-lresolv $LIBS"
5667 cat > conftest.$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5670 /* Override any gcc2 internal prototype to avoid an error. */
5671 /* We use char because int might match the return type of a gcc2
5672 builtin and then its argument prototype would still apply. */
5679 if { (eval echo configure:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5681 eval "ac_cv_lib_$ac_lib_var=yes"
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5686 eval "ac_cv_lib_$ac_lib_var=no"
5689 LIBS="$ac_save_LIBS"
5692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5693 echo "$ac_t""yes" 1>&6
5694 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5695 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5696 cat >> confdefs.h <<EOF
5697 #define $ac_tr_lib 1
5700 LIBS="-lresolv $LIBS"
5703 echo "$ac_t""no" 1>&6
5706 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5709 if test "$ac_cv_func_res_query" = yes ; then
5710 cat >> confdefs.h <<\EOF
5711 #define HAVE_RES_QUERY 1
5715 if test $ol_enable_dnssrv != no ; then
5720 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5721 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5724 if test $ol_enable_quipu != no ; then
5725 for ac_hdr in quipu/commonarg.h
5727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5729 echo "configure:5730: checking for $ac_hdr" >&5
5730 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5731 echo $ac_n "(cached) $ac_c" 1>&6
5733 cat > conftest.$ac_ext <<EOF
5734 #line 5735 "configure"
5735 #include "confdefs.h"
5738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5739 { (eval echo configure:5740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5741 if test -z "$ac_err"; then
5743 eval "ac_cv_header_$ac_safe=yes"
5746 echo "configure: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5749 eval "ac_cv_header_$ac_safe=no"
5753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5754 echo "$ac_t""yes" 1>&6
5755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5756 cat >> confdefs.h <<EOF
5757 #define $ac_tr_hdr 1
5761 echo "$ac_t""no" 1>&6
5766 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5768 elif test $ol_enable_quipu = auto ; then
5769 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5771 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5780 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5781 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5783 for ac_hdr in krb5.h
5785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5787 echo "configure:5788: checking for $ac_hdr" >&5
5788 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5789 echo $ac_n "(cached) $ac_c" 1>&6
5791 cat > conftest.$ac_ext <<EOF
5792 #line 5793 "configure"
5793 #include "confdefs.h"
5796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5797 { (eval echo configure:5798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5799 if test -z "$ac_err"; then
5801 eval "ac_cv_header_$ac_safe=yes"
5804 echo "configure: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5807 eval "ac_cv_header_$ac_safe=no"
5811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5812 echo "$ac_t""yes" 1>&6
5813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5814 cat >> confdefs.h <<EOF
5815 #define $ac_tr_hdr 1
5819 echo "$ac_t""no" 1>&6
5824 if test $ac_cv_header_krb5_h = yes ; then
5825 for ac_hdr in heim_err.h
5827 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5829 echo "configure:5830: checking for $ac_hdr" >&5
5830 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5833 cat > conftest.$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5839 { (eval echo configure:5840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5841 if test -z "$ac_err"; then
5843 eval "ac_cv_header_$ac_safe=yes"
5846 echo "configure: failed program was:" >&5
5847 cat conftest.$ac_ext >&5
5849 eval "ac_cv_header_$ac_safe=no"
5853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5854 echo "$ac_t""yes" 1>&6
5855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5856 cat >> confdefs.h <<EOF
5857 #define $ac_tr_hdr 1
5861 echo "$ac_t""no" 1>&6
5865 if test $ac_cv_header_heim_err_h = yes ; then
5871 if test $krb5_impl = mit; then
5872 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5873 echo "configure:5874: checking for main in -lkrb5" >&5
5874 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5875 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5878 ac_save_LIBS="$LIBS"
5879 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5888 if { (eval echo configure:5889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5890 eval "ac_cv_lib_$ac_lib_var=yes"
5892 echo "configure: failed program was:" >&5
5893 cat conftest.$ac_ext >&5
5895 eval "ac_cv_lib_$ac_lib_var=no"
5898 LIBS="$ac_save_LIBS"
5901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5902 echo "$ac_t""yes" 1>&6
5904 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5906 echo "$ac_t""no" 1>&6
5911 elif test $krb5_impl = heimdal; then
5912 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5913 echo "configure:5914: checking for main in -lkrb5" >&5
5914 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5915 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5916 echo $ac_n "(cached) $ac_c" 1>&6
5918 ac_save_LIBS="$LIBS"
5919 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5928 if { (eval echo configure:5929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5930 eval "ac_cv_lib_$ac_lib_var=yes"
5932 echo "configure: failed program was:" >&5
5933 cat conftest.$ac_ext >&5
5935 eval "ac_cv_lib_$ac_lib_var=no"
5938 LIBS="$ac_save_LIBS"
5941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5942 echo "$ac_t""yes" 1>&6
5944 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5946 echo "$ac_t""no" 1>&6
5951 cat >> confdefs.h <<\EOF
5952 #define HAVE_HEIMDAL_KERBEROS 1
5957 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5960 if test $have_krb5 = yes ; then
5963 cat >> confdefs.h <<\EOF
5968 if test $ol_enable_kpasswd != no ; then
5969 ol_link_kpasswd=yes;
5972 if test $ol_with_kerberos = k5only ; then
5973 ol_with_kerberos=found
5976 elif test $ol_with_kerberos != auto ; then
5977 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5983 if test $ol_link_krb5 = yes -a \
5984 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5986 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5990 echo "configure:5991: checking for $ac_hdr" >&5
5991 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6000 { (eval echo configure:6001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6002 if test -z "$ac_err"; then
6004 eval "ac_cv_header_$ac_safe=yes"
6007 echo "configure: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6010 eval "ac_cv_header_$ac_safe=no"
6014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6015 echo "$ac_t""yes" 1>&6
6016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6017 cat >> confdefs.h <<EOF
6018 #define $ac_tr_hdr 1
6022 echo "$ac_t""no" 1>&6
6027 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6028 if test $krb5_impl = mit; then
6029 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6030 echo "configure:6031: checking for main in -lkrb4" >&5
6031 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6032 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6035 ac_save_LIBS="$LIBS"
6036 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6037 cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6045 if { (eval echo configure:6046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6047 eval "ac_cv_lib_$ac_lib_var=yes"
6049 echo "configure: failed program was:" >&5
6050 cat conftest.$ac_ext >&5
6052 eval "ac_cv_lib_$ac_lib_var=no"
6055 LIBS="$ac_save_LIBS"
6058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6059 echo "$ac_t""yes" 1>&6
6061 KRB4_LIBS="-lkrb4 -ldes425"
6063 echo "$ac_t""no" 1>&6
6068 elif test $krb5_impl = heimdal; then
6069 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6070 echo "configure:6071: checking for main in -lkrb4" >&5
6071 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6072 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6073 echo $ac_n "(cached) $ac_c" 1>&6
6075 ac_save_LIBS="$LIBS"
6076 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6077 cat > conftest.$ac_ext <<EOF
6078 #line 6079 "configure"
6079 #include "confdefs.h"
6085 if { (eval echo configure:6086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6087 eval "ac_cv_lib_$ac_lib_var=yes"
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6092 eval "ac_cv_lib_$ac_lib_var=no"
6095 LIBS="$ac_save_LIBS"
6098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6099 echo "$ac_t""yes" 1>&6
6103 echo "$ac_t""no" 1>&6
6110 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6113 if test $have_k425 = yes ; then
6114 ol_with_kerberos=found
6117 cat >> confdefs.h <<\EOF
6118 #define HAVE_KRB425 1
6121 cat >> confdefs.h <<\EOF
6126 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6127 echo "configure:6128: checking for des_debug in Kerberos libraries" >&5
6128 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6129 echo $ac_n "(cached) $ac_c" 1>&6
6133 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6138 #include <kerberosIV/krb.h>
6139 #include <kerberosIV/des.h>
6140 extern int des_debug;
6148 if { (eval echo configure:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6150 ol_cv_var_des_debug=yes
6152 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6155 ol_cv_var_des_debug=no
6162 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6164 if test $ol_cv_var_des_debug = yes ; then
6165 cat >> confdefs.h <<\EOF
6166 #define HAVE_DES_DEBUG 1
6176 if test $ol_link_krb5 = yes ; then
6177 ol_with_kerberos=found
6180 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6181 -o $ol_with_kerberos = kth ; then
6183 for ac_hdr in krb.h des.h krb-archaeology.h
6185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6187 echo "configure:6188: checking for $ac_hdr" >&5
6188 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6191 cat > conftest.$ac_ext <<EOF
6192 #line 6193 "configure"
6193 #include "confdefs.h"
6196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6197 { (eval echo configure:6198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6199 if test -z "$ac_err"; then
6201 eval "ac_cv_header_$ac_safe=yes"
6204 echo "configure: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6207 eval "ac_cv_header_$ac_safe=no"
6211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6212 echo "$ac_t""yes" 1>&6
6213 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6214 cat >> confdefs.h <<EOF
6215 #define $ac_tr_hdr 1
6219 echo "$ac_t""no" 1>&6
6224 if test $ac_cv_header_krb_h = yes ; then
6225 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6226 echo "configure:6227: checking for main in -lkrb" >&5
6227 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6228 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6229 echo $ac_n "(cached) $ac_c" 1>&6
6231 ac_save_LIBS="$LIBS"
6232 LIBS="-lkrb -ldes $LIBS"
6233 cat > conftest.$ac_ext <<EOF
6234 #line 6235 "configure"
6235 #include "confdefs.h"
6241 if { (eval echo configure:6242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6243 eval "ac_cv_lib_$ac_lib_var=yes"
6245 echo "configure: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6248 eval "ac_cv_lib_$ac_lib_var=no"
6251 LIBS="$ac_save_LIBS"
6254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6255 echo "$ac_t""yes" 1>&6
6258 echo "$ac_t""no" 1>&6
6263 if test $have_k4 = yes ; then
6264 ol_with_kerberos=found
6267 cat >> confdefs.h <<\EOF
6272 KRB4_LIBS="-lkrb -ldes"
6274 if test $ac_cv_header_krb_archaeology_h = yes ; then
6275 cat >> confdefs.h <<\EOF
6276 #define HAVE_KTH_KERBEROS 1
6284 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6285 ol_link_kpasswd=yes;
6288 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6289 cat >> confdefs.h <<\EOF
6290 #define HAVE_KERBEROS 1
6294 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6295 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6299 if test $ol_with_tls != no ; then
6301 for ac_hdr in openssl/ssl.h ssl.h
6303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6305 echo "configure:6306: checking for $ac_hdr" >&5
6306 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6307 echo $ac_n "(cached) $ac_c" 1>&6
6309 cat > conftest.$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6315 { (eval echo configure:6316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6317 if test -z "$ac_err"; then
6319 eval "ac_cv_header_$ac_safe=yes"
6322 echo "configure: failed program was:" >&5
6323 cat conftest.$ac_ext >&5
6325 eval "ac_cv_header_$ac_safe=no"
6329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6330 echo "$ac_t""yes" 1>&6
6331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6332 cat >> confdefs.h <<EOF
6333 #define $ac_tr_hdr 1
6337 echo "$ac_t""no" 1>&6
6342 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6343 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6344 echo "configure:6345: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6345 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6346 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6347 echo $ac_n "(cached) $ac_c" 1>&6
6349 ac_save_LIBS="$LIBS"
6350 LIBS="-lssl -lcrypto $LIBS"
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6354 /* Override any gcc2 internal prototype to avoid an error. */
6355 /* We use char because int might match the return type of a gcc2
6356 builtin and then its argument prototype would still apply. */
6357 char SSLeay_add_ssl_algorithms();
6360 SSLeay_add_ssl_algorithms()
6363 if { (eval echo configure:6364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6365 eval "ac_cv_lib_$ac_lib_var=yes"
6367 echo "configure: failed program was:" >&5
6368 cat conftest.$ac_ext >&5
6370 eval "ac_cv_lib_$ac_lib_var=no"
6373 LIBS="$ac_save_LIBS"
6376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6377 echo "$ac_t""yes" 1>&6
6381 echo "$ac_t""no" 1>&6
6386 if test $have_ssleay = no ; then
6387 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6388 echo "configure:6389: checking for SSL_library_init in -lssl" >&5
6389 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6390 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6391 echo $ac_n "(cached) $ac_c" 1>&6
6393 ac_save_LIBS="$LIBS"
6394 LIBS="-lssl -lcrypto $LIBS"
6395 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure"
6397 #include "confdefs.h"
6398 /* Override any gcc2 internal prototype to avoid an error. */
6399 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */
6401 char SSL_library_init();
6407 if { (eval echo configure:6408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6409 eval "ac_cv_lib_$ac_lib_var=yes"
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 eval "ac_cv_lib_$ac_lib_var=no"
6417 LIBS="$ac_save_LIBS"
6420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6421 echo "$ac_t""yes" 1>&6
6425 echo "$ac_t""no" 1>&6
6431 if test $have_ssleay = no ; then
6432 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6433 echo "configure:6434: checking for ssl3_accept in -lssl" >&5
6434 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6435 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6438 ac_save_LIBS="$LIBS"
6439 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6440 cat > conftest.$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6443 /* Override any gcc2 internal prototype to avoid an error. */
6444 /* We use char because int might match the return type of a gcc2
6445 builtin and then its argument prototype would still apply. */
6452 if { (eval echo configure:6453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6454 eval "ac_cv_lib_$ac_lib_var=yes"
6456 echo "configure: failed program was:" >&5
6457 cat conftest.$ac_ext >&5
6459 eval "ac_cv_lib_$ac_lib_var=no"
6462 LIBS="$ac_save_LIBS"
6465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6466 echo "$ac_t""yes" 1>&6
6470 echo "$ac_t""no" 1>&6
6476 if test $have_ssleay = yes ; then
6480 cat >> confdefs.h <<\EOF
6481 #define HAVE_SSLEAY 1
6485 if test $need_rsaref = yes; then
6486 cat >> confdefs.h <<\EOF
6487 #define HAVE_RSAREF 1
6491 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6493 TLS_LIBS="-lssl -lcrypto"
6499 if test $ol_link_tls = yes ; then
6500 cat >> confdefs.h <<\EOF
6508 gethostbyname_r gethostbyaddr_r \
6511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6512 echo "configure:6513: checking for $ac_func" >&5
6513 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6516 cat > conftest.$ac_ext <<EOF
6517 #line 6518 "configure"
6518 #include "confdefs.h"
6519 /* System header to define __stub macros and hopefully few prototypes,
6520 which can conflict with char $ac_func(); below. */
6522 /* Override any gcc2 internal prototype to avoid an error. */
6523 /* We use char because int might match the return type of a gcc2
6524 builtin and then its argument prototype would still apply. */
6530 /* The GNU C library defines this for functions which it implements
6531 to always fail with ENOSYS. Some functions are actually named
6532 something starting with __ and the normal name is an alias. */
6533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6541 if { (eval echo configure:6542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6543 eval "ac_cv_func_$ac_func=yes"
6545 echo "configure: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6548 eval "ac_cv_func_$ac_func=no"
6553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6554 echo "$ac_t""yes" 1>&6
6555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6556 cat >> confdefs.h <<EOF
6557 #define $ac_tr_func 1
6561 echo "$ac_t""no" 1>&6
6566 if test "$ac_cv_func_ctime_r" = no ; then
6567 ol_cv_func_ctime_r_nargs=0
6569 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6570 echo "configure:6571: checking number of arguments of ctime_r" >&5
6571 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6574 cat > conftest.$ac_ext <<EOF
6575 #line 6576 "configure"
6576 #include "confdefs.h"
6579 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6582 if { (eval echo configure:6583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6584 ol_cv_func_ctime_r_nargs3=yes
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6589 ol_cv_func_ctime_r_nargs3=no
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6598 time_t ti; char *buffer; ctime_r(&ti,buffer);
6601 if { (eval echo configure:6602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6603 ol_cv_func_ctime_r_nargs2=yes
6605 echo "configure: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6608 ol_cv_func_ctime_r_nargs2=no
6612 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6613 $ol_cv_func_ctime_r_nargs2 = no ; then
6615 ol_cv_func_ctime_r_nargs=3
6617 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6618 $ol_cv_func_ctime_r_nargs2 = yes ; then
6620 ol_cv_func_ctime_r_nargs=2
6623 ol_cv_func_ctime_r_nargs=0
6628 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6630 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6631 cat >> confdefs.h <<EOF
6632 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6639 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6640 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6641 echo "configure:6642: checking number of arguments of gethostbyname_r" >&5
6642 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6648 #include <sys/types.h>
6649 #include <sys/socket.h>
6650 #include <netinet/in.h>
6652 #define BUFSIZE (sizeof(struct hostent)+10)
6654 struct hostent hent; char buffer[BUFSIZE];
6655 int bufsize=BUFSIZE;int h_errno;
6656 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6657 buffer, bufsize, &h_errno);
6660 if { (eval echo configure:6661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6662 ol_cv_func_gethostbyname_r_nargs5=yes
6664 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6667 ol_cv_func_gethostbyname_r_nargs5=no
6671 cat > conftest.$ac_ext <<EOF
6672 #line 6673 "configure"
6673 #include "confdefs.h"
6674 #include <sys/types.h>
6675 #include <sys/socket.h>
6676 #include <netinet/in.h>
6678 #define BUFSIZE (sizeof(struct hostent)+10)
6680 struct hostent hent;struct hostent *rhent;
6681 char buffer[BUFSIZE];
6682 int bufsize=BUFSIZE;int h_errno;
6683 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6687 if { (eval echo configure:6688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6689 ol_cv_func_gethostbyname_r_nargs6=yes
6691 echo "configure: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6694 ol_cv_func_gethostbyname_r_nargs6=no
6698 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6699 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6701 ol_cv_func_gethostbyname_r_nargs=5
6703 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6704 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6706 ol_cv_func_gethostbyname_r_nargs=6
6709 ol_cv_func_gethostbyname_r_nargs=0
6714 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6715 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6716 cat >> confdefs.h <<EOF
6717 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6723 ol_cv_func_gethostbyname_r_nargs=0
6726 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6727 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6728 echo "configure:6729: checking number of arguments of gethostbyaddr_r" >&5
6729 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6732 cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735 #include <sys/types.h>
6736 #include <sys/socket.h>
6737 #include <netinet/in.h>
6739 #define BUFSIZE (sizeof(struct hostent)+10)
6741 struct hostent hent; char buffer[BUFSIZE];
6743 size_t alen=sizeof(struct in_addr);
6744 int bufsize=BUFSIZE;int h_errno;
6745 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6746 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6749 if { (eval echo configure:6750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6751 ol_cv_func_gethostbyaddr_r_nargs7=yes
6753 echo "configure: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6756 ol_cv_func_gethostbyaddr_r_nargs7=no
6760 cat > conftest.$ac_ext <<EOF
6761 #line 6762 "configure"
6762 #include "confdefs.h"
6763 #include <sys/types.h>
6764 #include <sys/socket.h>
6765 #include <netinet/in.h>
6767 #define BUFSIZE (sizeof(struct hostent)+10)
6769 struct hostent hent;
6770 struct hostent *rhent; char buffer[BUFSIZE];
6772 size_t alen=sizeof(struct in_addr);
6773 int bufsize=BUFSIZE;int h_errno;
6774 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6775 alen, AF_INET, &hent, buffer, bufsize,
6779 if { (eval echo configure:6780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6781 ol_cv_func_gethostbyaddr_r_nargs8=yes
6783 echo "configure: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6786 ol_cv_func_gethostbyaddr_r_nargs8=no
6790 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6791 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6793 ol_cv_func_gethostbyaddr_r_nargs=7
6795 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6796 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6798 ol_cv_func_gethostbyaddr_r_nargs=8
6801 ol_cv_func_gethostbyaddr_r_nargs=0
6806 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6807 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6808 cat >> confdefs.h <<EOF
6809 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6815 ol_cv_func_gethostbyaddr_r_nargs=0
6818 if test "$ac_cv_func_ctime_r" = yes \
6819 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6820 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6821 -a "$ac_cv_func_gethostbyname_r" = yes \
6822 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6823 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6824 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6825 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6826 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6829 cat >> confdefs.h <<\EOF
6830 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6837 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6838 -o $ol_with_threads = nt ; then
6841 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6842 echo "configure:6843: checking for NT Threads" >&5
6843 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6844 echo $ac_n "(cached) $ac_c" 1>&6
6847 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6848 echo "configure:6849: checking for _beginthread" >&5
6849 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6852 cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855 /* System header to define __stub macros and hopefully few prototypes,
6856 which can conflict with char _beginthread(); below. */
6858 /* Override any gcc2 internal prototype to avoid an error. */
6859 /* We use char because int might match the return type of a gcc2
6860 builtin and then its argument prototype would still apply. */
6861 char _beginthread();
6866 /* The GNU C library defines this for functions which it implements
6867 to always fail with ENOSYS. Some functions are actually named
6868 something starting with __ and the normal name is an alias. */
6869 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6879 eval "ac_cv_func__beginthread=yes"
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6884 eval "ac_cv_func__beginthread=no"
6889 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6890 echo "$ac_t""yes" 1>&6
6891 ol_cv_nt_threads=yes
6893 echo "$ac_t""no" 1>&6
6900 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6902 if test $ol_cv_nt_threads = yes ; then
6903 cat >> confdefs.h <<\EOF
6904 #define HAVE_NT_THREADS 1
6910 if test "$ol_cv_nt_threads" = yes ; then
6912 ol_with_threads=found
6913 ol_with_yielding_select=yes
6915 cat >> confdefs.h <<\EOF
6916 #define HAVE_NT_SERVICE_MANAGER 1
6919 cat >> confdefs.h <<\EOF
6920 #define HAVE_NT_EVENT_LOG 1
6925 if test $ol_with_threads = nt ; then
6926 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6930 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6931 -o $ol_with_threads = posix ; then
6933 for ac_hdr in pthread.h
6935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6937 echo "configure:6938: checking for $ac_hdr" >&5
6938 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6939 echo $ac_n "(cached) $ac_c" 1>&6
6941 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6947 { (eval echo configure:6948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6949 if test -z "$ac_err"; then
6951 eval "ac_cv_header_$ac_safe=yes"
6954 echo "configure: failed program was:" >&5
6955 cat conftest.$ac_ext >&5
6957 eval "ac_cv_header_$ac_safe=no"
6961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6962 echo "$ac_t""yes" 1>&6
6963 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6964 cat >> confdefs.h <<EOF
6965 #define $ac_tr_hdr 1
6969 echo "$ac_t""no" 1>&6
6974 if test $ac_cv_header_pthread_h = yes ; then
6975 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6976 echo "configure:6977: checking POSIX thread version" >&5
6977 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6978 echo $ac_n "(cached) $ac_c" 1>&6
6981 cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6985 # include <pthread.h>
6986 /* this check could be improved */
6987 # ifdef PTHREAD_ONCE_INIT
6988 pthread_version_final;
6992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6993 egrep "pthread_version_final" >/dev/null 2>&1; then
6995 ol_pthread_final=yes
7003 cat > conftest.$ac_ext <<EOF
7004 #line 7005 "configure"
7005 #include "confdefs.h"
7007 # include <pthread.h>
7008 /* this check could be improved */
7009 # ifdef pthread_once_init
7010 pthread_version_draft4;
7014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7015 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7017 ol_pthread_draft4=yes
7020 ol_pthread_draft4=no
7025 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7026 ol_cv_pthread_version=final
7027 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7028 ol_cv_pthread_version=draft4
7030 ol_cv_pthread_version=unknown
7035 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7038 if test $ol_cv_pthread_version = final ; then
7039 cat >> confdefs.h <<\EOF
7040 #define HAVE_PTHREADS_FINAL 1
7043 elif test $ol_cv_pthread_version = draft4 ; then
7044 cat >> confdefs.h <<\EOF
7045 #define HAVE_PTHREADS_D4 1
7049 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7052 # consider threads found
7053 ol_with_threads=found
7056 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7057 echo "configure:7058: checking for LinuxThreads pthread.h" >&5
7058 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7059 echo $ac_n "(cached) $ac_c" 1>&6
7061 cat > conftest.$ac_ext <<EOF
7062 #line 7063 "configure"
7063 #include "confdefs.h"
7064 #include <pthread.h>
7066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7067 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7069 ol_cv_header_linux_threads=yes
7072 ol_cv_header_linux_threads=no
7079 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7080 if test $ol_cv_header_linux_threads = yes; then
7081 cat >> confdefs.h <<\EOF
7082 #define HAVE_LINUX_THREADS 1
7088 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7089 echo "configure:7090: checking for GNU Pth pthread.h" >&5
7090 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7091 echo $ac_n "(cached) $ac_c" 1>&6
7093 cat > conftest.$ac_ext <<EOF
7094 #line 7095 "configure"
7095 #include "confdefs.h"
7096 #include <pthread.h>
7097 #ifdef _POSIX_THREAD_IS_GNU_PTH
7102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103 egrep "__gnu_pth__" >/dev/null 2>&1; then
7105 ol_cv_header_gnu_pth_pthread_h=yes
7108 ol_cv_header_gnu_pth_pthread_h=no
7115 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7118 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7119 for ac_hdr in sched.h
7121 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7123 echo "configure:7124: checking for $ac_hdr" >&5
7124 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7125 echo $ac_n "(cached) $ac_c" 1>&6
7127 cat > conftest.$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7133 { (eval echo configure:7134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7135 if test -z "$ac_err"; then
7137 eval "ac_cv_header_$ac_safe=yes"
7140 echo "configure: failed program was:" >&5
7141 cat conftest.$ac_ext >&5
7143 eval "ac_cv_header_$ac_safe=no"
7147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7148 echo "$ac_t""yes" 1>&6
7149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7150 cat >> confdefs.h <<EOF
7151 #define $ac_tr_hdr 1
7155 echo "$ac_t""no" 1>&6
7162 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7163 echo "configure:7164: checking for pthread_create in default libraries" >&5
7164 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7165 echo $ac_n "(cached) $ac_c" 1>&6
7168 if test "$cross_compiling" = yes; then
7169 cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 /* pthread test headers */
7173 #include <pthread.h>
7175 #define NULL (void*)0
7178 static void *task(p)
7181 return (void *) (p == NULL);
7186 /* pthread test function */
7189 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7190 /* This system (e.g. AIX) defaults detached; must override */
7191 pthread_attr_t attr;
7193 status = pthread_attr_init(&attr);
7194 if( status ) exit( status );
7196 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7197 if( status ) exit( status );
7201 #if HAVE_PTHREADS_D4
7202 #define ATTR pthread_attr_default
7207 /* make sure pthread_create() isn't just a stub */
7208 status = pthread_create(&t, ATTR, task, NULL);
7209 if( status ) exit( status );
7211 /* make sure pthread_detach() isn't just a stub */
7212 #if HAVE_PTHREADS_D4
7213 status = pthread_detach( &t );
7215 status = pthread_detach( t );
7218 #ifdef HAVE_LINUX_THREADS
7219 pthread_kill_other_threads_np();
7226 if { (eval echo configure:7227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7228 ol_cv_pthread_create=yes
7230 echo "configure: failed program was:" >&5
7231 cat conftest.$ac_ext >&5
7233 ol_cv_pthread_create=no
7237 cat > conftest.$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 /* pthread test headers */
7241 #include <pthread.h>
7243 #define NULL (void*)0
7246 static void *task(p)
7249 return (void *) (p == NULL);
7253 int main(argc, argv)
7258 /* pthread test function */
7261 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7262 /* This system (e.g. AIX) defaults detached; must override */
7263 pthread_attr_t attr;
7265 status = pthread_attr_init(&attr);
7266 if( status ) exit( status );
7268 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7269 if( status ) exit( status );
7273 #if HAVE_PTHREADS_D4
7274 #define ATTR pthread_attr_default
7279 /* make sure pthread_create() isn't just a stub */
7280 status = pthread_create(&t, ATTR, task, NULL);
7281 if( status ) exit( status );
7283 /* make sure pthread_detach() isn't just a stub */
7284 #if HAVE_PTHREADS_D4
7285 status = pthread_detach( &t );
7287 status = pthread_detach( t );
7290 #ifdef HAVE_LINUX_THREADS
7291 pthread_kill_other_threads_np();
7299 if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7301 ol_cv_pthread_create=yes
7303 echo "configure: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7306 ol_cv_pthread_create=no
7313 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7315 if test $ol_cv_pthread_create != no ; then
7316 ol_link_threads=posix
7320 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7321 if test "$ol_link_threads" = no ; then
7323 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7324 echo "configure:7325: checking for pthread link with -kthread" >&5
7325 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7326 echo $ac_n "(cached) $ac_c" 1>&6
7331 LIBS="-kthread $LIBS"
7333 if test "$cross_compiling" = yes; then
7334 cat > conftest.$ac_ext <<EOF
7335 #line 7336 "configure"
7336 #include "confdefs.h"
7337 /* pthread test headers */
7338 #include <pthread.h>
7340 #define NULL (void*)0
7343 static void *task(p)
7346 return (void *) (p == NULL);
7351 /* pthread test function */
7354 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7355 /* This system (e.g. AIX) defaults detached; must override */
7356 pthread_attr_t attr;
7358 status = pthread_attr_init(&attr);
7359 if( status ) exit( status );
7361 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7362 if( status ) exit( status );
7366 #if HAVE_PTHREADS_D4
7367 #define ATTR pthread_attr_default
7372 /* make sure pthread_create() isn't just a stub */
7373 status = pthread_create(&t, ATTR, task, NULL);
7374 if( status ) exit( status );
7376 /* make sure pthread_detach() isn't just a stub */
7377 #if HAVE_PTHREADS_D4
7378 status = pthread_detach( &t );
7380 status = pthread_detach( t );
7383 #ifdef HAVE_LINUX_THREADS
7384 pthread_kill_other_threads_np();
7391 if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7393 ol_cv_pthread_kthread=yes
7395 echo "configure: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7398 ol_cv_pthread_kthread=no
7402 cat > conftest.$ac_ext <<EOF
7403 #line 7404 "configure"
7404 #include "confdefs.h"
7405 /* pthread test headers */
7406 #include <pthread.h>
7408 #define NULL (void*)0
7411 static void *task(p)
7414 return (void *) (p == NULL);
7418 int main(argc, argv)
7423 /* pthread test function */
7426 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7427 /* This system (e.g. AIX) defaults detached; must override */
7428 pthread_attr_t attr;
7430 status = pthread_attr_init(&attr);
7431 if( status ) exit( status );
7433 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7434 if( status ) exit( status );
7438 #if HAVE_PTHREADS_D4
7439 #define ATTR pthread_attr_default
7444 /* make sure pthread_create() isn't just a stub */
7445 status = pthread_create(&t, ATTR, task, NULL);
7446 if( status ) exit( status );
7448 /* make sure pthread_detach() isn't just a stub */
7449 #if HAVE_PTHREADS_D4
7450 status = pthread_detach( &t );
7452 status = pthread_detach( t );
7455 #ifdef HAVE_LINUX_THREADS
7456 pthread_kill_other_threads_np();
7464 if { (eval echo configure:7465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7466 ol_cv_pthread_kthread=yes
7468 echo "configure: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7471 ol_cv_pthread_kthread=no
7482 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7484 if test $ol_cv_pthread_kthread = yes ; then
7485 ol_link_pthreads="-kthread"
7486 ol_link_threads=posix
7490 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7491 if test "$ol_link_threads" = no ; then
7493 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7494 echo "configure:7495: checking for pthread link with -pthread" >&5
7495 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
7501 LIBS="-pthread $LIBS"
7503 if test "$cross_compiling" = yes; then
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7507 /* pthread test headers */
7508 #include <pthread.h>
7510 #define NULL (void*)0
7513 static void *task(p)
7516 return (void *) (p == NULL);
7521 /* pthread test function */
7524 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7525 /* This system (e.g. AIX) defaults detached; must override */
7526 pthread_attr_t attr;
7528 status = pthread_attr_init(&attr);
7529 if( status ) exit( status );
7531 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7532 if( status ) exit( status );
7536 #if HAVE_PTHREADS_D4
7537 #define ATTR pthread_attr_default
7542 /* make sure pthread_create() isn't just a stub */
7543 status = pthread_create(&t, ATTR, task, NULL);
7544 if( status ) exit( status );
7546 /* make sure pthread_detach() isn't just a stub */
7547 #if HAVE_PTHREADS_D4
7548 status = pthread_detach( &t );
7550 status = pthread_detach( t );
7553 #ifdef HAVE_LINUX_THREADS
7554 pthread_kill_other_threads_np();
7561 if { (eval echo configure:7562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7563 ol_cv_pthread_pthread=yes
7565 echo "configure: failed program was:" >&5
7566 cat conftest.$ac_ext >&5
7568 ol_cv_pthread_pthread=no
7572 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7575 /* pthread test headers */
7576 #include <pthread.h>
7578 #define NULL (void*)0
7581 static void *task(p)
7584 return (void *) (p == NULL);
7588 int main(argc, argv)
7593 /* pthread test function */
7596 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7597 /* This system (e.g. AIX) defaults detached; must override */
7598 pthread_attr_t attr;
7600 status = pthread_attr_init(&attr);
7601 if( status ) exit( status );
7603 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7604 if( status ) exit( status );
7608 #if HAVE_PTHREADS_D4
7609 #define ATTR pthread_attr_default
7614 /* make sure pthread_create() isn't just a stub */
7615 status = pthread_create(&t, ATTR, task, NULL);
7616 if( status ) exit( status );
7618 /* make sure pthread_detach() isn't just a stub */
7619 #if HAVE_PTHREADS_D4
7620 status = pthread_detach( &t );
7622 status = pthread_detach( t );
7625 #ifdef HAVE_LINUX_THREADS
7626 pthread_kill_other_threads_np();
7634 if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7636 ol_cv_pthread_pthread=yes
7638 echo "configure: failed program was:" >&5
7639 cat conftest.$ac_ext >&5
7641 ol_cv_pthread_pthread=no
7652 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7654 if test $ol_cv_pthread_pthread = yes ; then
7655 ol_link_pthreads="-pthread"
7656 ol_link_threads=posix
7660 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7661 if test "$ol_link_threads" = no ; then
7663 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7664 echo "configure:7665: checking for pthread link with -pthreads" >&5
7665 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7666 echo $ac_n "(cached) $ac_c" 1>&6
7671 LIBS="-pthreads $LIBS"
7673 if test "$cross_compiling" = yes; then
7674 cat > conftest.$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7677 /* pthread test headers */
7678 #include <pthread.h>
7680 #define NULL (void*)0
7683 static void *task(p)
7686 return (void *) (p == NULL);
7691 /* pthread test function */
7694 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7695 /* This system (e.g. AIX) defaults detached; must override */
7696 pthread_attr_t attr;
7698 status = pthread_attr_init(&attr);
7699 if( status ) exit( status );
7701 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7702 if( status ) exit( status );
7706 #if HAVE_PTHREADS_D4
7707 #define ATTR pthread_attr_default
7712 /* make sure pthread_create() isn't just a stub */
7713 status = pthread_create(&t, ATTR, task, NULL);
7714 if( status ) exit( status );
7716 /* make sure pthread_detach() isn't just a stub */
7717 #if HAVE_PTHREADS_D4
7718 status = pthread_detach( &t );
7720 status = pthread_detach( t );
7723 #ifdef HAVE_LINUX_THREADS
7724 pthread_kill_other_threads_np();
7731 if { (eval echo configure:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7733 ol_cv_pthread_pthreads=yes
7735 echo "configure: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7738 ol_cv_pthread_pthreads=no
7742 cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7745 /* pthread test headers */
7746 #include <pthread.h>
7748 #define NULL (void*)0
7751 static void *task(p)
7754 return (void *) (p == NULL);
7758 int main(argc, argv)
7763 /* pthread test function */
7766 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7767 /* This system (e.g. AIX) defaults detached; must override */
7768 pthread_attr_t attr;
7770 status = pthread_attr_init(&attr);
7771 if( status ) exit( status );
7773 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7774 if( status ) exit( status );
7778 #if HAVE_PTHREADS_D4
7779 #define ATTR pthread_attr_default
7784 /* make sure pthread_create() isn't just a stub */
7785 status = pthread_create(&t, ATTR, task, NULL);
7786 if( status ) exit( status );
7788 /* make sure pthread_detach() isn't just a stub */
7789 #if HAVE_PTHREADS_D4
7790 status = pthread_detach( &t );
7792 status = pthread_detach( t );
7795 #ifdef HAVE_LINUX_THREADS
7796 pthread_kill_other_threads_np();
7804 if { (eval echo configure:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7806 ol_cv_pthread_pthreads=yes
7808 echo "configure: failed program was:" >&5
7809 cat conftest.$ac_ext >&5
7811 ol_cv_pthread_pthreads=no
7822 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7824 if test $ol_cv_pthread_pthreads = yes ; then
7825 ol_link_pthreads="-pthreads"
7826 ol_link_threads=posix
7830 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7831 if test "$ol_link_threads" = no ; then
7833 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7834 echo "configure:7835: checking for pthread link with -mthreads" >&5
7835 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7841 LIBS="-mthreads $LIBS"
7843 if test "$cross_compiling" = yes; then
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure"
7846 #include "confdefs.h"
7847 /* pthread test headers */
7848 #include <pthread.h>
7850 #define NULL (void*)0
7853 static void *task(p)
7856 return (void *) (p == NULL);
7861 /* pthread test function */
7864 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7865 /* This system (e.g. AIX) defaults detached; must override */
7866 pthread_attr_t attr;
7868 status = pthread_attr_init(&attr);
7869 if( status ) exit( status );
7871 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7872 if( status ) exit( status );
7876 #if HAVE_PTHREADS_D4
7877 #define ATTR pthread_attr_default
7882 /* make sure pthread_create() isn't just a stub */
7883 status = pthread_create(&t, ATTR, task, NULL);
7884 if( status ) exit( status );
7886 /* make sure pthread_detach() isn't just a stub */
7887 #if HAVE_PTHREADS_D4
7888 status = pthread_detach( &t );
7890 status = pthread_detach( t );
7893 #ifdef HAVE_LINUX_THREADS
7894 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}; then
7903 ol_cv_pthread_mthreads=yes
7905 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7908 ol_cv_pthread_mthreads=no
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 /* pthread test headers */
7916 #include <pthread.h>
7918 #define NULL (void*)0
7921 static void *task(p)
7924 return (void *) (p == NULL);
7928 int main(argc, argv)
7933 /* pthread test function */
7936 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7937 /* This system (e.g. AIX) defaults detached; must override */
7938 pthread_attr_t attr;
7940 status = pthread_attr_init(&attr);
7941 if( status ) exit( status );
7943 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7944 if( status ) exit( status );
7948 #if HAVE_PTHREADS_D4
7949 #define ATTR pthread_attr_default
7954 /* make sure pthread_create() isn't just a stub */
7955 status = pthread_create(&t, ATTR, task, NULL);
7956 if( status ) exit( status );
7958 /* make sure pthread_detach() isn't just a stub */
7959 #if HAVE_PTHREADS_D4
7960 status = pthread_detach( &t );
7962 status = pthread_detach( t );
7965 #ifdef HAVE_LINUX_THREADS
7966 pthread_kill_other_threads_np();
7974 if { (eval echo configure:7975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7976 ol_cv_pthread_mthreads=yes
7978 echo "configure: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7981 ol_cv_pthread_mthreads=no
7992 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7994 if test $ol_cv_pthread_mthreads = yes ; then
7995 ol_link_pthreads="-mthreads"
7996 ol_link_threads=posix
8000 # Pthread try link: -thread (ol_cv_pthread_thread)
8001 if test "$ol_link_threads" = no ; then
8003 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8004 echo "configure:8005: checking for pthread link with -thread" >&5
8005 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8011 LIBS="-thread $LIBS"
8013 if test "$cross_compiling" = yes; then
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8017 /* pthread test headers */
8018 #include <pthread.h>
8020 #define NULL (void*)0
8023 static void *task(p)
8026 return (void *) (p == NULL);
8031 /* pthread test function */
8034 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8035 /* This system (e.g. AIX) defaults detached; must override */
8036 pthread_attr_t attr;
8038 status = pthread_attr_init(&attr);
8039 if( status ) exit( status );
8041 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8042 if( status ) exit( status );
8046 #if HAVE_PTHREADS_D4
8047 #define ATTR pthread_attr_default
8052 /* make sure pthread_create() isn't just a stub */
8053 status = pthread_create(&t, ATTR, task, NULL);
8054 if( status ) exit( status );
8056 /* make sure pthread_detach() isn't just a stub */
8057 #if HAVE_PTHREADS_D4
8058 status = pthread_detach( &t );
8060 status = pthread_detach( t );
8063 #ifdef HAVE_LINUX_THREADS
8064 pthread_kill_other_threads_np();
8071 if { (eval echo configure:8072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8073 ol_cv_pthread_thread=yes
8075 echo "configure: failed program was:" >&5
8076 cat conftest.$ac_ext >&5
8078 ol_cv_pthread_thread=no
8082 cat > conftest.$ac_ext <<EOF
8083 #line 8084 "configure"
8084 #include "confdefs.h"
8085 /* pthread test headers */
8086 #include <pthread.h>
8088 #define NULL (void*)0
8091 static void *task(p)
8094 return (void *) (p == NULL);
8098 int main(argc, argv)
8103 /* pthread test function */
8106 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8107 /* This system (e.g. AIX) defaults detached; must override */
8108 pthread_attr_t attr;
8110 status = pthread_attr_init(&attr);
8111 if( status ) exit( status );
8113 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8114 if( status ) exit( status );
8118 #if HAVE_PTHREADS_D4
8119 #define ATTR pthread_attr_default
8124 /* make sure pthread_create() isn't just a stub */
8125 status = pthread_create(&t, ATTR, task, NULL);
8126 if( status ) exit( status );
8128 /* make sure pthread_detach() isn't just a stub */
8129 #if HAVE_PTHREADS_D4
8130 status = pthread_detach( &t );
8132 status = pthread_detach( t );
8135 #ifdef HAVE_LINUX_THREADS
8136 pthread_kill_other_threads_np();
8144 if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8146 ol_cv_pthread_thread=yes
8148 echo "configure: failed program was:" >&5
8149 cat conftest.$ac_ext >&5
8151 ol_cv_pthread_thread=no
8162 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8164 if test $ol_cv_pthread_thread = yes ; then
8165 ol_link_pthreads="-thread"
8166 ol_link_threads=posix
8171 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8172 if test "$ol_link_threads" = no ; then
8173 # try -lpthread -lmach -lexc -lc_r
8174 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8175 echo "configure:8176: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8176 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8177 echo $ac_n "(cached) $ac_c" 1>&6
8182 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8184 if test "$cross_compiling" = yes; then
8185 cat > conftest.$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8188 /* pthread test headers */
8189 #include <pthread.h>
8191 #define NULL (void*)0
8194 static void *task(p)
8197 return (void *) (p == NULL);
8202 /* pthread test function */
8205 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8206 /* This system (e.g. AIX) defaults detached; must override */
8207 pthread_attr_t attr;
8209 status = pthread_attr_init(&attr);
8210 if( status ) exit( status );
8212 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8213 if( status ) exit( status );
8217 #if HAVE_PTHREADS_D4
8218 #define ATTR pthread_attr_default
8223 /* make sure pthread_create() isn't just a stub */
8224 status = pthread_create(&t, ATTR, task, NULL);
8225 if( status ) exit( status );
8227 /* make sure pthread_detach() isn't just a stub */
8228 #if HAVE_PTHREADS_D4
8229 status = pthread_detach( &t );
8231 status = pthread_detach( t );
8234 #ifdef HAVE_LINUX_THREADS
8235 pthread_kill_other_threads_np();
8242 if { (eval echo configure:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8244 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8246 echo "configure: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8249 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8253 cat > conftest.$ac_ext <<EOF
8254 #line 8255 "configure"
8255 #include "confdefs.h"
8256 /* pthread test headers */
8257 #include <pthread.h>
8259 #define NULL (void*)0
8262 static void *task(p)
8265 return (void *) (p == NULL);
8269 int main(argc, argv)
8274 /* pthread test function */
8277 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8278 /* This system (e.g. AIX) defaults detached; must override */
8279 pthread_attr_t attr;
8281 status = pthread_attr_init(&attr);
8282 if( status ) exit( status );
8284 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8285 if( status ) exit( status );
8289 #if HAVE_PTHREADS_D4
8290 #define ATTR pthread_attr_default
8295 /* make sure pthread_create() isn't just a stub */
8296 status = pthread_create(&t, ATTR, task, NULL);
8297 if( status ) exit( status );
8299 /* make sure pthread_detach() isn't just a stub */
8300 #if HAVE_PTHREADS_D4
8301 status = pthread_detach( &t );
8303 status = pthread_detach( t );
8306 #ifdef HAVE_LINUX_THREADS
8307 pthread_kill_other_threads_np();
8315 if { (eval echo configure:8316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8317 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8319 echo "configure: failed program was:" >&5
8320 cat conftest.$ac_ext >&5
8322 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8333 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8335 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8336 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8337 ol_link_threads=posix
8341 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8342 if test "$ol_link_threads" = no ; then
8343 # try -lpthread -lmach -lexc
8344 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8345 echo "configure:8346: checking for pthread link with -lpthread -lmach -lexc" >&5
8346 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8347 echo $ac_n "(cached) $ac_c" 1>&6
8352 LIBS="-lpthread -lmach -lexc $LIBS"
8354 if test "$cross_compiling" = yes; then
8355 cat > conftest.$ac_ext <<EOF
8356 #line 8357 "configure"
8357 #include "confdefs.h"
8358 /* pthread test headers */
8359 #include <pthread.h>
8361 #define NULL (void*)0
8364 static void *task(p)
8367 return (void *) (p == NULL);
8372 /* pthread test function */
8375 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8376 /* This system (e.g. AIX) defaults detached; must override */
8377 pthread_attr_t attr;
8379 status = pthread_attr_init(&attr);
8380 if( status ) exit( status );
8382 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8383 if( status ) exit( status );
8387 #if HAVE_PTHREADS_D4
8388 #define ATTR pthread_attr_default
8393 /* make sure pthread_create() isn't just a stub */
8394 status = pthread_create(&t, ATTR, task, NULL);
8395 if( status ) exit( status );
8397 /* make sure pthread_detach() isn't just a stub */
8398 #if HAVE_PTHREADS_D4
8399 status = pthread_detach( &t );
8401 status = pthread_detach( t );
8404 #ifdef HAVE_LINUX_THREADS
8405 pthread_kill_other_threads_np();
8412 if { (eval echo configure:8413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8414 ol_cv_pthread_lpthread_lmach_lexc=yes
8416 echo "configure: failed program was:" >&5
8417 cat conftest.$ac_ext >&5
8419 ol_cv_pthread_lpthread_lmach_lexc=no
8423 cat > conftest.$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8426 /* pthread test headers */
8427 #include <pthread.h>
8429 #define NULL (void*)0
8432 static void *task(p)
8435 return (void *) (p == NULL);
8439 int main(argc, argv)
8444 /* pthread test function */
8447 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8448 /* This system (e.g. AIX) defaults detached; must override */
8449 pthread_attr_t attr;
8451 status = pthread_attr_init(&attr);
8452 if( status ) exit( status );
8454 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8455 if( status ) exit( status );
8459 #if HAVE_PTHREADS_D4
8460 #define ATTR pthread_attr_default
8465 /* make sure pthread_create() isn't just a stub */
8466 status = pthread_create(&t, ATTR, task, NULL);
8467 if( status ) exit( status );
8469 /* make sure pthread_detach() isn't just a stub */
8470 #if HAVE_PTHREADS_D4
8471 status = pthread_detach( &t );
8473 status = pthread_detach( t );
8476 #ifdef HAVE_LINUX_THREADS
8477 pthread_kill_other_threads_np();
8485 if { (eval echo configure:8486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8487 ol_cv_pthread_lpthread_lmach_lexc=yes
8489 echo "configure: failed program was:" >&5
8490 cat conftest.$ac_ext >&5
8492 ol_cv_pthread_lpthread_lmach_lexc=no
8503 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8505 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8506 ol_link_pthreads="-lpthread -lmach -lexc"
8507 ol_link_threads=posix
8512 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8513 if test "$ol_link_threads" = no ; then
8514 # try -lpthread -Wl,-woff,85
8515 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8516 echo "configure:8517: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8517 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8518 echo $ac_n "(cached) $ac_c" 1>&6
8523 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8525 if test "$cross_compiling" = yes; then
8526 cat > conftest.$ac_ext <<EOF
8527 #line 8528 "configure"
8528 #include "confdefs.h"
8529 /* pthread test headers */
8530 #include <pthread.h>
8532 #define NULL (void*)0
8535 static void *task(p)
8538 return (void *) (p == NULL);
8543 /* pthread test function */
8546 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8547 /* This system (e.g. AIX) defaults detached; must override */
8548 pthread_attr_t attr;
8550 status = pthread_attr_init(&attr);
8551 if( status ) exit( status );
8553 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8554 if( status ) exit( status );
8558 #if HAVE_PTHREADS_D4
8559 #define ATTR pthread_attr_default
8564 /* make sure pthread_create() isn't just a stub */
8565 status = pthread_create(&t, ATTR, task, NULL);
8566 if( status ) exit( status );
8568 /* make sure pthread_detach() isn't just a stub */
8569 #if HAVE_PTHREADS_D4
8570 status = pthread_detach( &t );
8572 status = pthread_detach( t );
8575 #ifdef HAVE_LINUX_THREADS
8576 pthread_kill_other_threads_np();
8583 if { (eval echo configure:8584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8585 ol_cv_pthread_lib_lpthread_woff=yes
8587 echo "configure: failed program was:" >&5
8588 cat conftest.$ac_ext >&5
8590 ol_cv_pthread_lib_lpthread_woff=no
8594 cat > conftest.$ac_ext <<EOF
8595 #line 8596 "configure"
8596 #include "confdefs.h"
8597 /* pthread test headers */
8598 #include <pthread.h>
8600 #define NULL (void*)0
8603 static void *task(p)
8606 return (void *) (p == NULL);
8610 int main(argc, argv)
8615 /* pthread test function */
8618 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8619 /* This system (e.g. AIX) defaults detached; must override */
8620 pthread_attr_t attr;
8622 status = pthread_attr_init(&attr);
8623 if( status ) exit( status );
8625 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8626 if( status ) exit( status );
8630 #if HAVE_PTHREADS_D4
8631 #define ATTR pthread_attr_default
8636 /* make sure pthread_create() isn't just a stub */
8637 status = pthread_create(&t, ATTR, task, NULL);
8638 if( status ) exit( status );
8640 /* make sure pthread_detach() isn't just a stub */
8641 #if HAVE_PTHREADS_D4
8642 status = pthread_detach( &t );
8644 status = pthread_detach( t );
8647 #ifdef HAVE_LINUX_THREADS
8648 pthread_kill_other_threads_np();
8656 if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8658 ol_cv_pthread_lib_lpthread_woff=yes
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8663 ol_cv_pthread_lib_lpthread_woff=no
8674 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8676 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8677 ol_link_pthreads="-lpthread -Wl,-woff,85"
8678 ol_link_threads=posix
8683 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8684 if test "$ol_link_threads" = no ; then
8686 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8687 echo "configure:8688: checking for pthread link with -lpthread" >&5
8688 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8689 echo $ac_n "(cached) $ac_c" 1>&6
8694 LIBS="-lpthread $LIBS"
8696 if test "$cross_compiling" = yes; then
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 /* pthread test headers */
8701 #include <pthread.h>
8703 #define NULL (void*)0
8706 static void *task(p)
8709 return (void *) (p == NULL);
8714 /* pthread test function */
8717 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8718 /* This system (e.g. AIX) defaults detached; must override */
8719 pthread_attr_t attr;
8721 status = pthread_attr_init(&attr);
8722 if( status ) exit( status );
8724 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8725 if( status ) exit( status );
8729 #if HAVE_PTHREADS_D4
8730 #define ATTR pthread_attr_default
8735 /* make sure pthread_create() isn't just a stub */
8736 status = pthread_create(&t, ATTR, task, NULL);
8737 if( status ) exit( status );
8739 /* make sure pthread_detach() isn't just a stub */
8740 #if HAVE_PTHREADS_D4
8741 status = pthread_detach( &t );
8743 status = pthread_detach( t );
8746 #ifdef HAVE_LINUX_THREADS
8747 pthread_kill_other_threads_np();
8754 if { (eval echo configure:8755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8756 ol_cv_pthread_lpthread=yes
8758 echo "configure: failed program was:" >&5
8759 cat conftest.$ac_ext >&5
8761 ol_cv_pthread_lpthread=no
8765 cat > conftest.$ac_ext <<EOF
8766 #line 8767 "configure"
8767 #include "confdefs.h"
8768 /* pthread test headers */
8769 #include <pthread.h>
8771 #define NULL (void*)0
8774 static void *task(p)
8777 return (void *) (p == NULL);
8781 int main(argc, argv)
8786 /* pthread test function */
8789 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8790 /* This system (e.g. AIX) defaults detached; must override */
8791 pthread_attr_t attr;
8793 status = pthread_attr_init(&attr);
8794 if( status ) exit( status );
8796 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8797 if( status ) exit( status );
8801 #if HAVE_PTHREADS_D4
8802 #define ATTR pthread_attr_default
8807 /* make sure pthread_create() isn't just a stub */
8808 status = pthread_create(&t, ATTR, task, NULL);
8809 if( status ) exit( status );
8811 /* make sure pthread_detach() isn't just a stub */
8812 #if HAVE_PTHREADS_D4
8813 status = pthread_detach( &t );
8815 status = pthread_detach( t );
8818 #ifdef HAVE_LINUX_THREADS
8819 pthread_kill_other_threads_np();
8827 if { (eval echo configure:8828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8829 ol_cv_pthread_lpthread=yes
8831 echo "configure: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8834 ol_cv_pthread_lpthread=no
8845 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8847 if test $ol_cv_pthread_lpthread = yes ; then
8848 ol_link_pthreads="-lpthread"
8849 ol_link_threads=posix
8853 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8854 if test "$ol_link_threads" = no ; then
8856 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8857 echo "configure:8858: checking for pthread link with -lc_r" >&5
8858 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8859 echo $ac_n "(cached) $ac_c" 1>&6
8866 if test "$cross_compiling" = yes; then
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8870 /* pthread test headers */
8871 #include <pthread.h>
8873 #define NULL (void*)0
8876 static void *task(p)
8879 return (void *) (p == NULL);
8884 /* pthread test function */
8887 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8888 /* This system (e.g. AIX) defaults detached; must override */
8889 pthread_attr_t attr;
8891 status = pthread_attr_init(&attr);
8892 if( status ) exit( status );
8894 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8895 if( status ) exit( status );
8899 #if HAVE_PTHREADS_D4
8900 #define ATTR pthread_attr_default
8905 /* make sure pthread_create() isn't just a stub */
8906 status = pthread_create(&t, ATTR, task, NULL);
8907 if( status ) exit( status );
8909 /* make sure pthread_detach() isn't just a stub */
8910 #if HAVE_PTHREADS_D4
8911 status = pthread_detach( &t );
8913 status = pthread_detach( t );
8916 #ifdef HAVE_LINUX_THREADS
8917 pthread_kill_other_threads_np();
8924 if { (eval echo configure:8925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8926 ol_cv_pthread_lc_r=yes
8928 echo "configure: failed program was:" >&5
8929 cat conftest.$ac_ext >&5
8931 ol_cv_pthread_lc_r=no
8935 cat > conftest.$ac_ext <<EOF
8936 #line 8937 "configure"
8937 #include "confdefs.h"
8938 /* pthread test headers */
8939 #include <pthread.h>
8941 #define NULL (void*)0
8944 static void *task(p)
8947 return (void *) (p == NULL);
8951 int main(argc, argv)
8956 /* pthread test function */
8959 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8960 /* This system (e.g. AIX) defaults detached; must override */
8961 pthread_attr_t attr;
8963 status = pthread_attr_init(&attr);
8964 if( status ) exit( status );
8966 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8967 if( status ) exit( status );
8971 #if HAVE_PTHREADS_D4
8972 #define ATTR pthread_attr_default
8977 /* make sure pthread_create() isn't just a stub */
8978 status = pthread_create(&t, ATTR, task, NULL);
8979 if( status ) exit( status );
8981 /* make sure pthread_detach() isn't just a stub */
8982 #if HAVE_PTHREADS_D4
8983 status = pthread_detach( &t );
8985 status = pthread_detach( t );
8988 #ifdef HAVE_LINUX_THREADS
8989 pthread_kill_other_threads_np();
8997 if { (eval echo configure:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8999 ol_cv_pthread_lc_r=yes
9001 echo "configure: failed program was:" >&5
9002 cat conftest.$ac_ext >&5
9004 ol_cv_pthread_lc_r=no
9015 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9017 if test $ol_cv_pthread_lc_r = yes ; then
9018 ol_link_pthreads="-lc_r"
9019 ol_link_threads=posix
9024 # Pthread try link: -threads (ol_cv_pthread_threads)
9025 if test "$ol_link_threads" = no ; then
9027 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9028 echo "configure:9029: checking for pthread link with -threads" >&5
9029 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9030 echo $ac_n "(cached) $ac_c" 1>&6
9035 LIBS="-threads $LIBS"
9037 if test "$cross_compiling" = yes; then
9038 cat > conftest.$ac_ext <<EOF
9039 #line 9040 "configure"
9040 #include "confdefs.h"
9041 /* pthread test headers */
9042 #include <pthread.h>
9044 #define NULL (void*)0
9047 static void *task(p)
9050 return (void *) (p == NULL);
9055 /* pthread test function */
9058 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9059 /* This system (e.g. AIX) defaults detached; must override */
9060 pthread_attr_t attr;
9062 status = pthread_attr_init(&attr);
9063 if( status ) exit( status );
9065 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9066 if( status ) exit( status );
9070 #if HAVE_PTHREADS_D4
9071 #define ATTR pthread_attr_default
9076 /* make sure pthread_create() isn't just a stub */
9077 status = pthread_create(&t, ATTR, task, NULL);
9078 if( status ) exit( status );
9080 /* make sure pthread_detach() isn't just a stub */
9081 #if HAVE_PTHREADS_D4
9082 status = pthread_detach( &t );
9084 status = pthread_detach( t );
9087 #ifdef HAVE_LINUX_THREADS
9088 pthread_kill_other_threads_np();
9095 if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9097 ol_cv_pthread_threads=yes
9099 echo "configure: failed program was:" >&5
9100 cat conftest.$ac_ext >&5
9102 ol_cv_pthread_threads=no
9106 cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure"
9108 #include "confdefs.h"
9109 /* pthread test headers */
9110 #include <pthread.h>
9112 #define NULL (void*)0
9115 static void *task(p)
9118 return (void *) (p == NULL);
9122 int main(argc, argv)
9127 /* pthread test function */
9130 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9131 /* This system (e.g. AIX) defaults detached; must override */
9132 pthread_attr_t attr;
9134 status = pthread_attr_init(&attr);
9135 if( status ) exit( status );
9137 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9138 if( status ) exit( status );
9142 #if HAVE_PTHREADS_D4
9143 #define ATTR pthread_attr_default
9148 /* make sure pthread_create() isn't just a stub */
9149 status = pthread_create(&t, ATTR, task, NULL);
9150 if( status ) exit( status );
9152 /* make sure pthread_detach() isn't just a stub */
9153 #if HAVE_PTHREADS_D4
9154 status = pthread_detach( &t );
9156 status = pthread_detach( t );
9159 #ifdef HAVE_LINUX_THREADS
9160 pthread_kill_other_threads_np();
9168 if { (eval echo configure:9169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9170 ol_cv_pthread_threads=yes
9172 echo "configure: failed program was:" >&5
9173 cat conftest.$ac_ext >&5
9175 ol_cv_pthread_threads=no
9186 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9188 if test $ol_cv_pthread_threads = yes ; then
9189 ol_link_pthreads="-threads"
9190 ol_link_threads=posix
9195 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9196 if test "$ol_link_threads" = no ; then
9197 # try -lpthreads -lmach -lexc -lc_r
9198 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9199 echo "configure:9200: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9200 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9201 echo $ac_n "(cached) $ac_c" 1>&6
9206 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9208 if test "$cross_compiling" = yes; then
9209 cat > conftest.$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9212 /* pthread test headers */
9213 #include <pthread.h>
9215 #define NULL (void*)0
9218 static void *task(p)
9221 return (void *) (p == NULL);
9226 /* pthread test function */
9229 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9230 /* This system (e.g. AIX) defaults detached; must override */
9231 pthread_attr_t attr;
9233 status = pthread_attr_init(&attr);
9234 if( status ) exit( status );
9236 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9237 if( status ) exit( status );
9241 #if HAVE_PTHREADS_D4
9242 #define ATTR pthread_attr_default
9247 /* make sure pthread_create() isn't just a stub */
9248 status = pthread_create(&t, ATTR, task, NULL);
9249 if( status ) exit( status );
9251 /* make sure pthread_detach() isn't just a stub */
9252 #if HAVE_PTHREADS_D4
9253 status = pthread_detach( &t );
9255 status = pthread_detach( t );
9258 #ifdef HAVE_LINUX_THREADS
9259 pthread_kill_other_threads_np();
9266 if { (eval echo configure:9267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9268 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9270 echo "configure: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9273 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9277 cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9280 /* pthread test headers */
9281 #include <pthread.h>
9283 #define NULL (void*)0
9286 static void *task(p)
9289 return (void *) (p == NULL);
9293 int main(argc, argv)
9298 /* pthread test function */
9301 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9302 /* This system (e.g. AIX) defaults detached; must override */
9303 pthread_attr_t attr;
9305 status = pthread_attr_init(&attr);
9306 if( status ) exit( status );
9308 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9309 if( status ) exit( status );
9313 #if HAVE_PTHREADS_D4
9314 #define ATTR pthread_attr_default
9319 /* make sure pthread_create() isn't just a stub */
9320 status = pthread_create(&t, ATTR, task, NULL);
9321 if( status ) exit( status );
9323 /* make sure pthread_detach() isn't just a stub */
9324 #if HAVE_PTHREADS_D4
9325 status = pthread_detach( &t );
9327 status = pthread_detach( t );
9330 #ifdef HAVE_LINUX_THREADS
9331 pthread_kill_other_threads_np();
9339 if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9341 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9346 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9357 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9359 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9360 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9361 ol_link_threads=posix
9365 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9366 if test "$ol_link_threads" = no ; then
9367 # try -lpthreads -lmach -lexc
9368 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9369 echo "configure:9370: checking for pthread link with -lpthreads -lmach -lexc" >&5
9370 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9371 echo $ac_n "(cached) $ac_c" 1>&6
9376 LIBS="-lpthreads -lmach -lexc $LIBS"
9378 if test "$cross_compiling" = yes; then
9379 cat > conftest.$ac_ext <<EOF
9380 #line 9381 "configure"
9381 #include "confdefs.h"
9382 /* pthread test headers */
9383 #include <pthread.h>
9385 #define NULL (void*)0
9388 static void *task(p)
9391 return (void *) (p == NULL);
9396 /* pthread test function */
9399 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9400 /* This system (e.g. AIX) defaults detached; must override */
9401 pthread_attr_t attr;
9403 status = pthread_attr_init(&attr);
9404 if( status ) exit( status );
9406 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9407 if( status ) exit( status );
9411 #if HAVE_PTHREADS_D4
9412 #define ATTR pthread_attr_default
9417 /* make sure pthread_create() isn't just a stub */
9418 status = pthread_create(&t, ATTR, task, NULL);
9419 if( status ) exit( status );
9421 /* make sure pthread_detach() isn't just a stub */
9422 #if HAVE_PTHREADS_D4
9423 status = pthread_detach( &t );
9425 status = pthread_detach( t );
9428 #ifdef HAVE_LINUX_THREADS
9429 pthread_kill_other_threads_np();
9436 if { (eval echo configure:9437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9438 ol_cv_pthread_lpthreads_lmach_lexc=yes
9440 echo "configure: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9443 ol_cv_pthread_lpthreads_lmach_lexc=no
9447 cat > conftest.$ac_ext <<EOF
9448 #line 9449 "configure"
9449 #include "confdefs.h"
9450 /* pthread test headers */
9451 #include <pthread.h>
9453 #define NULL (void*)0
9456 static void *task(p)
9459 return (void *) (p == NULL);
9463 int main(argc, argv)
9468 /* pthread test function */
9471 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9472 /* This system (e.g. AIX) defaults detached; must override */
9473 pthread_attr_t attr;
9475 status = pthread_attr_init(&attr);
9476 if( status ) exit( status );
9478 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9479 if( status ) exit( status );
9483 #if HAVE_PTHREADS_D4
9484 #define ATTR pthread_attr_default
9489 /* make sure pthread_create() isn't just a stub */
9490 status = pthread_create(&t, ATTR, task, NULL);
9491 if( status ) exit( status );
9493 /* make sure pthread_detach() isn't just a stub */
9494 #if HAVE_PTHREADS_D4
9495 status = pthread_detach( &t );
9497 status = pthread_detach( t );
9500 #ifdef HAVE_LINUX_THREADS
9501 pthread_kill_other_threads_np();
9509 if { (eval echo configure:9510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9511 ol_cv_pthread_lpthreads_lmach_lexc=yes
9513 echo "configure: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9516 ol_cv_pthread_lpthreads_lmach_lexc=no
9527 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9529 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9530 ol_link_pthreads="-lpthreads -lmach -lexc"
9531 ol_link_threads=posix
9535 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9536 if test "$ol_link_threads" = no ; then
9537 # try -lpthreads -lexc
9538 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9539 echo "configure:9540: checking for pthread link with -lpthreads -lexc" >&5
9540 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9546 LIBS="-lpthreads -lexc $LIBS"
9548 if test "$cross_compiling" = yes; then
9549 cat > conftest.$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 /* pthread test headers */
9553 #include <pthread.h>
9555 #define NULL (void*)0
9558 static void *task(p)
9561 return (void *) (p == NULL);
9566 /* pthread test function */
9569 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9570 /* This system (e.g. AIX) defaults detached; must override */
9571 pthread_attr_t attr;
9573 status = pthread_attr_init(&attr);
9574 if( status ) exit( status );
9576 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9577 if( status ) exit( status );
9581 #if HAVE_PTHREADS_D4
9582 #define ATTR pthread_attr_default
9587 /* make sure pthread_create() isn't just a stub */
9588 status = pthread_create(&t, ATTR, task, NULL);
9589 if( status ) exit( status );
9591 /* make sure pthread_detach() isn't just a stub */
9592 #if HAVE_PTHREADS_D4
9593 status = pthread_detach( &t );
9595 status = pthread_detach( t );
9598 #ifdef HAVE_LINUX_THREADS
9599 pthread_kill_other_threads_np();
9606 if { (eval echo configure:9607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9608 ol_cv_pthread_lpthreads_lexc=yes
9610 echo "configure: failed program was:" >&5
9611 cat conftest.$ac_ext >&5
9613 ol_cv_pthread_lpthreads_lexc=no
9617 cat > conftest.$ac_ext <<EOF
9618 #line 9619 "configure"
9619 #include "confdefs.h"
9620 /* pthread test headers */
9621 #include <pthread.h>
9623 #define NULL (void*)0
9626 static void *task(p)
9629 return (void *) (p == NULL);
9633 int main(argc, argv)
9638 /* pthread test function */
9641 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9642 /* This system (e.g. AIX) defaults detached; must override */
9643 pthread_attr_t attr;
9645 status = pthread_attr_init(&attr);
9646 if( status ) exit( status );
9648 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9649 if( status ) exit( status );
9653 #if HAVE_PTHREADS_D4
9654 #define ATTR pthread_attr_default
9659 /* make sure pthread_create() isn't just a stub */
9660 status = pthread_create(&t, ATTR, task, NULL);
9661 if( status ) exit( status );
9663 /* make sure pthread_detach() isn't just a stub */
9664 #if HAVE_PTHREADS_D4
9665 status = pthread_detach( &t );
9667 status = pthread_detach( t );
9670 #ifdef HAVE_LINUX_THREADS
9671 pthread_kill_other_threads_np();
9679 if { (eval echo configure:9680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9681 ol_cv_pthread_lpthreads_lexc=yes
9683 echo "configure: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9686 ol_cv_pthread_lpthreads_lexc=no
9697 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9699 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9700 ol_link_pthreads="-lpthreads -lexc"
9701 ol_link_threads=posix
9706 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9707 if test "$ol_link_threads" = no ; then
9709 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9710 echo "configure:9711: checking for pthread link with -lpthreads" >&5
9711 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9712 echo $ac_n "(cached) $ac_c" 1>&6
9717 LIBS="-lpthreads $LIBS"
9719 if test "$cross_compiling" = yes; then
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9723 /* pthread test headers */
9724 #include <pthread.h>
9726 #define NULL (void*)0
9729 static void *task(p)
9732 return (void *) (p == NULL);
9737 /* pthread test function */
9740 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9741 /* This system (e.g. AIX) defaults detached; must override */
9742 pthread_attr_t attr;
9744 status = pthread_attr_init(&attr);
9745 if( status ) exit( status );
9747 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9748 if( status ) exit( status );
9752 #if HAVE_PTHREADS_D4
9753 #define ATTR pthread_attr_default
9758 /* make sure pthread_create() isn't just a stub */
9759 status = pthread_create(&t, ATTR, task, NULL);
9760 if( status ) exit( status );
9762 /* make sure pthread_detach() isn't just a stub */
9763 #if HAVE_PTHREADS_D4
9764 status = pthread_detach( &t );
9766 status = pthread_detach( t );
9769 #ifdef HAVE_LINUX_THREADS
9770 pthread_kill_other_threads_np();
9777 if { (eval echo configure:9778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9779 ol_cv_pthread_lib_lpthreads=yes
9781 echo "configure: failed program was:" >&5
9782 cat conftest.$ac_ext >&5
9784 ol_cv_pthread_lib_lpthreads=no
9788 cat > conftest.$ac_ext <<EOF
9789 #line 9790 "configure"
9790 #include "confdefs.h"
9791 /* pthread test headers */
9792 #include <pthread.h>
9794 #define NULL (void*)0
9797 static void *task(p)
9800 return (void *) (p == NULL);
9804 int main(argc, argv)
9809 /* pthread test function */
9812 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9813 /* This system (e.g. AIX) defaults detached; must override */
9814 pthread_attr_t attr;
9816 status = pthread_attr_init(&attr);
9817 if( status ) exit( status );
9819 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9820 if( status ) exit( status );
9824 #if HAVE_PTHREADS_D4
9825 #define ATTR pthread_attr_default
9830 /* make sure pthread_create() isn't just a stub */
9831 status = pthread_create(&t, ATTR, task, NULL);
9832 if( status ) exit( status );
9834 /* make sure pthread_detach() isn't just a stub */
9835 #if HAVE_PTHREADS_D4
9836 status = pthread_detach( &t );
9838 status = pthread_detach( t );
9841 #ifdef HAVE_LINUX_THREADS
9842 pthread_kill_other_threads_np();
9850 if { (eval echo configure:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9852 ol_cv_pthread_lib_lpthreads=yes
9854 echo "configure: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9857 ol_cv_pthread_lib_lpthreads=no
9868 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9870 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9871 ol_link_pthreads="-lpthreads"
9872 ol_link_threads=posix
9877 if test $ol_link_threads != no ; then
9878 cat >> confdefs.h <<\EOF
9879 #define HAVE_PTHREADS 1
9883 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9885 save_CPPFLAGS="$CPPFLAGS"
9887 LIBS="$LTHREAD_LIBS $LIBS"
9889 for ac_func in sched_yield pthread_yield
9891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9892 echo "configure:9893: checking for $ac_func" >&5
9893 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9894 echo $ac_n "(cached) $ac_c" 1>&6
9896 cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char $ac_func(); below. */
9902 /* Override any gcc2 internal prototype to avoid an error. */
9903 /* We use char because int might match the return type of a gcc2
9904 builtin and then its argument prototype would still apply. */
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9921 if { (eval echo configure:9922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9923 eval "ac_cv_func_$ac_func=yes"
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9928 eval "ac_cv_func_$ac_func=no"
9933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9934 echo "$ac_t""yes" 1>&6
9935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9936 cat >> confdefs.h <<EOF
9937 #define $ac_tr_func 1
9941 echo "$ac_t""no" 1>&6
9946 if test $ac_cv_func_sched_yield = no -a \
9947 $ac_cv_func_pthread_yield = no ; then
9948 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9949 echo "configure:9950: checking for sched_yield in -lrt" >&5
9950 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9951 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9952 echo $ac_n "(cached) $ac_c" 1>&6
9954 ac_save_LIBS="$LIBS"
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure"
9958 #include "confdefs.h"
9959 /* Override any gcc2 internal prototype to avoid an error. */
9960 /* We use char because int might match the return type of a gcc2
9961 builtin and then its argument prototype would still apply. */
9968 if { (eval echo configure:9969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9970 eval "ac_cv_lib_$ac_lib_var=yes"
9972 echo "configure: failed program was:" >&5
9973 cat conftest.$ac_ext >&5
9975 eval "ac_cv_lib_$ac_lib_var=no"
9978 LIBS="$ac_save_LIBS"
9981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9982 echo "$ac_t""yes" 1>&6
9983 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9984 cat >> confdefs.h <<\EOF
9985 #define HAVE_SCHED_YIELD 1
9988 ac_cv_func_sched_yield=yes
9990 echo "$ac_t""no" 1>&6
9991 ac_cv_func_sched_yield=no
9995 if test $ac_cv_func_sched_yield = no -a \
9996 $ac_cv_func_pthread_yield = no ; then
9997 for ac_func in thr_yield
9999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10000 echo "configure:10001: checking for $ac_func" >&5
10001 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10002 echo $ac_n "(cached) $ac_c" 1>&6
10004 cat > conftest.$ac_ext <<EOF
10005 #line 10006 "configure"
10006 #include "confdefs.h"
10007 /* System header to define __stub macros and hopefully few prototypes,
10008 which can conflict with char $ac_func(); below. */
10009 #include <assert.h>
10010 /* Override any gcc2 internal prototype to avoid an error. */
10011 /* We use char because int might match the return type of a gcc2
10012 builtin and then its argument prototype would still apply. */
10018 /* The GNU C library defines this for functions which it implements
10019 to always fail with ENOSYS. Some functions are actually named
10020 something starting with __ and the normal name is an alias. */
10021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10029 if { (eval echo configure:10030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10031 eval "ac_cv_func_$ac_func=yes"
10033 echo "configure: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10036 eval "ac_cv_func_$ac_func=no"
10041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10042 echo "$ac_t""yes" 1>&6
10043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10044 cat >> confdefs.h <<EOF
10045 #define $ac_tr_func 1
10049 echo "$ac_t""no" 1>&6
10054 if test $ac_cv_func_sched_yield = no -a \
10055 $ac_cv_func_pthread_yield = no -a \
10056 "$ac_cv_func_thr_yield" = no ; then
10057 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10060 for ac_func in pthread_kill
10062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10063 echo "configure:10064: checking for $ac_func" >&5
10064 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10065 echo $ac_n "(cached) $ac_c" 1>&6
10067 cat > conftest.$ac_ext <<EOF
10068 #line 10069 "configure"
10069 #include "confdefs.h"
10070 /* System header to define __stub macros and hopefully few prototypes,
10071 which can conflict with char $ac_func(); below. */
10072 #include <assert.h>
10073 /* Override any gcc2 internal prototype to avoid an error. */
10074 /* We use char because int might match the return type of a gcc2
10075 builtin and then its argument prototype would still apply. */
10081 /* The GNU C library defines this for functions which it implements
10082 to always fail with ENOSYS. Some functions are actually named
10083 something starting with __ and the normal name is an alias. */
10084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10092 if { (eval echo configure:10093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10094 eval "ac_cv_func_$ac_func=yes"
10096 echo "configure: failed program was:" >&5
10097 cat conftest.$ac_ext >&5
10099 eval "ac_cv_func_$ac_func=no"
10104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10105 echo "$ac_t""yes" 1>&6
10106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10107 cat >> confdefs.h <<EOF
10108 #define $ac_tr_func 1
10112 echo "$ac_t""no" 1>&6
10117 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10118 echo "configure:10119: checking for pthread_detach with <pthread.h>" >&5
10119 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10120 echo $ac_n "(cached) $ac_c" 1>&6
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10127 #include <pthread.h>
10129 #define NULL (void*)0
10133 pthread_detach(NULL);
10136 if { (eval echo configure:10137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10138 ol_cv_func_pthread_detach=yes
10140 echo "configure: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10143 ol_cv_func_pthread_detach=no
10149 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10151 if test $ol_cv_func_pthread_detach = no ; then
10152 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10155 cat >> confdefs.h <<\EOF
10156 #define HAVE_PTHREAD_DETACH 1
10161 pthread_setconcurrency \
10162 pthread_getconcurrency \
10163 thr_setconcurrency \
10164 thr_getconcurrency \
10167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10168 echo "configure:10169: checking for $ac_func" >&5
10169 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10170 echo $ac_n "(cached) $ac_c" 1>&6
10172 cat > conftest.$ac_ext <<EOF
10173 #line 10174 "configure"
10174 #include "confdefs.h"
10175 /* System header to define __stub macros and hopefully few prototypes,
10176 which can conflict with char $ac_func(); below. */
10177 #include <assert.h>
10178 /* Override any gcc2 internal prototype to avoid an error. */
10179 /* We use char because int might match the return type of a gcc2
10180 builtin and then its argument prototype would still apply. */
10186 /* The GNU C library defines this for functions which it implements
10187 to always fail with ENOSYS. Some functions are actually named
10188 something starting with __ and the normal name is an alias. */
10189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10197 if { (eval echo configure:10198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10199 eval "ac_cv_func_$ac_func=yes"
10201 echo "configure: failed program was:" >&5
10202 cat conftest.$ac_ext >&5
10204 eval "ac_cv_func_$ac_func=no"
10209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10210 echo "$ac_t""yes" 1>&6
10211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10212 cat >> confdefs.h <<EOF
10213 #define $ac_tr_func 1
10217 echo "$ac_t""no" 1>&6
10223 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10224 echo "configure:10225: checking for pthread_kill_other_threads_np" >&5
10225 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10231 /* System header to define __stub macros and hopefully few prototypes,
10232 which can conflict with char pthread_kill_other_threads_np(); below. */
10233 #include <assert.h>
10234 /* Override any gcc2 internal prototype to avoid an error. */
10235 /* We use char because int might match the return type of a gcc2
10236 builtin and then its argument prototype would still apply. */
10237 char pthread_kill_other_threads_np();
10242 /* The GNU C library defines this for functions which it implements
10243 to always fail with ENOSYS. Some functions are actually named
10244 something starting with __ and the normal name is an alias. */
10245 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10248 f = pthread_kill_other_threads_np;
10253 if { (eval echo configure:10254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10255 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10257 echo "configure: failed program was:" >&5
10258 cat conftest.$ac_ext >&5
10260 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10265 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10266 echo "$ac_t""yes" 1>&6
10269 echo "$ac_t""no" 1>&6
10272 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10273 echo "configure:10274: checking for LinuxThreads implementation" >&5
10274 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10275 echo $ac_n "(cached) $ac_c" 1>&6
10277 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10280 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10285 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10286 echo "configure:10287: checking for LinuxThreads consistency" >&5
10287 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10288 echo $ac_n "(cached) $ac_c" 1>&6
10291 if test $ol_cv_header_linux_threads = yes -a \
10292 $ol_cv_sys_linux_threads = yes; then
10293 ol_cv_linux_threads=yes
10294 elif test $ol_cv_header_linux_threads = no -a \
10295 $ol_cv_sys_linux_threads = no; then
10296 ol_cv_linux_threads=no
10298 ol_cv_linux_threads=error
10303 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10306 if test $ol_cv_linux_threads = error; then
10307 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10310 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10311 echo "configure:10312: checking if pthread_create() works" >&5
10312 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10313 echo $ac_n "(cached) $ac_c" 1>&6
10316 if test "$cross_compiling" = yes; then
10317 ol_cv_pthread_create_works=yes
10319 cat > conftest.$ac_ext <<EOF
10320 #line 10321 "configure"
10321 #include "confdefs.h"
10322 /* pthread test headers */
10323 #include <pthread.h>
10325 #define NULL (void*)0
10328 static void *task(p)
10331 return (void *) (p == NULL);
10335 int main(argc, argv)
10340 /* pthread test function */
10343 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10344 /* This system (e.g. AIX) defaults detached; must override */
10345 pthread_attr_t attr;
10347 status = pthread_attr_init(&attr);
10348 if( status ) exit( status );
10350 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10351 if( status ) exit( status );
10355 #if HAVE_PTHREADS_D4
10356 #define ATTR pthread_attr_default
10361 /* make sure pthread_create() isn't just a stub */
10362 status = pthread_create(&t, ATTR, task, NULL);
10363 if( status ) exit( status );
10365 /* make sure pthread_detach() isn't just a stub */
10366 #if HAVE_PTHREADS_D4
10367 status = pthread_detach( &t );
10369 status = pthread_detach( t );
10372 #ifdef HAVE_LINUX_THREADS
10373 pthread_kill_other_threads_np();
10381 if { (eval echo configure:10382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10383 ol_cv_pthread_create_works=yes
10385 echo "configure: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10388 ol_cv_pthread_create_works=no
10395 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10397 if test $ol_cv_pthread_create_works = no ; then
10398 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10401 if test $ol_with_yielding_select = auto ; then
10402 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10403 echo "configure:10404: checking if select yields when using pthreads" >&5
10404 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10405 echo $ac_n "(cached) $ac_c" 1>&6
10408 if test "$cross_compiling" = yes; then
10409 ol_cv_pthread_select_yields=cross
10411 cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10415 #include <sys/types.h>
10416 #include <sys/time.h>
10417 #include <unistd.h>
10418 #include <pthread.h>
10420 #define NULL (void*) 0
10423 static int fildes[2];
10425 static void *task(p)
10437 FD_SET(fildes[0], &rfds);
10439 /* we're not interested in any fds */
10440 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10447 exit(0); /* if we exit here, the select blocked the whole process */
10450 int main(argc, argv)
10456 /* create a pipe to select */
10457 if(pipe(&fildes[0])) {
10462 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10463 (void) pthread_setconcurrency(2);
10465 #ifdef HAVE_THR_SETCONCURRENCY
10466 /* Set Solaris LWP concurrency to 2 */
10467 thr_setconcurrency(2);
10471 #if HAVE_PTHREADS_D4
10472 pthread_create(&t, pthread_attr_default, task, NULL);
10474 pthread_create(&t, NULL, task, NULL);
10477 #if HAVE_SCHED_YIELD
10478 sched_yield(); /* make sure task runs first */
10480 #ifdef HAVE_PTHREAD_YIELD
10481 pthread_yield(); /* make sure task runs first */
10488 if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10490 ol_cv_pthread_select_yields=no
10492 echo "configure: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10495 ol_cv_pthread_select_yields=yes
10502 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10504 if test $ol_cv_pthread_select_yields = cross ; then
10505 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10508 if test $ol_cv_pthread_select_yields = yes ; then
10509 ol_with_yielding_select=yes
10513 CPPFLAGS="$save_CPPFLAGS"
10516 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10520 if test $ol_with_threads = posix ; then
10521 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10525 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10526 -o $ol_with_threads = mach ; then
10528 for ac_hdr in mach/cthreads.h
10530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10532 echo "configure:10533: checking for $ac_hdr" >&5
10533 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10534 echo $ac_n "(cached) $ac_c" 1>&6
10536 cat > conftest.$ac_ext <<EOF
10537 #line 10538 "configure"
10538 #include "confdefs.h"
10541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10542 { (eval echo configure:10543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10544 if test -z "$ac_err"; then
10546 eval "ac_cv_header_$ac_safe=yes"
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10552 eval "ac_cv_header_$ac_safe=no"
10556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10557 echo "$ac_t""yes" 1>&6
10558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10559 cat >> confdefs.h <<EOF
10560 #define $ac_tr_hdr 1
10564 echo "$ac_t""no" 1>&6
10568 if test $ac_cv_header_mach_cthreads_h = yes ; then
10569 ol_with_threads=found
10571 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10572 echo "configure:10573: checking for cthread_fork" >&5
10573 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10574 echo $ac_n "(cached) $ac_c" 1>&6
10576 cat > conftest.$ac_ext <<EOF
10577 #line 10578 "configure"
10578 #include "confdefs.h"
10579 /* System header to define __stub macros and hopefully few prototypes,
10580 which can conflict with char cthread_fork(); below. */
10581 #include <assert.h>
10582 /* Override any gcc2 internal prototype to avoid an error. */
10583 /* We use char because int might match the return type of a gcc2
10584 builtin and then its argument prototype would still apply. */
10585 char cthread_fork();
10590 /* The GNU C library defines this for functions which it implements
10591 to always fail with ENOSYS. Some functions are actually named
10592 something starting with __ and the normal name is an alias. */
10593 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10601 if { (eval echo configure:10602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10603 eval "ac_cv_func_cthread_fork=yes"
10605 echo "configure: failed program was:" >&5
10606 cat conftest.$ac_ext >&5
10608 eval "ac_cv_func_cthread_fork=no"
10613 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10614 echo "$ac_t""yes" 1>&6
10615 ol_link_threads=yes
10617 echo "$ac_t""no" 1>&6
10621 if test $ol_link_threads = no ; then
10622 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10623 echo "configure:10624: checking for cthread_fork with -all_load" >&5
10624 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10625 echo $ac_n "(cached) $ac_c" 1>&6
10629 LIBS="-all_load $LIBS"
10630 cat > conftest.$ac_ext <<EOF
10631 #line 10632 "configure"
10632 #include "confdefs.h"
10633 #include <mach/cthreads.h>
10636 cthread_fork((void *)0, (void *)0);
10640 if { (eval echo configure:10641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10642 ol_cv_cthread_all_load=yes
10644 echo "configure: failed program was:" >&5
10645 cat conftest.$ac_ext >&5
10647 ol_cv_cthread_all_load=no
10654 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10656 if test $ol_cv_cthread_all_load = yes ; then
10657 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10658 ol_link_threads=mach
10662 if test $ol_link_threads != no ; then
10663 : check for cthread specific functionality here
10664 cat >> confdefs.h <<\EOF
10665 #define HAVE_MACH_CTHREADS 1
10669 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10673 if test $ol_with_threads = mach ; then
10674 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10678 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10679 -o $ol_with_threads = pth ; then
10681 for ac_hdr in pth.h
10683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10685 echo "configure:10686: checking for $ac_hdr" >&5
10686 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10687 echo $ac_n "(cached) $ac_c" 1>&6
10689 cat > conftest.$ac_ext <<EOF
10690 #line 10691 "configure"
10691 #include "confdefs.h"
10694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10695 { (eval echo configure:10696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10697 if test -z "$ac_err"; then
10699 eval "ac_cv_header_$ac_safe=yes"
10702 echo "configure: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10705 eval "ac_cv_header_$ac_safe=no"
10709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10710 echo "$ac_t""yes" 1>&6
10711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10712 cat >> confdefs.h <<EOF
10713 #define $ac_tr_hdr 1
10717 echo "$ac_t""no" 1>&6
10722 if test $ac_cv_header_pth_h = yes ; then
10723 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10724 echo "configure:10725: checking for pth_version in -lpth" >&5
10725 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10726 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
10729 ac_save_LIBS="$LIBS"
10731 cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10734 /* Override any gcc2 internal prototype to avoid an error. */
10735 /* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */
10737 char pth_version();
10743 if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10745 eval "ac_cv_lib_$ac_lib_var=yes"
10747 echo "configure: failed program was:" >&5
10748 cat conftest.$ac_ext >&5
10750 eval "ac_cv_lib_$ac_lib_var=no"
10753 LIBS="$ac_save_LIBS"
10756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10757 echo "$ac_t""yes" 1>&6
10760 echo "$ac_t""no" 1>&6
10765 if test $have_pth = yes ; then
10766 cat >> confdefs.h <<\EOF
10767 #define HAVE_GNU_PTH 1
10770 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10771 ol_link_threads=pth
10773 if test $ol_with_yielding_select = auto ; then
10774 ol_with_yielding_select=yes
10780 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10781 -o $ol_with_threads = lwp ; then
10783 for ac_hdr in thread.h synch.h
10785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10787 echo "configure:10788: checking for $ac_hdr" >&5
10788 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10789 echo $ac_n "(cached) $ac_c" 1>&6
10791 cat > conftest.$ac_ext <<EOF
10792 #line 10793 "configure"
10793 #include "confdefs.h"
10796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10797 { (eval echo configure:10798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10799 if test -z "$ac_err"; then
10801 eval "ac_cv_header_$ac_safe=yes"
10804 echo "configure: failed program was:" >&5
10805 cat conftest.$ac_ext >&5
10807 eval "ac_cv_header_$ac_safe=no"
10811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10812 echo "$ac_t""yes" 1>&6
10813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10814 cat >> confdefs.h <<EOF
10815 #define $ac_tr_hdr 1
10819 echo "$ac_t""no" 1>&6
10823 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10824 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10825 echo "configure:10826: checking for thr_create in -lthread" >&5
10826 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10827 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10828 echo $ac_n "(cached) $ac_c" 1>&6
10830 ac_save_LIBS="$LIBS"
10831 LIBS="-lthread $LIBS"
10832 cat > conftest.$ac_ext <<EOF
10833 #line 10834 "configure"
10834 #include "confdefs.h"
10835 /* Override any gcc2 internal prototype to avoid an error. */
10836 /* We use char because int might match the return type of a gcc2
10837 builtin and then its argument prototype would still apply. */
10844 if { (eval echo configure:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10846 eval "ac_cv_lib_$ac_lib_var=yes"
10848 echo "configure: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10851 eval "ac_cv_lib_$ac_lib_var=no"
10854 LIBS="$ac_save_LIBS"
10857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10858 echo "$ac_t""yes" 1>&6
10861 echo "$ac_t""no" 1>&6
10866 if test $have_thr = yes ; then
10867 cat >> confdefs.h <<\EOF
10871 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10872 ol_link_threads=thr
10874 if test $ol_with_yielding_select = auto ; then
10875 ol_with_yielding_select=yes
10879 thr_setconcurrency \
10880 thr_getconcurrency \
10883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10884 echo "configure:10885: checking for $ac_func" >&5
10885 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10886 echo $ac_n "(cached) $ac_c" 1>&6
10888 cat > conftest.$ac_ext <<EOF
10889 #line 10890 "configure"
10890 #include "confdefs.h"
10891 /* System header to define __stub macros and hopefully few prototypes,
10892 which can conflict with char $ac_func(); below. */
10893 #include <assert.h>
10894 /* Override any gcc2 internal prototype to avoid an error. */
10895 /* We use char because int might match the return type of a gcc2
10896 builtin and then its argument prototype would still apply. */
10902 /* The GNU C library defines this for functions which it implements
10903 to always fail with ENOSYS. Some functions are actually named
10904 something starting with __ and the normal name is an alias. */
10905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10913 if { (eval echo configure:10914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10915 eval "ac_cv_func_$ac_func=yes"
10917 echo "configure: failed program was:" >&5
10918 cat conftest.$ac_ext >&5
10920 eval "ac_cv_func_$ac_func=no"
10925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10926 echo "$ac_t""yes" 1>&6
10927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10928 cat >> confdefs.h <<EOF
10929 #define $ac_tr_func 1
10933 echo "$ac_t""no" 1>&6
10940 for ac_hdr in lwp/lwp.h
10942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10944 echo "configure:10945: checking for $ac_hdr" >&5
10945 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10946 echo $ac_n "(cached) $ac_c" 1>&6
10948 cat > conftest.$ac_ext <<EOF
10949 #line 10950 "configure"
10950 #include "confdefs.h"
10953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10954 { (eval echo configure:10955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10956 if test -z "$ac_err"; then
10958 eval "ac_cv_header_$ac_safe=yes"
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10964 eval "ac_cv_header_$ac_safe=no"
10968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10969 echo "$ac_t""yes" 1>&6
10970 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10971 cat >> confdefs.h <<EOF
10972 #define $ac_tr_hdr 1
10976 echo "$ac_t""no" 1>&6
10980 if test $ac_cv_header_lwp_lwp_h = yes ; then
10981 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10982 echo "configure:10983: checking for lwp_create in -llwp" >&5
10983 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10985 echo $ac_n "(cached) $ac_c" 1>&6
10987 ac_save_LIBS="$LIBS"
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 /* Override any gcc2 internal prototype to avoid an error. */
10993 /* We use char because int might match the return type of a gcc2
10994 builtin and then its argument prototype would still apply. */
11001 if { (eval echo configure:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11003 eval "ac_cv_lib_$ac_lib_var=yes"
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11008 eval "ac_cv_lib_$ac_lib_var=no"
11011 LIBS="$ac_save_LIBS"
11014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11015 echo "$ac_t""yes" 1>&6
11018 echo "$ac_t""no" 1>&6
11023 if test $have_lwp = yes ; then
11024 cat >> confdefs.h <<\EOF
11028 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11029 ol_link_threads=lwp
11031 if test $ol_with_yielding_select = auto ; then
11032 ol_with_yielding_select=no
11038 if test $ol_with_yielding_select = yes ; then
11039 cat >> confdefs.h <<\EOF
11040 #define HAVE_YIELDING_SELECT 1
11045 if test $ol_with_threads = manual ; then
11046 ol_link_threads=yes
11048 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11050 for ac_hdr in pthread.h sched.h
11052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11054 echo "configure:11055: checking for $ac_hdr" >&5
11055 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11056 echo $ac_n "(cached) $ac_c" 1>&6
11058 cat > conftest.$ac_ext <<EOF
11059 #line 11060 "configure"
11060 #include "confdefs.h"
11063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11064 { (eval echo configure:11065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11066 if test -z "$ac_err"; then
11068 eval "ac_cv_header_$ac_safe=yes"
11071 echo "configure: failed program was:" >&5
11072 cat conftest.$ac_ext >&5
11074 eval "ac_cv_header_$ac_safe=no"
11078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11079 echo "$ac_t""yes" 1>&6
11080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11081 cat >> confdefs.h <<EOF
11082 #define $ac_tr_hdr 1
11086 echo "$ac_t""no" 1>&6
11090 for ac_func in sched_yield pthread_yield
11092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11093 echo "configure:11094: checking for $ac_func" >&5
11094 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11095 echo $ac_n "(cached) $ac_c" 1>&6
11097 cat > conftest.$ac_ext <<EOF
11098 #line 11099 "configure"
11099 #include "confdefs.h"
11100 /* System header to define __stub macros and hopefully few prototypes,
11101 which can conflict with char $ac_func(); below. */
11102 #include <assert.h>
11103 /* Override any gcc2 internal prototype to avoid an error. */
11104 /* We use char because int might match the return type of a gcc2
11105 builtin and then its argument prototype would still apply. */
11111 /* The GNU C library defines this for functions which it implements
11112 to always fail with ENOSYS. Some functions are actually named
11113 something starting with __ and the normal name is an alias. */
11114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11122 if { (eval echo configure:11123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11124 eval "ac_cv_func_$ac_func=yes"
11126 echo "configure: failed program was:" >&5
11127 cat conftest.$ac_ext >&5
11129 eval "ac_cv_func_$ac_func=no"
11134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11135 echo "$ac_t""yes" 1>&6
11136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11137 cat >> confdefs.h <<EOF
11138 #define $ac_tr_func 1
11142 echo "$ac_t""no" 1>&6
11147 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11148 echo "configure:11149: checking for LinuxThreads pthread.h" >&5
11149 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11150 echo $ac_n "(cached) $ac_c" 1>&6
11152 cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11155 #include <pthread.h>
11157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11158 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11160 ol_cv_header_linux_threads=yes
11163 ol_cv_header_linux_threads=no
11170 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11171 if test $ol_cv_header_linux_threads = yes; then
11172 cat >> confdefs.h <<\EOF
11173 #define HAVE_LINUX_THREADS 1
11179 for ac_hdr in mach/cthreads.h
11181 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11182 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11183 echo "configure:11184: checking for $ac_hdr" >&5
11184 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11185 echo $ac_n "(cached) $ac_c" 1>&6
11187 cat > conftest.$ac_ext <<EOF
11188 #line 11189 "configure"
11189 #include "confdefs.h"
11192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11193 { (eval echo configure:11194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11195 if test -z "$ac_err"; then
11197 eval "ac_cv_header_$ac_safe=yes"
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11203 eval "ac_cv_header_$ac_safe=no"
11207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11208 echo "$ac_t""yes" 1>&6
11209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11210 cat >> confdefs.h <<EOF
11211 #define $ac_tr_hdr 1
11215 echo "$ac_t""no" 1>&6
11219 for ac_hdr in lwp/lwp.h
11221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11223 echo "configure:11224: checking for $ac_hdr" >&5
11224 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11227 cat > conftest.$ac_ext <<EOF
11228 #line 11229 "configure"
11229 #include "confdefs.h"
11232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11233 { (eval echo configure:11234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11235 if test -z "$ac_err"; then
11237 eval "ac_cv_header_$ac_safe=yes"
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11243 eval "ac_cv_header_$ac_safe=no"
11247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11248 echo "$ac_t""yes" 1>&6
11249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11250 cat >> confdefs.h <<EOF
11251 #define $ac_tr_hdr 1
11255 echo "$ac_t""no" 1>&6
11259 for ac_hdr in thread.h synch.h
11261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11263 echo "configure:11264: checking for $ac_hdr" >&5
11264 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11267 cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11273 { (eval echo configure:11274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11275 if test -z "$ac_err"; then
11277 eval "ac_cv_header_$ac_safe=yes"
11280 echo "configure: failed program was:" >&5
11281 cat conftest.$ac_ext >&5
11283 eval "ac_cv_header_$ac_safe=no"
11287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11288 echo "$ac_t""yes" 1>&6
11289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11290 cat >> confdefs.h <<EOF
11291 #define $ac_tr_hdr 1
11295 echo "$ac_t""no" 1>&6
11301 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11302 cat >> confdefs.h <<\EOF
11303 #define REENTRANT 1
11306 cat >> confdefs.h <<\EOF
11307 #define _REENTRANT 1
11310 cat >> confdefs.h <<\EOF
11311 #define THREAD_SAFE 1
11314 cat >> confdefs.h <<\EOF
11315 #define _THREAD_SAFE 1
11318 cat >> confdefs.h <<\EOF
11319 #define THREADSAFE 1
11322 cat >> confdefs.h <<\EOF
11323 #define _THREADSAFE 1
11326 cat >> confdefs.h <<\EOF
11327 #define _SGI_MP_SOURCE 1
11331 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11332 echo "configure:11333: checking for thread specific errno" >&5
11333 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11334 echo $ac_n "(cached) $ac_c" 1>&6
11337 cat > conftest.$ac_ext <<EOF
11338 #line 11339 "configure"
11339 #include "confdefs.h"
11345 if { (eval echo configure:11346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11347 ol_cv_errno_thread_specific=yes
11349 echo "configure: failed program was:" >&5
11350 cat conftest.$ac_ext >&5
11352 ol_cv_errno_thread_specific=no
11358 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11360 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11361 echo "configure:11362: checking for thread specific h_errno" >&5
11362 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11363 echo $ac_n "(cached) $ac_c" 1>&6
11366 cat > conftest.$ac_ext <<EOF
11367 #line 11368 "configure"
11368 #include "confdefs.h"
11374 if { (eval echo configure:11375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11376 ol_cv_h_errno_thread_specific=yes
11378 echo "configure: failed program was:" >&5
11379 cat conftest.$ac_ext >&5
11381 ol_cv_h_errno_thread_specific=no
11387 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11389 if test $ol_cv_errno_thread_specific != yes \
11390 -o $ol_cv_h_errno_thread_specific != yes ; then
11391 LIBS="$LTHREAD_LIBS $LIBS"
11397 if test $ol_link_threads = no ; then
11398 if test $ol_with_threads = yes ; then
11399 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11402 if test $ol_with_threads = auto ; then
11403 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11407 cat >> confdefs.h <<\EOF
11408 #define NO_THREADS 1
11414 if test $ol_link_threads != no ; then
11415 cat >> confdefs.h <<\EOF
11416 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11423 if test $ol_with_ldbm_api = auto \
11424 -o $ol_with_ldbm_api = berkeley \
11425 -o $ol_with_ldbm_api = bcompat ; then
11427 if test $ol_with_ldbm_api = bcompat; then \
11428 ol_cv_berkeley_db=no
11429 for ac_hdr in db_185.h db.h
11431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11433 echo "configure:11434: checking for $ac_hdr" >&5
11434 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11435 echo $ac_n "(cached) $ac_c" 1>&6
11437 cat > conftest.$ac_ext <<EOF
11438 #line 11439 "configure"
11439 #include "confdefs.h"
11442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11443 { (eval echo configure:11444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11445 if test -z "$ac_err"; then
11447 eval "ac_cv_header_$ac_safe=yes"
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11453 eval "ac_cv_header_$ac_safe=no"
11457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11458 echo "$ac_t""yes" 1>&6
11459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11460 cat >> confdefs.h <<EOF
11461 #define $ac_tr_hdr 1
11465 echo "$ac_t""no" 1>&6
11469 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11470 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11471 echo "configure:11472: checking if Berkeley DB header compatibility" >&5
11472 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11473 echo $ac_n "(cached) $ac_c" 1>&6
11476 cat > conftest.$ac_ext <<EOF
11477 #line 11478 "configure"
11478 #include "confdefs.h"
11481 # include <db_185.h>
11486 /* this check could be improved */
11487 #ifndef DB_VERSION_MAJOR
11488 # define DB_VERSION_MAJOR 1
11491 #if DB_VERSION_MAJOR == 1
11496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11497 egrep "__db_version_1" >/dev/null 2>&1; then
11499 ol_cv_header_db1=yes
11502 ol_cv_header_db1=no
11508 echo "$ac_t""$ol_cv_header_db1" 1>&6
11510 if test ol_cv_header_db1=yes ; then
11512 if test $ol_cv_lib_db = no ; then
11513 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11514 echo "configure:11515: checking for Berkeley DB link (default)" >&5
11515 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11516 echo $ac_n "(cached) $ac_c" 1>&6
11521 LIBS="$ol_DB_LIB $LIBS"
11523 cat > conftest.$ac_ext <<EOF
11524 #line 11525 "configure"
11525 #include "confdefs.h"
11527 #ifdef HAVE_DB_185_H
11528 # include <db_185.h>
11533 #ifndef DB_VERSION_MAJOR
11534 # define DB_VERSION_MAJOR 1
11538 #define NULL ((void*)0)
11543 #if DB_VERSION_MAJOR > 2
11544 db_env_create( NULL, 0 );
11545 #elif DB_VERSION_MAJOR > 1
11546 db_appexit( NULL );
11548 (void) dbopen( NULL, 0, 0, 0, NULL);
11553 if { (eval echo configure:11554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11557 echo "configure: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11568 echo "$ac_t""$ol_cv_db_none" 1>&6
11570 if test $ol_cv_db_none = yes ; then
11575 if test $ol_cv_lib_db = no ; then
11576 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11577 echo "configure:11578: checking for Berkeley DB link (-ldb)" >&5
11578 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11579 echo $ac_n "(cached) $ac_c" 1>&6
11584 LIBS="$ol_DB_LIB $LIBS"
11586 cat > conftest.$ac_ext <<EOF
11587 #line 11588 "configure"
11588 #include "confdefs.h"
11590 #ifdef HAVE_DB_185_H
11591 # include <db_185.h>
11596 #ifndef DB_VERSION_MAJOR
11597 # define DB_VERSION_MAJOR 1
11601 #define NULL ((void*)0)
11606 #if DB_VERSION_MAJOR > 2
11607 db_env_create( NULL, 0 );
11608 #elif DB_VERSION_MAJOR > 1
11609 db_appexit( NULL );
11611 (void) dbopen( NULL, 0, 0, 0, NULL);
11616 if { (eval echo configure:11617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11620 echo "configure: failed program was:" >&5
11621 cat conftest.$ac_ext >&5
11631 echo "$ac_t""$ol_cv_db_db" 1>&6
11633 if test $ol_cv_db_db = yes ; then
11638 if test $ol_cv_lib_db = no ; then
11639 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11640 echo "configure:11641: checking for Berkeley DB link (-ldb3)" >&5
11641 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11642 echo $ac_n "(cached) $ac_c" 1>&6
11647 LIBS="$ol_DB_LIB $LIBS"
11649 cat > conftest.$ac_ext <<EOF
11650 #line 11651 "configure"
11651 #include "confdefs.h"
11653 #ifdef HAVE_DB_185_H
11654 # include <db_185.h>
11659 #ifndef DB_VERSION_MAJOR
11660 # define DB_VERSION_MAJOR 1
11664 #define NULL ((void*)0)
11669 #if DB_VERSION_MAJOR > 2
11670 db_env_create( NULL, 0 );
11671 #elif DB_VERSION_MAJOR > 1
11672 db_appexit( NULL );
11674 (void) dbopen( NULL, 0, 0, 0, NULL);
11679 if { (eval echo configure:11680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11683 echo "configure: failed program was:" >&5
11684 cat conftest.$ac_ext >&5
11694 echo "$ac_t""$ol_cv_db_db3" 1>&6
11696 if test $ol_cv_db_db3 = yes ; then
11701 if test $ol_cv_lib_db = no ; then
11702 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11703 echo "configure:11704: checking for Berkeley DB link (-ldb2)" >&5
11704 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11705 echo $ac_n "(cached) $ac_c" 1>&6
11710 LIBS="$ol_DB_LIB $LIBS"
11712 cat > conftest.$ac_ext <<EOF
11713 #line 11714 "configure"
11714 #include "confdefs.h"
11716 #ifdef HAVE_DB_185_H
11717 # include <db_185.h>
11722 #ifndef DB_VERSION_MAJOR
11723 # define DB_VERSION_MAJOR 1
11727 #define NULL ((void*)0)
11732 #if DB_VERSION_MAJOR > 2
11733 db_env_create( NULL, 0 );
11734 #elif DB_VERSION_MAJOR > 1
11735 db_appexit( NULL );
11737 (void) dbopen( NULL, 0, 0, 0, NULL);
11742 if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11757 echo "$ac_t""$ol_cv_db_db2" 1>&6
11759 if test $ol_cv_db_db2 = yes ; then
11764 if test $ol_cv_lib_db = no ; then
11765 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11766 echo "configure:11767: checking for Berkeley DB link (-ldb1)" >&5
11767 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11768 echo $ac_n "(cached) $ac_c" 1>&6
11773 LIBS="$ol_DB_LIB $LIBS"
11775 cat > conftest.$ac_ext <<EOF
11776 #line 11777 "configure"
11777 #include "confdefs.h"
11779 #ifdef HAVE_DB_185_H
11780 # include <db_185.h>
11785 #ifndef DB_VERSION_MAJOR
11786 # define DB_VERSION_MAJOR 1
11790 #define NULL ((void*)0)
11795 #if DB_VERSION_MAJOR > 2
11796 db_env_create( NULL, 0 );
11797 #elif DB_VERSION_MAJOR > 1
11798 db_appexit( NULL );
11800 (void) dbopen( NULL, 0, 0, 0, NULL);
11805 if { (eval echo configure:11806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11809 echo "configure: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11820 echo "$ac_t""$ol_cv_db_db1" 1>&6
11822 if test $ol_cv_db_db1 = yes ; then
11828 if test "$ol_cv_lib_db" != no ; then
11829 ol_cv_berkeley_db=yes
11835 ol_cv_berkeley_db=no
11838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11840 echo "configure:11841: checking for $ac_hdr" >&5
11841 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11842 echo $ac_n "(cached) $ac_c" 1>&6
11844 cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11850 { (eval echo configure:11851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11852 if test -z "$ac_err"; then
11854 eval "ac_cv_header_$ac_safe=yes"
11857 echo "configure: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11860 eval "ac_cv_header_$ac_safe=no"
11864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11865 echo "$ac_t""yes" 1>&6
11866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11867 cat >> confdefs.h <<EOF
11868 #define $ac_tr_hdr 1
11872 echo "$ac_t""no" 1>&6
11876 if test $ac_cv_header_db_h = yes; then
11878 if test $ol_cv_lib_db = no ; then
11879 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11880 echo "configure:11881: checking for Berkeley DB link (default)" >&5
11881 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11882 echo $ac_n "(cached) $ac_c" 1>&6
11887 LIBS="$ol_DB_LIB $LIBS"
11889 cat > conftest.$ac_ext <<EOF
11890 #line 11891 "configure"
11891 #include "confdefs.h"
11893 #ifdef HAVE_DB_185_H
11894 # include <db_185.h>
11899 #ifndef DB_VERSION_MAJOR
11900 # define DB_VERSION_MAJOR 1
11904 #define NULL ((void*)0)
11909 #if DB_VERSION_MAJOR > 2
11910 db_env_create( NULL, 0 );
11911 #elif DB_VERSION_MAJOR > 1
11912 db_appexit( NULL );
11914 (void) dbopen( NULL, 0, 0, 0, NULL);
11919 if { (eval echo configure:11920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11923 echo "configure: failed program was:" >&5
11924 cat conftest.$ac_ext >&5
11934 echo "$ac_t""$ol_cv_db_none" 1>&6
11936 if test $ol_cv_db_none = yes ; then
11941 if test $ol_cv_lib_db = no ; then
11942 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11943 echo "configure:11944: checking for Berkeley DB link (-ldb)" >&5
11944 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11945 echo $ac_n "(cached) $ac_c" 1>&6
11950 LIBS="$ol_DB_LIB $LIBS"
11952 cat > conftest.$ac_ext <<EOF
11953 #line 11954 "configure"
11954 #include "confdefs.h"
11956 #ifdef HAVE_DB_185_H
11957 # include <db_185.h>
11962 #ifndef DB_VERSION_MAJOR
11963 # define DB_VERSION_MAJOR 1
11967 #define NULL ((void*)0)
11972 #if DB_VERSION_MAJOR > 2
11973 db_env_create( NULL, 0 );
11974 #elif DB_VERSION_MAJOR > 1
11975 db_appexit( NULL );
11977 (void) dbopen( NULL, 0, 0, 0, NULL);
11982 if { (eval echo configure:11983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11986 echo "configure: failed program was:" >&5
11987 cat conftest.$ac_ext >&5
11997 echo "$ac_t""$ol_cv_db_db" 1>&6
11999 if test $ol_cv_db_db = yes ; then
12004 if test $ol_cv_lib_db = no ; then
12005 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12006 echo "configure:12007: checking for Berkeley DB link (-ldb3)" >&5
12007 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12008 echo $ac_n "(cached) $ac_c" 1>&6
12013 LIBS="$ol_DB_LIB $LIBS"
12015 cat > conftest.$ac_ext <<EOF
12016 #line 12017 "configure"
12017 #include "confdefs.h"
12019 #ifdef HAVE_DB_185_H
12020 # include <db_185.h>
12025 #ifndef DB_VERSION_MAJOR
12026 # define DB_VERSION_MAJOR 1
12030 #define NULL ((void*)0)
12035 #if DB_VERSION_MAJOR > 2
12036 db_env_create( NULL, 0 );
12037 #elif DB_VERSION_MAJOR > 1
12038 db_appexit( NULL );
12040 (void) dbopen( NULL, 0, 0, 0, NULL);
12045 if { (eval echo configure:12046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12049 echo "configure: failed program was:" >&5
12050 cat conftest.$ac_ext >&5
12060 echo "$ac_t""$ol_cv_db_db3" 1>&6
12062 if test $ol_cv_db_db3 = yes ; then
12067 if test $ol_cv_lib_db = no ; then
12068 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12069 echo "configure:12070: checking for Berkeley DB link (-ldb2)" >&5
12070 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12071 echo $ac_n "(cached) $ac_c" 1>&6
12076 LIBS="$ol_DB_LIB $LIBS"
12078 cat > conftest.$ac_ext <<EOF
12079 #line 12080 "configure"
12080 #include "confdefs.h"
12082 #ifdef HAVE_DB_185_H
12083 # include <db_185.h>
12088 #ifndef DB_VERSION_MAJOR
12089 # define DB_VERSION_MAJOR 1
12093 #define NULL ((void*)0)
12098 #if DB_VERSION_MAJOR > 2
12099 db_env_create( NULL, 0 );
12100 #elif DB_VERSION_MAJOR > 1
12101 db_appexit( NULL );
12103 (void) dbopen( NULL, 0, 0, 0, NULL);
12108 if { (eval echo configure:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12112 echo "configure: failed program was:" >&5
12113 cat conftest.$ac_ext >&5
12123 echo "$ac_t""$ol_cv_db_db2" 1>&6
12125 if test $ol_cv_db_db2 = yes ; then
12130 if test $ol_cv_lib_db = no ; then
12131 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12132 echo "configure:12133: checking for Berkeley DB link (-ldb1)" >&5
12133 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12134 echo $ac_n "(cached) $ac_c" 1>&6
12139 LIBS="$ol_DB_LIB $LIBS"
12141 cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12145 #ifdef HAVE_DB_185_H
12146 # include <db_185.h>
12151 #ifndef DB_VERSION_MAJOR
12152 # define DB_VERSION_MAJOR 1
12156 #define NULL ((void*)0)
12161 #if DB_VERSION_MAJOR > 2
12162 db_env_create( NULL, 0 );
12163 #elif DB_VERSION_MAJOR > 1
12164 db_appexit( NULL );
12166 (void) dbopen( NULL, 0, 0, 0, NULL);
12171 if { (eval echo configure:12172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12175 echo "configure: failed program was:" >&5
12176 cat conftest.$ac_ext >&5
12186 echo "$ac_t""$ol_cv_db_db1" 1>&6
12188 if test $ol_cv_db_db1 = yes ; then
12194 if test "$ol_cv_lib_db" != no ; then
12195 ol_cv_berkeley_db=yes
12196 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12197 echo "configure:12198: checking for Berkeley DB thread support" >&5
12198 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12199 echo $ac_n "(cached) $ac_c" 1>&6
12203 if test $ol_cv_lib_db != yes ; then
12204 LIBS="$ol_cv_lib_db"
12207 if test "$cross_compiling" = yes; then
12208 ol_cv_berkeley_db_thread=cross
12210 cat > conftest.$ac_ext <<EOF
12211 #line 12212 "configure"
12212 #include "confdefs.h"
12214 #ifdef HAVE_DB_185_H
12220 #define NULL ((void *)0)
12225 u_int32_t flags = DB_CREATE | DB_THREAD;
12228 #if DB_VERSION_MAJOR > 2
12229 DB_ENV *env = NULL;
12231 rc = db_env_create( &env, 0 );
12234 rc = env->open( env, NULL, NULL, flags, 0 );
12239 memset( &env, '\0', sizeof(env) );
12241 rc = db_appinit( NULL, NULL, &env, flags );
12244 db_appexit( &env );
12251 if { (eval echo configure:12252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12253 ol_cv_berkeley_db_thread=yes
12255 echo "configure: failed program was:" >&5
12256 cat conftest.$ac_ext >&5
12258 ol_cv_berkeley_db_thread=no
12266 if test $ol_cv_berkeley_db_thread != no ; then
12267 cat >> confdefs.h <<\EOF
12268 #define HAVE_BERKELEY_DB_THREAD 1
12275 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12281 if test $ol_cv_berkeley_db != no ; then
12282 cat >> confdefs.h <<\EOF
12283 #define HAVE_BERKELEY_DB 1
12287 ol_link_ldbm=berkeley
12288 ol_with_ldbm_api=db
12290 if test $ol_with_ldbm_type = hash ; then
12291 cat >> confdefs.h <<\EOF
12292 #define LDBM_USE_DBHASH 1
12296 cat >> confdefs.h <<\EOF
12297 #define LDBM_USE_DBBTREE 1
12302 if test $ol_cv_lib_db != yes ; then
12303 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12308 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12309 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12310 ol_with_ldbm_api=none
12313 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12314 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12315 echo "configure:12316: checking for MDBM library" >&5
12316 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12317 echo $ac_n "(cached) $ac_c" 1>&6
12320 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12321 echo "configure:12322: checking for mdbm_set_chain" >&5
12322 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12323 echo $ac_n "(cached) $ac_c" 1>&6
12325 cat > conftest.$ac_ext <<EOF
12326 #line 12327 "configure"
12327 #include "confdefs.h"
12328 /* System header to define __stub macros and hopefully few prototypes,
12329 which can conflict with char mdbm_set_chain(); below. */
12330 #include <assert.h>
12331 /* Override any gcc2 internal prototype to avoid an error. */
12332 /* We use char because int might match the return type of a gcc2
12333 builtin and then its argument prototype would still apply. */
12334 char mdbm_set_chain();
12339 /* The GNU C library defines this for functions which it implements
12340 to always fail with ENOSYS. Some functions are actually named
12341 something starting with __ and the normal name is an alias. */
12342 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12345 f = mdbm_set_chain;
12350 if { (eval echo configure:12351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12352 eval "ac_cv_func_mdbm_set_chain=yes"
12354 echo "configure: failed program was:" >&5
12355 cat conftest.$ac_ext >&5
12357 eval "ac_cv_func_mdbm_set_chain=no"
12362 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12363 echo "$ac_t""yes" 1>&6
12366 echo "$ac_t""no" 1>&6
12368 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12369 echo "configure:12370: checking for mdbm_set_chain in -lmdbm" >&5
12370 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12371 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12374 ac_save_LIBS="$LIBS"
12375 LIBS="-lmdbm $LIBS"
12376 cat > conftest.$ac_ext <<EOF
12377 #line 12378 "configure"
12378 #include "confdefs.h"
12379 /* Override any gcc2 internal prototype to avoid an error. */
12380 /* We use char because int might match the return type of a gcc2
12381 builtin and then its argument prototype would still apply. */
12382 char mdbm_set_chain();
12388 if { (eval echo configure:12389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12390 eval "ac_cv_lib_$ac_lib_var=yes"
12392 echo "configure: failed program was:" >&5
12393 cat conftest.$ac_ext >&5
12395 eval "ac_cv_lib_$ac_lib_var=no"
12398 LIBS="$ac_save_LIBS"
12401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12402 echo "$ac_t""yes" 1>&6
12403 ol_cv_lib_mdbm=-lmdbm
12405 echo "$ac_t""no" 1>&6
12416 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12419 for ac_hdr in mdbm.h
12421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12423 echo "configure:12424: checking for $ac_hdr" >&5
12424 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12425 echo $ac_n "(cached) $ac_c" 1>&6
12427 cat > conftest.$ac_ext <<EOF
12428 #line 12429 "configure"
12429 #include "confdefs.h"
12432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12433 { (eval echo configure:12434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12435 if test -z "$ac_err"; then
12437 eval "ac_cv_header_$ac_safe=yes"
12440 echo "configure: failed program was:" >&5
12441 cat conftest.$ac_ext >&5
12443 eval "ac_cv_header_$ac_safe=no"
12447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12448 echo "$ac_t""yes" 1>&6
12449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12450 cat >> confdefs.h <<EOF
12451 #define $ac_tr_hdr 1
12455 echo "$ac_t""no" 1>&6
12459 echo $ac_n "checking for db""... $ac_c" 1>&6
12460 echo "configure:12461: checking for db" >&5
12461 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12462 echo $ac_n "(cached) $ac_c" 1>&6
12465 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12473 echo "$ac_t""$ol_cv_mdbm" 1>&6
12474 if test $ol_cv_mdbm = yes ; then
12475 cat >> confdefs.h <<\EOF
12476 #define HAVE_MDBM 1
12482 if test $ol_cv_mdbm = yes ; then
12484 ol_with_ldbm_api=mdbm
12485 if test $ol_cv_lib_mdbm != yes ; then
12486 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12491 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12492 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12493 echo "configure:12494: checking for GDBM library" >&5
12494 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12495 echo $ac_n "(cached) $ac_c" 1>&6
12498 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12499 echo "configure:12500: checking for gdbm_open" >&5
12500 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12501 echo $ac_n "(cached) $ac_c" 1>&6
12503 cat > conftest.$ac_ext <<EOF
12504 #line 12505 "configure"
12505 #include "confdefs.h"
12506 /* System header to define __stub macros and hopefully few prototypes,
12507 which can conflict with char gdbm_open(); below. */
12508 #include <assert.h>
12509 /* Override any gcc2 internal prototype to avoid an error. */
12510 /* We use char because int might match the return type of a gcc2
12511 builtin and then its argument prototype would still apply. */
12517 /* The GNU C library defines this for functions which it implements
12518 to always fail with ENOSYS. Some functions are actually named
12519 something starting with __ and the normal name is an alias. */
12520 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12528 if { (eval echo configure:12529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12530 eval "ac_cv_func_gdbm_open=yes"
12532 echo "configure: failed program was:" >&5
12533 cat conftest.$ac_ext >&5
12535 eval "ac_cv_func_gdbm_open=no"
12540 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12541 echo "$ac_t""yes" 1>&6
12544 echo "$ac_t""no" 1>&6
12546 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12547 echo "configure:12548: checking for gdbm_open in -lgdbm" >&5
12548 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12549 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12550 echo $ac_n "(cached) $ac_c" 1>&6
12552 ac_save_LIBS="$LIBS"
12553 LIBS="-lgdbm $LIBS"
12554 cat > conftest.$ac_ext <<EOF
12555 #line 12556 "configure"
12556 #include "confdefs.h"
12557 /* Override any gcc2 internal prototype to avoid an error. */
12558 /* We use char because int might match the return type of a gcc2
12559 builtin and then its argument prototype would still apply. */
12566 if { (eval echo configure:12567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12568 eval "ac_cv_lib_$ac_lib_var=yes"
12570 echo "configure: failed program was:" >&5
12571 cat conftest.$ac_ext >&5
12573 eval "ac_cv_lib_$ac_lib_var=no"
12576 LIBS="$ac_save_LIBS"
12579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12580 echo "$ac_t""yes" 1>&6
12581 ol_cv_lib_gdbm=-lgdbm
12583 echo "$ac_t""no" 1>&6
12594 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12597 for ac_hdr in gdbm.h
12599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12601 echo "configure:12602: checking for $ac_hdr" >&5
12602 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12603 echo $ac_n "(cached) $ac_c" 1>&6
12605 cat > conftest.$ac_ext <<EOF
12606 #line 12607 "configure"
12607 #include "confdefs.h"
12610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12611 { (eval echo configure:12612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12613 if test -z "$ac_err"; then
12615 eval "ac_cv_header_$ac_safe=yes"
12618 echo "configure: failed program was:" >&5
12619 cat conftest.$ac_ext >&5
12621 eval "ac_cv_header_$ac_safe=no"
12625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12626 echo "$ac_t""yes" 1>&6
12627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12628 cat >> confdefs.h <<EOF
12629 #define $ac_tr_hdr 1
12633 echo "$ac_t""no" 1>&6
12637 echo $ac_n "checking for db""... $ac_c" 1>&6
12638 echo "configure:12639: checking for db" >&5
12639 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12640 echo $ac_n "(cached) $ac_c" 1>&6
12643 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12651 echo "$ac_t""$ol_cv_gdbm" 1>&6
12652 if test $ol_cv_gdbm = yes ; then
12653 cat >> confdefs.h <<\EOF
12654 #define HAVE_GDBM 1
12660 if test $ol_cv_gdbm = yes ; then
12662 ol_with_ldbm_api=gdbm
12664 if test $ol_cv_lib_gdbm != yes ; then
12665 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12670 if test $ol_with_ldbm_api = ndbm ; then
12671 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12672 echo "configure:12673: checking for NDBM library" >&5
12673 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12674 echo $ac_n "(cached) $ac_c" 1>&6
12677 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12678 echo "configure:12679: checking for dbm_open" >&5
12679 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12680 echo $ac_n "(cached) $ac_c" 1>&6
12682 cat > conftest.$ac_ext <<EOF
12683 #line 12684 "configure"
12684 #include "confdefs.h"
12685 /* System header to define __stub macros and hopefully few prototypes,
12686 which can conflict with char dbm_open(); below. */
12687 #include <assert.h>
12688 /* Override any gcc2 internal prototype to avoid an error. */
12689 /* We use char because int might match the return type of a gcc2
12690 builtin and then its argument prototype would still apply. */
12696 /* The GNU C library defines this for functions which it implements
12697 to always fail with ENOSYS. Some functions are actually named
12698 something starting with __ and the normal name is an alias. */
12699 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12707 if { (eval echo configure:12708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12709 eval "ac_cv_func_dbm_open=yes"
12711 echo "configure: failed program was:" >&5
12712 cat conftest.$ac_ext >&5
12714 eval "ac_cv_func_dbm_open=no"
12719 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12720 echo "$ac_t""yes" 1>&6
12723 echo "$ac_t""no" 1>&6
12725 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12726 echo "configure:12727: checking for dbm_open in -lndbm" >&5
12727 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12728 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12729 echo $ac_n "(cached) $ac_c" 1>&6
12731 ac_save_LIBS="$LIBS"
12732 LIBS="-lndbm $LIBS"
12733 cat > conftest.$ac_ext <<EOF
12734 #line 12735 "configure"
12735 #include "confdefs.h"
12736 /* Override any gcc2 internal prototype to avoid an error. */
12737 /* We use char because int might match the return type of a gcc2
12738 builtin and then its argument prototype would still apply. */
12745 if { (eval echo configure:12746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12747 eval "ac_cv_lib_$ac_lib_var=yes"
12749 echo "configure: failed program was:" >&5
12750 cat conftest.$ac_ext >&5
12752 eval "ac_cv_lib_$ac_lib_var=no"
12755 LIBS="$ac_save_LIBS"
12758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12759 echo "$ac_t""yes" 1>&6
12760 ol_cv_lib_ndbm=-lndbm
12762 echo "$ac_t""no" 1>&6
12764 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12765 echo "configure:12766: checking for dbm_open in -ldbm" >&5
12766 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12767 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12768 echo $ac_n "(cached) $ac_c" 1>&6
12770 ac_save_LIBS="$LIBS"
12772 cat > conftest.$ac_ext <<EOF
12773 #line 12774 "configure"
12774 #include "confdefs.h"
12775 /* Override any gcc2 internal prototype to avoid an error. */
12776 /* We use char because int might match the return type of a gcc2
12777 builtin and then its argument prototype would still apply. */
12784 if { (eval echo configure:12785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12786 eval "ac_cv_lib_$ac_lib_var=yes"
12788 echo "configure: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12791 eval "ac_cv_lib_$ac_lib_var=no"
12794 LIBS="$ac_save_LIBS"
12797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12798 echo "$ac_t""yes" 1>&6
12799 ol_cv_lib_ndbm=-ldbm
12801 echo "$ac_t""no" 1>&6
12814 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12817 for ac_hdr in ndbm.h
12819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12821 echo "configure:12822: checking for $ac_hdr" >&5
12822 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12823 echo $ac_n "(cached) $ac_c" 1>&6
12825 cat > conftest.$ac_ext <<EOF
12826 #line 12827 "configure"
12827 #include "confdefs.h"
12830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12831 { (eval echo configure:12832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12833 if test -z "$ac_err"; then
12835 eval "ac_cv_header_$ac_safe=yes"
12838 echo "configure: failed program was:" >&5
12839 cat conftest.$ac_ext >&5
12841 eval "ac_cv_header_$ac_safe=no"
12845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12846 echo "$ac_t""yes" 1>&6
12847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12848 cat >> confdefs.h <<EOF
12849 #define $ac_tr_hdr 1
12853 echo "$ac_t""no" 1>&6
12857 echo $ac_n "checking for db""... $ac_c" 1>&6
12858 echo "configure:12859: checking for db" >&5
12859 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12860 echo $ac_n "(cached) $ac_c" 1>&6
12863 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12871 echo "$ac_t""$ol_cv_ndbm" 1>&6
12872 if test $ol_cv_ndbm = yes ; then
12873 cat >> confdefs.h <<\EOF
12874 #define HAVE_NDBM 1
12880 if test $ol_cv_ndbm = yes ; then
12882 ol_with_ldbm_api=ndbm
12884 if test $ol_cv_lib_ndbm != yes ; then
12885 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12890 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12891 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12892 if test $ol_enable_ldbm = yes ; then
12893 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12896 echo "configure: warning: disabling LDBM" 1>&2
12901 if test $ol_enable_bdb2 != no ; then
12902 if test $ol_enable_bdb2 = yes -a $ol_link_ldbm != berkeley ; then
12903 { echo "configure: error: BDB2 requires LDBM BerkeleyDB 2" 1>&2; exit 1; }
12904 elif test $ol_link_ldbm = berkeley ; then
12905 ol_link_bdb2=$ol_link_ldbm
12909 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12910 LINK_BINS_DYNAMIC="yes"
12912 LINK_BINS_DYNAMIC="no"
12915 if test $ol_enable_wrappers != no ; then
12916 for ac_hdr in tcpd.h
12918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12920 echo "configure:12921: checking for $ac_hdr" >&5
12921 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12922 echo $ac_n "(cached) $ac_c" 1>&6
12924 cat > conftest.$ac_ext <<EOF
12925 #line 12926 "configure"
12926 #include "confdefs.h"
12929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12930 { (eval echo configure:12931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12932 if test -z "$ac_err"; then
12934 eval "ac_cv_header_$ac_safe=yes"
12937 echo "configure: failed program was:" >&5
12938 cat conftest.$ac_ext >&5
12940 eval "ac_cv_header_$ac_safe=no"
12944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12945 echo "$ac_t""yes" 1>&6
12946 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12947 cat >> confdefs.h <<EOF
12948 #define $ac_tr_hdr 1
12952 echo "$ac_t""no" 1>&6
12957 if test $ac_cv_header_tcpd_h != yes ; then
12960 cat > conftest.$ac_ext <<EOF
12961 #line 12962 "configure"
12962 #include "confdefs.h"
12964 int allow_severity = 0;
12965 int deny_severity = 0;
12971 if { (eval echo configure:12972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12975 echo "configure: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12983 if test $have_wrappers = yes ; then
12984 cat >> confdefs.h <<\EOF
12985 #define HAVE_TCPD 1
12990 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12991 echo "configure:12992: checking for main in -lnsl" >&5
12992 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12993 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12994 echo $ac_n "(cached) $ac_c" 1>&6
12996 ac_save_LIBS="$LIBS"
12998 cat > conftest.$ac_ext <<EOF
12999 #line 13000 "configure"
13000 #include "confdefs.h"
13006 if { (eval echo configure:13007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13008 eval "ac_cv_lib_$ac_lib_var=yes"
13010 echo "configure: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13013 eval "ac_cv_lib_$ac_lib_var=no"
13016 LIBS="$ac_save_LIBS"
13019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13020 echo "$ac_t""yes" 1>&6
13021 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13022 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13023 cat >> confdefs.h <<EOF
13024 #define $ac_tr_lib 1
13030 echo "$ac_t""no" 1>&6
13034 echo "configure: warning: could not find -lwrap" 1>&2
13035 if test $ol_enable_wrappers = yes ; then
13036 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13039 echo "configure: warning: disabling wrappers support" 1>&2
13040 ol_enable_wrappers=no
13045 if test $ol_enable_syslog != no ; then
13046 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13047 echo "configure:13048: checking for openlog" >&5
13048 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13049 echo $ac_n "(cached) $ac_c" 1>&6
13051 cat > conftest.$ac_ext <<EOF
13052 #line 13053 "configure"
13053 #include "confdefs.h"
13054 /* System header to define __stub macros and hopefully few prototypes,
13055 which can conflict with char openlog(); below. */
13056 #include <assert.h>
13057 /* Override any gcc2 internal prototype to avoid an error. */
13058 /* We use char because int might match the return type of a gcc2
13059 builtin and then its argument prototype would still apply. */
13065 /* The GNU C library defines this for functions which it implements
13066 to always fail with ENOSYS. Some functions are actually named
13067 something starting with __ and the normal name is an alias. */
13068 #if defined (__stub_openlog) || defined (__stub___openlog)
13076 if { (eval echo configure:13077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13078 eval "ac_cv_func_openlog=yes"
13080 echo "configure: failed program was:" >&5
13081 cat conftest.$ac_ext >&5
13083 eval "ac_cv_func_openlog=no"
13088 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13089 echo "$ac_t""yes" 1>&6
13092 echo "$ac_t""no" 1>&6
13095 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13096 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13098 ol_enable_syslog=$ac_cv_func_openlog
13101 if test $ol_enable_tcl != no ; then
13102 for ac_hdr in tcl.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_tcl_h != yes ; then
13146 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13147 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13148 echo "configure:13149: checking for main in -l$lib" >&5
13149 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13150 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13151 echo $ac_n "(cached) $ac_c" 1>&6
13153 ac_save_LIBS="$LIBS"
13154 LIBS="-l$lib $LIBS"
13155 cat > conftest.$ac_ext <<EOF
13156 #line 13157 "configure"
13157 #include "confdefs.h"
13163 if { (eval echo configure:13164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13165 eval "ac_cv_lib_$ac_lib_var=yes"
13167 echo "configure: failed program was:" >&5
13168 cat conftest.$ac_ext >&5
13170 eval "ac_cv_lib_$ac_lib_var=no"
13173 LIBS="$ac_save_LIBS"
13176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13177 echo "$ac_t""yes" 1>&6
13179 if test x"$ol_with_tcl_module" = "xstatic" ; then
13180 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13182 MOD_TCL_LIB="-l${lib}"
13185 echo "$ac_t""no" 1>&6
13192 if test $have_tcl != yes ; then
13193 echo "configure: warning: could not find -ltcl" 1>&2
13194 if test $ol_enable_tcl = yes ; then
13195 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13203 for ac_hdr in termcap.h ncurses.h
13205 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13207 echo "configure:13208: checking for $ac_hdr" >&5
13208 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13209 echo $ac_n "(cached) $ac_c" 1>&6
13211 cat > conftest.$ac_ext <<EOF
13212 #line 13213 "configure"
13213 #include "confdefs.h"
13216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13217 { (eval echo configure:13218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13219 if test -z "$ac_err"; then
13221 eval "ac_cv_header_$ac_safe=yes"
13224 echo "configure: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13227 eval "ac_cv_header_$ac_safe=no"
13231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13232 echo "$ac_t""yes" 1>&6
13233 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13234 cat >> confdefs.h <<EOF
13235 #define $ac_tr_hdr 1
13239 echo "$ac_t""no" 1>&6
13244 if test $ol_link_termcap = no ; then
13245 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13246 echo "configure:13247: checking for tputs in -ltermcap" >&5
13247 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13248 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13249 echo $ac_n "(cached) $ac_c" 1>&6
13251 ac_save_LIBS="$LIBS"
13252 LIBS="-ltermcap $LIBS"
13253 cat > conftest.$ac_ext <<EOF
13254 #line 13255 "configure"
13255 #include "confdefs.h"
13256 /* Override any gcc2 internal prototype to avoid an error. */
13257 /* We use char because int might match the return type of a gcc2
13258 builtin and then its argument prototype would still apply. */
13265 if { (eval echo configure:13266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13267 eval "ac_cv_lib_$ac_lib_var=yes"
13269 echo "configure: failed program was:" >&5
13270 cat conftest.$ac_ext >&5
13272 eval "ac_cv_lib_$ac_lib_var=no"
13275 LIBS="$ac_save_LIBS"
13278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13279 echo "$ac_t""yes" 1>&6
13282 echo "$ac_t""no" 1>&6
13286 if test $have_termcap = yes ; then
13287 cat >> confdefs.h <<\EOF
13288 #define HAVE_TERMCAP 1
13291 ol_link_termcap=yes
13292 TERMCAP_LIBS=-ltermcap
13296 if test $ol_link_termcap = no ; then
13297 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13298 echo "configure:13299: checking for initscr in -lncurses" >&5
13299 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13300 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13301 echo $ac_n "(cached) $ac_c" 1>&6
13303 ac_save_LIBS="$LIBS"
13304 LIBS="-lncurses $LIBS"
13305 cat > conftest.$ac_ext <<EOF
13306 #line 13307 "configure"
13307 #include "confdefs.h"
13308 /* Override any gcc2 internal prototype to avoid an error. */
13309 /* We use char because int might match the return type of a gcc2
13310 builtin and then its argument prototype would still apply. */
13317 if { (eval echo configure:13318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13319 eval "ac_cv_lib_$ac_lib_var=yes"
13321 echo "configure: failed program was:" >&5
13322 cat conftest.$ac_ext >&5
13324 eval "ac_cv_lib_$ac_lib_var=no"
13327 LIBS="$ac_save_LIBS"
13330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13331 echo "$ac_t""yes" 1>&6
13334 echo "$ac_t""no" 1>&6
13338 if test $have_ncurses = yes ; then
13339 cat >> confdefs.h <<\EOF
13340 #define HAVE_NCURSES 1
13343 ol_link_termcap=yes
13344 TERMCAP_LIBS=-lncurses
13348 if test $ol_link_termcap = no ; then
13349 cat >> confdefs.h <<\EOF
13350 #define NO_TERMCAP 1
13358 if test $ol_with_cyrus_sasl != no ; then
13359 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13360 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13361 echo "configure:13362: checking for sasl.h" >&5
13362 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13363 echo $ac_n "(cached) $ac_c" 1>&6
13365 cat > conftest.$ac_ext <<EOF
13366 #line 13367 "configure"
13367 #include "confdefs.h"
13370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13371 { (eval echo configure:13372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13373 if test -z "$ac_err"; then
13375 eval "ac_cv_header_$ac_safe=yes"
13378 echo "configure: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13381 eval "ac_cv_header_$ac_safe=no"
13385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13386 echo "$ac_t""yes" 1>&6
13389 echo "$ac_t""no" 1>&6
13393 if test $ac_cv_header_sasl_h = yes ; then
13394 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13395 echo "configure:13396: checking for sasl_client_init in -lsasl" >&5
13396 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13397 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13398 echo $ac_n "(cached) $ac_c" 1>&6
13400 ac_save_LIBS="$LIBS"
13401 LIBS="-lsasl $LIBS"
13402 cat > conftest.$ac_ext <<EOF
13403 #line 13404 "configure"
13404 #include "confdefs.h"
13405 /* Override any gcc2 internal prototype to avoid an error. */
13406 /* We use char because int might match the return type of a gcc2
13407 builtin and then its argument prototype would still apply. */
13408 char sasl_client_init();
13414 if { (eval echo configure:13415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13416 eval "ac_cv_lib_$ac_lib_var=yes"
13418 echo "configure: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13421 eval "ac_cv_lib_$ac_lib_var=no"
13424 LIBS="$ac_save_LIBS"
13427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13428 echo "$ac_t""yes" 1>&6
13429 have_cyrus_sasl=yes
13431 echo "$ac_t""no" 1>&6
13436 if test $have_cyrus_sasl != no ; then
13438 cat >> confdefs.h <<\EOF
13439 #define HAVE_CYRUS_SASL 1
13446 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13447 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13451 if test $cross_compiling != yes ; then
13453 if test -r /dev/urandom ; then
13454 dev="/dev/urandom";
13455 elif test -r /idev/urandom ; then
13456 dev="/idev/urandom";
13457 elif test -r /dev/srandom ; then
13458 dev="/dev/srandom";
13459 elif test -r /dev/random ; then
13461 elif test -r /idev/random ; then
13462 dev="/idev/random";
13465 if test $dev != no ; then
13466 cat >> confdefs.h <<EOF
13467 #define URANDOM_DEVICE "$dev"
13474 if test $ol_with_fetch != no ; then
13476 LIBS="-lfetch -lcom_err $LIBS"
13477 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13478 echo "configure:13479: checking fetch(3) library" >&5
13479 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13480 echo $ac_n "(cached) $ac_c" 1>&6
13483 cat > conftest.$ac_ext <<EOF
13484 #line 13485 "configure"
13485 #include "confdefs.h"
13487 #include <sys/param.h>
13491 struct url *u = fetchParseURL("file:///");
13494 if { (eval echo configure:13495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13496 ol_cv_lib_fetch=yes
13498 echo "configure: failed program was:" >&5
13499 cat conftest.$ac_ext >&5
13506 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13508 if test $ol_cv_lib_fetch != no ; then
13509 ol_link_fetch="-lfetch -lcom_err"
13510 cat >> confdefs.h <<\EOF
13511 #define HAVE_FETCH 1
13517 if test $ol_cv_lib_fetch != no ; then
13518 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13519 ol_link_fetch=freebsd
13521 elif test $ol_with_fetch != auto ; then
13522 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13526 ol_link_readline=no
13527 if test $ol_with_readline != no ; then
13528 for ac_hdr in readline/readline.h readline/history.h
13530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13532 echo "configure:13533: checking for $ac_hdr" >&5
13533 if eval "test \"\${ac_cv_header_$ac_safe+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"
13541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13542 { (eval echo configure:13543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13544 if test -z "$ac_err"; then
13546 eval "ac_cv_header_$ac_safe=yes"
13549 echo "configure: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13552 eval "ac_cv_header_$ac_safe=no"
13556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13557 echo "$ac_t""yes" 1>&6
13558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13559 cat >> confdefs.h <<EOF
13560 #define $ac_tr_hdr 1
13564 echo "$ac_t""no" 1>&6
13569 if test $ac_cv_header_readline_readline_h = yes ; then
13571 LIBS="$TERMCAP_LIBS $LIBS"
13572 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13573 echo "configure:13574: checking for readline in -lreadline" >&5
13574 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13575 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13576 echo $ac_n "(cached) $ac_c" 1>&6
13578 ac_save_LIBS="$LIBS"
13579 LIBS="-lreadline $LIBS"
13580 cat > conftest.$ac_ext <<EOF
13581 #line 13582 "configure"
13582 #include "confdefs.h"
13583 /* Override any gcc2 internal prototype to avoid an error. */
13584 /* We use char because int might match the return type of a gcc2
13585 builtin and then its argument prototype would still apply. */
13592 if { (eval echo configure:13593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13594 eval "ac_cv_lib_$ac_lib_var=yes"
13596 echo "configure: failed program was:" >&5
13597 cat conftest.$ac_ext >&5
13599 eval "ac_cv_lib_$ac_lib_var=no"
13602 LIBS="$ac_save_LIBS"
13605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13606 echo "$ac_t""yes" 1>&6
13609 echo "$ac_t""no" 1>&6
13615 if test $have_readline = yes ; then
13616 ol_with_readline=found
13617 ol_link_readline=yes
13619 READLINE_LIBS="-lreadline"
13624 if test $ol_link_readline = yes ; then
13625 cat >> confdefs.h <<\EOF
13626 #define HAVE_READLINE 1
13632 if test $ol_enable_crypt != no ; then
13633 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13634 echo "configure:13635: checking for crypt" >&5
13635 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13636 echo $ac_n "(cached) $ac_c" 1>&6
13638 cat > conftest.$ac_ext <<EOF
13639 #line 13640 "configure"
13640 #include "confdefs.h"
13641 /* System header to define __stub macros and hopefully few prototypes,
13642 which can conflict with char crypt(); below. */
13643 #include <assert.h>
13644 /* Override any gcc2 internal prototype to avoid an error. */
13645 /* We use char because int might match the return type of a gcc2
13646 builtin and then its argument prototype would still apply. */
13652 /* The GNU C library defines this for functions which it implements
13653 to always fail with ENOSYS. Some functions are actually named
13654 something starting with __ and the normal name is an alias. */
13655 #if defined (__stub_crypt) || defined (__stub___crypt)
13663 if { (eval echo configure:13664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13665 eval "ac_cv_func_crypt=yes"
13667 echo "configure: failed program was:" >&5
13668 cat conftest.$ac_ext >&5
13670 eval "ac_cv_func_crypt=no"
13675 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13676 echo "$ac_t""yes" 1>&6
13679 echo "$ac_t""no" 1>&6
13681 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13682 echo "configure:13683: checking for crypt in -lcrypt" >&5
13683 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13684 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13685 echo $ac_n "(cached) $ac_c" 1>&6
13687 ac_save_LIBS="$LIBS"
13688 LIBS="-lcrypt $LIBS"
13689 cat > conftest.$ac_ext <<EOF
13690 #line 13691 "configure"
13691 #include "confdefs.h"
13692 /* Override any gcc2 internal prototype to avoid an error. */
13693 /* We use char because int might match the return type of a gcc2
13694 builtin and then its argument prototype would still apply. */
13701 if { (eval echo configure:13702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13703 eval "ac_cv_lib_$ac_lib_var=yes"
13705 echo "configure: failed program was:" >&5
13706 cat conftest.$ac_ext >&5
13708 eval "ac_cv_lib_$ac_lib_var=no"
13711 LIBS="$ac_save_LIBS"
13714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13715 echo "$ac_t""yes" 1>&6
13716 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13719 echo "$ac_t""no" 1>&6
13726 if test $have_crypt = yes ; then
13727 cat >> confdefs.h <<\EOF
13728 #define HAVE_CRYPT 1
13732 echo "configure: warning: could not find crypt" 1>&2
13733 if test $ol_enable_crypt = yes ; then
13734 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13737 echo "configure: warning: disabling crypt support" 1>&2
13742 if test $ol_enable_proctitle != no ; then
13743 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13744 echo "configure:13745: checking for setproctitle" >&5
13745 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13746 echo $ac_n "(cached) $ac_c" 1>&6
13748 cat > conftest.$ac_ext <<EOF
13749 #line 13750 "configure"
13750 #include "confdefs.h"
13751 /* System header to define __stub macros and hopefully few prototypes,
13752 which can conflict with char setproctitle(); below. */
13753 #include <assert.h>
13754 /* Override any gcc2 internal prototype to avoid an error. */
13755 /* We use char because int might match the return type of a gcc2
13756 builtin and then its argument prototype would still apply. */
13757 char setproctitle();
13762 /* The GNU C library defines this for functions which it implements
13763 to always fail with ENOSYS. Some functions are actually named
13764 something starting with __ and the normal name is an alias. */
13765 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13773 if { (eval echo configure:13774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13775 eval "ac_cv_func_setproctitle=yes"
13777 echo "configure: failed program was:" >&5
13778 cat conftest.$ac_ext >&5
13780 eval "ac_cv_func_setproctitle=no"
13785 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13786 echo "$ac_t""yes" 1>&6
13787 have_setproctitle=yes
13789 echo "$ac_t""no" 1>&6
13791 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13792 echo "configure:13793: checking for setproctitle in -lutil" >&5
13793 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13795 echo $ac_n "(cached) $ac_c" 1>&6
13797 ac_save_LIBS="$LIBS"
13798 LIBS="-lutil $LIBS"
13799 cat > conftest.$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13802 /* Override any gcc2 internal prototype to avoid an error. */
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13805 char setproctitle();
13811 if { (eval echo configure:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13813 eval "ac_cv_lib_$ac_lib_var=yes"
13815 echo "configure: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13818 eval "ac_cv_lib_$ac_lib_var=no"
13821 LIBS="$ac_save_LIBS"
13824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13825 echo "$ac_t""yes" 1>&6
13826 have_setproctitle=yes
13827 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13829 echo "$ac_t""no" 1>&6
13830 have_setproctitle=no
13831 LIBOBJS="$LIBOBJS setproctitle.o"
13832 LIBSRCS="$LIBSRCS setproctitle.c"
13838 if test $have_setproctitle = yes ; then
13839 cat >> confdefs.h <<\EOF
13840 #define HAVE_SETPROCTITLE 1
13846 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13847 echo "configure:13848: checking for ANSI C header files" >&5
13848 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13849 echo $ac_n "(cached) $ac_c" 1>&6
13851 cat > conftest.$ac_ext <<EOF
13852 #line 13853 "configure"
13853 #include "confdefs.h"
13854 #include <stdlib.h>
13855 #include <stdarg.h>
13856 #include <string.h>
13859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13860 { (eval echo configure:13861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13862 if test -z "$ac_err"; then
13864 ac_cv_header_stdc=yes
13867 echo "configure: failed program was:" >&5
13868 cat conftest.$ac_ext >&5
13870 ac_cv_header_stdc=no
13874 if test $ac_cv_header_stdc = yes; then
13875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13876 cat > conftest.$ac_ext <<EOF
13877 #line 13878 "configure"
13878 #include "confdefs.h"
13879 #include <string.h>
13881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13882 egrep "memchr" >/dev/null 2>&1; then
13886 ac_cv_header_stdc=no
13892 if test $ac_cv_header_stdc = yes; then
13893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13894 cat > conftest.$ac_ext <<EOF
13895 #line 13896 "configure"
13896 #include "confdefs.h"
13897 #include <stdlib.h>
13899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13900 egrep "free" >/dev/null 2>&1; then
13904 ac_cv_header_stdc=no
13910 if test $ac_cv_header_stdc = yes; then
13911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13912 if test "$cross_compiling" = yes; then
13915 cat > conftest.$ac_ext <<EOF
13916 #line 13917 "configure"
13917 #include "confdefs.h"
13919 #if ((' ' & 0x0FF) == 0x020)
13920 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13921 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13923 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13924 || ('j' <= (c) && (c) <= 'r') \
13925 || ('s' <= (c) && (c) <= 'z'))
13926 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13929 int main () { int i; for (i = 0; i < 256; i++)
13930 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13934 if { (eval echo configure:13935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13938 echo "configure: failed program was:" >&5
13939 cat conftest.$ac_ext >&5
13941 ac_cv_header_stdc=no
13949 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13950 if test $ac_cv_header_stdc = yes; then
13951 cat >> confdefs.h <<\EOF
13952 #define STDC_HEADERS 1
13957 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13958 echo "configure:13959: checking for mode_t" >&5
13959 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13960 echo $ac_n "(cached) $ac_c" 1>&6
13962 cat > conftest.$ac_ext <<EOF
13963 #line 13964 "configure"
13964 #include "confdefs.h"
13965 #include <sys/types.h>
13967 #include <stdlib.h>
13968 #include <stddef.h>
13972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13973 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13975 eval "ac_cv_type_mode_t=yes"
13978 eval "ac_cv_type_mode_t=no"
13983 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13984 echo "$ac_t""yes" 1>&6
13986 echo "$ac_t""no" 1>&6
13987 cat >> confdefs.h <<EOF
13993 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13994 echo "configure:13995: checking for off_t" >&5
13995 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13996 echo $ac_n "(cached) $ac_c" 1>&6
13998 cat > conftest.$ac_ext <<EOF
13999 #line 14000 "configure"
14000 #include "confdefs.h"
14001 #include <sys/types.h>
14003 #include <stdlib.h>
14004 #include <stddef.h>
14008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14009 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14011 eval "ac_cv_type_off_t=yes"
14014 eval "ac_cv_type_off_t=no"
14019 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14020 echo "$ac_t""yes" 1>&6
14022 echo "$ac_t""no" 1>&6
14023 cat >> confdefs.h <<EOF
14029 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14030 echo "configure:14031: checking for pid_t" >&5
14031 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14032 echo $ac_n "(cached) $ac_c" 1>&6
14034 cat > conftest.$ac_ext <<EOF
14035 #line 14036 "configure"
14036 #include "confdefs.h"
14037 #include <sys/types.h>
14039 #include <stdlib.h>
14040 #include <stddef.h>
14044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14045 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14047 eval "ac_cv_type_pid_t=yes"
14050 eval "ac_cv_type_pid_t=no"
14055 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14056 echo "$ac_t""yes" 1>&6
14058 echo "$ac_t""no" 1>&6
14059 cat >> confdefs.h <<EOF
14065 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14066 echo "configure:14067: checking for ptrdiff_t" >&5
14067 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14068 echo $ac_n "(cached) $ac_c" 1>&6
14070 cat > conftest.$ac_ext <<EOF
14071 #line 14072 "configure"
14072 #include "confdefs.h"
14073 #include <stddef.h>
14078 if { (eval echo configure:14079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14080 am_cv_type_ptrdiff_t=yes
14082 echo "configure: failed program was:" >&5
14083 cat conftest.$ac_ext >&5
14085 am_cv_type_ptrdiff_t=no
14090 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14091 if test $am_cv_type_ptrdiff_t = yes; then
14092 cat >> confdefs.h <<\EOF
14093 #define HAVE_PTRDIFF_T 1
14098 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14099 echo "configure:14100: checking return type of signal handlers" >&5
14100 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14101 echo $ac_n "(cached) $ac_c" 1>&6
14103 cat > conftest.$ac_ext <<EOF
14104 #line 14105 "configure"
14105 #include "confdefs.h"
14106 #include <sys/types.h>
14107 #include <signal.h>
14112 extern "C" void (*signal (int, void (*)(int)))(int);
14114 void (*signal ()) ();
14121 if { (eval echo configure:14122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14123 ac_cv_type_signal=void
14125 echo "configure: failed program was:" >&5
14126 cat conftest.$ac_ext >&5
14128 ac_cv_type_signal=int
14133 echo "$ac_t""$ac_cv_type_signal" 1>&6
14134 cat >> confdefs.h <<EOF
14135 #define RETSIGTYPE $ac_cv_type_signal
14139 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14140 echo "configure:14141: checking for size_t" >&5
14141 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14142 echo $ac_n "(cached) $ac_c" 1>&6
14144 cat > conftest.$ac_ext <<EOF
14145 #line 14146 "configure"
14146 #include "confdefs.h"
14147 #include <sys/types.h>
14149 #include <stdlib.h>
14150 #include <stddef.h>
14154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14155 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14157 eval "ac_cv_type_size_t=yes"
14160 eval "ac_cv_type_size_t=no"
14165 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14166 echo "$ac_t""yes" 1>&6
14168 echo "$ac_t""no" 1>&6
14169 cat >> confdefs.h <<EOF
14170 #define size_t unsigned
14176 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14177 echo "configure:14178: checking for ssize_t" >&5
14178 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14179 echo $ac_n "(cached) $ac_c" 1>&6
14181 cat > conftest.$ac_ext <<EOF
14182 #line 14183 "configure"
14183 #include "confdefs.h"
14184 #include <sys/types.h>
14186 #include <stdlib.h>
14187 #include <stddef.h>
14191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14192 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14194 eval "ac_cv_type_ssize_t=yes"
14197 eval "ac_cv_type_ssize_t=no"
14202 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14203 echo "$ac_t""yes" 1>&6
14205 echo "$ac_t""no" 1>&6
14206 cat >> confdefs.h <<EOF
14207 #define ssize_t signed int
14212 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14213 echo "configure:14214: checking for caddr_t" >&5
14214 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14215 echo $ac_n "(cached) $ac_c" 1>&6
14217 cat > conftest.$ac_ext <<EOF
14218 #line 14219 "configure"
14219 #include "confdefs.h"
14220 #include <sys/types.h>
14222 #include <stdlib.h>
14223 #include <stddef.h>
14227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14228 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14230 eval "ac_cv_type_caddr_t=yes"
14233 eval "ac_cv_type_caddr_t=no"
14238 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14239 echo "$ac_t""yes" 1>&6
14241 echo "$ac_t""no" 1>&6
14242 cat >> confdefs.h <<EOF
14243 #define caddr_t char *
14249 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14250 echo "configure:14251: checking for socklen_t" >&5
14251 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14252 echo $ac_n "(cached) $ac_c" 1>&6
14254 cat > conftest.$ac_ext <<EOF
14255 #line 14256 "configure"
14256 #include "confdefs.h"
14258 #ifdef HAVE_SYS_TYPES_H
14259 #include <sys/types.h>
14261 #ifdef HAVE_SYS_SOCKET_H
14262 #include <sys/socket.h>
14269 if { (eval echo configure:14270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14271 ol_cv_type_socklen_t=yes
14273 echo "configure: failed program was:" >&5
14274 cat conftest.$ac_ext >&5
14276 ol_cv_type_socklen_t=no
14281 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14282 if test $ol_cv_type_socklen_t = no; then
14283 cat >> confdefs.h <<\EOF
14284 #define socklen_t int
14289 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14290 echo "configure:14291: checking for member st_blksize in aggregate type struct stat" >&5
14291 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14292 echo $ac_n "(cached) $ac_c" 1>&6
14294 cat > conftest.$ac_ext <<EOF
14295 #line 14296 "configure"
14296 #include "confdefs.h"
14297 #include <sys/types.h>
14298 #include <sys/stat.h>
14300 struct stat foo; foo.st_blksize;
14303 if { (eval echo configure:14304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14305 ac_cv_c_struct_member_st_blksize=yes
14307 echo "configure: failed program was:" >&5
14308 cat conftest.$ac_ext >&5
14310 ac_cv_c_struct_member_st_blksize=no
14315 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14316 st_blksize="$ac_cv_c_struct_member_st_blksize"
14317 if test $ac_cv_c_struct_member_st_blksize = yes; then
14318 cat >> confdefs.h <<\EOF
14319 #define HAVE_ST_BLKSIZE 1
14324 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14325 echo "configure:14326: checking whether time.h and sys/time.h may both be included" >&5
14326 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14327 echo $ac_n "(cached) $ac_c" 1>&6
14329 cat > conftest.$ac_ext <<EOF
14330 #line 14331 "configure"
14331 #include "confdefs.h"
14332 #include <sys/types.h>
14333 #include <sys/time.h>
14339 if { (eval echo configure:14340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14341 ac_cv_header_time=yes
14343 echo "configure: failed program was:" >&5
14344 cat conftest.$ac_ext >&5
14346 ac_cv_header_time=no
14351 echo "$ac_t""$ac_cv_header_time" 1>&6
14352 if test $ac_cv_header_time = yes; then
14353 cat >> confdefs.h <<\EOF
14354 #define TIME_WITH_SYS_TIME 1
14359 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14360 echo "configure:14361: checking whether struct tm is in sys/time.h or time.h" >&5
14361 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14362 echo $ac_n "(cached) $ac_c" 1>&6
14364 cat > conftest.$ac_ext <<EOF
14365 #line 14366 "configure"
14366 #include "confdefs.h"
14367 #include <sys/types.h>
14370 struct tm *tp; tp->tm_sec;
14373 if { (eval echo configure:14374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14375 ac_cv_struct_tm=time.h
14377 echo "configure: failed program was:" >&5
14378 cat conftest.$ac_ext >&5
14380 ac_cv_struct_tm=sys/time.h
14385 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14386 if test $ac_cv_struct_tm = sys/time.h; then
14387 cat >> confdefs.h <<\EOF
14388 #define TM_IN_SYS_TIME 1
14393 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14394 echo "configure:14395: checking for uid_t in sys/types.h" >&5
14395 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14396 echo $ac_n "(cached) $ac_c" 1>&6
14398 cat > conftest.$ac_ext <<EOF
14399 #line 14400 "configure"
14400 #include "confdefs.h"
14401 #include <sys/types.h>
14403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14404 egrep "uid_t" >/dev/null 2>&1; then
14406 ac_cv_type_uid_t=yes
14409 ac_cv_type_uid_t=no
14415 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14416 if test $ac_cv_type_uid_t = no; then
14417 cat >> confdefs.h <<\EOF
14421 cat >> confdefs.h <<\EOF
14427 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14428 echo "configure:14429: checking for sig_atomic_t" >&5
14429 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14430 echo $ac_n "(cached) $ac_c" 1>&6
14432 cat > conftest.$ac_ext <<EOF
14433 #line 14434 "configure"
14434 #include "confdefs.h"
14435 #include <signal.h>
14437 sig_atomic_t atomic;
14440 if { (eval echo configure:14441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14442 ol_cv_type_sig_atomic_t=yes
14444 echo "configure: failed program was:" >&5
14445 cat conftest.$ac_ext >&5
14447 ol_cv_type_sig_atomic_t=no
14452 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14453 if test $ol_cv_type_sig_atomic_t = no; then
14454 cat >> confdefs.h <<\EOF
14455 #define sig_atomic_t int
14462 # test for pw_gecos in struct passwd
14463 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14464 echo "configure:14465: checking struct passwd for pw_gecos" >&5
14465 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14466 echo $ac_n "(cached) $ac_c" 1>&6
14469 cat > conftest.$ac_ext <<EOF
14470 #line 14471 "configure"
14471 #include "confdefs.h"
14476 pwd.pw_gecos = pwd.pw_name;
14480 if { (eval echo configure:14481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14482 ol_cv_struct_passwd_pw_gecos=yes
14484 echo "configure: failed program was:" >&5
14485 cat conftest.$ac_ext >&5
14487 ol_cv_struct_passwd_pw_gecos=no
14492 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14493 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14494 cat >> confdefs.h <<\EOF
14495 #define HAVE_PW_GECOS 1
14500 # test for pw_passwd in struct passwd
14501 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14502 echo "configure:14503: checking struct passwd for pw_passwd" >&5
14503 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14504 echo $ac_n "(cached) $ac_c" 1>&6
14507 cat > conftest.$ac_ext <<EOF
14508 #line 14509 "configure"
14509 #include "confdefs.h"
14514 pwd.pw_passwd = pwd.pw_name;
14518 if { (eval echo configure:14519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14520 ol_cv_struct_passwd_pw_passwd=yes
14522 echo "configure: failed program was:" >&5
14523 cat conftest.$ac_ext >&5
14525 ol_cv_struct_passwd_pw_passwd=no
14530 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14531 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14532 cat >> confdefs.h <<\EOF
14533 #define HAVE_PW_PASSWD 1
14539 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14540 echo "configure:14541: checking if toupper() requires islower()" >&5
14541 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14542 echo $ac_n "(cached) $ac_c" 1>&6
14545 if test "$cross_compiling" = yes; then
14546 ol_cv_c_upper_lower=safe
14548 cat > conftest.$ac_ext <<EOF
14549 #line 14550 "configure"
14550 #include "confdefs.h"
14555 if ('C' == toupper('C'))
14561 if { (eval echo configure:14562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14563 ol_cv_c_upper_lower=no
14565 echo "configure: failed program was:" >&5
14566 cat conftest.$ac_ext >&5
14568 ol_cv_c_upper_lower=yes
14575 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14576 if test $ol_cv_c_upper_lower != no ; then
14577 cat >> confdefs.h <<\EOF
14578 #define C_UPPER_LOWER 1
14583 echo $ac_n "checking for working const""... $ac_c" 1>&6
14584 echo "configure:14585: checking for working const" >&5
14585 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14586 echo $ac_n "(cached) $ac_c" 1>&6
14588 cat > conftest.$ac_ext <<EOF
14589 #line 14590 "configure"
14590 #include "confdefs.h"
14594 /* Ultrix mips cc rejects this. */
14595 typedef int charset[2]; const charset x;
14596 /* SunOS 4.1.1 cc rejects this. */
14597 char const *const *ccp;
14599 /* NEC SVR4.0.2 mips cc rejects this. */
14600 struct point {int x, y;};
14601 static struct point const zero = {0,0};
14602 /* AIX XL C 1.02.0.0 rejects this.
14603 It does not let you subtract one const X* pointer from another in an arm
14604 of an if-expression whose if-part is not a constant expression */
14605 const char *g = "string";
14606 ccp = &g + (g ? g-g : 0);
14607 /* HPUX 7.0 cc rejects these. */
14610 ccp = (char const *const *) p;
14611 { /* SCO 3.2v4 cc rejects this. */
14613 char const *s = 0 ? (char *) 0 : (char const *) 0;
14617 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14618 int x[] = {25, 17};
14619 const int *foo = &x[0];
14622 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14623 typedef const int *iptr;
14627 { /* AIX XL C 1.02.0.0 rejects this saying
14628 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14629 struct s { int j; const int *ap[3]; };
14630 struct s *b; b->j = 5;
14632 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14633 const int foo = 10;
14638 if { (eval echo configure:14639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14642 echo "configure: failed program was:" >&5
14643 cat conftest.$ac_ext >&5
14650 echo "$ac_t""$ac_cv_c_const" 1>&6
14651 if test $ac_cv_c_const = no; then
14652 cat >> confdefs.h <<\EOF
14658 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14659 echo "configure:14660: checking if compiler understands volatile" >&5
14660 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14661 echo $ac_n "(cached) $ac_c" 1>&6
14663 cat > conftest.$ac_ext <<EOF
14664 #line 14665 "configure"
14665 #include "confdefs.h"
14668 volatile int a; int * volatile b = x ? &y : &z;
14669 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14673 if { (eval echo configure:14674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14675 ol_cv_c_volatile=yes
14677 echo "configure: failed program was:" >&5
14678 cat conftest.$ac_ext >&5
14680 ol_cv_c_volatile=no
14685 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14686 if test $ol_cv_c_volatile = yes; then
14689 cat >> confdefs.h <<\EOF
14696 if test $cross_compiling = yes ; then
14697 cat >> confdefs.h <<\EOF
14698 #define CROSS_COMPILING 1
14702 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14703 echo "configure:14704: checking whether byte ordering is bigendian" >&5
14704 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14705 echo $ac_n "(cached) $ac_c" 1>&6
14707 ac_cv_c_bigendian=unknown
14708 # See if sys/param.h defines the BYTE_ORDER macro.
14709 cat > conftest.$ac_ext <<EOF
14710 #line 14711 "configure"
14711 #include "confdefs.h"
14712 #include <sys/types.h>
14713 #include <sys/param.h>
14716 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14717 bogus endian macros
14721 if { (eval echo configure:14722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14723 # It does; now see whether it defined to BIG_ENDIAN or not.
14724 cat > conftest.$ac_ext <<EOF
14725 #line 14726 "configure"
14726 #include "confdefs.h"
14727 #include <sys/types.h>
14728 #include <sys/param.h>
14731 #if BYTE_ORDER != BIG_ENDIAN
14736 if { (eval echo configure:14737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14738 ac_cv_c_bigendian=yes
14740 echo "configure: failed program was:" >&5
14741 cat conftest.$ac_ext >&5
14743 ac_cv_c_bigendian=no
14747 echo "configure: failed program was:" >&5
14748 cat conftest.$ac_ext >&5
14751 if test $ac_cv_c_bigendian = unknown; then
14752 if test "$cross_compiling" = yes; then
14753 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14755 cat > conftest.$ac_ext <<EOF
14756 #line 14757 "configure"
14757 #include "confdefs.h"
14759 /* Are we little or big endian? From Harbison&Steele. */
14763 char c[sizeof (long)];
14766 exit (u.c[sizeof (long) - 1] == 1);
14769 if { (eval echo configure:14770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14771 ac_cv_c_bigendian=no
14773 echo "configure: failed program was:" >&5
14774 cat conftest.$ac_ext >&5
14776 ac_cv_c_bigendian=yes
14784 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14785 if test $ac_cv_c_bigendian = yes; then
14786 cat >> confdefs.h <<\EOF
14787 #define WORDS_BIGENDIAN 1
14794 echo $ac_n "checking size of short""... $ac_c" 1>&6
14795 echo "configure:14796: checking size of short" >&5
14796 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14797 echo $ac_n "(cached) $ac_c" 1>&6
14799 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14800 cat > conftest.$ac_ext <<EOF
14801 #line 14802 "configure"
14802 #include "confdefs.h"
14803 #include "confdefs.h"
14804 #include <sys/types.h>
14808 switch (0) case 0: case (sizeof (short) == $ac_size):;
14811 if { (eval echo configure:14812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14813 ac_cv_sizeof_short=$ac_size
14815 echo "configure: failed program was:" >&5
14816 cat conftest.$ac_ext >&5
14819 if test x$ac_cv_sizeof_short != x ; then break; fi
14824 if test x$ac_cv_sizeof_short = x ; then
14825 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14827 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14828 cat >> confdefs.h <<EOF
14829 #define SIZEOF_SHORT $ac_cv_sizeof_short
14833 echo $ac_n "checking size of int""... $ac_c" 1>&6
14834 echo "configure:14835: checking size of int" >&5
14835 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14836 echo $ac_n "(cached) $ac_c" 1>&6
14838 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14839 cat > conftest.$ac_ext <<EOF
14840 #line 14841 "configure"
14841 #include "confdefs.h"
14842 #include "confdefs.h"
14843 #include <sys/types.h>
14847 switch (0) case 0: case (sizeof (int) == $ac_size):;
14850 if { (eval echo configure:14851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14852 ac_cv_sizeof_int=$ac_size
14854 echo "configure: failed program was:" >&5
14855 cat conftest.$ac_ext >&5
14858 if test x$ac_cv_sizeof_int != x ; then break; fi
14863 if test x$ac_cv_sizeof_int = x ; then
14864 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14866 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14867 cat >> confdefs.h <<EOF
14868 #define SIZEOF_INT $ac_cv_sizeof_int
14872 echo $ac_n "checking size of long""... $ac_c" 1>&6
14873 echo "configure:14874: checking size of long" >&5
14874 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14875 echo $ac_n "(cached) $ac_c" 1>&6
14877 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14878 cat > conftest.$ac_ext <<EOF
14879 #line 14880 "configure"
14880 #include "confdefs.h"
14881 #include "confdefs.h"
14882 #include <sys/types.h>
14886 switch (0) case 0: case (sizeof (long) == $ac_size):;
14889 if { (eval echo configure:14890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14891 ac_cv_sizeof_long=$ac_size
14893 echo "configure: failed program was:" >&5
14894 cat conftest.$ac_ext >&5
14897 if test x$ac_cv_sizeof_long != x ; then break; fi
14902 if test x$ac_cv_sizeof_long = x ; then
14903 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14905 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14906 cat >> confdefs.h <<EOF
14907 #define SIZEOF_LONG $ac_cv_sizeof_long
14912 if test "$ac_cv_sizeof_int" -lt 4 ; then
14913 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14915 cat >> confdefs.h <<\EOF
14916 #define LBER_INT_T long
14920 cat >> confdefs.h <<\EOF
14921 #define LBER_INT_T int
14926 cat >> confdefs.h <<\EOF
14927 #define LBER_LEN_T long
14930 cat >> confdefs.h <<\EOF
14931 #define LBER_SOCKET_T int
14934 cat >> confdefs.h <<\EOF
14935 #define LBER_TAG_T long
14939 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14940 echo "configure:14941: checking for 8-bit clean memcmp" >&5
14941 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14942 echo $ac_n "(cached) $ac_c" 1>&6
14944 if test "$cross_compiling" = yes; then
14945 ac_cv_func_memcmp_clean=no
14947 cat > conftest.$ac_ext <<EOF
14948 #line 14949 "configure"
14949 #include "confdefs.h"
14953 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14954 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14958 if { (eval echo configure:14959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14960 ac_cv_func_memcmp_clean=yes
14962 echo "configure: failed program was:" >&5
14963 cat conftest.$ac_ext >&5
14965 ac_cv_func_memcmp_clean=no
14972 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14973 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14975 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14976 echo "configure:14977: checking for strftime" >&5
14977 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14978 echo $ac_n "(cached) $ac_c" 1>&6
14980 cat > conftest.$ac_ext <<EOF
14981 #line 14982 "configure"
14982 #include "confdefs.h"
14983 /* System header to define __stub macros and hopefully few prototypes,
14984 which can conflict with char strftime(); below. */
14985 #include <assert.h>
14986 /* Override any gcc2 internal prototype to avoid an error. */
14987 /* We use char because int might match the return type of a gcc2
14988 builtin and then its argument prototype would still apply. */
14994 /* The GNU C library defines this for functions which it implements
14995 to always fail with ENOSYS. Some functions are actually named
14996 something starting with __ and the normal name is an alias. */
14997 #if defined (__stub_strftime) || defined (__stub___strftime)
15005 if { (eval echo configure:15006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15007 eval "ac_cv_func_strftime=yes"
15009 echo "configure: failed program was:" >&5
15010 cat conftest.$ac_ext >&5
15012 eval "ac_cv_func_strftime=no"
15017 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15018 echo "$ac_t""yes" 1>&6
15019 cat >> confdefs.h <<\EOF
15020 #define HAVE_STRFTIME 1
15024 echo "$ac_t""no" 1>&6
15025 # strftime is in -lintl on SCO UNIX.
15026 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15027 echo "configure:15028: checking for strftime in -lintl" >&5
15028 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15029 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15030 echo $ac_n "(cached) $ac_c" 1>&6
15032 ac_save_LIBS="$LIBS"
15033 LIBS="-lintl $LIBS"
15034 cat > conftest.$ac_ext <<EOF
15035 #line 15036 "configure"
15036 #include "confdefs.h"
15037 /* Override any gcc2 internal prototype to avoid an error. */
15038 /* We use char because int might match the return type of a gcc2
15039 builtin and then its argument prototype would still apply. */
15046 if { (eval echo configure:15047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15048 eval "ac_cv_lib_$ac_lib_var=yes"
15050 echo "configure: failed program was:" >&5
15051 cat conftest.$ac_ext >&5
15053 eval "ac_cv_lib_$ac_lib_var=no"
15056 LIBS="$ac_save_LIBS"
15059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15060 echo "$ac_t""yes" 1>&6
15061 cat >> confdefs.h <<\EOF
15062 #define HAVE_STRFTIME 1
15065 LIBS="-lintl $LIBS"
15067 echo "$ac_t""no" 1>&6
15073 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15074 echo "configure:15075: checking for inet_aton()" >&5
15075 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15076 echo $ac_n "(cached) $ac_c" 1>&6
15078 cat > conftest.$ac_ext <<EOF
15079 #line 15080 "configure"
15080 #include "confdefs.h"
15082 #ifdef HAVE_SYS_TYPES_H
15083 # include <sys/types.h>
15085 #ifdef HAVE_SYS_SOCKET_H
15086 # include <sys/socket.h>
15087 # ifdef HAVE_SYS_SELECT_H
15088 # include <sys/select.h>
15090 # include <netinet/in.h>
15091 # ifdef HAVE_ARPA_INET_H
15092 # include <arpa/inet.h>
15098 int rc = inet_aton( "255.255.255.255", &in );
15101 if { (eval echo configure:15102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15103 ol_cv_func_inet_aton=yes
15105 echo "configure: failed program was:" >&5
15106 cat conftest.$ac_ext >&5
15108 ol_cv_func_inet_aton=no
15113 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15114 if test $ol_cv_func_inet_aton != no; then
15115 cat >> confdefs.h <<\EOF
15116 #define HAVE_INET_ATON 1
15122 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15123 echo "configure:15124: checking for _spawnlp" >&5
15124 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15125 echo $ac_n "(cached) $ac_c" 1>&6
15127 cat > conftest.$ac_ext <<EOF
15128 #line 15129 "configure"
15129 #include "confdefs.h"
15130 /* System header to define __stub macros and hopefully few prototypes,
15131 which can conflict with char _spawnlp(); below. */
15132 #include <assert.h>
15133 /* Override any gcc2 internal prototype to avoid an error. */
15134 /* We use char because int might match the return type of a gcc2
15135 builtin and then its argument prototype would still apply. */
15141 /* The GNU C library defines this for functions which it implements
15142 to always fail with ENOSYS. Some functions are actually named
15143 something starting with __ and the normal name is an alias. */
15144 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15152 if { (eval echo configure:15153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15154 eval "ac_cv_func__spawnlp=yes"
15156 echo "configure: failed program was:" >&5
15157 cat conftest.$ac_ext >&5
15159 eval "ac_cv_func__spawnlp=no"
15164 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15165 echo "$ac_t""yes" 1>&6
15166 cat >> confdefs.h <<\EOF
15167 #define HAVE_SPAWNLP 1
15171 echo "$ac_t""no" 1>&6
15175 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15176 echo "configure:15177: checking for _snprintf" >&5
15177 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15178 echo $ac_n "(cached) $ac_c" 1>&6
15180 cat > conftest.$ac_ext <<EOF
15181 #line 15182 "configure"
15182 #include "confdefs.h"
15183 /* System header to define __stub macros and hopefully few prototypes,
15184 which can conflict with char _snprintf(); below. */
15185 #include <assert.h>
15186 /* Override any gcc2 internal prototype to avoid an error. */
15187 /* We use char because int might match the return type of a gcc2
15188 builtin and then its argument prototype would still apply. */
15194 /* The GNU C library defines this for functions which it implements
15195 to always fail with ENOSYS. Some functions are actually named
15196 something starting with __ and the normal name is an alias. */
15197 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15205 if { (eval echo configure:15206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15207 eval "ac_cv_func__snprintf=yes"
15209 echo "configure: failed program was:" >&5
15210 cat conftest.$ac_ext >&5
15212 eval "ac_cv_func__snprintf=no"
15217 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15218 echo "$ac_t""yes" 1>&6
15219 ac_cv_func_snprintf=yes
15220 cat >> confdefs.h <<\EOF
15221 #define snprintf _snprintf
15226 echo "$ac_t""no" 1>&6
15230 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15231 echo "configure:15232: checking for _vsnprintf" >&5
15232 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15233 echo $ac_n "(cached) $ac_c" 1>&6
15235 cat > conftest.$ac_ext <<EOF
15236 #line 15237 "configure"
15237 #include "confdefs.h"
15238 /* System header to define __stub macros and hopefully few prototypes,
15239 which can conflict with char _vsnprintf(); below. */
15240 #include <assert.h>
15241 /* Override any gcc2 internal prototype to avoid an error. */
15242 /* We use char because int might match the return type of a gcc2
15243 builtin and then its argument prototype would still apply. */
15249 /* The GNU C library defines this for functions which it implements
15250 to always fail with ENOSYS. Some functions are actually named
15251 something starting with __ and the normal name is an alias. */
15252 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15260 if { (eval echo configure:15261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15262 eval "ac_cv_func__vsnprintf=yes"
15264 echo "configure: failed program was:" >&5
15265 cat conftest.$ac_ext >&5
15267 eval "ac_cv_func__vsnprintf=no"
15272 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15273 echo "$ac_t""yes" 1>&6
15274 ac_cv_func_vsnprintf=yes
15275 cat >> confdefs.h <<\EOF
15276 #define vsnprintf _vsnprintf
15281 echo "$ac_t""no" 1>&6
15285 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15286 echo "configure:15287: checking for vprintf" >&5
15287 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15288 echo $ac_n "(cached) $ac_c" 1>&6
15290 cat > conftest.$ac_ext <<EOF
15291 #line 15292 "configure"
15292 #include "confdefs.h"
15293 /* System header to define __stub macros and hopefully few prototypes,
15294 which can conflict with char vprintf(); below. */
15295 #include <assert.h>
15296 /* Override any gcc2 internal prototype to avoid an error. */
15297 /* We use char because int might match the return type of a gcc2
15298 builtin and then its argument prototype would still apply. */
15304 /* The GNU C library defines this for functions which it implements
15305 to always fail with ENOSYS. Some functions are actually named
15306 something starting with __ and the normal name is an alias. */
15307 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15315 if { (eval echo configure:15316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15317 eval "ac_cv_func_vprintf=yes"
15319 echo "configure: failed program was:" >&5
15320 cat conftest.$ac_ext >&5
15322 eval "ac_cv_func_vprintf=no"
15327 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15328 echo "$ac_t""yes" 1>&6
15329 cat >> confdefs.h <<\EOF
15330 #define HAVE_VPRINTF 1
15334 echo "$ac_t""no" 1>&6
15337 if test "$ac_cv_func_vprintf" != yes; then
15338 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15339 echo "configure:15340: checking for _doprnt" >&5
15340 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15341 echo $ac_n "(cached) $ac_c" 1>&6
15343 cat > conftest.$ac_ext <<EOF
15344 #line 15345 "configure"
15345 #include "confdefs.h"
15346 /* System header to define __stub macros and hopefully few prototypes,
15347 which can conflict with char _doprnt(); below. */
15348 #include <assert.h>
15349 /* Override any gcc2 internal prototype to avoid an error. */
15350 /* We use char because int might match the return type of a gcc2
15351 builtin and then its argument prototype would still apply. */
15357 /* The GNU C library defines this for functions which it implements
15358 to always fail with ENOSYS. Some functions are actually named
15359 something starting with __ and the normal name is an alias. */
15360 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15368 if { (eval echo configure:15369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15370 eval "ac_cv_func__doprnt=yes"
15372 echo "configure: failed program was:" >&5
15373 cat conftest.$ac_ext >&5
15375 eval "ac_cv_func__doprnt=no"
15380 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15381 echo "$ac_t""yes" 1>&6
15382 cat >> confdefs.h <<\EOF
15383 #define HAVE_DOPRNT 1
15387 echo "$ac_t""no" 1>&6
15393 if test $ac_cv_func_vprintf = yes ; then
15394 for ac_func in vsnprintf vsprintf
15396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15397 echo "configure:15398: checking for $ac_func" >&5
15398 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15399 echo $ac_n "(cached) $ac_c" 1>&6
15401 cat > conftest.$ac_ext <<EOF
15402 #line 15403 "configure"
15403 #include "confdefs.h"
15404 /* System header to define __stub macros and hopefully few prototypes,
15405 which can conflict with char $ac_func(); below. */
15406 #include <assert.h>
15407 /* Override any gcc2 internal prototype to avoid an error. */
15408 /* We use char because int might match the return type of a gcc2
15409 builtin and then its argument prototype would still apply. */
15415 /* The GNU C library defines this for functions which it implements
15416 to always fail with ENOSYS. Some functions are actually named
15417 something starting with __ and the normal name is an alias. */
15418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15426 if { (eval echo configure:15427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15428 eval "ac_cv_func_$ac_func=yes"
15430 echo "configure: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15433 eval "ac_cv_func_$ac_func=no"
15438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15439 echo "$ac_t""yes" 1>&6
15440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15441 cat >> confdefs.h <<EOF
15442 #define $ac_tr_func 1
15446 echo "$ac_t""no" 1>&6
15504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15505 echo "configure:15506: checking for $ac_func" >&5
15506 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15507 echo $ac_n "(cached) $ac_c" 1>&6
15509 cat > conftest.$ac_ext <<EOF
15510 #line 15511 "configure"
15511 #include "confdefs.h"
15512 /* System header to define __stub macros and hopefully few prototypes,
15513 which can conflict with char $ac_func(); below. */
15514 #include <assert.h>
15515 /* Override any gcc2 internal prototype to avoid an error. */
15516 /* We use char because int might match the return type of a gcc2
15517 builtin and then its argument prototype would still apply. */
15523 /* The GNU C library defines this for functions which it implements
15524 to always fail with ENOSYS. Some functions are actually named
15525 something starting with __ and the normal name is an alias. */
15526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15534 if { (eval echo configure:15535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15536 eval "ac_cv_func_$ac_func=yes"
15538 echo "configure: failed program was:" >&5
15539 cat conftest.$ac_ext >&5
15541 eval "ac_cv_func_$ac_func=no"
15546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15547 echo "$ac_t""yes" 1>&6
15548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15549 cat >> confdefs.h <<EOF
15550 #define $ac_tr_func 1
15554 echo "$ac_t""no" 1>&6
15559 for ac_func in getopt tempnam
15561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15562 echo "configure:15563: checking for $ac_func" >&5
15563 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15564 echo $ac_n "(cached) $ac_c" 1>&6
15566 cat > conftest.$ac_ext <<EOF
15567 #line 15568 "configure"
15568 #include "confdefs.h"
15569 /* System header to define __stub macros and hopefully few prototypes,
15570 which can conflict with char $ac_func(); below. */
15571 #include <assert.h>
15572 /* Override any gcc2 internal prototype to avoid an error. */
15573 /* We use char because int might match the return type of a gcc2
15574 builtin and then its argument prototype would still apply. */
15580 /* The GNU C library defines this for functions which it implements
15581 to always fail with ENOSYS. Some functions are actually named
15582 something starting with __ and the normal name is an alias. */
15583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15591 if { (eval echo configure:15592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15593 eval "ac_cv_func_$ac_func=yes"
15595 echo "configure: failed program was:" >&5
15596 cat conftest.$ac_ext >&5
15598 eval "ac_cv_func_$ac_func=no"
15603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15604 echo "$ac_t""yes" 1>&6
15605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15606 cat >> confdefs.h <<EOF
15607 #define $ac_tr_func 1
15611 echo "$ac_t""no" 1>&6
15612 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15618 if test "$ac_cv_func_getopt" != yes; then
15619 LIBSRCS="$LIBSRCS getopt.c"
15622 if test "$ac_cv_func_tempnam" != yes; then
15623 LIBSRCS="$LIBSRCS tempnam.c"
15626 # Check Configuration
15627 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15628 echo "configure:15629: checking declaration of sys_errlist" >&5
15629 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15630 echo $ac_n "(cached) $ac_c" 1>&6
15633 cat > conftest.$ac_ext <<EOF
15634 #line 15635 "configure"
15635 #include "confdefs.h"
15638 #include <sys/types.h>
15641 #include <stdlib.h>
15644 char *c = (char *) *sys_errlist
15647 if { (eval echo configure:15648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15649 ol_cv_dcl_sys_errlist=yes
15650 ol_cv_have_sys_errlist=yes
15652 echo "configure: failed program was:" >&5
15653 cat conftest.$ac_ext >&5
15655 ol_cv_dcl_sys_errlist=no
15660 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15662 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15663 if test $ol_cv_dcl_sys_errlist = no ; then
15664 cat >> confdefs.h <<\EOF
15665 #define DECL_SYS_ERRLIST 1
15669 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15670 echo "configure:15671: checking existence of sys_errlist" >&5
15671 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15672 echo $ac_n "(cached) $ac_c" 1>&6
15675 cat > conftest.$ac_ext <<EOF
15676 #line 15677 "configure"
15677 #include "confdefs.h"
15680 char *c = (char *) *sys_errlist
15683 if { (eval echo configure:15684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15685 ol_cv_have_sys_errlist=yes
15687 echo "configure: failed program was:" >&5
15688 cat conftest.$ac_ext >&5
15690 ol_cv_have_sys_errlist=no
15695 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15697 if test $ol_cv_have_sys_errlist = yes ; then
15698 cat >> confdefs.h <<\EOF
15699 #define HAVE_SYS_ERRLIST 1
15706 if test "$ol_enable_debug" != no ; then
15707 cat >> confdefs.h <<\EOF
15708 #define LDAP_DEBUG 1
15712 if test "$ol_enable_syslog" = yes ; then
15713 cat >> confdefs.h <<\EOF
15714 #define LDAP_SYSLOG 1
15718 if test "$ol_enable_libui" = yes ; then
15719 cat >> confdefs.h <<\EOF
15720 #define LDAP_LIBUI 1
15724 if test "$ol_enable_cache" = no ; then
15725 cat >> confdefs.h <<\EOF
15726 #define LDAP_NOCACHE 1
15730 if test "$ol_link_kbind" != no ; then
15731 cat >> confdefs.h <<\EOF
15732 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15736 if test "$ol_enable_proctitle" != no ; then
15737 cat >> confdefs.h <<\EOF
15738 #define LDAP_PROCTITLE 1
15742 if test "$ol_enable_referrals" != no ; then
15743 cat >> confdefs.h <<\EOF
15744 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15748 if test "$ol_enable_cldap" != no ; then
15749 cat >> confdefs.h <<\EOF
15750 #define LDAP_CONNECTIONLESS 1
15754 if test "$ol_enable_ldapi" != no; then
15755 cat >> confdefs.h <<\EOF
15756 #define USE_PF_LOCAL 1
15761 if test "$ol_enable_cleartext" != no ; then
15762 cat >> confdefs.h <<\EOF
15763 #define SLAPD_CLEARTEXT 1
15767 if test "$ol_enable_crypt" != no ; then
15768 cat >> confdefs.h <<\EOF
15769 #define SLAPD_CRYPT 1
15773 if test "$ol_link_kpasswd" != no ; then
15774 cat >> confdefs.h <<\EOF
15775 #define SLAPD_KPASSWD 1
15779 if test "$ol_link_spasswd" != no ; then
15780 cat >> confdefs.h <<\EOF
15781 #define SLAPD_SPASSWD 1
15785 if test "$ol_enable_multimaster" != no ; then
15786 cat >> confdefs.h <<\EOF
15787 #define SLAPD_MULTIMASTER 1
15791 if test "$ol_enable_phonetic" != no ; then
15792 cat >> confdefs.h <<\EOF
15793 #define SLAPD_PHONETIC 1
15797 if test "$ol_enable_rlookups" != no ; then
15798 cat >> confdefs.h <<\EOF
15799 #define SLAPD_RLOOKUPS 1
15803 if test "$ol_enable_aci" != no ; then
15804 cat >> confdefs.h <<\EOF
15805 #define SLAPD_ACI_ENABLED 1
15810 if test "$ol_link_modules" != no ; then
15811 cat >> confdefs.h <<\EOF
15812 #define SLAPD_MODULES 1
15816 SLAPD_MODULES_LDFLAGS="-dlopen self"
15819 if test "$ol_link_bdb2" != no ; then
15820 cat >> confdefs.h <<\EOF
15821 #define SLAPD_BDB2 1
15826 if test "$ol_with_bdb2_module" != static ; then
15827 cat >> confdefs.h <<\EOF
15828 #define SLAPD_BDB2_DYNAMIC 1
15832 BUILD_BDB2_DYNAMIC=shared
15833 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
15837 if test "$ol_link_dnssrv" != no ; then
15838 cat >> confdefs.h <<\EOF
15839 #define SLAPD_DNSSRV 1
15844 if test "$ol_with_dnssrv_module" != static ; then
15845 cat >> confdefs.h <<\EOF
15846 #define SLAPD_DNSSRV_DYNAMIC 1
15850 BUILD_DNSSRV_DYNAMIC=shared
15851 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15855 if test "$ol_enable_ldap" != no ; then
15856 cat >> confdefs.h <<\EOF
15857 #define SLAPD_LDAP 1
15862 if test "$ol_with_ldap_module" != static ; then
15863 cat >> confdefs.h <<\EOF
15864 #define SLAPD_LDAP_DYNAMIC 1
15868 BUILD_LDAP_DYNAMIC=shared
15869 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15873 if test "$ol_link_ldbm" != no ; then
15874 cat >> confdefs.h <<\EOF
15875 #define SLAPD_LDBM 1
15880 if test "$ol_with_ldbm_module" != static ; then
15881 cat >> confdefs.h <<\EOF
15882 #define SLAPD_LDBM_DYNAMIC 1
15886 BUILD_LDBM_DYNAMIC=shared
15887 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15891 if test "$ol_enable_passwd" != no ; then
15892 cat >> confdefs.h <<\EOF
15893 #define SLAPD_PASSWD 1
15898 if test "$ol_with_passwd_module" != static ; then
15899 cat >> confdefs.h <<\EOF
15900 #define SLAPD_PASSWD_DYNAMIC 1
15904 BUILD_PASSWD_DYNAMIC=shared
15905 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15909 if test "$ol_link_perl" != no ; then
15910 cat >> confdefs.h <<\EOF
15911 #define SLAPD_PERL 1
15916 if test "$ol_with_perl_module" != static ; then
15917 cat >> confdefs.h <<\EOF
15918 #define SLAPD_PERL_DYNAMIC 1
15922 BUILD_PERL_DYNAMIC=shared
15923 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15927 if test "$ol_enable_shell" != no ; then
15928 cat >> confdefs.h <<\EOF
15929 #define SLAPD_SHELL 1
15934 if test "$ol_with_shell_module" != static ; then
15935 cat >> confdefs.h <<\EOF
15936 #define SLAPD_SHELL_DYNAMIC 1
15940 BUILD_SHELL_DYNAMIC=shared
15941 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15945 if test "$ol_enable_tcl" != no ; then
15946 cat >> confdefs.h <<\EOF
15947 #define SLAPD_TCL 1
15952 if test "$ol_with_tcl_module" != static; then
15953 cat >> confdefs.h <<\EOF
15954 #define SLAPD_TCL_DYNAMIC 1
15958 BUILD_TCL_DYNAMIC=shared
15959 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15963 if test "$ol_enable_sql" != no ; then
15964 cat >> confdefs.h <<\EOF
15965 #define SLAPD_SQL 1
15970 SLAPD_SQL_LIBS=-liodbc
15971 if test "$ol_with_sql_module" != static; then
15972 cat >> confdefs.h <<\EOF
15973 #define SLAPD_SQL_DYNAMIC 1
15977 BUILD_SQL_DYNAMIC=shared
15978 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15982 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15983 $BUILD_SLAPD = yes ; then
15988 if test "$LINK_BINS_DYNAMIC" = yes; then
15990 LT_LIB_LINKAGE=shared
15993 LT_LIB_LINKAGE=static
15996 if test "$ac_cv_mingw32" = yes ; then
16069 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16071 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16072 # Let make expand exec_prefix.
16073 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16075 # Any assignment to VPATH causes Sun make to only execute
16076 # the first set of double-colon rules, so remove it if not needed.
16077 # If there is a colon in the path, we need to keep it.
16078 if test "x$srcdir" = x.; then
16079 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16082 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16084 DEFS=-DHAVE_CONFIG_H
16086 # Without the "./", some shells look in PATH for config.status.
16087 : ${CONFIG_STATUS=./config.status}
16089 echo creating $CONFIG_STATUS
16090 rm -f $CONFIG_STATUS
16091 cat > $CONFIG_STATUS <<EOF
16093 # Generated automatically by configure.
16094 # Run this file to recreate the current configuration.
16095 # This directory was configured as follows,
16096 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16098 # $0 $ac_configure_args
16100 # Compiler output produced by configure, useful for debugging
16101 # configure, is in ./config.log if it exists.
16103 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16106 case "\$ac_option" in
16107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16108 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16109 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16110 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16111 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16113 -help | --help | --hel | --he | --h)
16114 echo "\$ac_cs_usage"; exit 0 ;;
16115 *) echo "\$ac_cs_usage"; exit 1 ;;
16119 ac_given_srcdir=$srcdir
16120 ac_given_INSTALL="$INSTALL"
16122 trap 'rm -fr `echo "\
16123 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16124 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16125 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16126 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16127 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16128 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16129 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16130 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16131 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16132 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16133 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16134 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16135 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16136 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16137 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16138 include/Makefile:build/top.mk:include/Makefile.in \
16139 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16140 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16141 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16142 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16143 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16144 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16145 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16146 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16147 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16148 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16149 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16150 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16151 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16152 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16153 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16154 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16155 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16156 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16157 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16158 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16159 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16160 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16161 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16162 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16163 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16164 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16165 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16166 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16167 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16169 cat >> $CONFIG_STATUS <<EOF
16171 # Protect against being on the right side of a sed subst in config.status.
16172 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16173 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16177 s%@CFLAGS@%$CFLAGS%g
16178 s%@CPPFLAGS@%$CPPFLAGS%g
16179 s%@CXXFLAGS@%$CXXFLAGS%g
16180 s%@FFLAGS@%$FFLAGS%g
16182 s%@LDFLAGS@%$LDFLAGS%g
16184 s%@exec_prefix@%$exec_prefix%g
16185 s%@prefix@%$prefix%g
16186 s%@program_transform_name@%$program_transform_name%g
16187 s%@bindir@%$bindir%g
16188 s%@sbindir@%$sbindir%g
16189 s%@libexecdir@%$libexecdir%g
16190 s%@datadir@%$datadir%g
16191 s%@sysconfdir@%$sysconfdir%g
16192 s%@sharedstatedir@%$sharedstatedir%g
16193 s%@localstatedir@%$localstatedir%g
16194 s%@libdir@%$libdir%g
16195 s%@includedir@%$includedir%g
16196 s%@oldincludedir@%$oldincludedir%g
16197 s%@infodir@%$infodir%g
16198 s%@mandir@%$mandir%g
16200 s%@host_alias@%$host_alias%g
16201 s%@host_cpu@%$host_cpu%g
16202 s%@host_vendor@%$host_vendor%g
16203 s%@host_os@%$host_os%g
16204 s%@target@%$target%g
16205 s%@target_alias@%$target_alias%g
16206 s%@target_cpu@%$target_cpu%g
16207 s%@target_vendor@%$target_vendor%g
16208 s%@target_os@%$target_os%g
16210 s%@build_alias@%$build_alias%g
16211 s%@build_cpu@%$build_cpu%g
16212 s%@build_vendor@%$build_vendor%g
16213 s%@build_os@%$build_os%g
16214 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16215 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16216 s%@INSTALL_DATA@%$INSTALL_DATA%g
16217 s%@PACKAGE@%$PACKAGE%g
16218 s%@VERSION@%$VERSION%g
16219 s%@ACLOCAL@%$ACLOCAL%g
16220 s%@AUTOCONF@%$AUTOCONF%g
16221 s%@AUTOMAKE@%$AUTOMAKE%g
16222 s%@AUTOHEADER@%$AUTOHEADER%g
16223 s%@MAKEINFO@%$MAKEINFO%g
16224 s%@install_sh@%$install_sh%g
16227 s%@AMTARFLAGS@%$AMTARFLAGS%g
16228 s%@SET_MAKE@%$SET_MAKE%g
16229 s%@top_builddir@%$top_builddir%g
16230 s%@ldap_subdir@%$ldap_subdir%g
16232 s%@RANLIB@%$RANLIB%g
16234 s%@DLLTOOL@%$DLLTOOL%g
16236 s%@OBJDUMP@%$OBJDUMP%g
16237 s%@LIBTOOL@%$LIBTOOL%g
16239 s%@SENDMAIL@%$SENDMAIL%g
16240 s%@EDITOR@%$EDITOR%g
16241 s%@FINGER@%$FINGER%g
16242 s%@PERLBIN@%$PERLBIN%g
16244 s%@EXEEXT@%$EXEEXT%g
16245 s%@OBJEXT@%$OBJEXT%g
16246 s%@OL_MKDEP@%$OL_MKDEP%g
16247 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16248 s%@LIBOBJS@%$LIBOBJS%g
16249 s%@LIBSRCS@%$LIBSRCS%g
16251 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16252 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16253 s%@DYN_EXT@%$DYN_EXT%g
16254 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16255 s%@BUILD_BDB2@%$BUILD_BDB2%g
16256 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16257 s%@BUILD_LDAP@%$BUILD_LDAP%g
16258 s%@BUILD_LDBM@%$BUILD_LDBM%g
16259 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16260 s%@BUILD_PERL@%$BUILD_PERL%g
16261 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
16262 s%@BUILD_SHELL@%$BUILD_SHELL%g
16263 s%@BUILD_SQL@%$BUILD_SQL%g
16264 s%@BUILD_TCL@%$BUILD_TCL%g
16265 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
16266 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16267 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16268 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16269 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16270 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16271 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16272 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16273 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16274 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16275 s%@LDAP_LIBS@%$LDAP_LIBS%g
16276 s%@LDIF_LIBS@%$LDIF_LIBS%g
16277 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16278 s%@QUIPU_LIBS@%$QUIPU_LIBS%g
16279 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16280 s%@LDBM_LIBS@%$LDBM_LIBS%g
16281 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16282 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16283 s%@WRAP_LIBS@%$WRAP_LIBS%g
16284 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16285 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16286 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16287 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16288 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16289 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16290 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16291 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16292 s%@KRB4_LIBS@%$KRB4_LIBS%g
16293 s%@KRB5_LIBS@%$KRB5_LIBS%g
16294 s%@READLINE_LIBS@%$READLINE_LIBS%g
16295 s%@SASL_LIBS@%$SASL_LIBS%g
16296 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16297 s%@TLS_LIBS@%$TLS_LIBS%g
16298 s%@MODULES_LIBS@%$MODULES_LIBS%g
16299 s%@AUTH_LIBS@%$AUTH_LIBS%g
16300 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16301 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16302 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16307 cat >> $CONFIG_STATUS <<\EOF
16309 # Split the substitutions into bite-sized pieces for seds with
16310 # small command number limits, like on Digital OSF/1 and HP-UX.
16311 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16312 ac_file=1 # Number of current file.
16313 ac_beg=1 # First line for current file.
16314 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16317 while $ac_more_lines; do
16318 if test $ac_beg -gt 1; then
16319 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16321 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16323 if test ! -s conftest.s$ac_file; then
16324 ac_more_lines=false
16325 rm -f conftest.s$ac_file
16327 if test -z "$ac_sed_cmds"; then
16328 ac_sed_cmds="sed -f conftest.s$ac_file"
16330 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16332 ac_file=`expr $ac_file + 1`
16334 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16337 if test -z "$ac_sed_cmds"; then
16342 cat >> $CONFIG_STATUS <<EOF
16344 CONFIG_FILES=\${CONFIG_FILES-"\
16345 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16346 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16347 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16348 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16349 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16350 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16351 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16352 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16353 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16354 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16355 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16356 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16357 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16358 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16359 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16360 include/Makefile:build/top.mk:include/Makefile.in \
16361 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16362 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16363 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16364 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16365 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16366 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16367 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16368 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16369 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16370 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16371 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16372 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16373 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16374 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16375 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16376 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16377 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16378 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16379 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16380 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16381 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16382 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16383 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16384 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16385 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16386 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16387 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16388 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16391 cat >> $CONFIG_STATUS <<\EOF
16392 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16393 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16395 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16396 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16397 *) ac_file_in="${ac_file}.in" ;;
16400 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16402 # Remove last slash and all that follows it. Not all systems have dirname.
16403 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16404 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16405 # The file is in a subdirectory.
16406 test ! -d "$ac_dir" && mkdir "$ac_dir"
16407 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16408 # A "../" for each directory in $ac_dir_suffix.
16409 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16411 ac_dir_suffix= ac_dots=
16414 case "$ac_given_srcdir" in
16416 if test -z "$ac_dots"; then top_srcdir=.
16417 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16418 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16419 *) # Relative path.
16420 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16421 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16424 case "$ac_given_INSTALL" in
16425 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16426 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16429 echo creating "$ac_file"
16431 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16433 *[Mm]akefile*) ac_comsub="1i\\
16434 # $configure_input" ;;
16438 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16440 s%@configure_input@%$configure_input%g
16441 s%@srcdir@%$srcdir%g
16442 s%@top_srcdir@%$top_srcdir%g
16443 s%@INSTALL@%$INSTALL%g
16444 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16448 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16449 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16451 # ac_d sets the value in "#define NAME VALUE" lines.
16452 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16453 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16456 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16457 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16458 ac_uB='\([ ]\)%\1#\2define\3'
16461 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16462 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16463 ac_eB='$%\1#\2define\3'
16467 if test "${CONFIG_HEADERS+set}" != set; then
16469 cat >> $CONFIG_STATUS <<EOF
16470 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16472 cat >> $CONFIG_STATUS <<\EOF
16474 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16475 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16477 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16478 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16479 *) ac_file_in="${ac_file}.in" ;;
16482 echo creating $ac_file
16484 rm -f conftest.frag conftest.in conftest.out
16485 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16486 cat $ac_file_inputs > conftest.in
16490 # Transform confdefs.h into a sed script conftest.vals that substitutes
16491 # the proper values into config.h.in to produce config.h. And first:
16492 # Protect against being on the right side of a sed subst in config.status.
16493 # Protect against being in an unquoted here document in config.status.
16494 rm -f conftest.vals
16495 cat > conftest.hdr <<\EOF
16498 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16502 sed -n -f conftest.hdr confdefs.h > conftest.vals
16505 # This sed command replaces #undef with comments. This is necessary, for
16506 # example, in the case of _POSIX_SOURCE, which is predefined and required
16507 # on some systems where configure will not decide to define it.
16508 cat >> conftest.vals <<\EOF
16509 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16512 # Break up conftest.vals because some shells have a limit on
16513 # the size of here documents, and old seds have small limits too.
16515 rm -f conftest.tail
16518 ac_lines=`grep -c . conftest.vals`
16519 # grep -c gives empty output for an empty file on some AIX systems.
16520 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16521 # Write a limited-size here document to conftest.frag.
16522 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16523 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16525 sed -f conftest.frag conftest.in > conftest.out
16527 mv conftest.out conftest.in
16528 ' >> $CONFIG_STATUS
16529 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16530 rm -f conftest.vals
16531 mv conftest.tail conftest.vals
16533 rm -f conftest.vals
16535 cat >> $CONFIG_STATUS <<\EOF
16536 rm -f conftest.frag conftest.h
16537 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16538 cat conftest.in >> conftest.h
16540 if cmp -s $ac_file conftest.h 2>/dev/null; then
16541 echo "$ac_file is unchanged"
16544 # Remove last slash and all that follows it. Not all systems have dirname.
16545 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16546 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16547 # The file is in a subdirectory.
16548 test ! -d "$ac_dir" && mkdir "$ac_dir"
16551 mv conftest.h $ac_file
16556 cat >> $CONFIG_STATUS <<EOF
16559 cat >> $CONFIG_STATUS <<\EOF
16562 echo Please \"make depend\" to build dependencies
16566 chmod +x $CONFIG_STATUS
16567 rm -fr confdefs* $ac_clean_files
16568 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1