3 # from OpenLDAP: pkg/ldap/configure.in,v 1.305 2000/06/01 21:00:24 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; }
5506 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5507 echo "configure:5508: checking for res_search" >&5
5508 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5514 /* System header to define __stub macros and hopefully few prototypes,
5515 which can conflict with char res_search(); below. */
5517 /* Override any gcc2 internal prototype to avoid an error. */
5518 /* We use char because int might match the return type of a gcc2
5519 builtin and then its argument prototype would still apply. */
5525 /* The GNU C library defines this for functions which it implements
5526 to always fail with ENOSYS. Some functions are actually named
5527 something starting with __ and the normal name is an alias. */
5528 #if defined (__stub_res_search) || defined (__stub___res_search)
5536 if { (eval echo configure:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5538 eval "ac_cv_func_res_search=yes"
5540 echo "configure: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5543 eval "ac_cv_func_res_search=no"
5548 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5549 echo "$ac_t""yes" 1>&6
5552 echo "$ac_t""no" 1>&6
5555 if test $ac_cv_func_res_search = no ; then
5556 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5557 echo "configure:5558: checking for res_search in -lbind" >&5
5558 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5559 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5562 ac_save_LIBS="$LIBS"
5564 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5567 /* Override any gcc2 internal prototype to avoid an error. */
5568 /* We use char because int might match the return type of a gcc2
5569 builtin and then its argument prototype would still apply. */
5576 if { (eval echo configure:5577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5578 eval "ac_cv_lib_$ac_lib_var=yes"
5580 echo "configure: failed program was:" >&5
5581 cat conftest.$ac_ext >&5
5583 eval "ac_cv_lib_$ac_lib_var=no"
5586 LIBS="$ac_save_LIBS"
5589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5590 echo "$ac_t""yes" 1>&6
5591 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5592 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5593 cat >> confdefs.h <<EOF
5594 #define $ac_tr_lib 1
5600 echo "$ac_t""no" 1>&6
5603 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5606 if test $ac_cv_func_res_search = no ; then
5607 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5608 echo "configure:5609: checking for __res_search in -lbind" >&5
5609 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5610 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5613 ac_save_LIBS="$LIBS"
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5618 /* Override any gcc2 internal prototype to avoid an error. */
5619 /* We use char because int might match the return type of a gcc2
5620 builtin and then its argument prototype would still apply. */
5621 char __res_search();
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5629 eval "ac_cv_lib_$ac_lib_var=yes"
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 eval "ac_cv_lib_$ac_lib_var=no"
5637 LIBS="$ac_save_LIBS"
5640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5641 echo "$ac_t""yes" 1>&6
5642 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5643 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5644 cat >> confdefs.h <<EOF
5645 #define $ac_tr_lib 1
5651 echo "$ac_t""no" 1>&6
5654 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5657 if test $ac_cv_func_res_search = no ; then
5658 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5659 echo "configure:5660: checking for res_search in -lresolv" >&5
5660 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5661 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6
5664 ac_save_LIBS="$LIBS"
5665 LIBS="-lresolv $LIBS"
5666 cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure"
5668 #include "confdefs.h"
5669 /* Override any gcc2 internal prototype to avoid an error. */
5670 /* We use char because int might match the return type of a gcc2
5671 builtin and then its argument prototype would still apply. */
5678 if { (eval echo configure:5679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5680 eval "ac_cv_lib_$ac_lib_var=yes"
5682 echo "configure: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5685 eval "ac_cv_lib_$ac_lib_var=no"
5688 LIBS="$ac_save_LIBS"
5691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5692 echo "$ac_t""yes" 1>&6
5693 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5694 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5695 cat >> confdefs.h <<EOF
5696 #define $ac_tr_lib 1
5699 LIBS="-lresolv $LIBS"
5702 echo "$ac_t""no" 1>&6
5705 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5708 if test "$ac_cv_func_res_search" = yes ; then
5709 cat >> confdefs.h <<\EOF
5710 #define HAVE_RES_SEARCH 1
5716 if test $ol_enable_quipu != no ; then
5717 for ac_hdr in quipu/commonarg.h
5719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5721 echo "configure:5722: checking for $ac_hdr" >&5
5722 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5731 { (eval echo configure:5732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5733 if test -z "$ac_err"; then
5735 eval "ac_cv_header_$ac_safe=yes"
5738 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5741 eval "ac_cv_header_$ac_safe=no"
5745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5746 echo "$ac_t""yes" 1>&6
5747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5748 cat >> confdefs.h <<EOF
5749 #define $ac_tr_hdr 1
5753 echo "$ac_t""no" 1>&6
5758 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5760 elif test $ol_enable_quipu = auto ; then
5761 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5763 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5772 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5773 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5775 for ac_hdr in krb5.h
5777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5779 echo "configure:5780: checking for $ac_hdr" >&5
5780 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5781 echo $ac_n "(cached) $ac_c" 1>&6
5783 cat > conftest.$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5789 { (eval echo configure:5790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5791 if test -z "$ac_err"; then
5793 eval "ac_cv_header_$ac_safe=yes"
5796 echo "configure: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5799 eval "ac_cv_header_$ac_safe=no"
5803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5804 echo "$ac_t""yes" 1>&6
5805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5806 cat >> confdefs.h <<EOF
5807 #define $ac_tr_hdr 1
5811 echo "$ac_t""no" 1>&6
5816 if test $ac_cv_header_krb5_h = yes ; then
5817 for ac_hdr in heim_err.h
5819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5821 echo "configure:5822: checking for $ac_hdr" >&5
5822 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5823 echo $ac_n "(cached) $ac_c" 1>&6
5825 cat > conftest.$ac_ext <<EOF
5826 #line 5827 "configure"
5827 #include "confdefs.h"
5830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5831 { (eval echo configure:5832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5833 if test -z "$ac_err"; then
5835 eval "ac_cv_header_$ac_safe=yes"
5838 echo "configure: failed program was:" >&5
5839 cat conftest.$ac_ext >&5
5841 eval "ac_cv_header_$ac_safe=no"
5845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5846 echo "$ac_t""yes" 1>&6
5847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5848 cat >> confdefs.h <<EOF
5849 #define $ac_tr_hdr 1
5853 echo "$ac_t""no" 1>&6
5857 if test $ac_cv_header_heim_err_h = yes ; then
5863 if test $krb5_impl = mit; then
5864 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5865 echo "configure:5866: checking for main in -lkrb5" >&5
5866 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5867 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5870 ac_save_LIBS="$LIBS"
5871 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5872 cat > conftest.$ac_ext <<EOF
5873 #line 5874 "configure"
5874 #include "confdefs.h"
5880 if { (eval echo configure:5881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5882 eval "ac_cv_lib_$ac_lib_var=yes"
5884 echo "configure: failed program was:" >&5
5885 cat conftest.$ac_ext >&5
5887 eval "ac_cv_lib_$ac_lib_var=no"
5890 LIBS="$ac_save_LIBS"
5893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5894 echo "$ac_t""yes" 1>&6
5896 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5898 echo "$ac_t""no" 1>&6
5903 elif test $krb5_impl = heimdal; then
5904 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5905 echo "configure:5906: checking for main in -lkrb5" >&5
5906 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5907 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5908 echo $ac_n "(cached) $ac_c" 1>&6
5910 ac_save_LIBS="$LIBS"
5911 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5912 cat > conftest.$ac_ext <<EOF
5913 #line 5914 "configure"
5914 #include "confdefs.h"
5920 if { (eval echo configure:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5922 eval "ac_cv_lib_$ac_lib_var=yes"
5924 echo "configure: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5927 eval "ac_cv_lib_$ac_lib_var=no"
5930 LIBS="$ac_save_LIBS"
5933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5934 echo "$ac_t""yes" 1>&6
5936 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5938 echo "$ac_t""no" 1>&6
5943 cat >> confdefs.h <<\EOF
5944 #define HAVE_HEIMDAL_KERBEROS 1
5949 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5952 if test $have_krb5 = yes ; then
5955 cat >> confdefs.h <<\EOF
5960 if test $ol_enable_kpasswd != no ; then
5961 ol_link_kpasswd=yes;
5964 if test $ol_with_kerberos = k5only ; then
5965 ol_with_kerberos=found
5968 elif test $ol_with_kerberos != auto ; then
5969 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5975 if test $ol_link_krb5 = yes -a \
5976 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5978 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5982 echo "configure:5983: checking for $ac_hdr" >&5
5983 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5984 echo $ac_n "(cached) $ac_c" 1>&6
5986 cat > conftest.$ac_ext <<EOF
5987 #line 5988 "configure"
5988 #include "confdefs.h"
5991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5992 { (eval echo configure:5993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5994 if test -z "$ac_err"; then
5996 eval "ac_cv_header_$ac_safe=yes"
5999 echo "configure: failed program was:" >&5
6000 cat conftest.$ac_ext >&5
6002 eval "ac_cv_header_$ac_safe=no"
6006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6007 echo "$ac_t""yes" 1>&6
6008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6009 cat >> confdefs.h <<EOF
6010 #define $ac_tr_hdr 1
6014 echo "$ac_t""no" 1>&6
6019 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6020 if test $krb5_impl = mit; then
6021 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6022 echo "configure:6023: checking for main in -lkrb4" >&5
6023 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6024 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 ac_save_LIBS="$LIBS"
6028 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6029 cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6037 if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6039 eval "ac_cv_lib_$ac_lib_var=yes"
6041 echo "configure: failed program was:" >&5
6042 cat conftest.$ac_ext >&5
6044 eval "ac_cv_lib_$ac_lib_var=no"
6047 LIBS="$ac_save_LIBS"
6050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6051 echo "$ac_t""yes" 1>&6
6053 KRB4_LIBS="-lkrb4 -ldes425"
6055 echo "$ac_t""no" 1>&6
6060 elif test $krb5_impl = heimdal; then
6061 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6062 echo "configure:6063: checking for main in -lkrb4" >&5
6063 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6064 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6067 ac_save_LIBS="$LIBS"
6068 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6077 if { (eval echo configure:6078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6079 eval "ac_cv_lib_$ac_lib_var=yes"
6081 echo "configure: failed program was:" >&5
6082 cat conftest.$ac_ext >&5
6084 eval "ac_cv_lib_$ac_lib_var=no"
6087 LIBS="$ac_save_LIBS"
6090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6091 echo "$ac_t""yes" 1>&6
6095 echo "$ac_t""no" 1>&6
6102 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6105 if test $have_k425 = yes ; then
6106 ol_with_kerberos=found
6109 cat >> confdefs.h <<\EOF
6110 #define HAVE_KRB425 1
6113 cat >> confdefs.h <<\EOF
6118 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6119 echo "configure:6120: checking for des_debug in Kerberos libraries" >&5
6120 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6121 echo $ac_n "(cached) $ac_c" 1>&6
6125 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6126 cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure"
6128 #include "confdefs.h"
6130 #include <kerberosIV/krb.h>
6131 #include <kerberosIV/des.h>
6132 extern int des_debug;
6140 if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6142 ol_cv_var_des_debug=yes
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6147 ol_cv_var_des_debug=no
6154 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6156 if test $ol_cv_var_des_debug = yes ; then
6157 cat >> confdefs.h <<\EOF
6158 #define HAVE_DES_DEBUG 1
6168 if test $ol_link_krb5 = yes ; then
6169 ol_with_kerberos=found
6172 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6173 -o $ol_with_kerberos = kth ; then
6175 for ac_hdr in krb.h des.h krb-archaeology.h
6177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6179 echo "configure:6180: checking for $ac_hdr" >&5
6180 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6181 echo $ac_n "(cached) $ac_c" 1>&6
6183 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6189 { (eval echo configure:6190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6191 if test -z "$ac_err"; then
6193 eval "ac_cv_header_$ac_safe=yes"
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6199 eval "ac_cv_header_$ac_safe=no"
6203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6204 echo "$ac_t""yes" 1>&6
6205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6206 cat >> confdefs.h <<EOF
6207 #define $ac_tr_hdr 1
6211 echo "$ac_t""no" 1>&6
6216 if test $ac_cv_header_krb_h = yes ; then
6217 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6218 echo "configure:6219: checking for main in -lkrb" >&5
6219 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6220 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6221 echo $ac_n "(cached) $ac_c" 1>&6
6223 ac_save_LIBS="$LIBS"
6224 LIBS="-lkrb -ldes $LIBS"
6225 cat > conftest.$ac_ext <<EOF
6226 #line 6227 "configure"
6227 #include "confdefs.h"
6233 if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6235 eval "ac_cv_lib_$ac_lib_var=yes"
6237 echo "configure: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6240 eval "ac_cv_lib_$ac_lib_var=no"
6243 LIBS="$ac_save_LIBS"
6246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6247 echo "$ac_t""yes" 1>&6
6250 echo "$ac_t""no" 1>&6
6255 if test $have_k4 = yes ; then
6256 ol_with_kerberos=found
6259 cat >> confdefs.h <<\EOF
6264 KRB4_LIBS="-lkrb -ldes"
6266 if test $ac_cv_header_krb_archaeology_h = yes ; then
6267 cat >> confdefs.h <<\EOF
6268 #define HAVE_KTH_KERBEROS 1
6276 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6277 ol_link_kpasswd=yes;
6280 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6281 cat >> confdefs.h <<\EOF
6282 #define HAVE_KERBEROS 1
6286 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6287 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6291 if test $ol_with_tls != no ; then
6293 for ac_hdr in openssl/ssl.h ssl.h
6295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6297 echo "configure:6298: checking for $ac_hdr" >&5
6298 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6299 echo $ac_n "(cached) $ac_c" 1>&6
6301 cat > conftest.$ac_ext <<EOF
6302 #line 6303 "configure"
6303 #include "confdefs.h"
6306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6307 { (eval echo configure:6308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6309 if test -z "$ac_err"; then
6311 eval "ac_cv_header_$ac_safe=yes"
6314 echo "configure: failed program was:" >&5
6315 cat conftest.$ac_ext >&5
6317 eval "ac_cv_header_$ac_safe=no"
6321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6322 echo "$ac_t""yes" 1>&6
6323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6324 cat >> confdefs.h <<EOF
6325 #define $ac_tr_hdr 1
6329 echo "$ac_t""no" 1>&6
6334 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6335 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6336 echo "configure:6337: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6337 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6338 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6339 echo $ac_n "(cached) $ac_c" 1>&6
6341 ac_save_LIBS="$LIBS"
6342 LIBS="-lssl -lcrypto $LIBS"
6343 cat > conftest.$ac_ext <<EOF
6344 #line 6345 "configure"
6345 #include "confdefs.h"
6346 /* Override any gcc2 internal prototype to avoid an error. */
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6349 char SSLeay_add_ssl_algorithms();
6352 SSLeay_add_ssl_algorithms()
6355 if { (eval echo configure:6356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6357 eval "ac_cv_lib_$ac_lib_var=yes"
6359 echo "configure: failed program was:" >&5
6360 cat conftest.$ac_ext >&5
6362 eval "ac_cv_lib_$ac_lib_var=no"
6365 LIBS="$ac_save_LIBS"
6368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6369 echo "$ac_t""yes" 1>&6
6373 echo "$ac_t""no" 1>&6
6378 if test $have_ssleay = no ; then
6379 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6380 echo "configure:6381: checking for SSL_library_init in -lssl" >&5
6381 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6382 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6383 echo $ac_n "(cached) $ac_c" 1>&6
6385 ac_save_LIBS="$LIBS"
6386 LIBS="-lssl -lcrypto $LIBS"
6387 cat > conftest.$ac_ext <<EOF
6388 #line 6389 "configure"
6389 #include "confdefs.h"
6390 /* Override any gcc2 internal prototype to avoid an error. */
6391 /* We use char because int might match the return type of a gcc2
6392 builtin and then its argument prototype would still apply. */
6393 char SSL_library_init();
6399 if { (eval echo configure:6400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6401 eval "ac_cv_lib_$ac_lib_var=yes"
6403 echo "configure: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6406 eval "ac_cv_lib_$ac_lib_var=no"
6409 LIBS="$ac_save_LIBS"
6412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6413 echo "$ac_t""yes" 1>&6
6417 echo "$ac_t""no" 1>&6
6423 if test $have_ssleay = no ; then
6424 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6425 echo "configure:6426: checking for ssl3_accept in -lssl" >&5
6426 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6427 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6428 echo $ac_n "(cached) $ac_c" 1>&6
6430 ac_save_LIBS="$LIBS"
6431 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6432 cat > conftest.$ac_ext <<EOF
6433 #line 6434 "configure"
6434 #include "confdefs.h"
6435 /* Override any gcc2 internal prototype to avoid an error. */
6436 /* We use char because int might match the return type of a gcc2
6437 builtin and then its argument prototype would still apply. */
6444 if { (eval echo configure:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6446 eval "ac_cv_lib_$ac_lib_var=yes"
6448 echo "configure: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6451 eval "ac_cv_lib_$ac_lib_var=no"
6454 LIBS="$ac_save_LIBS"
6457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6458 echo "$ac_t""yes" 1>&6
6462 echo "$ac_t""no" 1>&6
6468 if test $have_ssleay = yes ; then
6472 cat >> confdefs.h <<\EOF
6473 #define HAVE_SSLEAY 1
6477 if test $need_rsaref = yes; then
6478 cat >> confdefs.h <<\EOF
6479 #define HAVE_RSAREF 1
6483 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6485 TLS_LIBS="-lssl -lcrypto"
6491 if test $ol_link_tls = yes ; then
6492 cat >> confdefs.h <<\EOF
6500 gethostbyname_r gethostbyaddr_r \
6503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6504 echo "configure:6505: checking for $ac_func" >&5
6505 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6508 cat > conftest.$ac_ext <<EOF
6509 #line 6510 "configure"
6510 #include "confdefs.h"
6511 /* System header to define __stub macros and hopefully few prototypes,
6512 which can conflict with char $ac_func(); below. */
6514 /* Override any gcc2 internal prototype to avoid an error. */
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6522 /* The GNU C library defines this for functions which it implements
6523 to always fail with ENOSYS. Some functions are actually named
6524 something starting with __ and the normal name is an alias. */
6525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6533 if { (eval echo configure:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6535 eval "ac_cv_func_$ac_func=yes"
6537 echo "configure: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6540 eval "ac_cv_func_$ac_func=no"
6545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6546 echo "$ac_t""yes" 1>&6
6547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6548 cat >> confdefs.h <<EOF
6549 #define $ac_tr_func 1
6553 echo "$ac_t""no" 1>&6
6558 if test "$ac_cv_func_ctime_r" = no ; then
6559 ol_cv_func_ctime_r_nargs=0
6561 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6562 echo "configure:6563: checking number of arguments of ctime_r" >&5
6563 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6571 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6574 if { (eval echo configure:6575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6576 ol_cv_func_ctime_r_nargs3=yes
6578 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6581 ol_cv_func_ctime_r_nargs3=no
6585 cat > conftest.$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6590 time_t ti; char *buffer; ctime_r(&ti,buffer);
6593 if { (eval echo configure:6594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6595 ol_cv_func_ctime_r_nargs2=yes
6597 echo "configure: failed program was:" >&5
6598 cat conftest.$ac_ext >&5
6600 ol_cv_func_ctime_r_nargs2=no
6604 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6605 $ol_cv_func_ctime_r_nargs2 = no ; then
6607 ol_cv_func_ctime_r_nargs=3
6609 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6610 $ol_cv_func_ctime_r_nargs2 = yes ; then
6612 ol_cv_func_ctime_r_nargs=2
6615 ol_cv_func_ctime_r_nargs=0
6620 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6622 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6623 cat >> confdefs.h <<EOF
6624 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6631 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6632 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6633 echo "configure:6634: checking number of arguments of gethostbyname_r" >&5
6634 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6635 echo $ac_n "(cached) $ac_c" 1>&6
6637 cat > conftest.$ac_ext <<EOF
6638 #line 6639 "configure"
6639 #include "confdefs.h"
6640 #include <sys/types.h>
6641 #include <sys/socket.h>
6642 #include <netinet/in.h>
6644 #define BUFSIZE (sizeof(struct hostent)+10)
6646 struct hostent hent; char buffer[BUFSIZE];
6647 int bufsize=BUFSIZE;int h_errno;
6648 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6649 buffer, bufsize, &h_errno);
6652 if { (eval echo configure:6653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6654 ol_cv_func_gethostbyname_r_nargs5=yes
6656 echo "configure: failed program was:" >&5
6657 cat conftest.$ac_ext >&5
6659 ol_cv_func_gethostbyname_r_nargs5=no
6663 cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 #include <sys/types.h>
6667 #include <sys/socket.h>
6668 #include <netinet/in.h>
6670 #define BUFSIZE (sizeof(struct hostent)+10)
6672 struct hostent hent;struct hostent *rhent;
6673 char buffer[BUFSIZE];
6674 int bufsize=BUFSIZE;int h_errno;
6675 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6679 if { (eval echo configure:6680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6681 ol_cv_func_gethostbyname_r_nargs6=yes
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6686 ol_cv_func_gethostbyname_r_nargs6=no
6690 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6691 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6693 ol_cv_func_gethostbyname_r_nargs=5
6695 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6696 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6698 ol_cv_func_gethostbyname_r_nargs=6
6701 ol_cv_func_gethostbyname_r_nargs=0
6706 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6707 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6708 cat >> confdefs.h <<EOF
6709 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6715 ol_cv_func_gethostbyname_r_nargs=0
6718 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6719 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6720 echo "configure:6721: checking number of arguments of gethostbyaddr_r" >&5
6721 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 #include <sys/types.h>
6728 #include <sys/socket.h>
6729 #include <netinet/in.h>
6731 #define BUFSIZE (sizeof(struct hostent)+10)
6733 struct hostent hent; char buffer[BUFSIZE];
6735 size_t alen=sizeof(struct in_addr);
6736 int bufsize=BUFSIZE;int h_errno;
6737 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6738 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6741 if { (eval echo configure:6742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6743 ol_cv_func_gethostbyaddr_r_nargs7=yes
6745 echo "configure: failed program was:" >&5
6746 cat conftest.$ac_ext >&5
6748 ol_cv_func_gethostbyaddr_r_nargs7=no
6752 cat > conftest.$ac_ext <<EOF
6753 #line 6754 "configure"
6754 #include "confdefs.h"
6755 #include <sys/types.h>
6756 #include <sys/socket.h>
6757 #include <netinet/in.h>
6759 #define BUFSIZE (sizeof(struct hostent)+10)
6761 struct hostent hent;
6762 struct hostent *rhent; char buffer[BUFSIZE];
6764 size_t alen=sizeof(struct in_addr);
6765 int bufsize=BUFSIZE;int h_errno;
6766 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6767 alen, AF_INET, &hent, buffer, bufsize,
6771 if { (eval echo configure:6772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6773 ol_cv_func_gethostbyaddr_r_nargs8=yes
6775 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6778 ol_cv_func_gethostbyaddr_r_nargs8=no
6782 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6783 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6785 ol_cv_func_gethostbyaddr_r_nargs=7
6787 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6788 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6790 ol_cv_func_gethostbyaddr_r_nargs=8
6793 ol_cv_func_gethostbyaddr_r_nargs=0
6798 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6799 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6800 cat >> confdefs.h <<EOF
6801 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6807 ol_cv_func_gethostbyaddr_r_nargs=0
6810 if test "$ac_cv_func_ctime_r" = yes \
6811 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6812 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6813 -a "$ac_cv_func_gethostbyname_r" = yes \
6814 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6815 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6816 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6817 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6818 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6821 cat >> confdefs.h <<\EOF
6822 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6829 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6830 -o $ol_with_threads = nt ; then
6833 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6834 echo "configure:6835: checking for NT Threads" >&5
6835 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6836 echo $ac_n "(cached) $ac_c" 1>&6
6839 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6840 echo "configure:6841: checking for _beginthread" >&5
6841 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6844 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6847 /* System header to define __stub macros and hopefully few prototypes,
6848 which can conflict with char _beginthread(); below. */
6850 /* Override any gcc2 internal prototype to avoid an error. */
6851 /* We use char because int might match the return type of a gcc2
6852 builtin and then its argument prototype would still apply. */
6853 char _beginthread();
6858 /* The GNU C library defines this for functions which it implements
6859 to always fail with ENOSYS. Some functions are actually named
6860 something starting with __ and the normal name is an alias. */
6861 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6869 if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6871 eval "ac_cv_func__beginthread=yes"
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6876 eval "ac_cv_func__beginthread=no"
6881 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6882 echo "$ac_t""yes" 1>&6
6883 ol_cv_nt_threads=yes
6885 echo "$ac_t""no" 1>&6
6892 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6894 if test $ol_cv_nt_threads = yes ; then
6895 cat >> confdefs.h <<\EOF
6896 #define HAVE_NT_THREADS 1
6902 if test "$ol_cv_nt_threads" = yes ; then
6904 ol_with_threads=found
6905 ol_with_yielding_select=yes
6907 cat >> confdefs.h <<\EOF
6908 #define HAVE_NT_SERVICE_MANAGER 1
6911 cat >> confdefs.h <<\EOF
6912 #define HAVE_NT_EVENT_LOG 1
6917 if test $ol_with_threads = nt ; then
6918 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6922 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6923 -o $ol_with_threads = posix ; then
6925 for ac_hdr in pthread.h
6927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6929 echo "configure:6930: checking for $ac_hdr" >&5
6930 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6931 echo $ac_n "(cached) $ac_c" 1>&6
6933 cat > conftest.$ac_ext <<EOF
6934 #line 6935 "configure"
6935 #include "confdefs.h"
6938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6939 { (eval echo configure:6940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6941 if test -z "$ac_err"; then
6943 eval "ac_cv_header_$ac_safe=yes"
6946 echo "configure: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6949 eval "ac_cv_header_$ac_safe=no"
6953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6954 echo "$ac_t""yes" 1>&6
6955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6956 cat >> confdefs.h <<EOF
6957 #define $ac_tr_hdr 1
6961 echo "$ac_t""no" 1>&6
6966 if test $ac_cv_header_pthread_h = yes ; then
6967 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6968 echo "configure:6969: checking POSIX thread version" >&5
6969 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6977 # include <pthread.h>
6978 /* this check could be improved */
6979 # ifdef PTHREAD_ONCE_INIT
6980 pthread_version_final;
6984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6985 egrep "pthread_version_final" >/dev/null 2>&1; then
6987 ol_pthread_final=yes
6995 cat > conftest.$ac_ext <<EOF
6996 #line 6997 "configure"
6997 #include "confdefs.h"
6999 # include <pthread.h>
7000 /* this check could be improved */
7001 # ifdef pthread_once_init
7002 pthread_version_draft4;
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7009 ol_pthread_draft4=yes
7012 ol_pthread_draft4=no
7017 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7018 ol_cv_pthread_version=final
7019 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7020 ol_cv_pthread_version=draft4
7022 ol_cv_pthread_version=unknown
7027 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7030 if test $ol_cv_pthread_version = final ; then
7031 cat >> confdefs.h <<\EOF
7032 #define HAVE_PTHREADS_FINAL 1
7035 elif test $ol_cv_pthread_version = draft4 ; then
7036 cat >> confdefs.h <<\EOF
7037 #define HAVE_PTHREADS_D4 1
7041 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7044 # consider threads found
7045 ol_with_threads=found
7048 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7049 echo "configure:7050: checking for LinuxThreads pthread.h" >&5
7050 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7051 echo $ac_n "(cached) $ac_c" 1>&6
7053 cat > conftest.$ac_ext <<EOF
7054 #line 7055 "configure"
7055 #include "confdefs.h"
7056 #include <pthread.h>
7058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7059 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7061 ol_cv_header_linux_threads=yes
7064 ol_cv_header_linux_threads=no
7071 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7072 if test $ol_cv_header_linux_threads = yes; then
7073 cat >> confdefs.h <<\EOF
7074 #define HAVE_LINUX_THREADS 1
7080 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7081 echo "configure:7082: checking for GNU Pth pthread.h" >&5
7082 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7083 echo $ac_n "(cached) $ac_c" 1>&6
7085 cat > conftest.$ac_ext <<EOF
7086 #line 7087 "configure"
7087 #include "confdefs.h"
7088 #include <pthread.h>
7089 #ifdef _POSIX_THREAD_IS_GNU_PTH
7094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095 egrep "__gnu_pth__" >/dev/null 2>&1; then
7097 ol_cv_header_gnu_pth_pthread_h=yes
7100 ol_cv_header_gnu_pth_pthread_h=no
7107 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7110 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7111 for ac_hdr in sched.h
7113 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7115 echo "configure:7116: checking for $ac_hdr" >&5
7116 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7117 echo $ac_n "(cached) $ac_c" 1>&6
7119 cat > conftest.$ac_ext <<EOF
7120 #line 7121 "configure"
7121 #include "confdefs.h"
7124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7125 { (eval echo configure:7126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7127 if test -z "$ac_err"; then
7129 eval "ac_cv_header_$ac_safe=yes"
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7135 eval "ac_cv_header_$ac_safe=no"
7139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7140 echo "$ac_t""yes" 1>&6
7141 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7142 cat >> confdefs.h <<EOF
7143 #define $ac_tr_hdr 1
7147 echo "$ac_t""no" 1>&6
7154 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7155 echo "configure:7156: checking for pthread_create in default libraries" >&5
7156 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7157 echo $ac_n "(cached) $ac_c" 1>&6
7160 if test "$cross_compiling" = yes; then
7161 cat > conftest.$ac_ext <<EOF
7162 #line 7163 "configure"
7163 #include "confdefs.h"
7164 /* pthread test headers */
7165 #include <pthread.h>
7167 #define NULL (void*)0
7170 static void *task(p)
7173 return (void *) (p == NULL);
7178 /* pthread test function */
7181 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7182 /* This system (e.g. AIX) defaults detached; must override */
7183 pthread_attr_t attr;
7185 status = pthread_attr_init(&attr);
7186 if( status ) exit( status );
7188 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7189 if( status ) exit( status );
7193 #if HAVE_PTHREADS_D4
7194 #define ATTR pthread_attr_default
7199 /* make sure pthread_create() isn't just a stub */
7200 status = pthread_create(&t, ATTR, task, NULL);
7201 if( status ) exit( status );
7203 /* make sure pthread_detach() isn't just a stub */
7204 #if HAVE_PTHREADS_D4
7205 status = pthread_detach( &t );
7207 status = pthread_detach( t );
7210 #ifdef HAVE_LINUX_THREADS
7211 pthread_kill_other_threads_np();
7218 if { (eval echo configure:7219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7220 ol_cv_pthread_create=yes
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7225 ol_cv_pthread_create=no
7229 cat > conftest.$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7232 /* pthread test headers */
7233 #include <pthread.h>
7235 #define NULL (void*)0
7238 static void *task(p)
7241 return (void *) (p == NULL);
7245 int main(argc, argv)
7250 /* pthread test function */
7253 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7254 /* This system (e.g. AIX) defaults detached; must override */
7255 pthread_attr_t attr;
7257 status = pthread_attr_init(&attr);
7258 if( status ) exit( status );
7260 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7261 if( status ) exit( status );
7265 #if HAVE_PTHREADS_D4
7266 #define ATTR pthread_attr_default
7271 /* make sure pthread_create() isn't just a stub */
7272 status = pthread_create(&t, ATTR, task, NULL);
7273 if( status ) exit( status );
7275 /* make sure pthread_detach() isn't just a stub */
7276 #if HAVE_PTHREADS_D4
7277 status = pthread_detach( &t );
7279 status = pthread_detach( t );
7282 #ifdef HAVE_LINUX_THREADS
7283 pthread_kill_other_threads_np();
7291 if { (eval echo configure:7292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7293 ol_cv_pthread_create=yes
7295 echo "configure: failed program was:" >&5
7296 cat conftest.$ac_ext >&5
7298 ol_cv_pthread_create=no
7305 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7307 if test $ol_cv_pthread_create != no ; then
7308 ol_link_threads=posix
7312 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7313 if test "$ol_link_threads" = no ; then
7315 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7316 echo "configure:7317: checking for pthread link with -kthread" >&5
7317 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7318 echo $ac_n "(cached) $ac_c" 1>&6
7323 LIBS="-kthread $LIBS"
7325 if test "$cross_compiling" = yes; then
7326 cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7329 /* pthread test headers */
7330 #include <pthread.h>
7332 #define NULL (void*)0
7335 static void *task(p)
7338 return (void *) (p == NULL);
7343 /* pthread test function */
7346 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7347 /* This system (e.g. AIX) defaults detached; must override */
7348 pthread_attr_t attr;
7350 status = pthread_attr_init(&attr);
7351 if( status ) exit( status );
7353 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7354 if( status ) exit( status );
7358 #if HAVE_PTHREADS_D4
7359 #define ATTR pthread_attr_default
7364 /* make sure pthread_create() isn't just a stub */
7365 status = pthread_create(&t, ATTR, task, NULL);
7366 if( status ) exit( status );
7368 /* make sure pthread_detach() isn't just a stub */
7369 #if HAVE_PTHREADS_D4
7370 status = pthread_detach( &t );
7372 status = pthread_detach( t );
7375 #ifdef HAVE_LINUX_THREADS
7376 pthread_kill_other_threads_np();
7383 if { (eval echo configure:7384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7385 ol_cv_pthread_kthread=yes
7387 echo "configure: failed program was:" >&5
7388 cat conftest.$ac_ext >&5
7390 ol_cv_pthread_kthread=no
7394 cat > conftest.$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7397 /* pthread test headers */
7398 #include <pthread.h>
7400 #define NULL (void*)0
7403 static void *task(p)
7406 return (void *) (p == NULL);
7410 int main(argc, argv)
7415 /* pthread test function */
7418 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7419 /* This system (e.g. AIX) defaults detached; must override */
7420 pthread_attr_t attr;
7422 status = pthread_attr_init(&attr);
7423 if( status ) exit( status );
7425 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7426 if( status ) exit( status );
7430 #if HAVE_PTHREADS_D4
7431 #define ATTR pthread_attr_default
7436 /* make sure pthread_create() isn't just a stub */
7437 status = pthread_create(&t, ATTR, task, NULL);
7438 if( status ) exit( status );
7440 /* make sure pthread_detach() isn't just a stub */
7441 #if HAVE_PTHREADS_D4
7442 status = pthread_detach( &t );
7444 status = pthread_detach( t );
7447 #ifdef HAVE_LINUX_THREADS
7448 pthread_kill_other_threads_np();
7456 if { (eval echo configure:7457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7458 ol_cv_pthread_kthread=yes
7460 echo "configure: failed program was:" >&5
7461 cat conftest.$ac_ext >&5
7463 ol_cv_pthread_kthread=no
7474 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7476 if test $ol_cv_pthread_kthread = yes ; then
7477 ol_link_pthreads="-kthread"
7478 ol_link_threads=posix
7482 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7483 if test "$ol_link_threads" = no ; then
7485 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7486 echo "configure:7487: checking for pthread link with -pthread" >&5
7487 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7488 echo $ac_n "(cached) $ac_c" 1>&6
7493 LIBS="-pthread $LIBS"
7495 if test "$cross_compiling" = yes; then
7496 cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 /* pthread test headers */
7500 #include <pthread.h>
7502 #define NULL (void*)0
7505 static void *task(p)
7508 return (void *) (p == NULL);
7513 /* pthread test function */
7516 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7517 /* This system (e.g. AIX) defaults detached; must override */
7518 pthread_attr_t attr;
7520 status = pthread_attr_init(&attr);
7521 if( status ) exit( status );
7523 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7524 if( status ) exit( status );
7528 #if HAVE_PTHREADS_D4
7529 #define ATTR pthread_attr_default
7534 /* make sure pthread_create() isn't just a stub */
7535 status = pthread_create(&t, ATTR, task, NULL);
7536 if( status ) exit( status );
7538 /* make sure pthread_detach() isn't just a stub */
7539 #if HAVE_PTHREADS_D4
7540 status = pthread_detach( &t );
7542 status = pthread_detach( t );
7545 #ifdef HAVE_LINUX_THREADS
7546 pthread_kill_other_threads_np();
7553 if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7555 ol_cv_pthread_pthread=yes
7557 echo "configure: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7560 ol_cv_pthread_pthread=no
7564 cat > conftest.$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7567 /* pthread test headers */
7568 #include <pthread.h>
7570 #define NULL (void*)0
7573 static void *task(p)
7576 return (void *) (p == NULL);
7580 int main(argc, argv)
7585 /* pthread test function */
7588 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7589 /* This system (e.g. AIX) defaults detached; must override */
7590 pthread_attr_t attr;
7592 status = pthread_attr_init(&attr);
7593 if( status ) exit( status );
7595 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7596 if( status ) exit( status );
7600 #if HAVE_PTHREADS_D4
7601 #define ATTR pthread_attr_default
7606 /* make sure pthread_create() isn't just a stub */
7607 status = pthread_create(&t, ATTR, task, NULL);
7608 if( status ) exit( status );
7610 /* make sure pthread_detach() isn't just a stub */
7611 #if HAVE_PTHREADS_D4
7612 status = pthread_detach( &t );
7614 status = pthread_detach( t );
7617 #ifdef HAVE_LINUX_THREADS
7618 pthread_kill_other_threads_np();
7626 if { (eval echo configure:7627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7628 ol_cv_pthread_pthread=yes
7630 echo "configure: failed program was:" >&5
7631 cat conftest.$ac_ext >&5
7633 ol_cv_pthread_pthread=no
7644 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7646 if test $ol_cv_pthread_pthread = yes ; then
7647 ol_link_pthreads="-pthread"
7648 ol_link_threads=posix
7652 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7653 if test "$ol_link_threads" = no ; then
7655 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7656 echo "configure:7657: checking for pthread link with -pthreads" >&5
7657 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7658 echo $ac_n "(cached) $ac_c" 1>&6
7663 LIBS="-pthreads $LIBS"
7665 if test "$cross_compiling" = yes; then
7666 cat > conftest.$ac_ext <<EOF
7667 #line 7668 "configure"
7668 #include "confdefs.h"
7669 /* pthread test headers */
7670 #include <pthread.h>
7672 #define NULL (void*)0
7675 static void *task(p)
7678 return (void *) (p == NULL);
7683 /* pthread test function */
7686 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7687 /* This system (e.g. AIX) defaults detached; must override */
7688 pthread_attr_t attr;
7690 status = pthread_attr_init(&attr);
7691 if( status ) exit( status );
7693 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7694 if( status ) exit( status );
7698 #if HAVE_PTHREADS_D4
7699 #define ATTR pthread_attr_default
7704 /* make sure pthread_create() isn't just a stub */
7705 status = pthread_create(&t, ATTR, task, NULL);
7706 if( status ) exit( status );
7708 /* make sure pthread_detach() isn't just a stub */
7709 #if HAVE_PTHREADS_D4
7710 status = pthread_detach( &t );
7712 status = pthread_detach( t );
7715 #ifdef HAVE_LINUX_THREADS
7716 pthread_kill_other_threads_np();
7723 if { (eval echo configure:7724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7725 ol_cv_pthread_pthreads=yes
7727 echo "configure: failed program was:" >&5
7728 cat conftest.$ac_ext >&5
7730 ol_cv_pthread_pthreads=no
7734 cat > conftest.$ac_ext <<EOF
7735 #line 7736 "configure"
7736 #include "confdefs.h"
7737 /* pthread test headers */
7738 #include <pthread.h>
7740 #define NULL (void*)0
7743 static void *task(p)
7746 return (void *) (p == NULL);
7750 int main(argc, argv)
7755 /* pthread test function */
7758 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7759 /* This system (e.g. AIX) defaults detached; must override */
7760 pthread_attr_t attr;
7762 status = pthread_attr_init(&attr);
7763 if( status ) exit( status );
7765 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7766 if( status ) exit( status );
7770 #if HAVE_PTHREADS_D4
7771 #define ATTR pthread_attr_default
7776 /* make sure pthread_create() isn't just a stub */
7777 status = pthread_create(&t, ATTR, task, NULL);
7778 if( status ) exit( status );
7780 /* make sure pthread_detach() isn't just a stub */
7781 #if HAVE_PTHREADS_D4
7782 status = pthread_detach( &t );
7784 status = pthread_detach( t );
7787 #ifdef HAVE_LINUX_THREADS
7788 pthread_kill_other_threads_np();
7796 if { (eval echo configure:7797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7798 ol_cv_pthread_pthreads=yes
7800 echo "configure: failed program was:" >&5
7801 cat conftest.$ac_ext >&5
7803 ol_cv_pthread_pthreads=no
7814 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7816 if test $ol_cv_pthread_pthreads = yes ; then
7817 ol_link_pthreads="-pthreads"
7818 ol_link_threads=posix
7822 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7823 if test "$ol_link_threads" = no ; then
7825 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7826 echo "configure:7827: checking for pthread link with -mthreads" >&5
7827 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7828 echo $ac_n "(cached) $ac_c" 1>&6
7833 LIBS="-mthreads $LIBS"
7835 if test "$cross_compiling" = yes; then
7836 cat > conftest.$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7839 /* pthread test headers */
7840 #include <pthread.h>
7842 #define NULL (void*)0
7845 static void *task(p)
7848 return (void *) (p == NULL);
7853 /* pthread test function */
7856 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7857 /* This system (e.g. AIX) defaults detached; must override */
7858 pthread_attr_t attr;
7860 status = pthread_attr_init(&attr);
7861 if( status ) exit( status );
7863 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7864 if( status ) exit( status );
7868 #if HAVE_PTHREADS_D4
7869 #define ATTR pthread_attr_default
7874 /* make sure pthread_create() isn't just a stub */
7875 status = pthread_create(&t, ATTR, task, NULL);
7876 if( status ) exit( status );
7878 /* make sure pthread_detach() isn't just a stub */
7879 #if HAVE_PTHREADS_D4
7880 status = pthread_detach( &t );
7882 status = pthread_detach( t );
7885 #ifdef HAVE_LINUX_THREADS
7886 pthread_kill_other_threads_np();
7893 if { (eval echo configure:7894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7895 ol_cv_pthread_mthreads=yes
7897 echo "configure: failed program was:" >&5
7898 cat conftest.$ac_ext >&5
7900 ol_cv_pthread_mthreads=no
7904 cat > conftest.$ac_ext <<EOF
7905 #line 7906 "configure"
7906 #include "confdefs.h"
7907 /* pthread test headers */
7908 #include <pthread.h>
7910 #define NULL (void*)0
7913 static void *task(p)
7916 return (void *) (p == NULL);
7920 int main(argc, argv)
7925 /* pthread test function */
7928 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7929 /* This system (e.g. AIX) defaults detached; must override */
7930 pthread_attr_t attr;
7932 status = pthread_attr_init(&attr);
7933 if( status ) exit( status );
7935 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7936 if( status ) exit( status );
7940 #if HAVE_PTHREADS_D4
7941 #define ATTR pthread_attr_default
7946 /* make sure pthread_create() isn't just a stub */
7947 status = pthread_create(&t, ATTR, task, NULL);
7948 if( status ) exit( status );
7950 /* make sure pthread_detach() isn't just a stub */
7951 #if HAVE_PTHREADS_D4
7952 status = pthread_detach( &t );
7954 status = pthread_detach( t );
7957 #ifdef HAVE_LINUX_THREADS
7958 pthread_kill_other_threads_np();
7966 if { (eval echo configure:7967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7968 ol_cv_pthread_mthreads=yes
7970 echo "configure: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7973 ol_cv_pthread_mthreads=no
7984 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7986 if test $ol_cv_pthread_mthreads = yes ; then
7987 ol_link_pthreads="-mthreads"
7988 ol_link_threads=posix
7992 # Pthread try link: -thread (ol_cv_pthread_thread)
7993 if test "$ol_link_threads" = no ; then
7995 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7996 echo "configure:7997: checking for pthread link with -thread" >&5
7997 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7998 echo $ac_n "(cached) $ac_c" 1>&6
8003 LIBS="-thread $LIBS"
8005 if test "$cross_compiling" = yes; then
8006 cat > conftest.$ac_ext <<EOF
8007 #line 8008 "configure"
8008 #include "confdefs.h"
8009 /* pthread test headers */
8010 #include <pthread.h>
8012 #define NULL (void*)0
8015 static void *task(p)
8018 return (void *) (p == NULL);
8023 /* pthread test function */
8026 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8027 /* This system (e.g. AIX) defaults detached; must override */
8028 pthread_attr_t attr;
8030 status = pthread_attr_init(&attr);
8031 if( status ) exit( status );
8033 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8034 if( status ) exit( status );
8038 #if HAVE_PTHREADS_D4
8039 #define ATTR pthread_attr_default
8044 /* make sure pthread_create() isn't just a stub */
8045 status = pthread_create(&t, ATTR, task, NULL);
8046 if( status ) exit( status );
8048 /* make sure pthread_detach() isn't just a stub */
8049 #if HAVE_PTHREADS_D4
8050 status = pthread_detach( &t );
8052 status = pthread_detach( t );
8055 #ifdef HAVE_LINUX_THREADS
8056 pthread_kill_other_threads_np();
8063 if { (eval echo configure:8064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8065 ol_cv_pthread_thread=yes
8067 echo "configure: failed program was:" >&5
8068 cat conftest.$ac_ext >&5
8070 ol_cv_pthread_thread=no
8074 cat > conftest.$ac_ext <<EOF
8075 #line 8076 "configure"
8076 #include "confdefs.h"
8077 /* pthread test headers */
8078 #include <pthread.h>
8080 #define NULL (void*)0
8083 static void *task(p)
8086 return (void *) (p == NULL);
8090 int main(argc, argv)
8095 /* pthread test function */
8098 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8099 /* This system (e.g. AIX) defaults detached; must override */
8100 pthread_attr_t attr;
8102 status = pthread_attr_init(&attr);
8103 if( status ) exit( status );
8105 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8106 if( status ) exit( status );
8110 #if HAVE_PTHREADS_D4
8111 #define ATTR pthread_attr_default
8116 /* make sure pthread_create() isn't just a stub */
8117 status = pthread_create(&t, ATTR, task, NULL);
8118 if( status ) exit( status );
8120 /* make sure pthread_detach() isn't just a stub */
8121 #if HAVE_PTHREADS_D4
8122 status = pthread_detach( &t );
8124 status = pthread_detach( t );
8127 #ifdef HAVE_LINUX_THREADS
8128 pthread_kill_other_threads_np();
8136 if { (eval echo configure:8137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8138 ol_cv_pthread_thread=yes
8140 echo "configure: failed program was:" >&5
8141 cat conftest.$ac_ext >&5
8143 ol_cv_pthread_thread=no
8154 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8156 if test $ol_cv_pthread_thread = yes ; then
8157 ol_link_pthreads="-thread"
8158 ol_link_threads=posix
8163 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8164 if test "$ol_link_threads" = no ; then
8165 # try -lpthread -lmach -lexc -lc_r
8166 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8167 echo "configure:8168: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8168 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8174 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8176 if test "$cross_compiling" = yes; then
8177 cat > conftest.$ac_ext <<EOF
8178 #line 8179 "configure"
8179 #include "confdefs.h"
8180 /* pthread test headers */
8181 #include <pthread.h>
8183 #define NULL (void*)0
8186 static void *task(p)
8189 return (void *) (p == NULL);
8194 /* pthread test function */
8197 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8198 /* This system (e.g. AIX) defaults detached; must override */
8199 pthread_attr_t attr;
8201 status = pthread_attr_init(&attr);
8202 if( status ) exit( status );
8204 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8205 if( status ) exit( status );
8209 #if HAVE_PTHREADS_D4
8210 #define ATTR pthread_attr_default
8215 /* make sure pthread_create() isn't just a stub */
8216 status = pthread_create(&t, ATTR, task, NULL);
8217 if( status ) exit( status );
8219 /* make sure pthread_detach() isn't just a stub */
8220 #if HAVE_PTHREADS_D4
8221 status = pthread_detach( &t );
8223 status = pthread_detach( t );
8226 #ifdef HAVE_LINUX_THREADS
8227 pthread_kill_other_threads_np();
8234 if { (eval echo configure:8235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8236 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8238 echo "configure: failed program was:" >&5
8239 cat conftest.$ac_ext >&5
8241 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8245 cat > conftest.$ac_ext <<EOF
8246 #line 8247 "configure"
8247 #include "confdefs.h"
8248 /* pthread test headers */
8249 #include <pthread.h>
8251 #define NULL (void*)0
8254 static void *task(p)
8257 return (void *) (p == NULL);
8261 int main(argc, argv)
8266 /* pthread test function */
8269 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8270 /* This system (e.g. AIX) defaults detached; must override */
8271 pthread_attr_t attr;
8273 status = pthread_attr_init(&attr);
8274 if( status ) exit( status );
8276 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8277 if( status ) exit( status );
8281 #if HAVE_PTHREADS_D4
8282 #define ATTR pthread_attr_default
8287 /* make sure pthread_create() isn't just a stub */
8288 status = pthread_create(&t, ATTR, task, NULL);
8289 if( status ) exit( status );
8291 /* make sure pthread_detach() isn't just a stub */
8292 #if HAVE_PTHREADS_D4
8293 status = pthread_detach( &t );
8295 status = pthread_detach( t );
8298 #ifdef HAVE_LINUX_THREADS
8299 pthread_kill_other_threads_np();
8307 if { (eval echo configure:8308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8309 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8311 echo "configure: failed program was:" >&5
8312 cat conftest.$ac_ext >&5
8314 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8325 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8327 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8328 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8329 ol_link_threads=posix
8333 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8334 if test "$ol_link_threads" = no ; then
8335 # try -lpthread -lmach -lexc
8336 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8337 echo "configure:8338: checking for pthread link with -lpthread -lmach -lexc" >&5
8338 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8339 echo $ac_n "(cached) $ac_c" 1>&6
8344 LIBS="-lpthread -lmach -lexc $LIBS"
8346 if test "$cross_compiling" = yes; then
8347 cat > conftest.$ac_ext <<EOF
8348 #line 8349 "configure"
8349 #include "confdefs.h"
8350 /* pthread test headers */
8351 #include <pthread.h>
8353 #define NULL (void*)0
8356 static void *task(p)
8359 return (void *) (p == NULL);
8364 /* pthread test function */
8367 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8368 /* This system (e.g. AIX) defaults detached; must override */
8369 pthread_attr_t attr;
8371 status = pthread_attr_init(&attr);
8372 if( status ) exit( status );
8374 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8375 if( status ) exit( status );
8379 #if HAVE_PTHREADS_D4
8380 #define ATTR pthread_attr_default
8385 /* make sure pthread_create() isn't just a stub */
8386 status = pthread_create(&t, ATTR, task, NULL);
8387 if( status ) exit( status );
8389 /* make sure pthread_detach() isn't just a stub */
8390 #if HAVE_PTHREADS_D4
8391 status = pthread_detach( &t );
8393 status = pthread_detach( t );
8396 #ifdef HAVE_LINUX_THREADS
8397 pthread_kill_other_threads_np();
8404 if { (eval echo configure:8405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8406 ol_cv_pthread_lpthread_lmach_lexc=yes
8408 echo "configure: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8411 ol_cv_pthread_lpthread_lmach_lexc=no
8415 cat > conftest.$ac_ext <<EOF
8416 #line 8417 "configure"
8417 #include "confdefs.h"
8418 /* pthread test headers */
8419 #include <pthread.h>
8421 #define NULL (void*)0
8424 static void *task(p)
8427 return (void *) (p == NULL);
8431 int main(argc, argv)
8436 /* pthread test function */
8439 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8440 /* This system (e.g. AIX) defaults detached; must override */
8441 pthread_attr_t attr;
8443 status = pthread_attr_init(&attr);
8444 if( status ) exit( status );
8446 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8447 if( status ) exit( status );
8451 #if HAVE_PTHREADS_D4
8452 #define ATTR pthread_attr_default
8457 /* make sure pthread_create() isn't just a stub */
8458 status = pthread_create(&t, ATTR, task, NULL);
8459 if( status ) exit( status );
8461 /* make sure pthread_detach() isn't just a stub */
8462 #if HAVE_PTHREADS_D4
8463 status = pthread_detach( &t );
8465 status = pthread_detach( t );
8468 #ifdef HAVE_LINUX_THREADS
8469 pthread_kill_other_threads_np();
8477 if { (eval echo configure:8478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8479 ol_cv_pthread_lpthread_lmach_lexc=yes
8481 echo "configure: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8484 ol_cv_pthread_lpthread_lmach_lexc=no
8495 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8497 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8498 ol_link_pthreads="-lpthread -lmach -lexc"
8499 ol_link_threads=posix
8504 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8505 if test "$ol_link_threads" = no ; then
8506 # try -lpthread -Wl,-woff,85
8507 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8508 echo "configure:8509: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8509 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8510 echo $ac_n "(cached) $ac_c" 1>&6
8515 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8517 if test "$cross_compiling" = yes; then
8518 cat > conftest.$ac_ext <<EOF
8519 #line 8520 "configure"
8520 #include "confdefs.h"
8521 /* pthread test headers */
8522 #include <pthread.h>
8524 #define NULL (void*)0
8527 static void *task(p)
8530 return (void *) (p == NULL);
8535 /* pthread test function */
8538 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8539 /* This system (e.g. AIX) defaults detached; must override */
8540 pthread_attr_t attr;
8542 status = pthread_attr_init(&attr);
8543 if( status ) exit( status );
8545 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8546 if( status ) exit( status );
8550 #if HAVE_PTHREADS_D4
8551 #define ATTR pthread_attr_default
8556 /* make sure pthread_create() isn't just a stub */
8557 status = pthread_create(&t, ATTR, task, NULL);
8558 if( status ) exit( status );
8560 /* make sure pthread_detach() isn't just a stub */
8561 #if HAVE_PTHREADS_D4
8562 status = pthread_detach( &t );
8564 status = pthread_detach( t );
8567 #ifdef HAVE_LINUX_THREADS
8568 pthread_kill_other_threads_np();
8575 if { (eval echo configure:8576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8577 ol_cv_pthread_lib_lpthread_woff=yes
8579 echo "configure: failed program was:" >&5
8580 cat conftest.$ac_ext >&5
8582 ol_cv_pthread_lib_lpthread_woff=no
8586 cat > conftest.$ac_ext <<EOF
8587 #line 8588 "configure"
8588 #include "confdefs.h"
8589 /* pthread test headers */
8590 #include <pthread.h>
8592 #define NULL (void*)0
8595 static void *task(p)
8598 return (void *) (p == NULL);
8602 int main(argc, argv)
8607 /* pthread test function */
8610 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8611 /* This system (e.g. AIX) defaults detached; must override */
8612 pthread_attr_t attr;
8614 status = pthread_attr_init(&attr);
8615 if( status ) exit( status );
8617 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8618 if( status ) exit( status );
8622 #if HAVE_PTHREADS_D4
8623 #define ATTR pthread_attr_default
8628 /* make sure pthread_create() isn't just a stub */
8629 status = pthread_create(&t, ATTR, task, NULL);
8630 if( status ) exit( status );
8632 /* make sure pthread_detach() isn't just a stub */
8633 #if HAVE_PTHREADS_D4
8634 status = pthread_detach( &t );
8636 status = pthread_detach( t );
8639 #ifdef HAVE_LINUX_THREADS
8640 pthread_kill_other_threads_np();
8648 if { (eval echo configure:8649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8650 ol_cv_pthread_lib_lpthread_woff=yes
8652 echo "configure: failed program was:" >&5
8653 cat conftest.$ac_ext >&5
8655 ol_cv_pthread_lib_lpthread_woff=no
8666 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8668 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8669 ol_link_pthreads="-lpthread -Wl,-woff,85"
8670 ol_link_threads=posix
8675 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8676 if test "$ol_link_threads" = no ; then
8678 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8679 echo "configure:8680: checking for pthread link with -lpthread" >&5
8680 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8681 echo $ac_n "(cached) $ac_c" 1>&6
8686 LIBS="-lpthread $LIBS"
8688 if test "$cross_compiling" = yes; then
8689 cat > conftest.$ac_ext <<EOF
8690 #line 8691 "configure"
8691 #include "confdefs.h"
8692 /* pthread test headers */
8693 #include <pthread.h>
8695 #define NULL (void*)0
8698 static void *task(p)
8701 return (void *) (p == NULL);
8706 /* pthread test function */
8709 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8710 /* This system (e.g. AIX) defaults detached; must override */
8711 pthread_attr_t attr;
8713 status = pthread_attr_init(&attr);
8714 if( status ) exit( status );
8716 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8717 if( status ) exit( status );
8721 #if HAVE_PTHREADS_D4
8722 #define ATTR pthread_attr_default
8727 /* make sure pthread_create() isn't just a stub */
8728 status = pthread_create(&t, ATTR, task, NULL);
8729 if( status ) exit( status );
8731 /* make sure pthread_detach() isn't just a stub */
8732 #if HAVE_PTHREADS_D4
8733 status = pthread_detach( &t );
8735 status = pthread_detach( t );
8738 #ifdef HAVE_LINUX_THREADS
8739 pthread_kill_other_threads_np();
8746 if { (eval echo configure:8747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8748 ol_cv_pthread_lpthread=yes
8750 echo "configure: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8753 ol_cv_pthread_lpthread=no
8757 cat > conftest.$ac_ext <<EOF
8758 #line 8759 "configure"
8759 #include "confdefs.h"
8760 /* pthread test headers */
8761 #include <pthread.h>
8763 #define NULL (void*)0
8766 static void *task(p)
8769 return (void *) (p == NULL);
8773 int main(argc, argv)
8778 /* pthread test function */
8781 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8782 /* This system (e.g. AIX) defaults detached; must override */
8783 pthread_attr_t attr;
8785 status = pthread_attr_init(&attr);
8786 if( status ) exit( status );
8788 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8789 if( status ) exit( status );
8793 #if HAVE_PTHREADS_D4
8794 #define ATTR pthread_attr_default
8799 /* make sure pthread_create() isn't just a stub */
8800 status = pthread_create(&t, ATTR, task, NULL);
8801 if( status ) exit( status );
8803 /* make sure pthread_detach() isn't just a stub */
8804 #if HAVE_PTHREADS_D4
8805 status = pthread_detach( &t );
8807 status = pthread_detach( t );
8810 #ifdef HAVE_LINUX_THREADS
8811 pthread_kill_other_threads_np();
8819 if { (eval echo configure:8820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8821 ol_cv_pthread_lpthread=yes
8823 echo "configure: failed program was:" >&5
8824 cat conftest.$ac_ext >&5
8826 ol_cv_pthread_lpthread=no
8837 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8839 if test $ol_cv_pthread_lpthread = yes ; then
8840 ol_link_pthreads="-lpthread"
8841 ol_link_threads=posix
8845 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8846 if test "$ol_link_threads" = no ; then
8848 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8849 echo "configure:8850: checking for pthread link with -lc_r" >&5
8850 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8851 echo $ac_n "(cached) $ac_c" 1>&6
8858 if test "$cross_compiling" = yes; then
8859 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8862 /* pthread test headers */
8863 #include <pthread.h>
8865 #define NULL (void*)0
8868 static void *task(p)
8871 return (void *) (p == NULL);
8876 /* pthread test function */
8879 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8880 /* This system (e.g. AIX) defaults detached; must override */
8881 pthread_attr_t attr;
8883 status = pthread_attr_init(&attr);
8884 if( status ) exit( status );
8886 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8887 if( status ) exit( status );
8891 #if HAVE_PTHREADS_D4
8892 #define ATTR pthread_attr_default
8897 /* make sure pthread_create() isn't just a stub */
8898 status = pthread_create(&t, ATTR, task, NULL);
8899 if( status ) exit( status );
8901 /* make sure pthread_detach() isn't just a stub */
8902 #if HAVE_PTHREADS_D4
8903 status = pthread_detach( &t );
8905 status = pthread_detach( t );
8908 #ifdef HAVE_LINUX_THREADS
8909 pthread_kill_other_threads_np();
8916 if { (eval echo configure:8917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8918 ol_cv_pthread_lc_r=yes
8920 echo "configure: failed program was:" >&5
8921 cat conftest.$ac_ext >&5
8923 ol_cv_pthread_lc_r=no
8927 cat > conftest.$ac_ext <<EOF
8928 #line 8929 "configure"
8929 #include "confdefs.h"
8930 /* pthread test headers */
8931 #include <pthread.h>
8933 #define NULL (void*)0
8936 static void *task(p)
8939 return (void *) (p == NULL);
8943 int main(argc, argv)
8948 /* pthread test function */
8951 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8952 /* This system (e.g. AIX) defaults detached; must override */
8953 pthread_attr_t attr;
8955 status = pthread_attr_init(&attr);
8956 if( status ) exit( status );
8958 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8959 if( status ) exit( status );
8963 #if HAVE_PTHREADS_D4
8964 #define ATTR pthread_attr_default
8969 /* make sure pthread_create() isn't just a stub */
8970 status = pthread_create(&t, ATTR, task, NULL);
8971 if( status ) exit( status );
8973 /* make sure pthread_detach() isn't just a stub */
8974 #if HAVE_PTHREADS_D4
8975 status = pthread_detach( &t );
8977 status = pthread_detach( t );
8980 #ifdef HAVE_LINUX_THREADS
8981 pthread_kill_other_threads_np();
8989 if { (eval echo configure:8990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8991 ol_cv_pthread_lc_r=yes
8993 echo "configure: failed program was:" >&5
8994 cat conftest.$ac_ext >&5
8996 ol_cv_pthread_lc_r=no
9007 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9009 if test $ol_cv_pthread_lc_r = yes ; then
9010 ol_link_pthreads="-lc_r"
9011 ol_link_threads=posix
9016 # Pthread try link: -threads (ol_cv_pthread_threads)
9017 if test "$ol_link_threads" = no ; then
9019 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9020 echo "configure:9021: checking for pthread link with -threads" >&5
9021 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9022 echo $ac_n "(cached) $ac_c" 1>&6
9027 LIBS="-threads $LIBS"
9029 if test "$cross_compiling" = yes; then
9030 cat > conftest.$ac_ext <<EOF
9031 #line 9032 "configure"
9032 #include "confdefs.h"
9033 /* pthread test headers */
9034 #include <pthread.h>
9036 #define NULL (void*)0
9039 static void *task(p)
9042 return (void *) (p == NULL);
9047 /* pthread test function */
9050 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9051 /* This system (e.g. AIX) defaults detached; must override */
9052 pthread_attr_t attr;
9054 status = pthread_attr_init(&attr);
9055 if( status ) exit( status );
9057 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9058 if( status ) exit( status );
9062 #if HAVE_PTHREADS_D4
9063 #define ATTR pthread_attr_default
9068 /* make sure pthread_create() isn't just a stub */
9069 status = pthread_create(&t, ATTR, task, NULL);
9070 if( status ) exit( status );
9072 /* make sure pthread_detach() isn't just a stub */
9073 #if HAVE_PTHREADS_D4
9074 status = pthread_detach( &t );
9076 status = pthread_detach( t );
9079 #ifdef HAVE_LINUX_THREADS
9080 pthread_kill_other_threads_np();
9087 if { (eval echo configure:9088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9089 ol_cv_pthread_threads=yes
9091 echo "configure: failed program was:" >&5
9092 cat conftest.$ac_ext >&5
9094 ol_cv_pthread_threads=no
9098 cat > conftest.$ac_ext <<EOF
9099 #line 9100 "configure"
9100 #include "confdefs.h"
9101 /* pthread test headers */
9102 #include <pthread.h>
9104 #define NULL (void*)0
9107 static void *task(p)
9110 return (void *) (p == NULL);
9114 int main(argc, argv)
9119 /* pthread test function */
9122 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9123 /* This system (e.g. AIX) defaults detached; must override */
9124 pthread_attr_t attr;
9126 status = pthread_attr_init(&attr);
9127 if( status ) exit( status );
9129 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9130 if( status ) exit( status );
9134 #if HAVE_PTHREADS_D4
9135 #define ATTR pthread_attr_default
9140 /* make sure pthread_create() isn't just a stub */
9141 status = pthread_create(&t, ATTR, task, NULL);
9142 if( status ) exit( status );
9144 /* make sure pthread_detach() isn't just a stub */
9145 #if HAVE_PTHREADS_D4
9146 status = pthread_detach( &t );
9148 status = pthread_detach( t );
9151 #ifdef HAVE_LINUX_THREADS
9152 pthread_kill_other_threads_np();
9160 if { (eval echo configure:9161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9162 ol_cv_pthread_threads=yes
9164 echo "configure: failed program was:" >&5
9165 cat conftest.$ac_ext >&5
9167 ol_cv_pthread_threads=no
9178 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9180 if test $ol_cv_pthread_threads = yes ; then
9181 ol_link_pthreads="-threads"
9182 ol_link_threads=posix
9187 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9188 if test "$ol_link_threads" = no ; then
9189 # try -lpthreads -lmach -lexc -lc_r
9190 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9191 echo "configure:9192: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9192 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9193 echo $ac_n "(cached) $ac_c" 1>&6
9198 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9200 if test "$cross_compiling" = yes; then
9201 cat > conftest.$ac_ext <<EOF
9202 #line 9203 "configure"
9203 #include "confdefs.h"
9204 /* pthread test headers */
9205 #include <pthread.h>
9207 #define NULL (void*)0
9210 static void *task(p)
9213 return (void *) (p == NULL);
9218 /* pthread test function */
9221 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9222 /* This system (e.g. AIX) defaults detached; must override */
9223 pthread_attr_t attr;
9225 status = pthread_attr_init(&attr);
9226 if( status ) exit( status );
9228 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9229 if( status ) exit( status );
9233 #if HAVE_PTHREADS_D4
9234 #define ATTR pthread_attr_default
9239 /* make sure pthread_create() isn't just a stub */
9240 status = pthread_create(&t, ATTR, task, NULL);
9241 if( status ) exit( status );
9243 /* make sure pthread_detach() isn't just a stub */
9244 #if HAVE_PTHREADS_D4
9245 status = pthread_detach( &t );
9247 status = pthread_detach( t );
9250 #ifdef HAVE_LINUX_THREADS
9251 pthread_kill_other_threads_np();
9258 if { (eval echo configure:9259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9260 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9262 echo "configure: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9265 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9269 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure"
9271 #include "confdefs.h"
9272 /* pthread test headers */
9273 #include <pthread.h>
9275 #define NULL (void*)0
9278 static void *task(p)
9281 return (void *) (p == NULL);
9285 int main(argc, argv)
9290 /* pthread test function */
9293 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9294 /* This system (e.g. AIX) defaults detached; must override */
9295 pthread_attr_t attr;
9297 status = pthread_attr_init(&attr);
9298 if( status ) exit( status );
9300 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9301 if( status ) exit( status );
9305 #if HAVE_PTHREADS_D4
9306 #define ATTR pthread_attr_default
9311 /* make sure pthread_create() isn't just a stub */
9312 status = pthread_create(&t, ATTR, task, NULL);
9313 if( status ) exit( status );
9315 /* make sure pthread_detach() isn't just a stub */
9316 #if HAVE_PTHREADS_D4
9317 status = pthread_detach( &t );
9319 status = pthread_detach( t );
9322 #ifdef HAVE_LINUX_THREADS
9323 pthread_kill_other_threads_np();
9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9333 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9338 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9349 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9351 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9352 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9353 ol_link_threads=posix
9357 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9358 if test "$ol_link_threads" = no ; then
9359 # try -lpthreads -lmach -lexc
9360 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9361 echo "configure:9362: checking for pthread link with -lpthreads -lmach -lexc" >&5
9362 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9368 LIBS="-lpthreads -lmach -lexc $LIBS"
9370 if test "$cross_compiling" = yes; then
9371 cat > conftest.$ac_ext <<EOF
9372 #line 9373 "configure"
9373 #include "confdefs.h"
9374 /* pthread test headers */
9375 #include <pthread.h>
9377 #define NULL (void*)0
9380 static void *task(p)
9383 return (void *) (p == NULL);
9388 /* pthread test function */
9391 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9392 /* This system (e.g. AIX) defaults detached; must override */
9393 pthread_attr_t attr;
9395 status = pthread_attr_init(&attr);
9396 if( status ) exit( status );
9398 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9399 if( status ) exit( status );
9403 #if HAVE_PTHREADS_D4
9404 #define ATTR pthread_attr_default
9409 /* make sure pthread_create() isn't just a stub */
9410 status = pthread_create(&t, ATTR, task, NULL);
9411 if( status ) exit( status );
9413 /* make sure pthread_detach() isn't just a stub */
9414 #if HAVE_PTHREADS_D4
9415 status = pthread_detach( &t );
9417 status = pthread_detach( t );
9420 #ifdef HAVE_LINUX_THREADS
9421 pthread_kill_other_threads_np();
9428 if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9430 ol_cv_pthread_lpthreads_lmach_lexc=yes
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9435 ol_cv_pthread_lpthreads_lmach_lexc=no
9439 cat > conftest.$ac_ext <<EOF
9440 #line 9441 "configure"
9441 #include "confdefs.h"
9442 /* pthread test headers */
9443 #include <pthread.h>
9445 #define NULL (void*)0
9448 static void *task(p)
9451 return (void *) (p == NULL);
9455 int main(argc, argv)
9460 /* pthread test function */
9463 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9464 /* This system (e.g. AIX) defaults detached; must override */
9465 pthread_attr_t attr;
9467 status = pthread_attr_init(&attr);
9468 if( status ) exit( status );
9470 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9471 if( status ) exit( status );
9475 #if HAVE_PTHREADS_D4
9476 #define ATTR pthread_attr_default
9481 /* make sure pthread_create() isn't just a stub */
9482 status = pthread_create(&t, ATTR, task, NULL);
9483 if( status ) exit( status );
9485 /* make sure pthread_detach() isn't just a stub */
9486 #if HAVE_PTHREADS_D4
9487 status = pthread_detach( &t );
9489 status = pthread_detach( t );
9492 #ifdef HAVE_LINUX_THREADS
9493 pthread_kill_other_threads_np();
9501 if { (eval echo configure:9502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9503 ol_cv_pthread_lpthreads_lmach_lexc=yes
9505 echo "configure: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9508 ol_cv_pthread_lpthreads_lmach_lexc=no
9519 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9521 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9522 ol_link_pthreads="-lpthreads -lmach -lexc"
9523 ol_link_threads=posix
9527 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9528 if test "$ol_link_threads" = no ; then
9529 # try -lpthreads -lexc
9530 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9531 echo "configure:9532: checking for pthread link with -lpthreads -lexc" >&5
9532 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9538 LIBS="-lpthreads -lexc $LIBS"
9540 if test "$cross_compiling" = yes; then
9541 cat > conftest.$ac_ext <<EOF
9542 #line 9543 "configure"
9543 #include "confdefs.h"
9544 /* pthread test headers */
9545 #include <pthread.h>
9547 #define NULL (void*)0
9550 static void *task(p)
9553 return (void *) (p == NULL);
9558 /* pthread test function */
9561 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9562 /* This system (e.g. AIX) defaults detached; must override */
9563 pthread_attr_t attr;
9565 status = pthread_attr_init(&attr);
9566 if( status ) exit( status );
9568 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9569 if( status ) exit( status );
9573 #if HAVE_PTHREADS_D4
9574 #define ATTR pthread_attr_default
9579 /* make sure pthread_create() isn't just a stub */
9580 status = pthread_create(&t, ATTR, task, NULL);
9581 if( status ) exit( status );
9583 /* make sure pthread_detach() isn't just a stub */
9584 #if HAVE_PTHREADS_D4
9585 status = pthread_detach( &t );
9587 status = pthread_detach( t );
9590 #ifdef HAVE_LINUX_THREADS
9591 pthread_kill_other_threads_np();
9598 if { (eval echo configure:9599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9600 ol_cv_pthread_lpthreads_lexc=yes
9602 echo "configure: failed program was:" >&5
9603 cat conftest.$ac_ext >&5
9605 ol_cv_pthread_lpthreads_lexc=no
9609 cat > conftest.$ac_ext <<EOF
9610 #line 9611 "configure"
9611 #include "confdefs.h"
9612 /* pthread test headers */
9613 #include <pthread.h>
9615 #define NULL (void*)0
9618 static void *task(p)
9621 return (void *) (p == NULL);
9625 int main(argc, argv)
9630 /* pthread test function */
9633 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9634 /* This system (e.g. AIX) defaults detached; must override */
9635 pthread_attr_t attr;
9637 status = pthread_attr_init(&attr);
9638 if( status ) exit( status );
9640 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9641 if( status ) exit( status );
9645 #if HAVE_PTHREADS_D4
9646 #define ATTR pthread_attr_default
9651 /* make sure pthread_create() isn't just a stub */
9652 status = pthread_create(&t, ATTR, task, NULL);
9653 if( status ) exit( status );
9655 /* make sure pthread_detach() isn't just a stub */
9656 #if HAVE_PTHREADS_D4
9657 status = pthread_detach( &t );
9659 status = pthread_detach( t );
9662 #ifdef HAVE_LINUX_THREADS
9663 pthread_kill_other_threads_np();
9671 if { (eval echo configure:9672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9673 ol_cv_pthread_lpthreads_lexc=yes
9675 echo "configure: failed program was:" >&5
9676 cat conftest.$ac_ext >&5
9678 ol_cv_pthread_lpthreads_lexc=no
9689 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9691 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9692 ol_link_pthreads="-lpthreads -lexc"
9693 ol_link_threads=posix
9698 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9699 if test "$ol_link_threads" = no ; then
9701 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9702 echo "configure:9703: checking for pthread link with -lpthreads" >&5
9703 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9709 LIBS="-lpthreads $LIBS"
9711 if test "$cross_compiling" = yes; then
9712 cat > conftest.$ac_ext <<EOF
9713 #line 9714 "configure"
9714 #include "confdefs.h"
9715 /* pthread test headers */
9716 #include <pthread.h>
9718 #define NULL (void*)0
9721 static void *task(p)
9724 return (void *) (p == NULL);
9729 /* pthread test function */
9732 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9733 /* This system (e.g. AIX) defaults detached; must override */
9734 pthread_attr_t attr;
9736 status = pthread_attr_init(&attr);
9737 if( status ) exit( status );
9739 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9740 if( status ) exit( status );
9744 #if HAVE_PTHREADS_D4
9745 #define ATTR pthread_attr_default
9750 /* make sure pthread_create() isn't just a stub */
9751 status = pthread_create(&t, ATTR, task, NULL);
9752 if( status ) exit( status );
9754 /* make sure pthread_detach() isn't just a stub */
9755 #if HAVE_PTHREADS_D4
9756 status = pthread_detach( &t );
9758 status = pthread_detach( t );
9761 #ifdef HAVE_LINUX_THREADS
9762 pthread_kill_other_threads_np();
9769 if { (eval echo configure:9770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9771 ol_cv_pthread_lib_lpthreads=yes
9773 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9776 ol_cv_pthread_lib_lpthreads=no
9780 cat > conftest.$ac_ext <<EOF
9781 #line 9782 "configure"
9782 #include "confdefs.h"
9783 /* pthread test headers */
9784 #include <pthread.h>
9786 #define NULL (void*)0
9789 static void *task(p)
9792 return (void *) (p == NULL);
9796 int main(argc, argv)
9801 /* pthread test function */
9804 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9805 /* This system (e.g. AIX) defaults detached; must override */
9806 pthread_attr_t attr;
9808 status = pthread_attr_init(&attr);
9809 if( status ) exit( status );
9811 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9812 if( status ) exit( status );
9816 #if HAVE_PTHREADS_D4
9817 #define ATTR pthread_attr_default
9822 /* make sure pthread_create() isn't just a stub */
9823 status = pthread_create(&t, ATTR, task, NULL);
9824 if( status ) exit( status );
9826 /* make sure pthread_detach() isn't just a stub */
9827 #if HAVE_PTHREADS_D4
9828 status = pthread_detach( &t );
9830 status = pthread_detach( t );
9833 #ifdef HAVE_LINUX_THREADS
9834 pthread_kill_other_threads_np();
9842 if { (eval echo configure:9843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9844 ol_cv_pthread_lib_lpthreads=yes
9846 echo "configure: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9849 ol_cv_pthread_lib_lpthreads=no
9860 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9862 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9863 ol_link_pthreads="-lpthreads"
9864 ol_link_threads=posix
9869 if test $ol_link_threads != no ; then
9870 cat >> confdefs.h <<\EOF
9871 #define HAVE_PTHREADS 1
9875 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9877 save_CPPFLAGS="$CPPFLAGS"
9879 LIBS="$LTHREAD_LIBS $LIBS"
9881 for ac_func in sched_yield pthread_yield
9883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9884 echo "configure:9885: checking for $ac_func" >&5
9885 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9886 echo $ac_n "(cached) $ac_c" 1>&6
9888 cat > conftest.$ac_ext <<EOF
9889 #line 9890 "configure"
9890 #include "confdefs.h"
9891 /* System header to define __stub macros and hopefully few prototypes,
9892 which can conflict with char $ac_func(); below. */
9894 /* Override any gcc2 internal prototype to avoid an error. */
9895 /* We use char because int might match the return type of a gcc2
9896 builtin and then its argument prototype would still apply. */
9902 /* The GNU C library defines this for functions which it implements
9903 to always fail with ENOSYS. Some functions are actually named
9904 something starting with __ and the normal name is an alias. */
9905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9913 if { (eval echo configure:9914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9915 eval "ac_cv_func_$ac_func=yes"
9917 echo "configure: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9920 eval "ac_cv_func_$ac_func=no"
9925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9926 echo "$ac_t""yes" 1>&6
9927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9928 cat >> confdefs.h <<EOF
9929 #define $ac_tr_func 1
9933 echo "$ac_t""no" 1>&6
9938 if test $ac_cv_func_sched_yield = no -a \
9939 $ac_cv_func_pthread_yield = no ; then
9940 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9941 echo "configure:9942: checking for sched_yield in -lrt" >&5
9942 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9943 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9944 echo $ac_n "(cached) $ac_c" 1>&6
9946 ac_save_LIBS="$LIBS"
9948 cat > conftest.$ac_ext <<EOF
9949 #line 9950 "configure"
9950 #include "confdefs.h"
9951 /* Override any gcc2 internal prototype to avoid an error. */
9952 /* We use char because int might match the return type of a gcc2
9953 builtin and then its argument prototype would still apply. */
9960 if { (eval echo configure:9961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9962 eval "ac_cv_lib_$ac_lib_var=yes"
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9967 eval "ac_cv_lib_$ac_lib_var=no"
9970 LIBS="$ac_save_LIBS"
9973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9974 echo "$ac_t""yes" 1>&6
9975 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9976 cat >> confdefs.h <<\EOF
9977 #define HAVE_SCHED_YIELD 1
9980 ac_cv_func_sched_yield=yes
9982 echo "$ac_t""no" 1>&6
9983 ac_cv_func_sched_yield=no
9987 if test $ac_cv_func_sched_yield = no -a \
9988 $ac_cv_func_pthread_yield = no ; then
9989 for ac_func in thr_yield
9991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9992 echo "configure:9993: checking for $ac_func" >&5
9993 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9994 echo $ac_n "(cached) $ac_c" 1>&6
9996 cat > conftest.$ac_ext <<EOF
9997 #line 9998 "configure"
9998 #include "confdefs.h"
9999 /* System header to define __stub macros and hopefully few prototypes,
10000 which can conflict with char $ac_func(); below. */
10001 #include <assert.h>
10002 /* Override any gcc2 internal prototype to avoid an error. */
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10010 /* The GNU C library defines this for functions which it implements
10011 to always fail with ENOSYS. Some functions are actually named
10012 something starting with __ and the normal name is an alias. */
10013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10021 if { (eval echo configure:10022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10023 eval "ac_cv_func_$ac_func=yes"
10025 echo "configure: failed program was:" >&5
10026 cat conftest.$ac_ext >&5
10028 eval "ac_cv_func_$ac_func=no"
10033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10034 echo "$ac_t""yes" 1>&6
10035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10036 cat >> confdefs.h <<EOF
10037 #define $ac_tr_func 1
10041 echo "$ac_t""no" 1>&6
10046 if test $ac_cv_func_sched_yield = no -a \
10047 $ac_cv_func_pthread_yield = no -a \
10048 "$ac_cv_func_thr_yield" = no ; then
10049 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10052 for ac_func in pthread_kill
10054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10055 echo "configure:10056: checking for $ac_func" >&5
10056 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10059 cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure"
10061 #include "confdefs.h"
10062 /* System header to define __stub macros and hopefully few prototypes,
10063 which can conflict with char $ac_func(); below. */
10064 #include <assert.h>
10065 /* Override any gcc2 internal prototype to avoid an error. */
10066 /* We use char because int might match the return type of a gcc2
10067 builtin and then its argument prototype would still apply. */
10073 /* The GNU C library defines this for functions which it implements
10074 to always fail with ENOSYS. Some functions are actually named
10075 something starting with __ and the normal name is an alias. */
10076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10084 if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10086 eval "ac_cv_func_$ac_func=yes"
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10091 eval "ac_cv_func_$ac_func=no"
10096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10097 echo "$ac_t""yes" 1>&6
10098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10099 cat >> confdefs.h <<EOF
10100 #define $ac_tr_func 1
10104 echo "$ac_t""no" 1>&6
10109 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10110 echo "configure:10111: checking for pthread_detach with <pthread.h>" >&5
10111 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10112 echo $ac_n "(cached) $ac_c" 1>&6
10115 cat > conftest.$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10119 #include <pthread.h>
10121 #define NULL (void*)0
10125 pthread_detach(NULL);
10128 if { (eval echo configure:10129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10130 ol_cv_func_pthread_detach=yes
10132 echo "configure: failed program was:" >&5
10133 cat conftest.$ac_ext >&5
10135 ol_cv_func_pthread_detach=no
10141 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10143 if test $ol_cv_func_pthread_detach = no ; then
10144 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10147 cat >> confdefs.h <<\EOF
10148 #define HAVE_PTHREAD_DETACH 1
10153 pthread_setconcurrency \
10154 pthread_getconcurrency \
10155 thr_setconcurrency \
10156 thr_getconcurrency \
10159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10160 echo "configure:10161: checking for $ac_func" >&5
10161 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10162 echo $ac_n "(cached) $ac_c" 1>&6
10164 cat > conftest.$ac_ext <<EOF
10165 #line 10166 "configure"
10166 #include "confdefs.h"
10167 /* System header to define __stub macros and hopefully few prototypes,
10168 which can conflict with char $ac_func(); below. */
10169 #include <assert.h>
10170 /* Override any gcc2 internal prototype to avoid an error. */
10171 /* We use char because int might match the return type of a gcc2
10172 builtin and then its argument prototype would still apply. */
10178 /* The GNU C library defines this for functions which it implements
10179 to always fail with ENOSYS. Some functions are actually named
10180 something starting with __ and the normal name is an alias. */
10181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10189 if { (eval echo configure:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10191 eval "ac_cv_func_$ac_func=yes"
10193 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10196 eval "ac_cv_func_$ac_func=no"
10201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10202 echo "$ac_t""yes" 1>&6
10203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10204 cat >> confdefs.h <<EOF
10205 #define $ac_tr_func 1
10209 echo "$ac_t""no" 1>&6
10215 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10216 echo "configure:10217: checking for pthread_kill_other_threads_np" >&5
10217 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10218 echo $ac_n "(cached) $ac_c" 1>&6
10220 cat > conftest.$ac_ext <<EOF
10221 #line 10222 "configure"
10222 #include "confdefs.h"
10223 /* System header to define __stub macros and hopefully few prototypes,
10224 which can conflict with char pthread_kill_other_threads_np(); below. */
10225 #include <assert.h>
10226 /* Override any gcc2 internal prototype to avoid an error. */
10227 /* We use char because int might match the return type of a gcc2
10228 builtin and then its argument prototype would still apply. */
10229 char pthread_kill_other_threads_np();
10234 /* The GNU C library defines this for functions which it implements
10235 to always fail with ENOSYS. Some functions are actually named
10236 something starting with __ and the normal name is an alias. */
10237 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10240 f = pthread_kill_other_threads_np;
10245 if { (eval echo configure:10246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10247 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10249 echo "configure: failed program was:" >&5
10250 cat conftest.$ac_ext >&5
10252 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10257 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10258 echo "$ac_t""yes" 1>&6
10261 echo "$ac_t""no" 1>&6
10264 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10265 echo "configure:10266: checking for LinuxThreads implementation" >&5
10266 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10267 echo $ac_n "(cached) $ac_c" 1>&6
10269 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10272 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10277 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10278 echo "configure:10279: checking for LinuxThreads consistency" >&5
10279 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10280 echo $ac_n "(cached) $ac_c" 1>&6
10283 if test $ol_cv_header_linux_threads = yes -a \
10284 $ol_cv_sys_linux_threads = yes; then
10285 ol_cv_linux_threads=yes
10286 elif test $ol_cv_header_linux_threads = no -a \
10287 $ol_cv_sys_linux_threads = no; then
10288 ol_cv_linux_threads=no
10290 ol_cv_linux_threads=error
10295 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10298 if test $ol_cv_linux_threads = error; then
10299 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10302 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10303 echo "configure:10304: checking if pthread_create() works" >&5
10304 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10305 echo $ac_n "(cached) $ac_c" 1>&6
10308 if test "$cross_compiling" = yes; then
10309 ol_cv_pthread_create_works=yes
10311 cat > conftest.$ac_ext <<EOF
10312 #line 10313 "configure"
10313 #include "confdefs.h"
10314 /* pthread test headers */
10315 #include <pthread.h>
10317 #define NULL (void*)0
10320 static void *task(p)
10323 return (void *) (p == NULL);
10327 int main(argc, argv)
10332 /* pthread test function */
10335 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10336 /* This system (e.g. AIX) defaults detached; must override */
10337 pthread_attr_t attr;
10339 status = pthread_attr_init(&attr);
10340 if( status ) exit( status );
10342 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10343 if( status ) exit( status );
10347 #if HAVE_PTHREADS_D4
10348 #define ATTR pthread_attr_default
10353 /* make sure pthread_create() isn't just a stub */
10354 status = pthread_create(&t, ATTR, task, NULL);
10355 if( status ) exit( status );
10357 /* make sure pthread_detach() isn't just a stub */
10358 #if HAVE_PTHREADS_D4
10359 status = pthread_detach( &t );
10361 status = pthread_detach( t );
10364 #ifdef HAVE_LINUX_THREADS
10365 pthread_kill_other_threads_np();
10373 if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10375 ol_cv_pthread_create_works=yes
10377 echo "configure: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10380 ol_cv_pthread_create_works=no
10387 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10389 if test $ol_cv_pthread_create_works = no ; then
10390 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10393 if test $ol_with_yielding_select = auto ; then
10394 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10395 echo "configure:10396: checking if select yields when using pthreads" >&5
10396 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10397 echo $ac_n "(cached) $ac_c" 1>&6
10400 if test "$cross_compiling" = yes; then
10401 ol_cv_pthread_select_yields=cross
10403 cat > conftest.$ac_ext <<EOF
10404 #line 10405 "configure"
10405 #include "confdefs.h"
10407 #include <sys/types.h>
10408 #include <sys/time.h>
10409 #include <unistd.h>
10410 #include <pthread.h>
10412 #define NULL (void*) 0
10415 static int fildes[2];
10417 static void *task(p)
10429 FD_SET(fildes[0], &rfds);
10431 /* we're not interested in any fds */
10432 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10439 exit(0); /* if we exit here, the select blocked the whole process */
10442 int main(argc, argv)
10448 /* create a pipe to select */
10449 if(pipe(&fildes[0])) {
10454 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10455 (void) pthread_setconcurrency(2);
10457 #ifdef HAVE_THR_SETCONCURRENCY
10458 /* Set Solaris LWP concurrency to 2 */
10459 thr_setconcurrency(2);
10463 #if HAVE_PTHREADS_D4
10464 pthread_create(&t, pthread_attr_default, task, NULL);
10466 pthread_create(&t, NULL, task, NULL);
10469 #if HAVE_SCHED_YIELD
10470 sched_yield(); /* make sure task runs first */
10472 #ifdef HAVE_PTHREAD_YIELD
10473 pthread_yield(); /* make sure task runs first */
10480 if { (eval echo configure:10481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10482 ol_cv_pthread_select_yields=no
10484 echo "configure: failed program was:" >&5
10485 cat conftest.$ac_ext >&5
10487 ol_cv_pthread_select_yields=yes
10494 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10496 if test $ol_cv_pthread_select_yields = cross ; then
10497 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10500 if test $ol_cv_pthread_select_yields = yes ; then
10501 ol_with_yielding_select=yes
10505 CPPFLAGS="$save_CPPFLAGS"
10508 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10512 if test $ol_with_threads = posix ; then
10513 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10517 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10518 -o $ol_with_threads = mach ; then
10520 for ac_hdr in mach/cthreads.h
10522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10524 echo "configure:10525: checking for $ac_hdr" >&5
10525 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10526 echo $ac_n "(cached) $ac_c" 1>&6
10528 cat > conftest.$ac_ext <<EOF
10529 #line 10530 "configure"
10530 #include "confdefs.h"
10533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10534 { (eval echo configure:10535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10536 if test -z "$ac_err"; then
10538 eval "ac_cv_header_$ac_safe=yes"
10541 echo "configure: failed program was:" >&5
10542 cat conftest.$ac_ext >&5
10544 eval "ac_cv_header_$ac_safe=no"
10548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10549 echo "$ac_t""yes" 1>&6
10550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10551 cat >> confdefs.h <<EOF
10552 #define $ac_tr_hdr 1
10556 echo "$ac_t""no" 1>&6
10560 if test $ac_cv_header_mach_cthreads_h = yes ; then
10561 ol_with_threads=found
10563 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10564 echo "configure:10565: checking for cthread_fork" >&5
10565 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10566 echo $ac_n "(cached) $ac_c" 1>&6
10568 cat > conftest.$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10571 /* System header to define __stub macros and hopefully few prototypes,
10572 which can conflict with char cthread_fork(); below. */
10573 #include <assert.h>
10574 /* Override any gcc2 internal prototype to avoid an error. */
10575 /* We use char because int might match the return type of a gcc2
10576 builtin and then its argument prototype would still apply. */
10577 char cthread_fork();
10582 /* The GNU C library defines this for functions which it implements
10583 to always fail with ENOSYS. Some functions are actually named
10584 something starting with __ and the normal name is an alias. */
10585 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10593 if { (eval echo configure:10594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10595 eval "ac_cv_func_cthread_fork=yes"
10597 echo "configure: failed program was:" >&5
10598 cat conftest.$ac_ext >&5
10600 eval "ac_cv_func_cthread_fork=no"
10605 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10606 echo "$ac_t""yes" 1>&6
10607 ol_link_threads=yes
10609 echo "$ac_t""no" 1>&6
10613 if test $ol_link_threads = no ; then
10614 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10615 echo "configure:10616: checking for cthread_fork with -all_load" >&5
10616 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10617 echo $ac_n "(cached) $ac_c" 1>&6
10621 LIBS="-all_load $LIBS"
10622 cat > conftest.$ac_ext <<EOF
10623 #line 10624 "configure"
10624 #include "confdefs.h"
10625 #include <mach/cthreads.h>
10628 cthread_fork((void *)0, (void *)0);
10632 if { (eval echo configure:10633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10634 ol_cv_cthread_all_load=yes
10636 echo "configure: failed program was:" >&5
10637 cat conftest.$ac_ext >&5
10639 ol_cv_cthread_all_load=no
10646 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10648 if test $ol_cv_cthread_all_load = yes ; then
10649 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10650 ol_link_threads=mach
10654 if test $ol_link_threads != no ; then
10655 : check for cthread specific functionality here
10656 cat >> confdefs.h <<\EOF
10657 #define HAVE_MACH_CTHREADS 1
10661 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10665 if test $ol_with_threads = mach ; then
10666 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10670 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10671 -o $ol_with_threads = pth ; then
10673 for ac_hdr in pth.h
10675 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10677 echo "configure:10678: checking for $ac_hdr" >&5
10678 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10679 echo $ac_n "(cached) $ac_c" 1>&6
10681 cat > conftest.$ac_ext <<EOF
10682 #line 10683 "configure"
10683 #include "confdefs.h"
10686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10687 { (eval echo configure:10688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10689 if test -z "$ac_err"; then
10691 eval "ac_cv_header_$ac_safe=yes"
10694 echo "configure: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10697 eval "ac_cv_header_$ac_safe=no"
10701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10702 echo "$ac_t""yes" 1>&6
10703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10704 cat >> confdefs.h <<EOF
10705 #define $ac_tr_hdr 1
10709 echo "$ac_t""no" 1>&6
10714 if test $ac_cv_header_pth_h = yes ; then
10715 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10716 echo "configure:10717: checking for pth_version in -lpth" >&5
10717 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10718 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10719 echo $ac_n "(cached) $ac_c" 1>&6
10721 ac_save_LIBS="$LIBS"
10723 cat > conftest.$ac_ext <<EOF
10724 #line 10725 "configure"
10725 #include "confdefs.h"
10726 /* Override any gcc2 internal prototype to avoid an error. */
10727 /* We use char because int might match the return type of a gcc2
10728 builtin and then its argument prototype would still apply. */
10729 char pth_version();
10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10737 eval "ac_cv_lib_$ac_lib_var=yes"
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10742 eval "ac_cv_lib_$ac_lib_var=no"
10745 LIBS="$ac_save_LIBS"
10748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10749 echo "$ac_t""yes" 1>&6
10752 echo "$ac_t""no" 1>&6
10757 if test $have_pth = yes ; then
10758 cat >> confdefs.h <<\EOF
10759 #define HAVE_GNU_PTH 1
10762 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10763 ol_link_threads=pth
10765 if test $ol_with_yielding_select = auto ; then
10766 ol_with_yielding_select=yes
10772 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10773 -o $ol_with_threads = lwp ; then
10775 for ac_hdr in thread.h synch.h
10777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10779 echo "configure:10780: checking for $ac_hdr" >&5
10780 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10781 echo $ac_n "(cached) $ac_c" 1>&6
10783 cat > conftest.$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10789 { (eval echo configure:10790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10791 if test -z "$ac_err"; then
10793 eval "ac_cv_header_$ac_safe=yes"
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10799 eval "ac_cv_header_$ac_safe=no"
10803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10804 echo "$ac_t""yes" 1>&6
10805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10806 cat >> confdefs.h <<EOF
10807 #define $ac_tr_hdr 1
10811 echo "$ac_t""no" 1>&6
10815 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10816 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10817 echo "configure:10818: checking for thr_create in -lthread" >&5
10818 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10819 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10822 ac_save_LIBS="$LIBS"
10823 LIBS="-lthread $LIBS"
10824 cat > conftest.$ac_ext <<EOF
10825 #line 10826 "configure"
10826 #include "confdefs.h"
10827 /* Override any gcc2 internal prototype to avoid an error. */
10828 /* We use char because int might match the return type of a gcc2
10829 builtin and then its argument prototype would still apply. */
10836 if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10838 eval "ac_cv_lib_$ac_lib_var=yes"
10840 echo "configure: failed program was:" >&5
10841 cat conftest.$ac_ext >&5
10843 eval "ac_cv_lib_$ac_lib_var=no"
10846 LIBS="$ac_save_LIBS"
10849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10850 echo "$ac_t""yes" 1>&6
10853 echo "$ac_t""no" 1>&6
10858 if test $have_thr = yes ; then
10859 cat >> confdefs.h <<\EOF
10863 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10864 ol_link_threads=thr
10866 if test $ol_with_yielding_select = auto ; then
10867 ol_with_yielding_select=yes
10871 thr_setconcurrency \
10872 thr_getconcurrency \
10875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10876 echo "configure:10877: checking for $ac_func" >&5
10877 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10878 echo $ac_n "(cached) $ac_c" 1>&6
10880 cat > conftest.$ac_ext <<EOF
10881 #line 10882 "configure"
10882 #include "confdefs.h"
10883 /* System header to define __stub macros and hopefully few prototypes,
10884 which can conflict with char $ac_func(); below. */
10885 #include <assert.h>
10886 /* Override any gcc2 internal prototype to avoid an error. */
10887 /* We use char because int might match the return type of a gcc2
10888 builtin and then its argument prototype would still apply. */
10894 /* The GNU C library defines this for functions which it implements
10895 to always fail with ENOSYS. Some functions are actually named
10896 something starting with __ and the normal name is an alias. */
10897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10905 if { (eval echo configure:10906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10907 eval "ac_cv_func_$ac_func=yes"
10909 echo "configure: failed program was:" >&5
10910 cat conftest.$ac_ext >&5
10912 eval "ac_cv_func_$ac_func=no"
10917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10918 echo "$ac_t""yes" 1>&6
10919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10920 cat >> confdefs.h <<EOF
10921 #define $ac_tr_func 1
10925 echo "$ac_t""no" 1>&6
10932 for ac_hdr in lwp/lwp.h
10934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10936 echo "configure:10937: checking for $ac_hdr" >&5
10937 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10938 echo $ac_n "(cached) $ac_c" 1>&6
10940 cat > conftest.$ac_ext <<EOF
10941 #line 10942 "configure"
10942 #include "confdefs.h"
10945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10946 { (eval echo configure:10947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10948 if test -z "$ac_err"; then
10950 eval "ac_cv_header_$ac_safe=yes"
10953 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10956 eval "ac_cv_header_$ac_safe=no"
10960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10961 echo "$ac_t""yes" 1>&6
10962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10963 cat >> confdefs.h <<EOF
10964 #define $ac_tr_hdr 1
10968 echo "$ac_t""no" 1>&6
10972 if test $ac_cv_header_lwp_lwp_h = yes ; then
10973 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10974 echo "configure:10975: checking for lwp_create in -llwp" >&5
10975 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10976 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10979 ac_save_LIBS="$LIBS"
10981 cat > conftest.$ac_ext <<EOF
10982 #line 10983 "configure"
10983 #include "confdefs.h"
10984 /* Override any gcc2 internal prototype to avoid an error. */
10985 /* We use char because int might match the return type of a gcc2
10986 builtin and then its argument prototype would still apply. */
10993 if { (eval echo configure:10994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10995 eval "ac_cv_lib_$ac_lib_var=yes"
10997 echo "configure: failed program was:" >&5
10998 cat conftest.$ac_ext >&5
11000 eval "ac_cv_lib_$ac_lib_var=no"
11003 LIBS="$ac_save_LIBS"
11006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11007 echo "$ac_t""yes" 1>&6
11010 echo "$ac_t""no" 1>&6
11015 if test $have_lwp = yes ; then
11016 cat >> confdefs.h <<\EOF
11020 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11021 ol_link_threads=lwp
11023 if test $ol_with_yielding_select = auto ; then
11024 ol_with_yielding_select=no
11030 if test $ol_with_yielding_select = yes ; then
11031 cat >> confdefs.h <<\EOF
11032 #define HAVE_YIELDING_SELECT 1
11037 if test $ol_with_threads = manual ; then
11038 ol_link_threads=yes
11040 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11042 for ac_hdr in pthread.h sched.h
11044 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11045 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11046 echo "configure:11047: checking for $ac_hdr" >&5
11047 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11050 cat > conftest.$ac_ext <<EOF
11051 #line 11052 "configure"
11052 #include "confdefs.h"
11055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11056 { (eval echo configure:11057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11058 if test -z "$ac_err"; then
11060 eval "ac_cv_header_$ac_safe=yes"
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11066 eval "ac_cv_header_$ac_safe=no"
11070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11071 echo "$ac_t""yes" 1>&6
11072 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11073 cat >> confdefs.h <<EOF
11074 #define $ac_tr_hdr 1
11078 echo "$ac_t""no" 1>&6
11082 for ac_func in sched_yield pthread_yield
11084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11085 echo "configure:11086: checking for $ac_func" >&5
11086 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11087 echo $ac_n "(cached) $ac_c" 1>&6
11089 cat > conftest.$ac_ext <<EOF
11090 #line 11091 "configure"
11091 #include "confdefs.h"
11092 /* System header to define __stub macros and hopefully few prototypes,
11093 which can conflict with char $ac_func(); below. */
11094 #include <assert.h>
11095 /* Override any gcc2 internal prototype to avoid an error. */
11096 /* We use char because int might match the return type of a gcc2
11097 builtin and then its argument prototype would still apply. */
11103 /* The GNU C library defines this for functions which it implements
11104 to always fail with ENOSYS. Some functions are actually named
11105 something starting with __ and the normal name is an alias. */
11106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11114 if { (eval echo configure:11115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11116 eval "ac_cv_func_$ac_func=yes"
11118 echo "configure: failed program was:" >&5
11119 cat conftest.$ac_ext >&5
11121 eval "ac_cv_func_$ac_func=no"
11126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11127 echo "$ac_t""yes" 1>&6
11128 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11129 cat >> confdefs.h <<EOF
11130 #define $ac_tr_func 1
11134 echo "$ac_t""no" 1>&6
11139 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11140 echo "configure:11141: checking for LinuxThreads pthread.h" >&5
11141 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11142 echo $ac_n "(cached) $ac_c" 1>&6
11144 cat > conftest.$ac_ext <<EOF
11145 #line 11146 "configure"
11146 #include "confdefs.h"
11147 #include <pthread.h>
11149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11150 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11152 ol_cv_header_linux_threads=yes
11155 ol_cv_header_linux_threads=no
11162 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11163 if test $ol_cv_header_linux_threads = yes; then
11164 cat >> confdefs.h <<\EOF
11165 #define HAVE_LINUX_THREADS 1
11171 for ac_hdr in mach/cthreads.h
11173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11175 echo "configure:11176: checking for $ac_hdr" >&5
11176 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11179 cat > conftest.$ac_ext <<EOF
11180 #line 11181 "configure"
11181 #include "confdefs.h"
11184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11185 { (eval echo configure:11186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11187 if test -z "$ac_err"; then
11189 eval "ac_cv_header_$ac_safe=yes"
11192 echo "configure: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11195 eval "ac_cv_header_$ac_safe=no"
11199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11200 echo "$ac_t""yes" 1>&6
11201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11202 cat >> confdefs.h <<EOF
11203 #define $ac_tr_hdr 1
11207 echo "$ac_t""no" 1>&6
11211 for ac_hdr in lwp/lwp.h
11213 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11215 echo "configure:11216: checking for $ac_hdr" >&5
11216 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11217 echo $ac_n "(cached) $ac_c" 1>&6
11219 cat > conftest.$ac_ext <<EOF
11220 #line 11221 "configure"
11221 #include "confdefs.h"
11224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11225 { (eval echo configure:11226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11227 if test -z "$ac_err"; then
11229 eval "ac_cv_header_$ac_safe=yes"
11232 echo "configure: failed program was:" >&5
11233 cat conftest.$ac_ext >&5
11235 eval "ac_cv_header_$ac_safe=no"
11239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11240 echo "$ac_t""yes" 1>&6
11241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11242 cat >> confdefs.h <<EOF
11243 #define $ac_tr_hdr 1
11247 echo "$ac_t""no" 1>&6
11251 for ac_hdr in thread.h synch.h
11253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11255 echo "configure:11256: checking for $ac_hdr" >&5
11256 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11257 echo $ac_n "(cached) $ac_c" 1>&6
11259 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure"
11261 #include "confdefs.h"
11264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11265 { (eval echo configure:11266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11267 if test -z "$ac_err"; then
11269 eval "ac_cv_header_$ac_safe=yes"
11272 echo "configure: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11275 eval "ac_cv_header_$ac_safe=no"
11279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11280 echo "$ac_t""yes" 1>&6
11281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11282 cat >> confdefs.h <<EOF
11283 #define $ac_tr_hdr 1
11287 echo "$ac_t""no" 1>&6
11293 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11294 cat >> confdefs.h <<\EOF
11295 #define REENTRANT 1
11298 cat >> confdefs.h <<\EOF
11299 #define _REENTRANT 1
11302 cat >> confdefs.h <<\EOF
11303 #define THREAD_SAFE 1
11306 cat >> confdefs.h <<\EOF
11307 #define _THREAD_SAFE 1
11310 cat >> confdefs.h <<\EOF
11311 #define THREADSAFE 1
11314 cat >> confdefs.h <<\EOF
11315 #define _THREADSAFE 1
11318 cat >> confdefs.h <<\EOF
11319 #define _SGI_MP_SOURCE 1
11323 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11324 echo "configure:11325: checking for thread specific errno" >&5
11325 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11326 echo $ac_n "(cached) $ac_c" 1>&6
11329 cat > conftest.$ac_ext <<EOF
11330 #line 11331 "configure"
11331 #include "confdefs.h"
11337 if { (eval echo configure:11338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11339 ol_cv_errno_thread_specific=yes
11341 echo "configure: failed program was:" >&5
11342 cat conftest.$ac_ext >&5
11344 ol_cv_errno_thread_specific=no
11350 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11352 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11353 echo "configure:11354: checking for thread specific h_errno" >&5
11354 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11355 echo $ac_n "(cached) $ac_c" 1>&6
11358 cat > conftest.$ac_ext <<EOF
11359 #line 11360 "configure"
11360 #include "confdefs.h"
11366 if { (eval echo configure:11367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11368 ol_cv_h_errno_thread_specific=yes
11370 echo "configure: failed program was:" >&5
11371 cat conftest.$ac_ext >&5
11373 ol_cv_h_errno_thread_specific=no
11379 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11381 if test $ol_cv_errno_thread_specific != yes \
11382 -o $ol_cv_h_errno_thread_specific != yes ; then
11383 LIBS="$LTHREAD_LIBS $LIBS"
11389 if test $ol_link_threads = no ; then
11390 if test $ol_with_threads = yes ; then
11391 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11394 if test $ol_with_threads = auto ; then
11395 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11399 cat >> confdefs.h <<\EOF
11400 #define NO_THREADS 1
11406 if test $ol_link_threads != no ; then
11407 cat >> confdefs.h <<\EOF
11408 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11415 if test $ol_with_ldbm_api = auto \
11416 -o $ol_with_ldbm_api = berkeley \
11417 -o $ol_with_ldbm_api = bcompat ; then
11419 if test $ol_with_ldbm_api = bcompat; then \
11420 ol_cv_berkeley_db=no
11421 for ac_hdr in db_185.h db.h
11423 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11424 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11425 echo "configure:11426: checking for $ac_hdr" >&5
11426 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11427 echo $ac_n "(cached) $ac_c" 1>&6
11429 cat > conftest.$ac_ext <<EOF
11430 #line 11431 "configure"
11431 #include "confdefs.h"
11434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11435 { (eval echo configure:11436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11437 if test -z "$ac_err"; then
11439 eval "ac_cv_header_$ac_safe=yes"
11442 echo "configure: failed program was:" >&5
11443 cat conftest.$ac_ext >&5
11445 eval "ac_cv_header_$ac_safe=no"
11449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11450 echo "$ac_t""yes" 1>&6
11451 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11452 cat >> confdefs.h <<EOF
11453 #define $ac_tr_hdr 1
11457 echo "$ac_t""no" 1>&6
11461 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11462 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11463 echo "configure:11464: checking if Berkeley DB header compatibility" >&5
11464 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11465 echo $ac_n "(cached) $ac_c" 1>&6
11468 cat > conftest.$ac_ext <<EOF
11469 #line 11470 "configure"
11470 #include "confdefs.h"
11473 # include <db_185.h>
11478 /* this check could be improved */
11479 #ifndef DB_VERSION_MAJOR
11480 # define DB_VERSION_MAJOR 1
11483 #if DB_VERSION_MAJOR == 1
11488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11489 egrep "__db_version_1" >/dev/null 2>&1; then
11491 ol_cv_header_db1=yes
11494 ol_cv_header_db1=no
11500 echo "$ac_t""$ol_cv_header_db1" 1>&6
11502 if test ol_cv_header_db1=yes ; then
11504 if test $ol_cv_lib_db = no ; then
11505 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11506 echo "configure:11507: checking for Berkeley DB link (default)" >&5
11507 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11508 echo $ac_n "(cached) $ac_c" 1>&6
11513 LIBS="$ol_DB_LIB $LIBS"
11515 cat > conftest.$ac_ext <<EOF
11516 #line 11517 "configure"
11517 #include "confdefs.h"
11519 #ifdef HAVE_DB_185_H
11520 # include <db_185.h>
11525 #ifndef DB_VERSION_MAJOR
11526 # define DB_VERSION_MAJOR 1
11530 #define NULL ((void*)0)
11535 #if DB_VERSION_MAJOR > 2
11536 db_env_create( NULL, 0 );
11537 #elif DB_VERSION_MAJOR > 1
11538 db_appexit( NULL );
11540 (void) dbopen( NULL, 0, 0, 0, NULL);
11545 if { (eval echo configure:11546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11549 echo "configure: failed program was:" >&5
11550 cat conftest.$ac_ext >&5
11560 echo "$ac_t""$ol_cv_db_none" 1>&6
11562 if test $ol_cv_db_none = yes ; then
11567 if test $ol_cv_lib_db = no ; then
11568 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11569 echo "configure:11570: checking for Berkeley DB link (-ldb)" >&5
11570 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11571 echo $ac_n "(cached) $ac_c" 1>&6
11576 LIBS="$ol_DB_LIB $LIBS"
11578 cat > conftest.$ac_ext <<EOF
11579 #line 11580 "configure"
11580 #include "confdefs.h"
11582 #ifdef HAVE_DB_185_H
11583 # include <db_185.h>
11588 #ifndef DB_VERSION_MAJOR
11589 # define DB_VERSION_MAJOR 1
11593 #define NULL ((void*)0)
11598 #if DB_VERSION_MAJOR > 2
11599 db_env_create( NULL, 0 );
11600 #elif DB_VERSION_MAJOR > 1
11601 db_appexit( NULL );
11603 (void) dbopen( NULL, 0, 0, 0, NULL);
11608 if { (eval echo configure:11609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11612 echo "configure: failed program was:" >&5
11613 cat conftest.$ac_ext >&5
11623 echo "$ac_t""$ol_cv_db_db" 1>&6
11625 if test $ol_cv_db_db = yes ; then
11630 if test $ol_cv_lib_db = no ; then
11631 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11632 echo "configure:11633: checking for Berkeley DB link (-ldb3)" >&5
11633 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11634 echo $ac_n "(cached) $ac_c" 1>&6
11639 LIBS="$ol_DB_LIB $LIBS"
11641 cat > conftest.$ac_ext <<EOF
11642 #line 11643 "configure"
11643 #include "confdefs.h"
11645 #ifdef HAVE_DB_185_H
11646 # include <db_185.h>
11651 #ifndef DB_VERSION_MAJOR
11652 # define DB_VERSION_MAJOR 1
11656 #define NULL ((void*)0)
11661 #if DB_VERSION_MAJOR > 2
11662 db_env_create( NULL, 0 );
11663 #elif DB_VERSION_MAJOR > 1
11664 db_appexit( NULL );
11666 (void) dbopen( NULL, 0, 0, 0, NULL);
11671 if { (eval echo configure:11672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11675 echo "configure: failed program was:" >&5
11676 cat conftest.$ac_ext >&5
11686 echo "$ac_t""$ol_cv_db_db3" 1>&6
11688 if test $ol_cv_db_db3 = yes ; then
11693 if test $ol_cv_lib_db = no ; then
11694 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11695 echo "configure:11696: checking for Berkeley DB link (-ldb2)" >&5
11696 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11697 echo $ac_n "(cached) $ac_c" 1>&6
11702 LIBS="$ol_DB_LIB $LIBS"
11704 cat > conftest.$ac_ext <<EOF
11705 #line 11706 "configure"
11706 #include "confdefs.h"
11708 #ifdef HAVE_DB_185_H
11709 # include <db_185.h>
11714 #ifndef DB_VERSION_MAJOR
11715 # define DB_VERSION_MAJOR 1
11719 #define NULL ((void*)0)
11724 #if DB_VERSION_MAJOR > 2
11725 db_env_create( NULL, 0 );
11726 #elif DB_VERSION_MAJOR > 1
11727 db_appexit( NULL );
11729 (void) dbopen( NULL, 0, 0, 0, NULL);
11734 if { (eval echo configure:11735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11738 echo "configure: failed program was:" >&5
11739 cat conftest.$ac_ext >&5
11749 echo "$ac_t""$ol_cv_db_db2" 1>&6
11751 if test $ol_cv_db_db2 = yes ; then
11756 if test $ol_cv_lib_db = no ; then
11757 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11758 echo "configure:11759: checking for Berkeley DB link (-ldb1)" >&5
11759 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11760 echo $ac_n "(cached) $ac_c" 1>&6
11765 LIBS="$ol_DB_LIB $LIBS"
11767 cat > conftest.$ac_ext <<EOF
11768 #line 11769 "configure"
11769 #include "confdefs.h"
11771 #ifdef HAVE_DB_185_H
11772 # include <db_185.h>
11777 #ifndef DB_VERSION_MAJOR
11778 # define DB_VERSION_MAJOR 1
11782 #define NULL ((void*)0)
11787 #if DB_VERSION_MAJOR > 2
11788 db_env_create( NULL, 0 );
11789 #elif DB_VERSION_MAJOR > 1
11790 db_appexit( NULL );
11792 (void) dbopen( NULL, 0, 0, 0, NULL);
11797 if { (eval echo configure:11798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11801 echo "configure: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11812 echo "$ac_t""$ol_cv_db_db1" 1>&6
11814 if test $ol_cv_db_db1 = yes ; then
11820 if test "$ol_cv_lib_db" != no ; then
11821 ol_cv_berkeley_db=yes
11827 ol_cv_berkeley_db=no
11830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11832 echo "configure:11833: checking for $ac_hdr" >&5
11833 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11834 echo $ac_n "(cached) $ac_c" 1>&6
11836 cat > conftest.$ac_ext <<EOF
11837 #line 11838 "configure"
11838 #include "confdefs.h"
11841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11842 { (eval echo configure:11843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11844 if test -z "$ac_err"; then
11846 eval "ac_cv_header_$ac_safe=yes"
11849 echo "configure: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
11852 eval "ac_cv_header_$ac_safe=no"
11856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11857 echo "$ac_t""yes" 1>&6
11858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11859 cat >> confdefs.h <<EOF
11860 #define $ac_tr_hdr 1
11864 echo "$ac_t""no" 1>&6
11868 if test $ac_cv_header_db_h = yes; then
11870 if test $ol_cv_lib_db = no ; then
11871 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11872 echo "configure:11873: checking for Berkeley DB link (default)" >&5
11873 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11874 echo $ac_n "(cached) $ac_c" 1>&6
11879 LIBS="$ol_DB_LIB $LIBS"
11881 cat > conftest.$ac_ext <<EOF
11882 #line 11883 "configure"
11883 #include "confdefs.h"
11885 #ifdef HAVE_DB_185_H
11886 # include <db_185.h>
11891 #ifndef DB_VERSION_MAJOR
11892 # define DB_VERSION_MAJOR 1
11896 #define NULL ((void*)0)
11901 #if DB_VERSION_MAJOR > 2
11902 db_env_create( NULL, 0 );
11903 #elif DB_VERSION_MAJOR > 1
11904 db_appexit( NULL );
11906 (void) dbopen( NULL, 0, 0, 0, NULL);
11911 if { (eval echo configure:11912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11915 echo "configure: failed program was:" >&5
11916 cat conftest.$ac_ext >&5
11926 echo "$ac_t""$ol_cv_db_none" 1>&6
11928 if test $ol_cv_db_none = yes ; then
11933 if test $ol_cv_lib_db = no ; then
11934 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11935 echo "configure:11936: checking for Berkeley DB link (-ldb)" >&5
11936 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11937 echo $ac_n "(cached) $ac_c" 1>&6
11942 LIBS="$ol_DB_LIB $LIBS"
11944 cat > conftest.$ac_ext <<EOF
11945 #line 11946 "configure"
11946 #include "confdefs.h"
11948 #ifdef HAVE_DB_185_H
11949 # include <db_185.h>
11954 #ifndef DB_VERSION_MAJOR
11955 # define DB_VERSION_MAJOR 1
11959 #define NULL ((void*)0)
11964 #if DB_VERSION_MAJOR > 2
11965 db_env_create( NULL, 0 );
11966 #elif DB_VERSION_MAJOR > 1
11967 db_appexit( NULL );
11969 (void) dbopen( NULL, 0, 0, 0, NULL);
11974 if { (eval echo configure:11975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11978 echo "configure: failed program was:" >&5
11979 cat conftest.$ac_ext >&5
11989 echo "$ac_t""$ol_cv_db_db" 1>&6
11991 if test $ol_cv_db_db = yes ; then
11996 if test $ol_cv_lib_db = no ; then
11997 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11998 echo "configure:11999: checking for Berkeley DB link (-ldb3)" >&5
11999 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12000 echo $ac_n "(cached) $ac_c" 1>&6
12005 LIBS="$ol_DB_LIB $LIBS"
12007 cat > conftest.$ac_ext <<EOF
12008 #line 12009 "configure"
12009 #include "confdefs.h"
12011 #ifdef HAVE_DB_185_H
12012 # include <db_185.h>
12017 #ifndef DB_VERSION_MAJOR
12018 # define DB_VERSION_MAJOR 1
12022 #define NULL ((void*)0)
12027 #if DB_VERSION_MAJOR > 2
12028 db_env_create( NULL, 0 );
12029 #elif DB_VERSION_MAJOR > 1
12030 db_appexit( NULL );
12032 (void) dbopen( NULL, 0, 0, 0, NULL);
12037 if { (eval echo configure:12038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12041 echo "configure: failed program was:" >&5
12042 cat conftest.$ac_ext >&5
12052 echo "$ac_t""$ol_cv_db_db3" 1>&6
12054 if test $ol_cv_db_db3 = yes ; then
12059 if test $ol_cv_lib_db = no ; then
12060 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12061 echo "configure:12062: checking for Berkeley DB link (-ldb2)" >&5
12062 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12063 echo $ac_n "(cached) $ac_c" 1>&6
12068 LIBS="$ol_DB_LIB $LIBS"
12070 cat > conftest.$ac_ext <<EOF
12071 #line 12072 "configure"
12072 #include "confdefs.h"
12074 #ifdef HAVE_DB_185_H
12075 # include <db_185.h>
12080 #ifndef DB_VERSION_MAJOR
12081 # define DB_VERSION_MAJOR 1
12085 #define NULL ((void*)0)
12090 #if DB_VERSION_MAJOR > 2
12091 db_env_create( NULL, 0 );
12092 #elif DB_VERSION_MAJOR > 1
12093 db_appexit( NULL );
12095 (void) dbopen( NULL, 0, 0, 0, NULL);
12100 if { (eval echo configure:12101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12104 echo "configure: failed program was:" >&5
12105 cat conftest.$ac_ext >&5
12115 echo "$ac_t""$ol_cv_db_db2" 1>&6
12117 if test $ol_cv_db_db2 = yes ; then
12122 if test $ol_cv_lib_db = no ; then
12123 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12124 echo "configure:12125: checking for Berkeley DB link (-ldb1)" >&5
12125 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12126 echo $ac_n "(cached) $ac_c" 1>&6
12131 LIBS="$ol_DB_LIB $LIBS"
12133 cat > conftest.$ac_ext <<EOF
12134 #line 12135 "configure"
12135 #include "confdefs.h"
12137 #ifdef HAVE_DB_185_H
12138 # include <db_185.h>
12143 #ifndef DB_VERSION_MAJOR
12144 # define DB_VERSION_MAJOR 1
12148 #define NULL ((void*)0)
12153 #if DB_VERSION_MAJOR > 2
12154 db_env_create( NULL, 0 );
12155 #elif DB_VERSION_MAJOR > 1
12156 db_appexit( NULL );
12158 (void) dbopen( NULL, 0, 0, 0, NULL);
12163 if { (eval echo configure:12164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12167 echo "configure: failed program was:" >&5
12168 cat conftest.$ac_ext >&5
12178 echo "$ac_t""$ol_cv_db_db1" 1>&6
12180 if test $ol_cv_db_db1 = yes ; then
12186 if test "$ol_cv_lib_db" != no ; then
12187 ol_cv_berkeley_db=yes
12188 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12189 echo "configure:12190: checking for Berkeley DB thread support" >&5
12190 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12191 echo $ac_n "(cached) $ac_c" 1>&6
12195 if test $ol_cv_lib_db != yes ; then
12196 LIBS="$ol_cv_lib_db"
12199 if test "$cross_compiling" = yes; then
12200 ol_cv_berkeley_db_thread=cross
12202 cat > conftest.$ac_ext <<EOF
12203 #line 12204 "configure"
12204 #include "confdefs.h"
12206 #ifdef HAVE_DB_185_H
12212 #define NULL ((void *)0)
12217 u_int32_t flags = DB_CREATE | DB_THREAD;
12220 #if DB_VERSION_MAJOR > 2
12221 DB_ENV *env = NULL;
12223 rc = db_env_create( &env, 0 );
12226 rc = env->open( env, NULL, NULL, flags, 0 );
12231 memset( &env, '\0', sizeof(env) );
12233 rc = db_appinit( NULL, NULL, &env, flags );
12236 db_appexit( &env );
12243 if { (eval echo configure:12244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12245 ol_cv_berkeley_db_thread=yes
12247 echo "configure: failed program was:" >&5
12248 cat conftest.$ac_ext >&5
12250 ol_cv_berkeley_db_thread=no
12258 if test $ol_cv_berkeley_db_thread != no ; then
12259 cat >> confdefs.h <<\EOF
12260 #define HAVE_BERKELEY_DB_THREAD 1
12267 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12273 if test $ol_cv_berkeley_db != no ; then
12274 cat >> confdefs.h <<\EOF
12275 #define HAVE_BERKELEY_DB 1
12279 ol_link_ldbm=berkeley
12280 ol_with_ldbm_api=db
12282 if test $ol_with_ldbm_type = hash ; then
12283 cat >> confdefs.h <<\EOF
12284 #define LDBM_USE_DBHASH 1
12288 cat >> confdefs.h <<\EOF
12289 #define LDBM_USE_DBBTREE 1
12294 if test $ol_cv_lib_db != yes ; then
12295 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12300 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12301 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12302 ol_with_ldbm_api=none
12305 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12306 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12307 echo "configure:12308: checking for MDBM library" >&5
12308 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12309 echo $ac_n "(cached) $ac_c" 1>&6
12312 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12313 echo "configure:12314: checking for mdbm_set_chain" >&5
12314 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12315 echo $ac_n "(cached) $ac_c" 1>&6
12317 cat > conftest.$ac_ext <<EOF
12318 #line 12319 "configure"
12319 #include "confdefs.h"
12320 /* System header to define __stub macros and hopefully few prototypes,
12321 which can conflict with char mdbm_set_chain(); below. */
12322 #include <assert.h>
12323 /* Override any gcc2 internal prototype to avoid an error. */
12324 /* We use char because int might match the return type of a gcc2
12325 builtin and then its argument prototype would still apply. */
12326 char mdbm_set_chain();
12331 /* The GNU C library defines this for functions which it implements
12332 to always fail with ENOSYS. Some functions are actually named
12333 something starting with __ and the normal name is an alias. */
12334 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12337 f = mdbm_set_chain;
12342 if { (eval echo configure:12343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12344 eval "ac_cv_func_mdbm_set_chain=yes"
12346 echo "configure: failed program was:" >&5
12347 cat conftest.$ac_ext >&5
12349 eval "ac_cv_func_mdbm_set_chain=no"
12354 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12355 echo "$ac_t""yes" 1>&6
12358 echo "$ac_t""no" 1>&6
12360 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12361 echo "configure:12362: checking for mdbm_set_chain in -lmdbm" >&5
12362 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12363 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12364 echo $ac_n "(cached) $ac_c" 1>&6
12366 ac_save_LIBS="$LIBS"
12367 LIBS="-lmdbm $LIBS"
12368 cat > conftest.$ac_ext <<EOF
12369 #line 12370 "configure"
12370 #include "confdefs.h"
12371 /* Override any gcc2 internal prototype to avoid an error. */
12372 /* We use char because int might match the return type of a gcc2
12373 builtin and then its argument prototype would still apply. */
12374 char mdbm_set_chain();
12380 if { (eval echo configure:12381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12382 eval "ac_cv_lib_$ac_lib_var=yes"
12384 echo "configure: failed program was:" >&5
12385 cat conftest.$ac_ext >&5
12387 eval "ac_cv_lib_$ac_lib_var=no"
12390 LIBS="$ac_save_LIBS"
12393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12394 echo "$ac_t""yes" 1>&6
12395 ol_cv_lib_mdbm=-lmdbm
12397 echo "$ac_t""no" 1>&6
12408 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12411 for ac_hdr in mdbm.h
12413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12415 echo "configure:12416: checking for $ac_hdr" >&5
12416 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12417 echo $ac_n "(cached) $ac_c" 1>&6
12419 cat > conftest.$ac_ext <<EOF
12420 #line 12421 "configure"
12421 #include "confdefs.h"
12424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12425 { (eval echo configure:12426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12427 if test -z "$ac_err"; then
12429 eval "ac_cv_header_$ac_safe=yes"
12432 echo "configure: failed program was:" >&5
12433 cat conftest.$ac_ext >&5
12435 eval "ac_cv_header_$ac_safe=no"
12439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12440 echo "$ac_t""yes" 1>&6
12441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12442 cat >> confdefs.h <<EOF
12443 #define $ac_tr_hdr 1
12447 echo "$ac_t""no" 1>&6
12451 echo $ac_n "checking for db""... $ac_c" 1>&6
12452 echo "configure:12453: checking for db" >&5
12453 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12454 echo $ac_n "(cached) $ac_c" 1>&6
12457 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12465 echo "$ac_t""$ol_cv_mdbm" 1>&6
12466 if test $ol_cv_mdbm = yes ; then
12467 cat >> confdefs.h <<\EOF
12468 #define HAVE_MDBM 1
12474 if test $ol_cv_mdbm = yes ; then
12476 ol_with_ldbm_api=mdbm
12477 if test $ol_cv_lib_mdbm != yes ; then
12478 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12483 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12484 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12485 echo "configure:12486: checking for GDBM library" >&5
12486 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12487 echo $ac_n "(cached) $ac_c" 1>&6
12490 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12491 echo "configure:12492: checking for gdbm_open" >&5
12492 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12493 echo $ac_n "(cached) $ac_c" 1>&6
12495 cat > conftest.$ac_ext <<EOF
12496 #line 12497 "configure"
12497 #include "confdefs.h"
12498 /* System header to define __stub macros and hopefully few prototypes,
12499 which can conflict with char gdbm_open(); below. */
12500 #include <assert.h>
12501 /* Override any gcc2 internal prototype to avoid an error. */
12502 /* We use char because int might match the return type of a gcc2
12503 builtin and then its argument prototype would still apply. */
12509 /* The GNU C library defines this for functions which it implements
12510 to always fail with ENOSYS. Some functions are actually named
12511 something starting with __ and the normal name is an alias. */
12512 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12520 if { (eval echo configure:12521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12522 eval "ac_cv_func_gdbm_open=yes"
12524 echo "configure: failed program was:" >&5
12525 cat conftest.$ac_ext >&5
12527 eval "ac_cv_func_gdbm_open=no"
12532 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12533 echo "$ac_t""yes" 1>&6
12536 echo "$ac_t""no" 1>&6
12538 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12539 echo "configure:12540: checking for gdbm_open in -lgdbm" >&5
12540 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12541 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12542 echo $ac_n "(cached) $ac_c" 1>&6
12544 ac_save_LIBS="$LIBS"
12545 LIBS="-lgdbm $LIBS"
12546 cat > conftest.$ac_ext <<EOF
12547 #line 12548 "configure"
12548 #include "confdefs.h"
12549 /* Override any gcc2 internal prototype to avoid an error. */
12550 /* We use char because int might match the return type of a gcc2
12551 builtin and then its argument prototype would still apply. */
12558 if { (eval echo configure:12559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12560 eval "ac_cv_lib_$ac_lib_var=yes"
12562 echo "configure: failed program was:" >&5
12563 cat conftest.$ac_ext >&5
12565 eval "ac_cv_lib_$ac_lib_var=no"
12568 LIBS="$ac_save_LIBS"
12571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12572 echo "$ac_t""yes" 1>&6
12573 ol_cv_lib_gdbm=-lgdbm
12575 echo "$ac_t""no" 1>&6
12586 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12589 for ac_hdr in gdbm.h
12591 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12593 echo "configure:12594: checking for $ac_hdr" >&5
12594 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12595 echo $ac_n "(cached) $ac_c" 1>&6
12597 cat > conftest.$ac_ext <<EOF
12598 #line 12599 "configure"
12599 #include "confdefs.h"
12602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12603 { (eval echo configure:12604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12605 if test -z "$ac_err"; then
12607 eval "ac_cv_header_$ac_safe=yes"
12610 echo "configure: failed program was:" >&5
12611 cat conftest.$ac_ext >&5
12613 eval "ac_cv_header_$ac_safe=no"
12617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12618 echo "$ac_t""yes" 1>&6
12619 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12620 cat >> confdefs.h <<EOF
12621 #define $ac_tr_hdr 1
12625 echo "$ac_t""no" 1>&6
12629 echo $ac_n "checking for db""... $ac_c" 1>&6
12630 echo "configure:12631: checking for db" >&5
12631 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12632 echo $ac_n "(cached) $ac_c" 1>&6
12635 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12643 echo "$ac_t""$ol_cv_gdbm" 1>&6
12644 if test $ol_cv_gdbm = yes ; then
12645 cat >> confdefs.h <<\EOF
12646 #define HAVE_GDBM 1
12652 if test $ol_cv_gdbm = yes ; then
12654 ol_with_ldbm_api=gdbm
12656 if test $ol_cv_lib_gdbm != yes ; then
12657 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12662 if test $ol_with_ldbm_api = ndbm ; then
12663 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12664 echo "configure:12665: checking for NDBM library" >&5
12665 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12666 echo $ac_n "(cached) $ac_c" 1>&6
12669 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12670 echo "configure:12671: checking for dbm_open" >&5
12671 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12672 echo $ac_n "(cached) $ac_c" 1>&6
12674 cat > conftest.$ac_ext <<EOF
12675 #line 12676 "configure"
12676 #include "confdefs.h"
12677 /* System header to define __stub macros and hopefully few prototypes,
12678 which can conflict with char dbm_open(); below. */
12679 #include <assert.h>
12680 /* Override any gcc2 internal prototype to avoid an error. */
12681 /* We use char because int might match the return type of a gcc2
12682 builtin and then its argument prototype would still apply. */
12688 /* The GNU C library defines this for functions which it implements
12689 to always fail with ENOSYS. Some functions are actually named
12690 something starting with __ and the normal name is an alias. */
12691 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12699 if { (eval echo configure:12700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12701 eval "ac_cv_func_dbm_open=yes"
12703 echo "configure: failed program was:" >&5
12704 cat conftest.$ac_ext >&5
12706 eval "ac_cv_func_dbm_open=no"
12711 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12712 echo "$ac_t""yes" 1>&6
12715 echo "$ac_t""no" 1>&6
12717 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12718 echo "configure:12719: checking for dbm_open in -lndbm" >&5
12719 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12720 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12721 echo $ac_n "(cached) $ac_c" 1>&6
12723 ac_save_LIBS="$LIBS"
12724 LIBS="-lndbm $LIBS"
12725 cat > conftest.$ac_ext <<EOF
12726 #line 12727 "configure"
12727 #include "confdefs.h"
12728 /* Override any gcc2 internal prototype to avoid an error. */
12729 /* We use char because int might match the return type of a gcc2
12730 builtin and then its argument prototype would still apply. */
12737 if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12739 eval "ac_cv_lib_$ac_lib_var=yes"
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12744 eval "ac_cv_lib_$ac_lib_var=no"
12747 LIBS="$ac_save_LIBS"
12750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12751 echo "$ac_t""yes" 1>&6
12752 ol_cv_lib_ndbm=-lndbm
12754 echo "$ac_t""no" 1>&6
12756 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12757 echo "configure:12758: checking for dbm_open in -ldbm" >&5
12758 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12759 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12760 echo $ac_n "(cached) $ac_c" 1>&6
12762 ac_save_LIBS="$LIBS"
12764 cat > conftest.$ac_ext <<EOF
12765 #line 12766 "configure"
12766 #include "confdefs.h"
12767 /* Override any gcc2 internal prototype to avoid an error. */
12768 /* We use char because int might match the return type of a gcc2
12769 builtin and then its argument prototype would still apply. */
12776 if { (eval echo configure:12777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12778 eval "ac_cv_lib_$ac_lib_var=yes"
12780 echo "configure: failed program was:" >&5
12781 cat conftest.$ac_ext >&5
12783 eval "ac_cv_lib_$ac_lib_var=no"
12786 LIBS="$ac_save_LIBS"
12789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12790 echo "$ac_t""yes" 1>&6
12791 ol_cv_lib_ndbm=-ldbm
12793 echo "$ac_t""no" 1>&6
12806 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12809 for ac_hdr in ndbm.h
12811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12813 echo "configure:12814: checking for $ac_hdr" >&5
12814 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12815 echo $ac_n "(cached) $ac_c" 1>&6
12817 cat > conftest.$ac_ext <<EOF
12818 #line 12819 "configure"
12819 #include "confdefs.h"
12822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12823 { (eval echo configure:12824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12825 if test -z "$ac_err"; then
12827 eval "ac_cv_header_$ac_safe=yes"
12830 echo "configure: failed program was:" >&5
12831 cat conftest.$ac_ext >&5
12833 eval "ac_cv_header_$ac_safe=no"
12837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12838 echo "$ac_t""yes" 1>&6
12839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12840 cat >> confdefs.h <<EOF
12841 #define $ac_tr_hdr 1
12845 echo "$ac_t""no" 1>&6
12849 echo $ac_n "checking for db""... $ac_c" 1>&6
12850 echo "configure:12851: checking for db" >&5
12851 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12852 echo $ac_n "(cached) $ac_c" 1>&6
12855 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12863 echo "$ac_t""$ol_cv_ndbm" 1>&6
12864 if test $ol_cv_ndbm = yes ; then
12865 cat >> confdefs.h <<\EOF
12866 #define HAVE_NDBM 1
12872 if test $ol_cv_ndbm = yes ; then
12874 ol_with_ldbm_api=ndbm
12876 if test $ol_cv_lib_ndbm != yes ; then
12877 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12882 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12883 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12884 if test $ol_enable_ldbm = yes ; then
12885 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12888 echo "configure: warning: disabling LDBM" 1>&2
12893 if test $ol_enable_bdb2 != no ; then
12894 if test $ol_enable_bdb2 = yes -a $ol_link_ldbm != berkeley ; then
12895 { echo "configure: error: BDB2 requires LDBM BerkeleyDB 2" 1>&2; exit 1; }
12896 elif test $ol_link_ldbm = berkeley ; then
12897 ol_link_bdb2=$ol_link_ldbm
12901 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12902 LINK_BINS_DYNAMIC="yes"
12904 LINK_BINS_DYNAMIC="no"
12907 if test $ol_enable_wrappers != no ; then
12908 for ac_hdr in tcpd.h
12910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12912 echo "configure:12913: checking for $ac_hdr" >&5
12913 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12914 echo $ac_n "(cached) $ac_c" 1>&6
12916 cat > conftest.$ac_ext <<EOF
12917 #line 12918 "configure"
12918 #include "confdefs.h"
12921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12922 { (eval echo configure:12923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12924 if test -z "$ac_err"; then
12926 eval "ac_cv_header_$ac_safe=yes"
12929 echo "configure: failed program was:" >&5
12930 cat conftest.$ac_ext >&5
12932 eval "ac_cv_header_$ac_safe=no"
12936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12937 echo "$ac_t""yes" 1>&6
12938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12939 cat >> confdefs.h <<EOF
12940 #define $ac_tr_hdr 1
12944 echo "$ac_t""no" 1>&6
12949 if test $ac_cv_header_tcpd_h != yes ; then
12952 cat > conftest.$ac_ext <<EOF
12953 #line 12954 "configure"
12954 #include "confdefs.h"
12956 int allow_severity = 0;
12957 int deny_severity = 0;
12963 if { (eval echo configure:12964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12967 echo "configure: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12975 if test $have_wrappers = yes ; then
12976 cat >> confdefs.h <<\EOF
12977 #define HAVE_TCPD 1
12982 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12983 echo "configure:12984: checking for main in -lnsl" >&5
12984 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12985 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12986 echo $ac_n "(cached) $ac_c" 1>&6
12988 ac_save_LIBS="$LIBS"
12990 cat > conftest.$ac_ext <<EOF
12991 #line 12992 "configure"
12992 #include "confdefs.h"
12998 if { (eval echo configure:12999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13000 eval "ac_cv_lib_$ac_lib_var=yes"
13002 echo "configure: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13005 eval "ac_cv_lib_$ac_lib_var=no"
13008 LIBS="$ac_save_LIBS"
13011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13012 echo "$ac_t""yes" 1>&6
13013 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13015 cat >> confdefs.h <<EOF
13016 #define $ac_tr_lib 1
13022 echo "$ac_t""no" 1>&6
13026 echo "configure: warning: could not find -lwrap" 1>&2
13027 if test $ol_enable_wrappers = yes ; then
13028 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13031 echo "configure: warning: disabling wrappers support" 1>&2
13032 ol_enable_wrappers=no
13037 if test $ol_enable_syslog != no ; then
13038 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13039 echo "configure:13040: checking for openlog" >&5
13040 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13041 echo $ac_n "(cached) $ac_c" 1>&6
13043 cat > conftest.$ac_ext <<EOF
13044 #line 13045 "configure"
13045 #include "confdefs.h"
13046 /* System header to define __stub macros and hopefully few prototypes,
13047 which can conflict with char openlog(); below. */
13048 #include <assert.h>
13049 /* Override any gcc2 internal prototype to avoid an error. */
13050 /* We use char because int might match the return type of a gcc2
13051 builtin and then its argument prototype would still apply. */
13057 /* The GNU C library defines this for functions which it implements
13058 to always fail with ENOSYS. Some functions are actually named
13059 something starting with __ and the normal name is an alias. */
13060 #if defined (__stub_openlog) || defined (__stub___openlog)
13068 if { (eval echo configure:13069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13070 eval "ac_cv_func_openlog=yes"
13072 echo "configure: failed program was:" >&5
13073 cat conftest.$ac_ext >&5
13075 eval "ac_cv_func_openlog=no"
13080 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13081 echo "$ac_t""yes" 1>&6
13084 echo "$ac_t""no" 1>&6
13087 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13088 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13090 ol_enable_syslog=$ac_cv_func_openlog
13093 if test $ol_enable_tcl != no ; then
13094 for ac_hdr in tcl.h
13096 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13097 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13098 echo "configure:13099: checking for $ac_hdr" >&5
13099 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13100 echo $ac_n "(cached) $ac_c" 1>&6
13102 cat > conftest.$ac_ext <<EOF
13103 #line 13104 "configure"
13104 #include "confdefs.h"
13107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13108 { (eval echo configure:13109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13110 if test -z "$ac_err"; then
13112 eval "ac_cv_header_$ac_safe=yes"
13115 echo "configure: failed program was:" >&5
13116 cat conftest.$ac_ext >&5
13118 eval "ac_cv_header_$ac_safe=no"
13122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13123 echo "$ac_t""yes" 1>&6
13124 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13125 cat >> confdefs.h <<EOF
13126 #define $ac_tr_hdr 1
13130 echo "$ac_t""no" 1>&6
13135 if test $ac_cv_header_tcl_h != yes ; then
13138 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13139 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13140 echo "configure:13141: checking for main in -l$lib" >&5
13141 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13142 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13143 echo $ac_n "(cached) $ac_c" 1>&6
13145 ac_save_LIBS="$LIBS"
13146 LIBS="-l$lib $LIBS"
13147 cat > conftest.$ac_ext <<EOF
13148 #line 13149 "configure"
13149 #include "confdefs.h"
13155 if { (eval echo configure:13156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13157 eval "ac_cv_lib_$ac_lib_var=yes"
13159 echo "configure: failed program was:" >&5
13160 cat conftest.$ac_ext >&5
13162 eval "ac_cv_lib_$ac_lib_var=no"
13165 LIBS="$ac_save_LIBS"
13168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13169 echo "$ac_t""yes" 1>&6
13171 if test x"$ol_with_tcl_module" = "xstatic" ; then
13172 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13174 MOD_TCL_LIB="-l${lib}"
13177 echo "$ac_t""no" 1>&6
13184 if test $have_tcl != yes ; then
13185 echo "configure: warning: could not find -ltcl" 1>&2
13186 if test $ol_enable_tcl = yes ; then
13187 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13195 for ac_hdr in termcap.h ncurses.h
13197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13199 echo "configure:13200: checking for $ac_hdr" >&5
13200 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13201 echo $ac_n "(cached) $ac_c" 1>&6
13203 cat > conftest.$ac_ext <<EOF
13204 #line 13205 "configure"
13205 #include "confdefs.h"
13208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13209 { (eval echo configure:13210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13211 if test -z "$ac_err"; then
13213 eval "ac_cv_header_$ac_safe=yes"
13216 echo "configure: failed program was:" >&5
13217 cat conftest.$ac_ext >&5
13219 eval "ac_cv_header_$ac_safe=no"
13223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13224 echo "$ac_t""yes" 1>&6
13225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13226 cat >> confdefs.h <<EOF
13227 #define $ac_tr_hdr 1
13231 echo "$ac_t""no" 1>&6
13236 if test $ol_link_termcap = no ; then
13237 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13238 echo "configure:13239: checking for tputs in -ltermcap" >&5
13239 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13240 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13241 echo $ac_n "(cached) $ac_c" 1>&6
13243 ac_save_LIBS="$LIBS"
13244 LIBS="-ltermcap $LIBS"
13245 cat > conftest.$ac_ext <<EOF
13246 #line 13247 "configure"
13247 #include "confdefs.h"
13248 /* Override any gcc2 internal prototype to avoid an error. */
13249 /* We use char because int might match the return type of a gcc2
13250 builtin and then its argument prototype would still apply. */
13257 if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13259 eval "ac_cv_lib_$ac_lib_var=yes"
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13264 eval "ac_cv_lib_$ac_lib_var=no"
13267 LIBS="$ac_save_LIBS"
13270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13271 echo "$ac_t""yes" 1>&6
13274 echo "$ac_t""no" 1>&6
13278 if test $have_termcap = yes ; then
13279 cat >> confdefs.h <<\EOF
13280 #define HAVE_TERMCAP 1
13283 ol_link_termcap=yes
13284 TERMCAP_LIBS=-ltermcap
13288 if test $ol_link_termcap = no ; then
13289 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13290 echo "configure:13291: checking for initscr in -lncurses" >&5
13291 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13292 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13293 echo $ac_n "(cached) $ac_c" 1>&6
13295 ac_save_LIBS="$LIBS"
13296 LIBS="-lncurses $LIBS"
13297 cat > conftest.$ac_ext <<EOF
13298 #line 13299 "configure"
13299 #include "confdefs.h"
13300 /* Override any gcc2 internal prototype to avoid an error. */
13301 /* We use char because int might match the return type of a gcc2
13302 builtin and then its argument prototype would still apply. */
13309 if { (eval echo configure:13310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13311 eval "ac_cv_lib_$ac_lib_var=yes"
13313 echo "configure: failed program was:" >&5
13314 cat conftest.$ac_ext >&5
13316 eval "ac_cv_lib_$ac_lib_var=no"
13319 LIBS="$ac_save_LIBS"
13322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13323 echo "$ac_t""yes" 1>&6
13326 echo "$ac_t""no" 1>&6
13330 if test $have_ncurses = yes ; then
13331 cat >> confdefs.h <<\EOF
13332 #define HAVE_NCURSES 1
13335 ol_link_termcap=yes
13336 TERMCAP_LIBS=-lncurses
13340 if test $ol_link_termcap = no ; then
13341 cat >> confdefs.h <<\EOF
13342 #define NO_TERMCAP 1
13350 if test $ol_with_cyrus_sasl != no ; then
13351 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13352 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13353 echo "configure:13354: checking for sasl.h" >&5
13354 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13355 echo $ac_n "(cached) $ac_c" 1>&6
13357 cat > conftest.$ac_ext <<EOF
13358 #line 13359 "configure"
13359 #include "confdefs.h"
13362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13363 { (eval echo configure:13364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13365 if test -z "$ac_err"; then
13367 eval "ac_cv_header_$ac_safe=yes"
13370 echo "configure: failed program was:" >&5
13371 cat conftest.$ac_ext >&5
13373 eval "ac_cv_header_$ac_safe=no"
13377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13378 echo "$ac_t""yes" 1>&6
13381 echo "$ac_t""no" 1>&6
13385 if test $ac_cv_header_sasl_h = yes ; then
13386 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13387 echo "configure:13388: checking for sasl_client_init in -lsasl" >&5
13388 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13389 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13390 echo $ac_n "(cached) $ac_c" 1>&6
13392 ac_save_LIBS="$LIBS"
13393 LIBS="-lsasl $LIBS"
13394 cat > conftest.$ac_ext <<EOF
13395 #line 13396 "configure"
13396 #include "confdefs.h"
13397 /* Override any gcc2 internal prototype to avoid an error. */
13398 /* We use char because int might match the return type of a gcc2
13399 builtin and then its argument prototype would still apply. */
13400 char sasl_client_init();
13406 if { (eval echo configure:13407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13408 eval "ac_cv_lib_$ac_lib_var=yes"
13410 echo "configure: failed program was:" >&5
13411 cat conftest.$ac_ext >&5
13413 eval "ac_cv_lib_$ac_lib_var=no"
13416 LIBS="$ac_save_LIBS"
13419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13420 echo "$ac_t""yes" 1>&6
13421 have_cyrus_sasl=yes
13423 echo "$ac_t""no" 1>&6
13428 if test $have_cyrus_sasl != no ; then
13430 cat >> confdefs.h <<\EOF
13431 #define HAVE_CYRUS_SASL 1
13438 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13439 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13443 if test $cross_compiling != yes ; then
13445 if test -r /dev/urandom ; then
13446 dev="/dev/urandom";
13447 elif test -r /idev/urandom ; then
13448 dev="/idev/urandom";
13449 elif test -r /dev/srandom ; then
13450 dev="/dev/srandom";
13451 elif test -r /dev/random ; then
13453 elif test -r /idev/random ; then
13454 dev="/idev/random";
13457 if test $dev != no ; then
13458 cat >> confdefs.h <<EOF
13459 #define URANDOM_DEVICE "$dev"
13466 if test $ol_with_fetch != no ; then
13468 LIBS="-lfetch -lcom_err $LIBS"
13469 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13470 echo "configure:13471: checking fetch(3) library" >&5
13471 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13472 echo $ac_n "(cached) $ac_c" 1>&6
13475 cat > conftest.$ac_ext <<EOF
13476 #line 13477 "configure"
13477 #include "confdefs.h"
13479 #include <sys/param.h>
13483 struct url *u = fetchParseURL("file:///");
13486 if { (eval echo configure:13487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13488 ol_cv_lib_fetch=yes
13490 echo "configure: failed program was:" >&5
13491 cat conftest.$ac_ext >&5
13498 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13500 if test $ol_cv_lib_fetch != no ; then
13501 ol_link_fetch="-lfetch -lcom_err"
13502 cat >> confdefs.h <<\EOF
13503 #define HAVE_FETCH 1
13509 if test $ol_cv_lib_fetch != no ; then
13510 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13511 ol_link_fetch=freebsd
13513 elif test $ol_with_fetch != auto ; then
13514 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13518 ol_link_readline=no
13519 if test $ol_with_readline != no ; then
13520 for ac_hdr in readline/readline.h readline/history.h
13522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13524 echo "configure:13525: checking for $ac_hdr" >&5
13525 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13526 echo $ac_n "(cached) $ac_c" 1>&6
13528 cat > conftest.$ac_ext <<EOF
13529 #line 13530 "configure"
13530 #include "confdefs.h"
13533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13534 { (eval echo configure:13535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13536 if test -z "$ac_err"; then
13538 eval "ac_cv_header_$ac_safe=yes"
13541 echo "configure: failed program was:" >&5
13542 cat conftest.$ac_ext >&5
13544 eval "ac_cv_header_$ac_safe=no"
13548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13549 echo "$ac_t""yes" 1>&6
13550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13551 cat >> confdefs.h <<EOF
13552 #define $ac_tr_hdr 1
13556 echo "$ac_t""no" 1>&6
13561 if test $ac_cv_header_readline_readline_h = yes ; then
13563 LIBS="$TERMCAP_LIBS $LIBS"
13564 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13565 echo "configure:13566: checking for readline in -lreadline" >&5
13566 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13567 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13568 echo $ac_n "(cached) $ac_c" 1>&6
13570 ac_save_LIBS="$LIBS"
13571 LIBS="-lreadline $LIBS"
13572 cat > conftest.$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13575 /* Override any gcc2 internal prototype to avoid an error. */
13576 /* We use char because int might match the return type of a gcc2
13577 builtin and then its argument prototype would still apply. */
13584 if { (eval echo configure:13585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13586 eval "ac_cv_lib_$ac_lib_var=yes"
13588 echo "configure: failed program was:" >&5
13589 cat conftest.$ac_ext >&5
13591 eval "ac_cv_lib_$ac_lib_var=no"
13594 LIBS="$ac_save_LIBS"
13597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13598 echo "$ac_t""yes" 1>&6
13601 echo "$ac_t""no" 1>&6
13607 if test $have_readline = yes ; then
13608 ol_with_readline=found
13609 ol_link_readline=yes
13611 READLINE_LIBS="-lreadline"
13616 if test $ol_link_readline = yes ; then
13617 cat >> confdefs.h <<\EOF
13618 #define HAVE_READLINE 1
13624 if test $ol_enable_crypt != no ; then
13625 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13626 echo "configure:13627: checking for crypt" >&5
13627 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13628 echo $ac_n "(cached) $ac_c" 1>&6
13630 cat > conftest.$ac_ext <<EOF
13631 #line 13632 "configure"
13632 #include "confdefs.h"
13633 /* System header to define __stub macros and hopefully few prototypes,
13634 which can conflict with char crypt(); below. */
13635 #include <assert.h>
13636 /* Override any gcc2 internal prototype to avoid an error. */
13637 /* We use char because int might match the return type of a gcc2
13638 builtin and then its argument prototype would still apply. */
13644 /* The GNU C library defines this for functions which it implements
13645 to always fail with ENOSYS. Some functions are actually named
13646 something starting with __ and the normal name is an alias. */
13647 #if defined (__stub_crypt) || defined (__stub___crypt)
13655 if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13657 eval "ac_cv_func_crypt=yes"
13659 echo "configure: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13662 eval "ac_cv_func_crypt=no"
13667 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13668 echo "$ac_t""yes" 1>&6
13671 echo "$ac_t""no" 1>&6
13673 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13674 echo "configure:13675: checking for crypt in -lcrypt" >&5
13675 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13676 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13677 echo $ac_n "(cached) $ac_c" 1>&6
13679 ac_save_LIBS="$LIBS"
13680 LIBS="-lcrypt $LIBS"
13681 cat > conftest.$ac_ext <<EOF
13682 #line 13683 "configure"
13683 #include "confdefs.h"
13684 /* Override any gcc2 internal prototype to avoid an error. */
13685 /* We use char because int might match the return type of a gcc2
13686 builtin and then its argument prototype would still apply. */
13693 if { (eval echo configure:13694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13695 eval "ac_cv_lib_$ac_lib_var=yes"
13697 echo "configure: failed program was:" >&5
13698 cat conftest.$ac_ext >&5
13700 eval "ac_cv_lib_$ac_lib_var=no"
13703 LIBS="$ac_save_LIBS"
13706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13707 echo "$ac_t""yes" 1>&6
13708 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13711 echo "$ac_t""no" 1>&6
13718 if test $have_crypt = yes ; then
13719 cat >> confdefs.h <<\EOF
13720 #define HAVE_CRYPT 1
13724 echo "configure: warning: could not find crypt" 1>&2
13725 if test $ol_enable_crypt = yes ; then
13726 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13729 echo "configure: warning: disabling crypt support" 1>&2
13734 if test $ol_enable_proctitle != no ; then
13735 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13736 echo "configure:13737: checking for setproctitle" >&5
13737 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13738 echo $ac_n "(cached) $ac_c" 1>&6
13740 cat > conftest.$ac_ext <<EOF
13741 #line 13742 "configure"
13742 #include "confdefs.h"
13743 /* System header to define __stub macros and hopefully few prototypes,
13744 which can conflict with char setproctitle(); below. */
13745 #include <assert.h>
13746 /* Override any gcc2 internal prototype to avoid an error. */
13747 /* We use char because int might match the return type of a gcc2
13748 builtin and then its argument prototype would still apply. */
13749 char setproctitle();
13754 /* The GNU C library defines this for functions which it implements
13755 to always fail with ENOSYS. Some functions are actually named
13756 something starting with __ and the normal name is an alias. */
13757 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13765 if { (eval echo configure:13766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13767 eval "ac_cv_func_setproctitle=yes"
13769 echo "configure: failed program was:" >&5
13770 cat conftest.$ac_ext >&5
13772 eval "ac_cv_func_setproctitle=no"
13777 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13778 echo "$ac_t""yes" 1>&6
13779 have_setproctitle=yes
13781 echo "$ac_t""no" 1>&6
13783 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13784 echo "configure:13785: checking for setproctitle in -lutil" >&5
13785 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13786 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13787 echo $ac_n "(cached) $ac_c" 1>&6
13789 ac_save_LIBS="$LIBS"
13790 LIBS="-lutil $LIBS"
13791 cat > conftest.$ac_ext <<EOF
13792 #line 13793 "configure"
13793 #include "confdefs.h"
13794 /* Override any gcc2 internal prototype to avoid an error. */
13795 /* We use char because int might match the return type of a gcc2
13796 builtin and then its argument prototype would still apply. */
13797 char setproctitle();
13803 if { (eval echo configure:13804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13805 eval "ac_cv_lib_$ac_lib_var=yes"
13807 echo "configure: failed program was:" >&5
13808 cat conftest.$ac_ext >&5
13810 eval "ac_cv_lib_$ac_lib_var=no"
13813 LIBS="$ac_save_LIBS"
13816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13817 echo "$ac_t""yes" 1>&6
13818 have_setproctitle=yes
13819 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13821 echo "$ac_t""no" 1>&6
13822 have_setproctitle=no
13823 LIBOBJS="$LIBOBJS setproctitle.o"
13824 LIBSRCS="$LIBSRCS setproctitle.c"
13830 if test $have_setproctitle = yes ; then
13831 cat >> confdefs.h <<\EOF
13832 #define HAVE_SETPROCTITLE 1
13838 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13839 echo "configure:13840: checking for ANSI C header files" >&5
13840 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13841 echo $ac_n "(cached) $ac_c" 1>&6
13843 cat > conftest.$ac_ext <<EOF
13844 #line 13845 "configure"
13845 #include "confdefs.h"
13846 #include <stdlib.h>
13847 #include <stdarg.h>
13848 #include <string.h>
13851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13852 { (eval echo configure:13853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13854 if test -z "$ac_err"; then
13856 ac_cv_header_stdc=yes
13859 echo "configure: failed program was:" >&5
13860 cat conftest.$ac_ext >&5
13862 ac_cv_header_stdc=no
13866 if test $ac_cv_header_stdc = yes; then
13867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13868 cat > conftest.$ac_ext <<EOF
13869 #line 13870 "configure"
13870 #include "confdefs.h"
13871 #include <string.h>
13873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13874 egrep "memchr" >/dev/null 2>&1; then
13878 ac_cv_header_stdc=no
13884 if test $ac_cv_header_stdc = yes; then
13885 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13886 cat > conftest.$ac_ext <<EOF
13887 #line 13888 "configure"
13888 #include "confdefs.h"
13889 #include <stdlib.h>
13891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13892 egrep "free" >/dev/null 2>&1; then
13896 ac_cv_header_stdc=no
13902 if test $ac_cv_header_stdc = yes; then
13903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13904 if test "$cross_compiling" = yes; then
13907 cat > conftest.$ac_ext <<EOF
13908 #line 13909 "configure"
13909 #include "confdefs.h"
13911 #if ((' ' & 0x0FF) == 0x020)
13912 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13913 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13915 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13916 || ('j' <= (c) && (c) <= 'r') \
13917 || ('s' <= (c) && (c) <= 'z'))
13918 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13921 int main () { int i; for (i = 0; i < 256; i++)
13922 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13926 if { (eval echo configure:13927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13930 echo "configure: failed program was:" >&5
13931 cat conftest.$ac_ext >&5
13933 ac_cv_header_stdc=no
13941 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13942 if test $ac_cv_header_stdc = yes; then
13943 cat >> confdefs.h <<\EOF
13944 #define STDC_HEADERS 1
13949 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13950 echo "configure:13951: checking for mode_t" >&5
13951 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13952 echo $ac_n "(cached) $ac_c" 1>&6
13954 cat > conftest.$ac_ext <<EOF
13955 #line 13956 "configure"
13956 #include "confdefs.h"
13957 #include <sys/types.h>
13959 #include <stdlib.h>
13960 #include <stddef.h>
13964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13965 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13967 eval "ac_cv_type_mode_t=yes"
13970 eval "ac_cv_type_mode_t=no"
13975 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13976 echo "$ac_t""yes" 1>&6
13978 echo "$ac_t""no" 1>&6
13979 cat >> confdefs.h <<EOF
13985 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13986 echo "configure:13987: checking for off_t" >&5
13987 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13988 echo $ac_n "(cached) $ac_c" 1>&6
13990 cat > conftest.$ac_ext <<EOF
13991 #line 13992 "configure"
13992 #include "confdefs.h"
13993 #include <sys/types.h>
13995 #include <stdlib.h>
13996 #include <stddef.h>
14000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14001 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14003 eval "ac_cv_type_off_t=yes"
14006 eval "ac_cv_type_off_t=no"
14011 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14012 echo "$ac_t""yes" 1>&6
14014 echo "$ac_t""no" 1>&6
14015 cat >> confdefs.h <<EOF
14021 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14022 echo "configure:14023: checking for pid_t" >&5
14023 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14024 echo $ac_n "(cached) $ac_c" 1>&6
14026 cat > conftest.$ac_ext <<EOF
14027 #line 14028 "configure"
14028 #include "confdefs.h"
14029 #include <sys/types.h>
14031 #include <stdlib.h>
14032 #include <stddef.h>
14036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14037 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14039 eval "ac_cv_type_pid_t=yes"
14042 eval "ac_cv_type_pid_t=no"
14047 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14048 echo "$ac_t""yes" 1>&6
14050 echo "$ac_t""no" 1>&6
14051 cat >> confdefs.h <<EOF
14057 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14058 echo "configure:14059: checking for ptrdiff_t" >&5
14059 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14060 echo $ac_n "(cached) $ac_c" 1>&6
14062 cat > conftest.$ac_ext <<EOF
14063 #line 14064 "configure"
14064 #include "confdefs.h"
14065 #include <stddef.h>
14070 if { (eval echo configure:14071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14072 am_cv_type_ptrdiff_t=yes
14074 echo "configure: failed program was:" >&5
14075 cat conftest.$ac_ext >&5
14077 am_cv_type_ptrdiff_t=no
14082 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14083 if test $am_cv_type_ptrdiff_t = yes; then
14084 cat >> confdefs.h <<\EOF
14085 #define HAVE_PTRDIFF_T 1
14090 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14091 echo "configure:14092: checking return type of signal handlers" >&5
14092 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14093 echo $ac_n "(cached) $ac_c" 1>&6
14095 cat > conftest.$ac_ext <<EOF
14096 #line 14097 "configure"
14097 #include "confdefs.h"
14098 #include <sys/types.h>
14099 #include <signal.h>
14104 extern "C" void (*signal (int, void (*)(int)))(int);
14106 void (*signal ()) ();
14113 if { (eval echo configure:14114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14115 ac_cv_type_signal=void
14117 echo "configure: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14120 ac_cv_type_signal=int
14125 echo "$ac_t""$ac_cv_type_signal" 1>&6
14126 cat >> confdefs.h <<EOF
14127 #define RETSIGTYPE $ac_cv_type_signal
14131 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14132 echo "configure:14133: checking for size_t" >&5
14133 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14134 echo $ac_n "(cached) $ac_c" 1>&6
14136 cat > conftest.$ac_ext <<EOF
14137 #line 14138 "configure"
14138 #include "confdefs.h"
14139 #include <sys/types.h>
14141 #include <stdlib.h>
14142 #include <stddef.h>
14146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14147 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14149 eval "ac_cv_type_size_t=yes"
14152 eval "ac_cv_type_size_t=no"
14157 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14158 echo "$ac_t""yes" 1>&6
14160 echo "$ac_t""no" 1>&6
14161 cat >> confdefs.h <<EOF
14162 #define size_t unsigned
14168 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14169 echo "configure:14170: checking for ssize_t" >&5
14170 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14171 echo $ac_n "(cached) $ac_c" 1>&6
14173 cat > conftest.$ac_ext <<EOF
14174 #line 14175 "configure"
14175 #include "confdefs.h"
14176 #include <sys/types.h>
14178 #include <stdlib.h>
14179 #include <stddef.h>
14183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14184 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14186 eval "ac_cv_type_ssize_t=yes"
14189 eval "ac_cv_type_ssize_t=no"
14194 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14195 echo "$ac_t""yes" 1>&6
14197 echo "$ac_t""no" 1>&6
14198 cat >> confdefs.h <<EOF
14199 #define ssize_t signed int
14204 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14205 echo "configure:14206: checking for caddr_t" >&5
14206 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14207 echo $ac_n "(cached) $ac_c" 1>&6
14209 cat > conftest.$ac_ext <<EOF
14210 #line 14211 "configure"
14211 #include "confdefs.h"
14212 #include <sys/types.h>
14214 #include <stdlib.h>
14215 #include <stddef.h>
14219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14220 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14222 eval "ac_cv_type_caddr_t=yes"
14225 eval "ac_cv_type_caddr_t=no"
14230 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14231 echo "$ac_t""yes" 1>&6
14233 echo "$ac_t""no" 1>&6
14234 cat >> confdefs.h <<EOF
14235 #define caddr_t char *
14241 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14242 echo "configure:14243: checking for socklen_t" >&5
14243 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14244 echo $ac_n "(cached) $ac_c" 1>&6
14246 cat > conftest.$ac_ext <<EOF
14247 #line 14248 "configure"
14248 #include "confdefs.h"
14250 #ifdef HAVE_SYS_TYPES_H
14251 #include <sys/types.h>
14253 #ifdef HAVE_SYS_SOCKET_H
14254 #include <sys/socket.h>
14261 if { (eval echo configure:14262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14263 ol_cv_type_socklen_t=yes
14265 echo "configure: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14268 ol_cv_type_socklen_t=no
14273 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14274 if test $ol_cv_type_socklen_t = no; then
14275 cat >> confdefs.h <<\EOF
14276 #define socklen_t int
14281 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14282 echo "configure:14283: checking for member st_blksize in aggregate type struct stat" >&5
14283 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14284 echo $ac_n "(cached) $ac_c" 1>&6
14286 cat > conftest.$ac_ext <<EOF
14287 #line 14288 "configure"
14288 #include "confdefs.h"
14289 #include <sys/types.h>
14290 #include <sys/stat.h>
14292 struct stat foo; foo.st_blksize;
14295 if { (eval echo configure:14296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14297 ac_cv_c_struct_member_st_blksize=yes
14299 echo "configure: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14302 ac_cv_c_struct_member_st_blksize=no
14307 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14308 st_blksize="$ac_cv_c_struct_member_st_blksize"
14309 if test $ac_cv_c_struct_member_st_blksize = yes; then
14310 cat >> confdefs.h <<\EOF
14311 #define HAVE_ST_BLKSIZE 1
14316 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14317 echo "configure:14318: checking whether time.h and sys/time.h may both be included" >&5
14318 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14319 echo $ac_n "(cached) $ac_c" 1>&6
14321 cat > conftest.$ac_ext <<EOF
14322 #line 14323 "configure"
14323 #include "confdefs.h"
14324 #include <sys/types.h>
14325 #include <sys/time.h>
14331 if { (eval echo configure:14332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14333 ac_cv_header_time=yes
14335 echo "configure: failed program was:" >&5
14336 cat conftest.$ac_ext >&5
14338 ac_cv_header_time=no
14343 echo "$ac_t""$ac_cv_header_time" 1>&6
14344 if test $ac_cv_header_time = yes; then
14345 cat >> confdefs.h <<\EOF
14346 #define TIME_WITH_SYS_TIME 1
14351 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14352 echo "configure:14353: checking whether struct tm is in sys/time.h or time.h" >&5
14353 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14354 echo $ac_n "(cached) $ac_c" 1>&6
14356 cat > conftest.$ac_ext <<EOF
14357 #line 14358 "configure"
14358 #include "confdefs.h"
14359 #include <sys/types.h>
14362 struct tm *tp; tp->tm_sec;
14365 if { (eval echo configure:14366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14367 ac_cv_struct_tm=time.h
14369 echo "configure: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14372 ac_cv_struct_tm=sys/time.h
14377 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14378 if test $ac_cv_struct_tm = sys/time.h; then
14379 cat >> confdefs.h <<\EOF
14380 #define TM_IN_SYS_TIME 1
14385 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14386 echo "configure:14387: checking for uid_t in sys/types.h" >&5
14387 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14388 echo $ac_n "(cached) $ac_c" 1>&6
14390 cat > conftest.$ac_ext <<EOF
14391 #line 14392 "configure"
14392 #include "confdefs.h"
14393 #include <sys/types.h>
14395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14396 egrep "uid_t" >/dev/null 2>&1; then
14398 ac_cv_type_uid_t=yes
14401 ac_cv_type_uid_t=no
14407 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14408 if test $ac_cv_type_uid_t = no; then
14409 cat >> confdefs.h <<\EOF
14413 cat >> confdefs.h <<\EOF
14419 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14420 echo "configure:14421: checking for sig_atomic_t" >&5
14421 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14422 echo $ac_n "(cached) $ac_c" 1>&6
14424 cat > conftest.$ac_ext <<EOF
14425 #line 14426 "configure"
14426 #include "confdefs.h"
14427 #include <signal.h>
14429 sig_atomic_t atomic;
14432 if { (eval echo configure:14433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14434 ol_cv_type_sig_atomic_t=yes
14436 echo "configure: failed program was:" >&5
14437 cat conftest.$ac_ext >&5
14439 ol_cv_type_sig_atomic_t=no
14444 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14445 if test $ol_cv_type_sig_atomic_t = no; then
14446 cat >> confdefs.h <<\EOF
14447 #define sig_atomic_t int
14454 # test for pw_gecos in struct passwd
14455 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14456 echo "configure:14457: checking struct passwd for pw_gecos" >&5
14457 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14458 echo $ac_n "(cached) $ac_c" 1>&6
14461 cat > conftest.$ac_ext <<EOF
14462 #line 14463 "configure"
14463 #include "confdefs.h"
14468 pwd.pw_gecos = pwd.pw_name;
14472 if { (eval echo configure:14473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14474 ol_cv_struct_passwd_pw_gecos=yes
14476 echo "configure: failed program was:" >&5
14477 cat conftest.$ac_ext >&5
14479 ol_cv_struct_passwd_pw_gecos=no
14484 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14485 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14486 cat >> confdefs.h <<\EOF
14487 #define HAVE_PW_GECOS 1
14492 # test for pw_passwd in struct passwd
14493 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14494 echo "configure:14495: checking struct passwd for pw_passwd" >&5
14495 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14496 echo $ac_n "(cached) $ac_c" 1>&6
14499 cat > conftest.$ac_ext <<EOF
14500 #line 14501 "configure"
14501 #include "confdefs.h"
14506 pwd.pw_passwd = pwd.pw_name;
14510 if { (eval echo configure:14511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14512 ol_cv_struct_passwd_pw_passwd=yes
14514 echo "configure: failed program was:" >&5
14515 cat conftest.$ac_ext >&5
14517 ol_cv_struct_passwd_pw_passwd=no
14522 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14523 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14524 cat >> confdefs.h <<\EOF
14525 #define HAVE_PW_PASSWD 1
14531 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14532 echo "configure:14533: checking if toupper() requires islower()" >&5
14533 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14534 echo $ac_n "(cached) $ac_c" 1>&6
14537 if test "$cross_compiling" = yes; then
14538 ol_cv_c_upper_lower=safe
14540 cat > conftest.$ac_ext <<EOF
14541 #line 14542 "configure"
14542 #include "confdefs.h"
14547 if ('C' == toupper('C'))
14553 if { (eval echo configure:14554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14555 ol_cv_c_upper_lower=no
14557 echo "configure: failed program was:" >&5
14558 cat conftest.$ac_ext >&5
14560 ol_cv_c_upper_lower=yes
14567 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14568 if test $ol_cv_c_upper_lower != no ; then
14569 cat >> confdefs.h <<\EOF
14570 #define C_UPPER_LOWER 1
14575 echo $ac_n "checking for working const""... $ac_c" 1>&6
14576 echo "configure:14577: checking for working const" >&5
14577 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14578 echo $ac_n "(cached) $ac_c" 1>&6
14580 cat > conftest.$ac_ext <<EOF
14581 #line 14582 "configure"
14582 #include "confdefs.h"
14586 /* Ultrix mips cc rejects this. */
14587 typedef int charset[2]; const charset x;
14588 /* SunOS 4.1.1 cc rejects this. */
14589 char const *const *ccp;
14591 /* NEC SVR4.0.2 mips cc rejects this. */
14592 struct point {int x, y;};
14593 static struct point const zero = {0,0};
14594 /* AIX XL C 1.02.0.0 rejects this.
14595 It does not let you subtract one const X* pointer from another in an arm
14596 of an if-expression whose if-part is not a constant expression */
14597 const char *g = "string";
14598 ccp = &g + (g ? g-g : 0);
14599 /* HPUX 7.0 cc rejects these. */
14602 ccp = (char const *const *) p;
14603 { /* SCO 3.2v4 cc rejects this. */
14605 char const *s = 0 ? (char *) 0 : (char const *) 0;
14609 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14610 int x[] = {25, 17};
14611 const int *foo = &x[0];
14614 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14615 typedef const int *iptr;
14619 { /* AIX XL C 1.02.0.0 rejects this saying
14620 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14621 struct s { int j; const int *ap[3]; };
14622 struct s *b; b->j = 5;
14624 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14625 const int foo = 10;
14630 if { (eval echo configure:14631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14634 echo "configure: failed program was:" >&5
14635 cat conftest.$ac_ext >&5
14642 echo "$ac_t""$ac_cv_c_const" 1>&6
14643 if test $ac_cv_c_const = no; then
14644 cat >> confdefs.h <<\EOF
14650 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14651 echo "configure:14652: checking if compiler understands volatile" >&5
14652 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14653 echo $ac_n "(cached) $ac_c" 1>&6
14655 cat > conftest.$ac_ext <<EOF
14656 #line 14657 "configure"
14657 #include "confdefs.h"
14660 volatile int a; int * volatile b = x ? &y : &z;
14661 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14665 if { (eval echo configure:14666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14667 ol_cv_c_volatile=yes
14669 echo "configure: failed program was:" >&5
14670 cat conftest.$ac_ext >&5
14672 ol_cv_c_volatile=no
14677 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14678 if test $ol_cv_c_volatile = yes; then
14681 cat >> confdefs.h <<\EOF
14688 if test $cross_compiling = yes ; then
14689 cat >> confdefs.h <<\EOF
14690 #define CROSS_COMPILING 1
14694 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14695 echo "configure:14696: checking whether byte ordering is bigendian" >&5
14696 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14697 echo $ac_n "(cached) $ac_c" 1>&6
14699 ac_cv_c_bigendian=unknown
14700 # See if sys/param.h defines the BYTE_ORDER macro.
14701 cat > conftest.$ac_ext <<EOF
14702 #line 14703 "configure"
14703 #include "confdefs.h"
14704 #include <sys/types.h>
14705 #include <sys/param.h>
14708 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14709 bogus endian macros
14713 if { (eval echo configure:14714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14715 # It does; now see whether it defined to BIG_ENDIAN or not.
14716 cat > conftest.$ac_ext <<EOF
14717 #line 14718 "configure"
14718 #include "confdefs.h"
14719 #include <sys/types.h>
14720 #include <sys/param.h>
14723 #if BYTE_ORDER != BIG_ENDIAN
14728 if { (eval echo configure:14729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14730 ac_cv_c_bigendian=yes
14732 echo "configure: failed program was:" >&5
14733 cat conftest.$ac_ext >&5
14735 ac_cv_c_bigendian=no
14739 echo "configure: failed program was:" >&5
14740 cat conftest.$ac_ext >&5
14743 if test $ac_cv_c_bigendian = unknown; then
14744 if test "$cross_compiling" = yes; then
14745 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14747 cat > conftest.$ac_ext <<EOF
14748 #line 14749 "configure"
14749 #include "confdefs.h"
14751 /* Are we little or big endian? From Harbison&Steele. */
14755 char c[sizeof (long)];
14758 exit (u.c[sizeof (long) - 1] == 1);
14761 if { (eval echo configure:14762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14763 ac_cv_c_bigendian=no
14765 echo "configure: failed program was:" >&5
14766 cat conftest.$ac_ext >&5
14768 ac_cv_c_bigendian=yes
14776 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14777 if test $ac_cv_c_bigendian = yes; then
14778 cat >> confdefs.h <<\EOF
14779 #define WORDS_BIGENDIAN 1
14786 echo $ac_n "checking size of short""... $ac_c" 1>&6
14787 echo "configure:14788: checking size of short" >&5
14788 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14789 echo $ac_n "(cached) $ac_c" 1>&6
14791 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14792 cat > conftest.$ac_ext <<EOF
14793 #line 14794 "configure"
14794 #include "confdefs.h"
14795 #include "confdefs.h"
14796 #include <sys/types.h>
14800 switch (0) case 0: case (sizeof (short) == $ac_size):;
14803 if { (eval echo configure:14804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14805 ac_cv_sizeof_short=$ac_size
14807 echo "configure: failed program was:" >&5
14808 cat conftest.$ac_ext >&5
14811 if test x$ac_cv_sizeof_short != x ; then break; fi
14816 if test x$ac_cv_sizeof_short = x ; then
14817 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14819 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14820 cat >> confdefs.h <<EOF
14821 #define SIZEOF_SHORT $ac_cv_sizeof_short
14825 echo $ac_n "checking size of int""... $ac_c" 1>&6
14826 echo "configure:14827: checking size of int" >&5
14827 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14828 echo $ac_n "(cached) $ac_c" 1>&6
14830 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14831 cat > conftest.$ac_ext <<EOF
14832 #line 14833 "configure"
14833 #include "confdefs.h"
14834 #include "confdefs.h"
14835 #include <sys/types.h>
14839 switch (0) case 0: case (sizeof (int) == $ac_size):;
14842 if { (eval echo configure:14843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14844 ac_cv_sizeof_int=$ac_size
14846 echo "configure: failed program was:" >&5
14847 cat conftest.$ac_ext >&5
14850 if test x$ac_cv_sizeof_int != x ; then break; fi
14855 if test x$ac_cv_sizeof_int = x ; then
14856 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14858 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14859 cat >> confdefs.h <<EOF
14860 #define SIZEOF_INT $ac_cv_sizeof_int
14864 echo $ac_n "checking size of long""... $ac_c" 1>&6
14865 echo "configure:14866: checking size of long" >&5
14866 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14867 echo $ac_n "(cached) $ac_c" 1>&6
14869 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14870 cat > conftest.$ac_ext <<EOF
14871 #line 14872 "configure"
14872 #include "confdefs.h"
14873 #include "confdefs.h"
14874 #include <sys/types.h>
14878 switch (0) case 0: case (sizeof (long) == $ac_size):;
14881 if { (eval echo configure:14882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14883 ac_cv_sizeof_long=$ac_size
14885 echo "configure: failed program was:" >&5
14886 cat conftest.$ac_ext >&5
14889 if test x$ac_cv_sizeof_long != x ; then break; fi
14894 if test x$ac_cv_sizeof_long = x ; then
14895 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14897 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14898 cat >> confdefs.h <<EOF
14899 #define SIZEOF_LONG $ac_cv_sizeof_long
14904 if test "$ac_cv_sizeof_int" -lt 4 ; then
14905 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14907 cat >> confdefs.h <<\EOF
14908 #define LBER_INT_T long
14912 cat >> confdefs.h <<\EOF
14913 #define LBER_INT_T int
14918 cat >> confdefs.h <<\EOF
14919 #define LBER_LEN_T long
14922 cat >> confdefs.h <<\EOF
14923 #define LBER_SOCKET_T int
14926 cat >> confdefs.h <<\EOF
14927 #define LBER_TAG_T long
14931 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14932 echo "configure:14933: checking for 8-bit clean memcmp" >&5
14933 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14934 echo $ac_n "(cached) $ac_c" 1>&6
14936 if test "$cross_compiling" = yes; then
14937 ac_cv_func_memcmp_clean=no
14939 cat > conftest.$ac_ext <<EOF
14940 #line 14941 "configure"
14941 #include "confdefs.h"
14945 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14946 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14950 if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14952 ac_cv_func_memcmp_clean=yes
14954 echo "configure: failed program was:" >&5
14955 cat conftest.$ac_ext >&5
14957 ac_cv_func_memcmp_clean=no
14964 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14965 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14967 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14968 echo "configure:14969: checking for strftime" >&5
14969 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14970 echo $ac_n "(cached) $ac_c" 1>&6
14972 cat > conftest.$ac_ext <<EOF
14973 #line 14974 "configure"
14974 #include "confdefs.h"
14975 /* System header to define __stub macros and hopefully few prototypes,
14976 which can conflict with char strftime(); below. */
14977 #include <assert.h>
14978 /* Override any gcc2 internal prototype to avoid an error. */
14979 /* We use char because int might match the return type of a gcc2
14980 builtin and then its argument prototype would still apply. */
14986 /* The GNU C library defines this for functions which it implements
14987 to always fail with ENOSYS. Some functions are actually named
14988 something starting with __ and the normal name is an alias. */
14989 #if defined (__stub_strftime) || defined (__stub___strftime)
14997 if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14999 eval "ac_cv_func_strftime=yes"
15001 echo "configure: failed program was:" >&5
15002 cat conftest.$ac_ext >&5
15004 eval "ac_cv_func_strftime=no"
15009 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15010 echo "$ac_t""yes" 1>&6
15011 cat >> confdefs.h <<\EOF
15012 #define HAVE_STRFTIME 1
15016 echo "$ac_t""no" 1>&6
15017 # strftime is in -lintl on SCO UNIX.
15018 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15019 echo "configure:15020: checking for strftime in -lintl" >&5
15020 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15021 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15022 echo $ac_n "(cached) $ac_c" 1>&6
15024 ac_save_LIBS="$LIBS"
15025 LIBS="-lintl $LIBS"
15026 cat > conftest.$ac_ext <<EOF
15027 #line 15028 "configure"
15028 #include "confdefs.h"
15029 /* Override any gcc2 internal prototype to avoid an error. */
15030 /* We use char because int might match the return type of a gcc2
15031 builtin and then its argument prototype would still apply. */
15038 if { (eval echo configure:15039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15040 eval "ac_cv_lib_$ac_lib_var=yes"
15042 echo "configure: failed program was:" >&5
15043 cat conftest.$ac_ext >&5
15045 eval "ac_cv_lib_$ac_lib_var=no"
15048 LIBS="$ac_save_LIBS"
15051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15052 echo "$ac_t""yes" 1>&6
15053 cat >> confdefs.h <<\EOF
15054 #define HAVE_STRFTIME 1
15057 LIBS="-lintl $LIBS"
15059 echo "$ac_t""no" 1>&6
15065 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15066 echo "configure:15067: checking for inet_aton()" >&5
15067 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15068 echo $ac_n "(cached) $ac_c" 1>&6
15070 cat > conftest.$ac_ext <<EOF
15071 #line 15072 "configure"
15072 #include "confdefs.h"
15074 #ifdef HAVE_SYS_TYPES_H
15075 # include <sys/types.h>
15077 #ifdef HAVE_SYS_SOCKET_H
15078 # include <sys/socket.h>
15079 # ifdef HAVE_SYS_SELECT_H
15080 # include <sys/select.h>
15082 # include <netinet/in.h>
15083 # ifdef HAVE_ARPA_INET_H
15084 # include <arpa/inet.h>
15090 int rc = inet_aton( "255.255.255.255", &in );
15093 if { (eval echo configure:15094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15095 ol_cv_func_inet_aton=yes
15097 echo "configure: failed program was:" >&5
15098 cat conftest.$ac_ext >&5
15100 ol_cv_func_inet_aton=no
15105 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15106 if test $ol_cv_func_inet_aton != no; then
15107 cat >> confdefs.h <<\EOF
15108 #define HAVE_INET_ATON 1
15114 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15115 echo "configure:15116: checking for _spawnlp" >&5
15116 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15117 echo $ac_n "(cached) $ac_c" 1>&6
15119 cat > conftest.$ac_ext <<EOF
15120 #line 15121 "configure"
15121 #include "confdefs.h"
15122 /* System header to define __stub macros and hopefully few prototypes,
15123 which can conflict with char _spawnlp(); below. */
15124 #include <assert.h>
15125 /* Override any gcc2 internal prototype to avoid an error. */
15126 /* We use char because int might match the return type of a gcc2
15127 builtin and then its argument prototype would still apply. */
15133 /* The GNU C library defines this for functions which it implements
15134 to always fail with ENOSYS. Some functions are actually named
15135 something starting with __ and the normal name is an alias. */
15136 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15144 if { (eval echo configure:15145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15146 eval "ac_cv_func__spawnlp=yes"
15148 echo "configure: failed program was:" >&5
15149 cat conftest.$ac_ext >&5
15151 eval "ac_cv_func__spawnlp=no"
15156 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15157 echo "$ac_t""yes" 1>&6
15158 cat >> confdefs.h <<\EOF
15159 #define HAVE_SPAWNLP 1
15163 echo "$ac_t""no" 1>&6
15167 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15168 echo "configure:15169: checking for _snprintf" >&5
15169 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15170 echo $ac_n "(cached) $ac_c" 1>&6
15172 cat > conftest.$ac_ext <<EOF
15173 #line 15174 "configure"
15174 #include "confdefs.h"
15175 /* System header to define __stub macros and hopefully few prototypes,
15176 which can conflict with char _snprintf(); below. */
15177 #include <assert.h>
15178 /* Override any gcc2 internal prototype to avoid an error. */
15179 /* We use char because int might match the return type of a gcc2
15180 builtin and then its argument prototype would still apply. */
15186 /* The GNU C library defines this for functions which it implements
15187 to always fail with ENOSYS. Some functions are actually named
15188 something starting with __ and the normal name is an alias. */
15189 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15197 if { (eval echo configure:15198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15199 eval "ac_cv_func__snprintf=yes"
15201 echo "configure: failed program was:" >&5
15202 cat conftest.$ac_ext >&5
15204 eval "ac_cv_func__snprintf=no"
15209 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15210 echo "$ac_t""yes" 1>&6
15211 ac_cv_func_snprintf=yes
15212 cat >> confdefs.h <<\EOF
15213 #define snprintf _snprintf
15218 echo "$ac_t""no" 1>&6
15222 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15223 echo "configure:15224: checking for _vsnprintf" >&5
15224 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15225 echo $ac_n "(cached) $ac_c" 1>&6
15227 cat > conftest.$ac_ext <<EOF
15228 #line 15229 "configure"
15229 #include "confdefs.h"
15230 /* System header to define __stub macros and hopefully few prototypes,
15231 which can conflict with char _vsnprintf(); below. */
15232 #include <assert.h>
15233 /* Override any gcc2 internal prototype to avoid an error. */
15234 /* We use char because int might match the return type of a gcc2
15235 builtin and then its argument prototype would still apply. */
15241 /* The GNU C library defines this for functions which it implements
15242 to always fail with ENOSYS. Some functions are actually named
15243 something starting with __ and the normal name is an alias. */
15244 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15252 if { (eval echo configure:15253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15254 eval "ac_cv_func__vsnprintf=yes"
15256 echo "configure: failed program was:" >&5
15257 cat conftest.$ac_ext >&5
15259 eval "ac_cv_func__vsnprintf=no"
15264 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15265 echo "$ac_t""yes" 1>&6
15266 ac_cv_func_vsnprintf=yes
15267 cat >> confdefs.h <<\EOF
15268 #define vsnprintf _vsnprintf
15273 echo "$ac_t""no" 1>&6
15277 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15278 echo "configure:15279: checking for vprintf" >&5
15279 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15280 echo $ac_n "(cached) $ac_c" 1>&6
15282 cat > conftest.$ac_ext <<EOF
15283 #line 15284 "configure"
15284 #include "confdefs.h"
15285 /* System header to define __stub macros and hopefully few prototypes,
15286 which can conflict with char vprintf(); below. */
15287 #include <assert.h>
15288 /* Override any gcc2 internal prototype to avoid an error. */
15289 /* We use char because int might match the return type of a gcc2
15290 builtin and then its argument prototype would still apply. */
15296 /* The GNU C library defines this for functions which it implements
15297 to always fail with ENOSYS. Some functions are actually named
15298 something starting with __ and the normal name is an alias. */
15299 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15307 if { (eval echo configure:15308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15309 eval "ac_cv_func_vprintf=yes"
15311 echo "configure: failed program was:" >&5
15312 cat conftest.$ac_ext >&5
15314 eval "ac_cv_func_vprintf=no"
15319 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15320 echo "$ac_t""yes" 1>&6
15321 cat >> confdefs.h <<\EOF
15322 #define HAVE_VPRINTF 1
15326 echo "$ac_t""no" 1>&6
15329 if test "$ac_cv_func_vprintf" != yes; then
15330 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15331 echo "configure:15332: checking for _doprnt" >&5
15332 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15333 echo $ac_n "(cached) $ac_c" 1>&6
15335 cat > conftest.$ac_ext <<EOF
15336 #line 15337 "configure"
15337 #include "confdefs.h"
15338 /* System header to define __stub macros and hopefully few prototypes,
15339 which can conflict with char _doprnt(); below. */
15340 #include <assert.h>
15341 /* Override any gcc2 internal prototype to avoid an error. */
15342 /* We use char because int might match the return type of a gcc2
15343 builtin and then its argument prototype would still apply. */
15349 /* The GNU C library defines this for functions which it implements
15350 to always fail with ENOSYS. Some functions are actually named
15351 something starting with __ and the normal name is an alias. */
15352 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15360 if { (eval echo configure:15361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15362 eval "ac_cv_func__doprnt=yes"
15364 echo "configure: failed program was:" >&5
15365 cat conftest.$ac_ext >&5
15367 eval "ac_cv_func__doprnt=no"
15372 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15373 echo "$ac_t""yes" 1>&6
15374 cat >> confdefs.h <<\EOF
15375 #define HAVE_DOPRNT 1
15379 echo "$ac_t""no" 1>&6
15385 if test $ac_cv_func_vprintf = yes ; then
15386 for ac_func in vsnprintf vsprintf
15388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15389 echo "configure:15390: checking for $ac_func" >&5
15390 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15391 echo $ac_n "(cached) $ac_c" 1>&6
15393 cat > conftest.$ac_ext <<EOF
15394 #line 15395 "configure"
15395 #include "confdefs.h"
15396 /* System header to define __stub macros and hopefully few prototypes,
15397 which can conflict with char $ac_func(); below. */
15398 #include <assert.h>
15399 /* Override any gcc2 internal prototype to avoid an error. */
15400 /* We use char because int might match the return type of a gcc2
15401 builtin and then its argument prototype would still apply. */
15407 /* The GNU C library defines this for functions which it implements
15408 to always fail with ENOSYS. Some functions are actually named
15409 something starting with __ and the normal name is an alias. */
15410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15418 if { (eval echo configure:15419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15420 eval "ac_cv_func_$ac_func=yes"
15422 echo "configure: failed program was:" >&5
15423 cat conftest.$ac_ext >&5
15425 eval "ac_cv_func_$ac_func=no"
15430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15431 echo "$ac_t""yes" 1>&6
15432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15433 cat >> confdefs.h <<EOF
15434 #define $ac_tr_func 1
15438 echo "$ac_t""no" 1>&6
15496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15497 echo "configure:15498: checking for $ac_func" >&5
15498 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15499 echo $ac_n "(cached) $ac_c" 1>&6
15501 cat > conftest.$ac_ext <<EOF
15502 #line 15503 "configure"
15503 #include "confdefs.h"
15504 /* System header to define __stub macros and hopefully few prototypes,
15505 which can conflict with char $ac_func(); below. */
15506 #include <assert.h>
15507 /* Override any gcc2 internal prototype to avoid an error. */
15508 /* We use char because int might match the return type of a gcc2
15509 builtin and then its argument prototype would still apply. */
15515 /* The GNU C library defines this for functions which it implements
15516 to always fail with ENOSYS. Some functions are actually named
15517 something starting with __ and the normal name is an alias. */
15518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15526 if { (eval echo configure:15527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15528 eval "ac_cv_func_$ac_func=yes"
15530 echo "configure: failed program was:" >&5
15531 cat conftest.$ac_ext >&5
15533 eval "ac_cv_func_$ac_func=no"
15538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15539 echo "$ac_t""yes" 1>&6
15540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15541 cat >> confdefs.h <<EOF
15542 #define $ac_tr_func 1
15546 echo "$ac_t""no" 1>&6
15551 for ac_func in getopt tempnam
15553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15554 echo "configure:15555: checking for $ac_func" >&5
15555 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15556 echo $ac_n "(cached) $ac_c" 1>&6
15558 cat > conftest.$ac_ext <<EOF
15559 #line 15560 "configure"
15560 #include "confdefs.h"
15561 /* System header to define __stub macros and hopefully few prototypes,
15562 which can conflict with char $ac_func(); below. */
15563 #include <assert.h>
15564 /* Override any gcc2 internal prototype to avoid an error. */
15565 /* We use char because int might match the return type of a gcc2
15566 builtin and then its argument prototype would still apply. */
15572 /* The GNU C library defines this for functions which it implements
15573 to always fail with ENOSYS. Some functions are actually named
15574 something starting with __ and the normal name is an alias. */
15575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15583 if { (eval echo configure:15584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15585 eval "ac_cv_func_$ac_func=yes"
15587 echo "configure: failed program was:" >&5
15588 cat conftest.$ac_ext >&5
15590 eval "ac_cv_func_$ac_func=no"
15595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15596 echo "$ac_t""yes" 1>&6
15597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15598 cat >> confdefs.h <<EOF
15599 #define $ac_tr_func 1
15603 echo "$ac_t""no" 1>&6
15604 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15610 if test "$ac_cv_func_getopt" != yes; then
15611 LIBSRCS="$LIBSRCS getopt.c"
15614 if test "$ac_cv_func_tempnam" != yes; then
15615 LIBSRCS="$LIBSRCS tempnam.c"
15618 # Check Configuration
15619 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15620 echo "configure:15621: checking declaration of sys_errlist" >&5
15621 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15622 echo $ac_n "(cached) $ac_c" 1>&6
15625 cat > conftest.$ac_ext <<EOF
15626 #line 15627 "configure"
15627 #include "confdefs.h"
15630 #include <sys/types.h>
15633 #include <stdlib.h>
15636 char *c = (char *) *sys_errlist
15639 if { (eval echo configure:15640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15641 ol_cv_dcl_sys_errlist=yes
15642 ol_cv_have_sys_errlist=yes
15644 echo "configure: failed program was:" >&5
15645 cat conftest.$ac_ext >&5
15647 ol_cv_dcl_sys_errlist=no
15652 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15654 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15655 if test $ol_cv_dcl_sys_errlist = no ; then
15656 cat >> confdefs.h <<\EOF
15657 #define DECL_SYS_ERRLIST 1
15661 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15662 echo "configure:15663: checking existence of sys_errlist" >&5
15663 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15664 echo $ac_n "(cached) $ac_c" 1>&6
15667 cat > conftest.$ac_ext <<EOF
15668 #line 15669 "configure"
15669 #include "confdefs.h"
15672 char *c = (char *) *sys_errlist
15675 if { (eval echo configure:15676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15677 ol_cv_have_sys_errlist=yes
15679 echo "configure: failed program was:" >&5
15680 cat conftest.$ac_ext >&5
15682 ol_cv_have_sys_errlist=no
15687 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15689 if test $ol_cv_have_sys_errlist = yes ; then
15690 cat >> confdefs.h <<\EOF
15691 #define HAVE_SYS_ERRLIST 1
15698 if test "$ol_enable_debug" != no ; then
15699 cat >> confdefs.h <<\EOF
15700 #define LDAP_DEBUG 1
15704 if test "$ol_enable_syslog" = yes ; then
15705 cat >> confdefs.h <<\EOF
15706 #define LDAP_SYSLOG 1
15710 if test "$ol_enable_libui" = yes ; then
15711 cat >> confdefs.h <<\EOF
15712 #define LDAP_LIBUI 1
15716 if test "$ol_enable_cache" = no ; then
15717 cat >> confdefs.h <<\EOF
15718 #define LDAP_NOCACHE 1
15722 if test "$ol_link_kbind" != no ; then
15723 cat >> confdefs.h <<\EOF
15724 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15728 if test "$ol_enable_proctitle" != no ; then
15729 cat >> confdefs.h <<\EOF
15730 #define LDAP_PROCTITLE 1
15734 if test "$ol_enable_referrals" != no ; then
15735 cat >> confdefs.h <<\EOF
15736 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15740 if test "$ol_enable_cldap" != no ; then
15741 cat >> confdefs.h <<\EOF
15742 #define LDAP_CONNECTIONLESS 1
15746 if test "$ol_enable_ldapi" != no; then
15747 cat >> confdefs.h <<\EOF
15748 #define USE_PF_LOCAL 1
15753 if test "$ol_enable_cleartext" != no ; then
15754 cat >> confdefs.h <<\EOF
15755 #define SLAPD_CLEARTEXT 1
15759 if test "$ol_enable_crypt" != no ; then
15760 cat >> confdefs.h <<\EOF
15761 #define SLAPD_CRYPT 1
15765 if test "$ol_link_kpasswd" != no ; then
15766 cat >> confdefs.h <<\EOF
15767 #define SLAPD_KPASSWD 1
15771 if test "$ol_link_spasswd" != no ; then
15772 cat >> confdefs.h <<\EOF
15773 #define SLAPD_SPASSWD 1
15777 if test "$ol_enable_multimaster" != no ; then
15778 cat >> confdefs.h <<\EOF
15779 #define SLAPD_MULTIMASTER 1
15783 if test "$ol_enable_phonetic" != no ; then
15784 cat >> confdefs.h <<\EOF
15785 #define SLAPD_PHONETIC 1
15789 if test "$ol_enable_rlookups" != no ; then
15790 cat >> confdefs.h <<\EOF
15791 #define SLAPD_RLOOKUPS 1
15795 if test "$ol_enable_aci" != no ; then
15796 cat >> confdefs.h <<\EOF
15797 #define SLAPD_ACI_ENABLED 1
15802 if test "$ol_link_modules" != no ; then
15803 cat >> confdefs.h <<\EOF
15804 #define SLAPD_MODULES 1
15808 SLAPD_MODULES_LDFLAGS="-dlopen self"
15811 if test "$ol_link_bdb2" != no ; then
15812 cat >> confdefs.h <<\EOF
15813 #define SLAPD_BDB2 1
15818 if test "$ol_with_bdb2_module" != static ; then
15819 cat >> confdefs.h <<\EOF
15820 #define SLAPD_BDB2_DYNAMIC 1
15824 BUILD_BDB2_DYNAMIC=shared
15825 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
15829 if test "$ol_enable_dnssrv" != no ; then
15830 cat >> confdefs.h <<\EOF
15831 #define SLAPD_DNSSRV 1
15836 if test "$ol_with_dnssrv_module" != static ; then
15837 cat >> confdefs.h <<\EOF
15838 #define SLAPD_DNSSRV_DYNAMIC 1
15842 BUILD_DNSSRV_DYNAMIC=shared
15843 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15847 if test "$ol_enable_ldap" != no ; then
15848 cat >> confdefs.h <<\EOF
15849 #define SLAPD_LDAP 1
15854 if test "$ol_with_ldap_module" != static ; then
15855 cat >> confdefs.h <<\EOF
15856 #define SLAPD_LDAP_DYNAMIC 1
15860 BUILD_LDAP_DYNAMIC=shared
15861 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15865 if test "$ol_link_ldbm" != no ; then
15866 cat >> confdefs.h <<\EOF
15867 #define SLAPD_LDBM 1
15872 if test "$ol_with_ldbm_module" != static ; then
15873 cat >> confdefs.h <<\EOF
15874 #define SLAPD_LDBM_DYNAMIC 1
15878 BUILD_LDBM_DYNAMIC=shared
15879 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15883 if test "$ol_enable_passwd" != no ; then
15884 cat >> confdefs.h <<\EOF
15885 #define SLAPD_PASSWD 1
15890 if test "$ol_with_passwd_module" != static ; then
15891 cat >> confdefs.h <<\EOF
15892 #define SLAPD_PASSWD_DYNAMIC 1
15896 BUILD_PASSWD_DYNAMIC=shared
15897 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15901 if test "$ol_link_perl" != no ; then
15902 cat >> confdefs.h <<\EOF
15903 #define SLAPD_PERL 1
15908 if test "$ol_with_perl_module" != static ; then
15909 cat >> confdefs.h <<\EOF
15910 #define SLAPD_PERL_DYNAMIC 1
15914 BUILD_PERL_DYNAMIC=shared
15915 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15919 if test "$ol_enable_shell" != no ; then
15920 cat >> confdefs.h <<\EOF
15921 #define SLAPD_SHELL 1
15926 if test "$ol_with_shell_module" != static ; then
15927 cat >> confdefs.h <<\EOF
15928 #define SLAPD_SHELL_DYNAMIC 1
15932 BUILD_SHELL_DYNAMIC=shared
15933 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15937 if test "$ol_enable_tcl" != no ; then
15938 cat >> confdefs.h <<\EOF
15939 #define SLAPD_TCL 1
15944 if test "$ol_with_tcl_module" != static; then
15945 cat >> confdefs.h <<\EOF
15946 #define SLAPD_TCL_DYNAMIC 1
15950 BUILD_TCL_DYNAMIC=shared
15951 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15955 if test "$ol_enable_sql" != no ; then
15956 cat >> confdefs.h <<\EOF
15957 #define SLAPD_SQL 1
15962 SLAPD_SQL_LIBS=-liodbc
15963 if test "$ol_with_sql_module" != static; then
15964 cat >> confdefs.h <<\EOF
15965 #define SLAPD_SQL_DYNAMIC 1
15969 BUILD_SQL_DYNAMIC=shared
15970 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15974 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15975 $BUILD_SLAPD = yes ; then
15980 if test "$LINK_BINS_DYNAMIC" = yes; then
15982 LT_LIB_LINKAGE=shared
15985 LT_LIB_LINKAGE=static
15988 if test "$ac_cv_mingw32" = yes ; then
16061 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16064 # Let make expand exec_prefix.
16065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16067 # Any assignment to VPATH causes Sun make to only execute
16068 # the first set of double-colon rules, so remove it if not needed.
16069 # If there is a colon in the path, we need to keep it.
16070 if test "x$srcdir" = x.; then
16071 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16074 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16076 DEFS=-DHAVE_CONFIG_H
16078 # Without the "./", some shells look in PATH for config.status.
16079 : ${CONFIG_STATUS=./config.status}
16081 echo creating $CONFIG_STATUS
16082 rm -f $CONFIG_STATUS
16083 cat > $CONFIG_STATUS <<EOF
16085 # Generated automatically by configure.
16086 # Run this file to recreate the current configuration.
16087 # This directory was configured as follows,
16088 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16090 # $0 $ac_configure_args
16092 # Compiler output produced by configure, useful for debugging
16093 # configure, is in ./config.log if it exists.
16095 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16098 case "\$ac_option" in
16099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16100 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16101 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16102 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16103 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16105 -help | --help | --hel | --he | --h)
16106 echo "\$ac_cs_usage"; exit 0 ;;
16107 *) echo "\$ac_cs_usage"; exit 1 ;;
16111 ac_given_srcdir=$srcdir
16112 ac_given_INSTALL="$INSTALL"
16114 trap 'rm -fr `echo "\
16115 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16116 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16117 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16118 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16119 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16120 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16121 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16122 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16123 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16124 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16125 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16126 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16127 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16128 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16129 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16130 include/Makefile:build/top.mk:include/Makefile.in \
16131 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16132 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16133 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16134 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16135 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16136 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16137 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16138 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16139 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16140 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16141 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16142 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16143 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16144 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16145 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16146 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16147 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16148 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16149 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16150 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16151 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16152 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16153 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16154 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16155 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16156 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16157 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16158 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16159 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16161 cat >> $CONFIG_STATUS <<EOF
16163 # Protect against being on the right side of a sed subst in config.status.
16164 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16165 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16169 s%@CFLAGS@%$CFLAGS%g
16170 s%@CPPFLAGS@%$CPPFLAGS%g
16171 s%@CXXFLAGS@%$CXXFLAGS%g
16172 s%@FFLAGS@%$FFLAGS%g
16174 s%@LDFLAGS@%$LDFLAGS%g
16176 s%@exec_prefix@%$exec_prefix%g
16177 s%@prefix@%$prefix%g
16178 s%@program_transform_name@%$program_transform_name%g
16179 s%@bindir@%$bindir%g
16180 s%@sbindir@%$sbindir%g
16181 s%@libexecdir@%$libexecdir%g
16182 s%@datadir@%$datadir%g
16183 s%@sysconfdir@%$sysconfdir%g
16184 s%@sharedstatedir@%$sharedstatedir%g
16185 s%@localstatedir@%$localstatedir%g
16186 s%@libdir@%$libdir%g
16187 s%@includedir@%$includedir%g
16188 s%@oldincludedir@%$oldincludedir%g
16189 s%@infodir@%$infodir%g
16190 s%@mandir@%$mandir%g
16192 s%@host_alias@%$host_alias%g
16193 s%@host_cpu@%$host_cpu%g
16194 s%@host_vendor@%$host_vendor%g
16195 s%@host_os@%$host_os%g
16196 s%@target@%$target%g
16197 s%@target_alias@%$target_alias%g
16198 s%@target_cpu@%$target_cpu%g
16199 s%@target_vendor@%$target_vendor%g
16200 s%@target_os@%$target_os%g
16202 s%@build_alias@%$build_alias%g
16203 s%@build_cpu@%$build_cpu%g
16204 s%@build_vendor@%$build_vendor%g
16205 s%@build_os@%$build_os%g
16206 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16207 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16208 s%@INSTALL_DATA@%$INSTALL_DATA%g
16209 s%@PACKAGE@%$PACKAGE%g
16210 s%@VERSION@%$VERSION%g
16211 s%@ACLOCAL@%$ACLOCAL%g
16212 s%@AUTOCONF@%$AUTOCONF%g
16213 s%@AUTOMAKE@%$AUTOMAKE%g
16214 s%@AUTOHEADER@%$AUTOHEADER%g
16215 s%@MAKEINFO@%$MAKEINFO%g
16216 s%@install_sh@%$install_sh%g
16219 s%@AMTARFLAGS@%$AMTARFLAGS%g
16220 s%@SET_MAKE@%$SET_MAKE%g
16221 s%@top_builddir@%$top_builddir%g
16222 s%@ldap_subdir@%$ldap_subdir%g
16224 s%@RANLIB@%$RANLIB%g
16226 s%@DLLTOOL@%$DLLTOOL%g
16228 s%@OBJDUMP@%$OBJDUMP%g
16229 s%@LIBTOOL@%$LIBTOOL%g
16231 s%@SENDMAIL@%$SENDMAIL%g
16232 s%@EDITOR@%$EDITOR%g
16233 s%@FINGER@%$FINGER%g
16234 s%@PERLBIN@%$PERLBIN%g
16236 s%@EXEEXT@%$EXEEXT%g
16237 s%@OBJEXT@%$OBJEXT%g
16238 s%@OL_MKDEP@%$OL_MKDEP%g
16239 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16240 s%@LIBOBJS@%$LIBOBJS%g
16241 s%@LIBSRCS@%$LIBSRCS%g
16243 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16244 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16245 s%@DYN_EXT@%$DYN_EXT%g
16246 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16247 s%@BUILD_BDB2@%$BUILD_BDB2%g
16248 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16249 s%@BUILD_LDAP@%$BUILD_LDAP%g
16250 s%@BUILD_LDBM@%$BUILD_LDBM%g
16251 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16252 s%@BUILD_PERL@%$BUILD_PERL%g
16253 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
16254 s%@BUILD_SHELL@%$BUILD_SHELL%g
16255 s%@BUILD_SQL@%$BUILD_SQL%g
16256 s%@BUILD_TCL@%$BUILD_TCL%g
16257 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
16258 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16259 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16260 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16261 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16262 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16263 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16264 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16265 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16266 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16267 s%@LDAP_LIBS@%$LDAP_LIBS%g
16268 s%@LDIF_LIBS@%$LDIF_LIBS%g
16269 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16270 s%@QUIPU_LIBS@%$QUIPU_LIBS%g
16271 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16272 s%@LDBM_LIBS@%$LDBM_LIBS%g
16273 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16274 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16275 s%@WRAP_LIBS@%$WRAP_LIBS%g
16276 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16277 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16278 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16279 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16280 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16281 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16282 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16283 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16284 s%@KRB4_LIBS@%$KRB4_LIBS%g
16285 s%@KRB5_LIBS@%$KRB5_LIBS%g
16286 s%@READLINE_LIBS@%$READLINE_LIBS%g
16287 s%@SASL_LIBS@%$SASL_LIBS%g
16288 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16289 s%@TLS_LIBS@%$TLS_LIBS%g
16290 s%@MODULES_LIBS@%$MODULES_LIBS%g
16291 s%@AUTH_LIBS@%$AUTH_LIBS%g
16292 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16293 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16294 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16299 cat >> $CONFIG_STATUS <<\EOF
16301 # Split the substitutions into bite-sized pieces for seds with
16302 # small command number limits, like on Digital OSF/1 and HP-UX.
16303 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16304 ac_file=1 # Number of current file.
16305 ac_beg=1 # First line for current file.
16306 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16309 while $ac_more_lines; do
16310 if test $ac_beg -gt 1; then
16311 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16313 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16315 if test ! -s conftest.s$ac_file; then
16316 ac_more_lines=false
16317 rm -f conftest.s$ac_file
16319 if test -z "$ac_sed_cmds"; then
16320 ac_sed_cmds="sed -f conftest.s$ac_file"
16322 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16324 ac_file=`expr $ac_file + 1`
16326 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16329 if test -z "$ac_sed_cmds"; then
16334 cat >> $CONFIG_STATUS <<EOF
16336 CONFIG_FILES=\${CONFIG_FILES-"\
16337 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16338 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16339 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16340 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16341 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16342 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16343 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16344 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16345 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16346 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16347 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16348 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16349 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16350 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16351 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16352 include/Makefile:build/top.mk:include/Makefile.in \
16353 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16354 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16355 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16356 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16357 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16358 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16359 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16360 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16361 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16362 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16363 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16364 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16365 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16366 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16367 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16368 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16369 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16370 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16371 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16372 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16373 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16374 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16375 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16376 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16377 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16378 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16379 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16380 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16383 cat >> $CONFIG_STATUS <<\EOF
16384 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16385 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16387 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16388 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16389 *) ac_file_in="${ac_file}.in" ;;
16392 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16394 # Remove last slash and all that follows it. Not all systems have dirname.
16395 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16396 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16397 # The file is in a subdirectory.
16398 test ! -d "$ac_dir" && mkdir "$ac_dir"
16399 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16400 # A "../" for each directory in $ac_dir_suffix.
16401 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16403 ac_dir_suffix= ac_dots=
16406 case "$ac_given_srcdir" in
16408 if test -z "$ac_dots"; then top_srcdir=.
16409 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16410 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16411 *) # Relative path.
16412 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16413 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16416 case "$ac_given_INSTALL" in
16417 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16418 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16421 echo creating "$ac_file"
16423 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16425 *[Mm]akefile*) ac_comsub="1i\\
16426 # $configure_input" ;;
16430 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16432 s%@configure_input@%$configure_input%g
16433 s%@srcdir@%$srcdir%g
16434 s%@top_srcdir@%$top_srcdir%g
16435 s%@INSTALL@%$INSTALL%g
16436 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16440 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16441 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16443 # ac_d sets the value in "#define NAME VALUE" lines.
16444 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16445 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16448 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16449 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16450 ac_uB='\([ ]\)%\1#\2define\3'
16453 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16454 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16455 ac_eB='$%\1#\2define\3'
16459 if test "${CONFIG_HEADERS+set}" != set; then
16461 cat >> $CONFIG_STATUS <<EOF
16462 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16464 cat >> $CONFIG_STATUS <<\EOF
16466 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16467 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16469 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16470 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16471 *) ac_file_in="${ac_file}.in" ;;
16474 echo creating $ac_file
16476 rm -f conftest.frag conftest.in conftest.out
16477 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16478 cat $ac_file_inputs > conftest.in
16482 # Transform confdefs.h into a sed script conftest.vals that substitutes
16483 # the proper values into config.h.in to produce config.h. And first:
16484 # Protect against being on the right side of a sed subst in config.status.
16485 # Protect against being in an unquoted here document in config.status.
16486 rm -f conftest.vals
16487 cat > conftest.hdr <<\EOF
16490 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16494 sed -n -f conftest.hdr confdefs.h > conftest.vals
16497 # This sed command replaces #undef with comments. This is necessary, for
16498 # example, in the case of _POSIX_SOURCE, which is predefined and required
16499 # on some systems where configure will not decide to define it.
16500 cat >> conftest.vals <<\EOF
16501 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16504 # Break up conftest.vals because some shells have a limit on
16505 # the size of here documents, and old seds have small limits too.
16507 rm -f conftest.tail
16510 ac_lines=`grep -c . conftest.vals`
16511 # grep -c gives empty output for an empty file on some AIX systems.
16512 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16513 # Write a limited-size here document to conftest.frag.
16514 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16515 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16517 sed -f conftest.frag conftest.in > conftest.out
16519 mv conftest.out conftest.in
16520 ' >> $CONFIG_STATUS
16521 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16522 rm -f conftest.vals
16523 mv conftest.tail conftest.vals
16525 rm -f conftest.vals
16527 cat >> $CONFIG_STATUS <<\EOF
16528 rm -f conftest.frag conftest.h
16529 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16530 cat conftest.in >> conftest.h
16532 if cmp -s $ac_file conftest.h 2>/dev/null; then
16533 echo "$ac_file is unchanged"
16536 # Remove last slash and all that follows it. Not all systems have dirname.
16537 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16538 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16539 # The file is in a subdirectory.
16540 test ! -d "$ac_dir" && mkdir "$ac_dir"
16543 mv conftest.h $ac_file
16548 cat >> $CONFIG_STATUS <<EOF
16551 cat >> $CONFIG_STATUS <<\EOF
16554 echo Please \"make depend\" to build dependencies
16558 chmod +x $CONFIG_STATUS
16559 rm -fr confdefs* $ac_clean_files
16560 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1