3 # from OpenLDAP: pkg/ldap/configure.in,v 1.223.2.32 2001/09/18 16:12:10 kurt Exp
5 # Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved."
14 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-x-compile enable cross compiling [no]"
49 --with-cyrus-sasl with Cyrus SASL support [auto]"
51 --with-fetch with fetch URL support [auto]"
53 --with-kerberos with Kerberos support [auto]"
55 --with-readline with readline support [auto]"
57 --with-threads with threads [auto]"
59 --with-tls with TLS/SSL support [auto]"
61 --with-yielding-select with implicitly yielding select [auto]"
63 SLAPD (Standalone LDAP Daemon) Options:"
65 --enable-slapd enable building slapd [yes]"
67 --enable-cleartext enable cleartext passwords [yes]"
69 --enable-crypt enable crypt(3) passwords [auto]"
71 --enable-kpasswd enable kerberos password verification [no]"
73 --enable-spasswd enable (Cyrus) SASL password verification [no]"
75 --enable-modules enable dynamic module support [no]"
77 --enable-phonetic enable phonetic/soundex [no]"
79 --enable-rlookups enable reverse lookups [no]"
81 --enable-aci enable per-object ACIs [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
85 --enable-dynamic enable linking built binaries with dynamic libs [no]"
87 --enable-dnssrv enable dnssrv backend [no]"
89 --with-dnssrv-module module type [static]"
91 --enable-ldap enable ldap backend [no]"
93 --with-ldap-module module type [static]"
95 --enable-ldbm enable ldbm backend [yes]"
97 --with-ldbm-api with LDBM API [auto]"
99 --with-ldbm-module module type [static]"
101 --with-ldbm-type use LDBM type [auto]"
103 --enable-passwd enable passwd backend [no]"
105 --with-passwd-module module type [static]"
107 --enable-shell enable shell backend [no]"
109 --with-shell-module module type [static]"
111 --enable-sql enable sql backend [no]"
113 --with-sql-module module type [static]"
115 SLURPD (Replication Daemon) Options:"
117 --enable-slurpd enable building slurpd [auto]"
119 Library Generation & Linking Options"
121 --enable-static[=PKGS] build static libraries [default=yes]"
123 --enable-shared[=PKGS] build shared libraries [default=yes]"
125 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
127 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
129 --disable-libtool-lock avoid locking (might break parallel builds)"
131 # Initialize some variables set by options.
132 # The variables have the same names as the options, with
133 # dashes changed to underlines.
135 cache_file=./config.cache
144 program_transform_name=s,x,x,
152 bindir='${exec_prefix}/bin'
153 sbindir='${exec_prefix}/sbin'
154 libexecdir='${exec_prefix}/libexec'
155 datadir='${prefix}/share'
156 sysconfdir='${prefix}/etc'
157 sharedstatedir='${prefix}/com'
158 localstatedir='${prefix}/var'
159 libdir='${exec_prefix}/lib'
160 includedir='${prefix}/include'
161 oldincludedir='/usr/include'
162 infodir='${prefix}/info'
163 mandir='${prefix}/man'
165 # Initialize some other variables.
168 SHELL=${CONFIG_SHELL-/bin/sh}
169 # Maximum number of lines to put in a shell here document.
176 # If the previous option needs an argument, assign it.
177 if test -n "$ac_prev"; then
178 eval "$ac_prev=\$ac_option"
184 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
188 # Accept the important Cygnus configure options, so we can diagnose typos.
192 -bindir | --bindir | --bindi | --bind | --bin | --bi)
194 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
195 bindir="$ac_optarg" ;;
197 -build | --build | --buil | --bui | --bu)
199 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
200 build="$ac_optarg" ;;
202 -cache-file | --cache-file | --cache-fil | --cache-fi \
203 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
204 ac_prev=cache_file ;;
205 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
206 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
207 cache_file="$ac_optarg" ;;
209 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
211 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
213 datadir="$ac_optarg" ;;
215 -disable-* | --disable-*)
216 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
217 # Reject names that are not valid shell variable names.
218 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
219 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
221 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
222 eval "enable_${ac_feature}=no" ;;
224 -enable-* | --enable-*)
225 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
226 # Reject names that are not valid shell variable names.
227 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
228 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
230 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
235 eval "enable_${ac_feature}='$ac_optarg'" ;;
237 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
238 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
239 | --exec | --exe | --ex)
240 ac_prev=exec_prefix ;;
241 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
242 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
243 | --exec=* | --exe=* | --ex=*)
244 exec_prefix="$ac_optarg" ;;
246 -gas | --gas | --ga | --g)
247 # Obsolete; use --with-gas.
250 -help | --help | --hel | --he)
251 # Omit some internal or obsolete options to make the list less imposing.
252 # This message is too long to be a string in the A/UX 3.1 sh.
254 Usage: configure [options] [host]
255 Options: [defaults in brackets after descriptions]
257 --cache-file=FILE cache test results in FILE
258 --help print this message
259 --no-create do not create output files
260 --quiet, --silent do not print \`checking...' messages
261 --version print the version of autoconf that created configure
262 Directory and file names:
263 --prefix=PREFIX install architecture-independent files in PREFIX
265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
267 --bindir=DIR user executables in DIR [EPREFIX/bin]
268 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
269 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
270 --datadir=DIR read-only architecture-independent data in DIR
272 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
273 --sharedstatedir=DIR modifiable architecture-independent data in DIR
275 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
276 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
277 --includedir=DIR C header files in DIR [PREFIX/include]
278 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
279 --infodir=DIR info documentation in DIR [PREFIX/info]
280 --mandir=DIR man documentation in DIR [PREFIX/man]
281 --srcdir=DIR find the sources in DIR [configure dir or ..]
282 --program-prefix=PREFIX prepend PREFIX to installed program names
283 --program-suffix=SUFFIX append SUFFIX to installed program names
284 --program-transform-name=PROGRAM
285 run sed PROGRAM on installed program names
289 --build=BUILD configure for building on BUILD [BUILD=HOST]
290 --host=HOST configure for HOST [guessed]
291 --target=TARGET configure for TARGET [TARGET=HOST]
292 Features and packages:
293 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
294 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
295 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
296 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
297 --x-includes=DIR X include files are in DIR
298 --x-libraries=DIR X library files are in DIR
300 if test -n "$ac_help"; then
301 echo "--enable and --with options recognized:$ac_help"
305 -host | --host | --hos | --ho)
307 -host=* | --host=* | --hos=* | --ho=*)
310 -includedir | --includedir | --includedi | --included | --include \
311 | --includ | --inclu | --incl | --inc)
312 ac_prev=includedir ;;
313 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
314 | --includ=* | --inclu=* | --incl=* | --inc=*)
315 includedir="$ac_optarg" ;;
317 -infodir | --infodir | --infodi | --infod | --info | --inf)
319 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
320 infodir="$ac_optarg" ;;
322 -libdir | --libdir | --libdi | --libd)
324 -libdir=* | --libdir=* | --libdi=* | --libd=*)
325 libdir="$ac_optarg" ;;
327 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
328 | --libexe | --libex | --libe)
329 ac_prev=libexecdir ;;
330 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
331 | --libexe=* | --libex=* | --libe=*)
332 libexecdir="$ac_optarg" ;;
334 -localstatedir | --localstatedir | --localstatedi | --localstated \
335 | --localstate | --localstat | --localsta | --localst \
336 | --locals | --local | --loca | --loc | --lo)
337 ac_prev=localstatedir ;;
338 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
339 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
340 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
341 localstatedir="$ac_optarg" ;;
343 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
345 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
346 mandir="$ac_optarg" ;;
349 # Obsolete; use --without-fp.
352 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
356 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
357 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
360 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
361 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
362 | --oldin | --oldi | --old | --ol | --o)
363 ac_prev=oldincludedir ;;
364 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
365 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
366 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
367 oldincludedir="$ac_optarg" ;;
369 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
371 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
372 prefix="$ac_optarg" ;;
374 -program-prefix | --program-prefix | --program-prefi | --program-pref \
375 | --program-pre | --program-pr | --program-p)
376 ac_prev=program_prefix ;;
377 -program-prefix=* | --program-prefix=* | --program-prefi=* \
378 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
379 program_prefix="$ac_optarg" ;;
381 -program-suffix | --program-suffix | --program-suffi | --program-suff \
382 | --program-suf | --program-su | --program-s)
383 ac_prev=program_suffix ;;
384 -program-suffix=* | --program-suffix=* | --program-suffi=* \
385 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
386 program_suffix="$ac_optarg" ;;
388 -program-transform-name | --program-transform-name \
389 | --program-transform-nam | --program-transform-na \
390 | --program-transform-n | --program-transform- \
391 | --program-transform | --program-transfor \
392 | --program-transfo | --program-transf \
393 | --program-trans | --program-tran \
394 | --progr-tra | --program-tr | --program-t)
395 ac_prev=program_transform_name ;;
396 -program-transform-name=* | --program-transform-name=* \
397 | --program-transform-nam=* | --program-transform-na=* \
398 | --program-transform-n=* | --program-transform-=* \
399 | --program-transform=* | --program-transfor=* \
400 | --program-transfo=* | --program-transf=* \
401 | --program-trans=* | --program-tran=* \
402 | --progr-tra=* | --program-tr=* | --program-t=*)
403 program_transform_name="$ac_optarg" ;;
405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
406 | -silent | --silent | --silen | --sile | --sil)
409 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
411 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
413 sbindir="$ac_optarg" ;;
415 -sharedstatedir | --sharedstatedir | --sharedstatedi \
416 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
417 | --sharedst | --shareds | --shared | --share | --shar \
419 ac_prev=sharedstatedir ;;
420 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
421 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
422 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
424 sharedstatedir="$ac_optarg" ;;
426 -site | --site | --sit)
428 -site=* | --site=* | --sit=*)
431 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
433 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
434 srcdir="$ac_optarg" ;;
436 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
437 | --syscon | --sysco | --sysc | --sys | --sy)
438 ac_prev=sysconfdir ;;
439 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
440 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
441 sysconfdir="$ac_optarg" ;;
443 -target | --target | --targe | --targ | --tar | --ta | --t)
445 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
446 target="$ac_optarg" ;;
448 -v | -verbose | --verbose | --verbos | --verbo | --verb)
451 -version | --version | --versio | --versi | --vers)
452 echo "configure generated by autoconf version 2.13.1"
456 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
457 # Reject names that are not valid shell variable names.
458 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
459 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
461 ac_package=`echo $ac_package| sed 's/-/_/g'`
466 eval "with_${ac_package}='$ac_optarg'" ;;
468 -without-* | --without-*)
469 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
470 # Reject names that are not valid shell variable names.
471 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
472 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
474 ac_package=`echo $ac_package| sed 's/-/_/g'`
475 eval "with_${ac_package}=no" ;;
478 # Obsolete; use --with-x.
481 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
482 | --x-incl | --x-inc | --x-in | --x-i)
483 ac_prev=x_includes ;;
484 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
485 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
486 x_includes="$ac_optarg" ;;
488 -x-libraries | --x-libraries | --x-librarie | --x-librari \
489 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
490 ac_prev=x_libraries ;;
491 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
492 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
493 x_libraries="$ac_optarg" ;;
495 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
499 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
500 echo "configure: warning: $ac_option: invalid host type" 1>&2
502 if test "x$nonopt" != xNONE; then
503 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
511 if test -n "$ac_prev"; then
512 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
515 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
517 # File descriptor usage:
520 # 2 errors and warnings
521 # 3 some systems may open it to /dev/tty
522 # 4 used on the Kubota Titan
523 # 6 checking for... messages and results
524 # 5 compiler messages saved in config.log
525 if test "$silent" = yes; then
533 This file contains any messages produced by compilers while
534 running configure, to aid debugging if configure makes a mistake.
537 # Strip out --no-create and --no-recursion so they do not pile up.
538 # Also quote any args containing shell metacharacters.
543 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
544 | --no-cr | --no-c) ;;
545 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
546 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
547 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
548 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
549 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
554 # Only set these to C if already set. These must not be set unconditionally
555 # because not all systems understand e.g. LANG=C (notably SCO).
556 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
557 # Non-C LC_CTYPE values break the ctype check.
558 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
559 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
560 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
561 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
564 rm -rf conftest* confdefs.h
565 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
568 # A filename unique to this package, relative to the directory that
569 # configure is in, which we can look for to find out if srcdir is correct.
570 ac_unique_file=build/version
572 # Find the source files, if location was not specified.
573 if test -z "$srcdir"; then
574 ac_srcdir_defaulted=yes
575 # Try the directory containing this script, then its parent.
577 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
578 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
580 if test ! -r $srcdir/$ac_unique_file; then
584 ac_srcdir_defaulted=no
586 if test ! -r $srcdir/$ac_unique_file; then
587 if test "$ac_srcdir_defaulted" = yes; then
588 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
590 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
593 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
595 # Prefer explicitly selected file to automatically selected ones.
596 if test -z "$CONFIG_SITE"; then
597 if test "x$prefix" != xNONE; then
598 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
600 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
603 for ac_site_file in $CONFIG_SITE; do
604 if test -r "$ac_site_file"; then
605 echo "loading site script $ac_site_file"
612 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
613 ac_cpp='$CPP $CPPFLAGS'
614 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
615 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
616 cross_compiling=$ac_cv_prog_cc_cross
620 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
621 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
622 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
629 ac_n= ac_c='\c' ac_t=
633 # set unset (borrowed from autoconf 2.49c)
634 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
640 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
643 for ac_dir in build $srcdir/build; do
644 if test -f $ac_dir/install-sh; then
646 ac_install_sh="$ac_aux_dir/install-sh -c"
648 elif test -f $ac_dir/install.sh; then
650 ac_install_sh="$ac_aux_dir/install.sh -c"
652 elif test -f $ac_dir/shtool; then
654 ac_install_sh="$ac_aux_dir/shtool install -c"
658 if test -z "$ac_aux_dir"; then
659 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
661 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
662 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
663 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
665 OL_VERSION=`cat $ac_aux_dir/version`
666 if test -z "$OL_VERSION"; then
667 { echo "configure: error: could not determine version" 1>&2; exit 1; }
670 echo "Configuring OpenLDAP $OL_VERSION ..."
673 echo $ac_n "checking host system type""... $ac_c" 1>&6
674 echo "configure:675: checking host system type" >&5
675 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
677 # Make sure we can run config.sub.
678 if $ac_config_sub sun4 >/dev/null 2>&1; then :
679 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
682 ac_cv_host_alias=$host
683 case "$ac_cv_host_alias" in
687 if ac_cv_host_alias=`$ac_config_guess`; then :
688 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
690 *) ac_cv_host_alias=$nonopt ;;
694 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
695 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
696 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
697 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
699 echo $ac_n "(cached) $ac_c" 1>&6
702 echo "$ac_t""$ac_cv_host" 1>&6
705 host_alias=$ac_cv_host_alias
706 host_cpu=$ac_cv_host_cpu
707 host_vendor=$ac_cv_host_vendor
708 host_os=$ac_cv_host_os
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
716 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
718 # Make sure we can run config.sub.
719 if $ac_config_sub sun4 >/dev/null 2>&1; then :
720 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
723 ac_cv_target_alias=$target
724 case "$ac_cv_target_alias" in
728 ac_cv_target_alias=$host_alias ;;
730 *) ac_cv_target_alias=$nonopt ;;
734 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
735 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
736 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
737 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
739 echo $ac_n "(cached) $ac_c" 1>&6
742 echo "$ac_t""$ac_cv_target" 1>&6
745 target_alias=$ac_cv_target_alias
746 target_cpu=$ac_cv_target_cpu
747 target_vendor=$ac_cv_target_vendor
748 target_os=$ac_cv_target_os
754 echo $ac_n "checking build system type""... $ac_c" 1>&6
755 echo "configure:756: checking build system type" >&5
756 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
758 # Make sure we can run config.sub.
759 if $ac_config_sub sun4 >/dev/null 2>&1; then :
760 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
763 ac_cv_build_alias=$build
764 case "$ac_cv_build_alias" in
768 ac_cv_build_alias=$host_alias ;;
770 *) ac_cv_build_alias=$nonopt ;;
774 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
775 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
776 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
777 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
779 echo $ac_n "(cached) $ac_c" 1>&6
782 echo "$ac_t""$ac_cv_build" 1>&6
785 build_alias=$ac_cv_build_alias
786 build_cpu=$ac_cv_build_cpu
787 build_vendor=$ac_cv_build_vendor
788 build_os=$ac_cv_build_os
794 # Do some error checking and defaulting for the host and target type.
796 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
799 # 1. You are not allowed to specify --host, --target, and nonopt at the
801 # 2. Host defaults to nonopt.
802 # 3. If nonopt is not specified, then host defaults to the current host,
803 # as determined by config.guess.
804 # 4. Target and build default to nonopt.
805 # 5. If nonopt is not specified, then target and build default to host.
807 # The aliases save the names the user supplied, while $host etc.
808 # will get canonicalized.
809 case $host---$target---$nonopt in
810 NONE---*---* | *---NONE---* | *---*---NONE) ;;
811 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
814 test "$host_alias" != "$target_alias" &&
815 test "$program_prefix$program_suffix$program_transform_name" = \
817 program_prefix=${target_alias}-
820 # Find a good install program. We prefer a C program (faster),
821 # so one script is as good as another. But avoid the broken or
822 # incompatible versions:
823 # SysV /etc/install, /usr/sbin/install
824 # SunOS /usr/etc/install
827 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
830 # ./install, which can be erroneously created by make from ./install.sh.
831 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
832 echo "configure:833: checking for a BSD compatible install" >&5
833 if test -z "$INSTALL"; then
834 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
838 for ac_dir in $PATH; do
839 # Account for people who put trailing slashes in PATH elements.
841 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
843 # OSF1 and SCO ODT 3.0 have their own names for install.
844 # Don't use installbsd from OSF since it installs stuff as root
846 for ac_prog in ginstall scoinst install; do
847 if test -f $ac_dir/$ac_prog; then
848 if test $ac_prog = install &&
849 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
850 # AIX install. It has an incompatible calling convention.
852 elif test $ac_prog = install &&
853 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
854 # program-specific install script used by HP pwplus--don't use.
857 ac_cv_path_install="$ac_dir/$ac_prog -c"
868 if test "${ac_cv_path_install+set}" = set; then
869 INSTALL="$ac_cv_path_install"
871 # As a last resort, use the slow shell script. We don't cache a
872 # path for INSTALL within a source directory, because that will
873 # break other packages using the cache if that directory is
874 # removed, or if the path is relative.
875 INSTALL="$ac_install_sh"
878 echo "$ac_t""$INSTALL" 1>&6
880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
881 # It thinks the first close brace ends the variable substitution.
882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
888 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
889 echo "configure:890: checking whether build environment is sane" >&5
892 echo timestamp > conftestfile
893 # Do `set' in a subshell so we don't clobber the current shell's
894 # arguments. Must try -L first in case configure is actually a
895 # symlink; some systems play weird games with the mod time of symlinks
896 # (eg FreeBSD returns the mod time of the symlink's containing
899 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
900 if test "$*" = "X"; then
902 set X `ls -t $srcdir/configure conftestfile`
904 if test "$*" != "X $srcdir/configure conftestfile" \
905 && test "$*" != "X conftestfile $srcdir/configure"; then
907 # If neither matched, then we have a broken ls. This can happen
908 # if, for instance, CONFIG_SHELL is bash and it inherits a
909 # broken ls alias from the environment. This has actually
910 # happened. Such a system could not be considered "sane".
911 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
912 alias in your environment" 1>&2; exit 1; }
915 test "$2" = conftestfile
921 { echo "configure: error: newly created file is older than distributed files!
922 Check your system clock" 1>&2; exit 1; }
925 echo "$ac_t""yes" 1>&6
926 if test "$program_transform_name" = s,x,x,; then
927 program_transform_name=
929 # Double any \ or $. echo might interpret backslashes.
930 cat <<\EOF_SED > conftestsed
931 s,\\,\\\\,g; s,\$,$$,g
933 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
936 test "$program_prefix" != NONE &&
937 program_transform_name="s,^,${program_prefix},;$program_transform_name"
938 # Use a double $ so make ignores it.
939 test "$program_suffix" != NONE &&
940 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
942 # sed with no file args requires a program.
943 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
945 for ac_prog in mawk gawk nawk awk
947 # Extract the first word of "$ac_prog", so it can be a program name with args.
948 set dummy $ac_prog; ac_word=$2
949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
950 echo "configure:951: checking for $ac_word" >&5
951 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
954 if test -n "$AWK"; then
955 ac_cv_prog_AWK="$AWK" # Let the user override the test.
957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
959 for ac_dir in $ac_dummy; do
960 test -z "$ac_dir" && ac_dir=.
961 if test -f $ac_dir/$ac_word; then
962 ac_cv_prog_AWK="$ac_prog"
969 AWK="$ac_cv_prog_AWK"
970 if test -n "$AWK"; then
971 echo "$ac_t""$AWK" 1>&6
973 echo "$ac_t""no" 1>&6
976 test -n "$AWK" && break
979 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
980 echo "configure:981: checking whether ${MAKE-make} sets \${MAKE}" >&5
981 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
982 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 cat > conftestmake <<\EOF
987 @echo 'ac_maketemp="${MAKE}"'
989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
990 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
991 if test -n "$ac_maketemp"; then
992 eval ac_cv_prog_make_${ac_make}_set=yes
994 eval ac_cv_prog_make_${ac_make}_set=no
998 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
999 echo "$ac_t""yes" 1>&6
1002 echo "$ac_t""no" 1>&6
1003 SET_MAKE="MAKE=${MAKE-make}"
1012 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1013 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1018 missing_dir=`cd $ac_aux_dir && pwd`
1019 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1020 echo "configure:1021: checking for working aclocal" >&5
1021 # Run test in a subshell; some versions of sh will print an error if
1022 # an executable is not found, even if stderr is redirected.
1023 # Redirect stdin to placate older versions of autoconf. Sigh.
1024 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1026 echo "$ac_t""found" 1>&6
1028 ACLOCAL="$missing_dir/missing aclocal"
1029 echo "$ac_t""missing" 1>&6
1032 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working autoconf" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf. Sigh.
1037 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1039 echo "$ac_t""found" 1>&6
1041 AUTOCONF="$missing_dir/missing autoconf"
1042 echo "$ac_t""missing" 1>&6
1045 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working automake" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (automake --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 AUTOMAKE="$missing_dir/missing automake"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working autoheader" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1064 AUTOHEADER=autoheader
1065 echo "$ac_t""found" 1>&6
1067 AUTOHEADER="$missing_dir/missing autoheader"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working makeinfo" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1078 echo "$ac_t""found" 1>&6
1080 MAKEINFO="$missing_dir/missing makeinfo"
1081 echo "$ac_t""missing" 1>&6
1084 install_sh="$missing_dir/install-sh"
1085 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1087 for ac_prog in gnutar gtar tar
1089 # Extract the first word of "$ac_prog", so it can be a program name with args.
1090 set dummy $ac_prog; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 if test -n "$AMTAR"; then
1097 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 for ac_dir in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1104 ac_cv_prog_AMTAR="$ac_prog"
1111 AMTAR="$ac_cv_prog_AMTAR"
1112 if test -n "$AMTAR"; then
1113 echo "$ac_t""$AMTAR" 1>&6
1115 echo "$ac_t""no" 1>&6
1118 test -n "$AMTAR" && break
1123 if test -n "$AMTAR"; then
1124 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1129 cat >> confdefs.h <<EOF
1130 #define OPENLDAP_PACKAGE "$PACKAGE"
1133 cat >> confdefs.h <<EOF
1134 #define OPENLDAP_VERSION "$VERSION"
1140 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1141 echo "configure:1142: checking configure arguments" >&5
1146 ldap_subdir="/openldap"
1148 # Check whether --with-subdir or --without-subdir was given.
1149 if test "${with_subdir+set}" = set; then
1150 withval="$with_subdir"
1157 ldap_subdir="$withval"
1160 ldap_subdir="/$withval"
1167 # OpenLDAP --enable-debug
1168 # Check whether --enable-debug or --disable-debug was given.
1169 if test "${enable_debug+set}" = set; then
1170 enableval="$enable_debug"
1173 for ol_val in auto yes no ; do
1174 if test "$enableval" = "$ol_val" ; then
1178 if test "$ol_arg" = "invalid" ; then
1179 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1181 ol_enable_debug="$ol_arg"
1184 ol_enable_debug="yes"
1186 # end --enable-debug
1187 # OpenLDAP --enable-syslog
1188 # Check whether --enable-syslog or --disable-syslog was given.
1189 if test "${enable_syslog+set}" = set; then
1190 enableval="$enable_syslog"
1193 for ol_val in auto yes no ; do
1194 if test "$enableval" = "$ol_val" ; then
1198 if test "$ol_arg" = "invalid" ; then
1199 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1201 ol_enable_syslog="$ol_arg"
1204 ol_enable_syslog="auto"
1206 # end --enable-syslog
1207 # OpenLDAP --enable-proctitle
1208 # Check whether --enable-proctitle or --disable-proctitle was given.
1209 if test "${enable_proctitle+set}" = set; then
1210 enableval="$enable_proctitle"
1213 for ol_val in auto yes no ; do
1214 if test "$enableval" = "$ol_val" ; then
1218 if test "$ol_arg" = "invalid" ; then
1219 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1221 ol_enable_proctitle="$ol_arg"
1224 ol_enable_proctitle="yes"
1226 # end --enable-proctitle
1227 # OpenLDAP --enable-cache
1228 # Check whether --enable-cache or --disable-cache was given.
1229 if test "${enable_cache+set}" = set; then
1230 enableval="$enable_cache"
1233 for ol_val in auto yes no ; do
1234 if test "$enableval" = "$ol_val" ; then
1238 if test "$ol_arg" = "invalid" ; then
1239 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1241 ol_enable_cache="$ol_arg"
1244 ol_enable_cache="no"
1246 # end --enable-cache
1247 # OpenLDAP --enable-referrals
1248 # Check whether --enable-referrals or --disable-referrals was given.
1249 if test "${enable_referrals+set}" = set; then
1250 enableval="$enable_referrals"
1253 for ol_val in auto yes no ; do
1254 if test "$enableval" = "$ol_val" ; then
1258 if test "$ol_arg" = "invalid" ; then
1259 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1261 ol_enable_referrals="$ol_arg"
1264 ol_enable_referrals="no"
1266 # end --enable-referrals
1267 # OpenLDAP --enable-kbind
1268 # Check whether --enable-kbind or --disable-kbind was given.
1269 if test "${enable_kbind+set}" = set; then
1270 enableval="$enable_kbind"
1273 for ol_val in auto yes no ; do
1274 if test "$enableval" = "$ol_val" ; then
1278 if test "$ol_arg" = "invalid" ; then
1279 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1281 ol_enable_kbind="$ol_arg"
1284 ol_enable_kbind="no"
1286 # end --enable-kbind
1287 # OpenLDAP --enable-ipv6
1288 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1289 if test "${enable_ipv6+set}" = set; then
1290 enableval="$enable_ipv6"
1293 for ol_val in auto yes no ; do
1294 if test "$enableval" = "$ol_val" ; then
1298 if test "$ol_arg" = "invalid" ; then
1299 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1301 ol_enable_ipv6="$ol_arg"
1304 ol_enable_ipv6="auto"
1307 # OpenLDAP --enable-local
1308 # Check whether --enable-local or --disable-local was given.
1309 if test "${enable_local+set}" = set; then
1310 enableval="$enable_local"
1313 for ol_val in auto yes no ; do
1314 if test "$enableval" = "$ol_val" ; then
1318 if test "$ol_arg" = "invalid" ; then
1319 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1321 ol_enable_local="$ol_arg"
1324 ol_enable_local="auto"
1326 # end --enable-local
1327 # OpenLDAP --enable-x_compile
1328 # Check whether --enable-x_compile or --disable-x_compile was given.
1329 if test "${enable_x_compile+set}" = set; then
1330 enableval="$enable_x_compile"
1333 for ol_val in yes no ; do
1334 if test "$enableval" = "$ol_val" ; then
1338 if test "$ol_arg" = "invalid" ; then
1339 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1341 ol_enable_x_compile="$ol_arg"
1344 ol_enable_x_compile="no"
1346 # end --enable-x_compile
1349 # OpenLDAP --with-cyrus_sasl
1350 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1351 if test "${with_cyrus_sasl+set}" = set; then
1352 withval="$with_cyrus_sasl"
1355 for ol_val in auto yes no ; do
1356 if test "$withval" = "$ol_val" ; then
1360 if test "$ol_arg" = "invalid" ; then
1361 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1363 ol_with_cyrus_sasl="$ol_arg"
1366 ol_with_cyrus_sasl="auto"
1368 # end --with-cyrus_sasl
1370 # OpenLDAP --with-fetch
1371 # Check whether --with-fetch or --without-fetch was given.
1372 if test "${with_fetch+set}" = set; then
1373 withval="$with_fetch"
1376 for ol_val in auto yes no ; do
1377 if test "$withval" = "$ol_val" ; then
1381 if test "$ol_arg" = "invalid" ; then
1382 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1384 ol_with_fetch="$ol_arg"
1387 ol_with_fetch="auto"
1391 # OpenLDAP --with-kerberos
1392 # Check whether --with-kerberos or --without-kerberos was given.
1393 if test "${with_kerberos+set}" = set; then
1394 withval="$with_kerberos"
1397 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1398 if test "$withval" = "$ol_val" ; then
1402 if test "$ol_arg" = "invalid" ; then
1403 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1405 ol_with_kerberos="$ol_arg"
1408 ol_with_kerberos="auto"
1410 # end --with-kerberos
1412 # OpenLDAP --with-readline
1413 # Check whether --with-readline or --without-readline was given.
1414 if test "${with_readline+set}" = set; then
1415 withval="$with_readline"
1418 for ol_val in auto yes no ; do
1419 if test "$withval" = "$ol_val" ; then
1423 if test "$ol_arg" = "invalid" ; then
1424 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1426 ol_with_readline="$ol_arg"
1429 ol_with_readline="auto"
1431 # end --with-readline
1433 # OpenLDAP --with-threads
1434 # Check whether --with-threads or --without-threads was given.
1435 if test "${with_threads+set}" = set; then
1436 withval="$with_threads"
1439 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1440 if test "$withval" = "$ol_val" ; then
1444 if test "$ol_arg" = "invalid" ; then
1445 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1447 ol_with_threads="$ol_arg"
1450 ol_with_threads="auto"
1452 # end --with-threads
1454 # OpenLDAP --with-tls
1455 # Check whether --with-tls or --without-tls was given.
1456 if test "${with_tls+set}" = set; then
1460 for ol_val in auto ssleay openssl yes no ; do
1461 if test "$withval" = "$ol_val" ; then
1465 if test "$ol_arg" = "invalid" ; then
1466 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1468 ol_with_tls="$ol_arg"
1475 # OpenLDAP --with-yielding_select
1476 # Check whether --with-yielding_select or --without-yielding_select was given.
1477 if test "${with_yielding_select+set}" = set; then
1478 withval="$with_yielding_select"
1481 for ol_val in auto yes no manual ; do
1482 if test "$withval" = "$ol_val" ; then
1486 if test "$ol_arg" = "invalid" ; then
1487 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1489 ol_with_yielding_select="$ol_arg"
1492 ol_with_yielding_select="auto"
1494 # end --with-yielding_select
1498 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1499 if test "${with_xxslapdoptions+set}" = set; then
1500 withval="$with_xxslapdoptions"
1504 # OpenLDAP --enable-slapd
1505 # Check whether --enable-slapd or --disable-slapd was given.
1506 if test "${enable_slapd+set}" = set; then
1507 enableval="$enable_slapd"
1510 for ol_val in auto yes no ; do
1511 if test "$enableval" = "$ol_val" ; then
1515 if test "$ol_arg" = "invalid" ; then
1516 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1518 ol_enable_slapd="$ol_arg"
1521 ol_enable_slapd="yes"
1523 # end --enable-slapd
1524 # OpenLDAP --enable-cleartext
1525 # Check whether --enable-cleartext or --disable-cleartext was given.
1526 if test "${enable_cleartext+set}" = set; then
1527 enableval="$enable_cleartext"
1530 for ol_val in auto yes no ; do
1531 if test "$enableval" = "$ol_val" ; then
1535 if test "$ol_arg" = "invalid" ; then
1536 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1538 ol_enable_cleartext="$ol_arg"
1541 ol_enable_cleartext="yes"
1543 # end --enable-cleartext
1544 # OpenLDAP --enable-crypt
1545 # Check whether --enable-crypt or --disable-crypt was given.
1546 if test "${enable_crypt+set}" = set; then
1547 enableval="$enable_crypt"
1550 for ol_val in auto yes no ; do
1551 if test "$enableval" = "$ol_val" ; then
1555 if test "$ol_arg" = "invalid" ; then
1556 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1558 ol_enable_crypt="$ol_arg"
1561 ol_enable_crypt="auto"
1563 # end --enable-crypt
1564 # OpenLDAP --enable-kpasswd
1565 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1566 if test "${enable_kpasswd+set}" = set; then
1567 enableval="$enable_kpasswd"
1570 for ol_val in auto yes no ; do
1571 if test "$enableval" = "$ol_val" ; then
1575 if test "$ol_arg" = "invalid" ; then
1576 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1578 ol_enable_kpasswd="$ol_arg"
1581 ol_enable_kpasswd="no"
1583 # end --enable-kpasswd
1584 # OpenLDAP --enable-spasswd
1585 # Check whether --enable-spasswd or --disable-spasswd was given.
1586 if test "${enable_spasswd+set}" = set; then
1587 enableval="$enable_spasswd"
1590 for ol_val in auto yes no ; do
1591 if test "$enableval" = "$ol_val" ; then
1595 if test "$ol_arg" = "invalid" ; then
1596 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1598 ol_enable_spasswd="$ol_arg"
1601 ol_enable_spasswd="no"
1603 # end --enable-spasswd
1604 # OpenLDAP --enable-modules
1605 # Check whether --enable-modules or --disable-modules was given.
1606 if test "${enable_modules+set}" = set; then
1607 enableval="$enable_modules"
1610 for ol_val in auto yes no ; do
1611 if test "$enableval" = "$ol_val" ; then
1615 if test "$ol_arg" = "invalid" ; then
1616 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1618 ol_enable_modules="$ol_arg"
1621 ol_enable_modules="no"
1623 # end --enable-modules
1624 # OpenLDAP --enable-phonetic
1625 # Check whether --enable-phonetic or --disable-phonetic was given.
1626 if test "${enable_phonetic+set}" = set; then
1627 enableval="$enable_phonetic"
1630 for ol_val in auto yes no ; do
1631 if test "$enableval" = "$ol_val" ; then
1635 if test "$ol_arg" = "invalid" ; then
1636 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1638 ol_enable_phonetic="$ol_arg"
1641 ol_enable_phonetic="no"
1643 # end --enable-phonetic
1644 # OpenLDAP --enable-rlookups
1645 # Check whether --enable-rlookups or --disable-rlookups was given.
1646 if test "${enable_rlookups+set}" = set; then
1647 enableval="$enable_rlookups"
1650 for ol_val in auto yes no ; do
1651 if test "$enableval" = "$ol_val" ; then
1655 if test "$ol_arg" = "invalid" ; then
1656 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1658 ol_enable_rlookups="$ol_arg"
1661 ol_enable_rlookups="no"
1663 # end --enable-rlookups
1664 # OpenLDAP --enable-aci
1665 # Check whether --enable-aci or --disable-aci was given.
1666 if test "${enable_aci+set}" = set; then
1667 enableval="$enable_aci"
1670 for ol_val in auto yes no ; do
1671 if test "$enableval" = "$ol_val" ; then
1675 if test "$ol_arg" = "invalid" ; then
1676 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1678 ol_enable_aci="$ol_arg"
1684 # OpenLDAP --enable-wrappers
1685 # Check whether --enable-wrappers or --disable-wrappers was given.
1686 if test "${enable_wrappers+set}" = set; then
1687 enableval="$enable_wrappers"
1690 for ol_val in auto yes no ; do
1691 if test "$enableval" = "$ol_val" ; then
1695 if test "$ol_arg" = "invalid" ; then
1696 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1698 ol_enable_wrappers="$ol_arg"
1701 ol_enable_wrappers="no"
1703 # end --enable-wrappers
1704 # OpenLDAP --enable-dynamic
1705 # Check whether --enable-dynamic or --disable-dynamic was given.
1706 if test "${enable_dynamic+set}" = set; then
1707 enableval="$enable_dynamic"
1710 for ol_val in auto yes no ; do
1711 if test "$enableval" = "$ol_val" ; then
1715 if test "$ol_arg" = "invalid" ; then
1716 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1718 ol_enable_dynamic="$ol_arg"
1721 ol_enable_dynamic="no"
1723 # end --enable-dynamic
1725 # OpenLDAP --enable-dnssrv
1726 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1727 if test "${enable_dnssrv+set}" = set; then
1728 enableval="$enable_dnssrv"
1731 for ol_val in auto yes no ; do
1732 if test "$enableval" = "$ol_val" ; then
1736 if test "$ol_arg" = "invalid" ; then
1737 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1739 ol_enable_dnssrv="$ol_arg"
1742 ol_enable_dnssrv="no"
1744 # end --enable-dnssrv
1745 # OpenLDAP --with-dnssrv_module
1746 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1747 if test "${with_dnssrv_module+set}" = set; then
1748 withval="$with_dnssrv_module"
1751 for ol_val in static dynamic ; do
1752 if test "$withval" = "$ol_val" ; then
1756 if test "$ol_arg" = "invalid" ; then
1757 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1759 ol_with_dnssrv_module="$ol_arg"
1762 ol_with_dnssrv_module="static"
1764 # end --with-dnssrv_module
1766 # OpenLDAP --enable-ldap
1767 # Check whether --enable-ldap or --disable-ldap was given.
1768 if test "${enable_ldap+set}" = set; then
1769 enableval="$enable_ldap"
1772 for ol_val in auto yes no ; do
1773 if test "$enableval" = "$ol_val" ; then
1777 if test "$ol_arg" = "invalid" ; then
1778 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1780 ol_enable_ldap="$ol_arg"
1786 # OpenLDAP --with-ldap_module
1787 # Check whether --with-ldap_module or --without-ldap_module was given.
1788 if test "${with_ldap_module+set}" = set; then
1789 withval="$with_ldap_module"
1792 for ol_val in static dynamic ; do
1793 if test "$withval" = "$ol_val" ; then
1797 if test "$ol_arg" = "invalid" ; then
1798 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1800 ol_with_ldap_module="$ol_arg"
1803 ol_with_ldap_module="static"
1805 # end --with-ldap_module
1807 # OpenLDAP --enable-ldbm
1808 # Check whether --enable-ldbm or --disable-ldbm was given.
1809 if test "${enable_ldbm+set}" = set; then
1810 enableval="$enable_ldbm"
1813 for ol_val in auto yes no ; do
1814 if test "$enableval" = "$ol_val" ; then
1818 if test "$ol_arg" = "invalid" ; then
1819 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1821 ol_enable_ldbm="$ol_arg"
1824 ol_enable_ldbm="yes"
1827 # OpenLDAP --with-ldbm_api
1828 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1829 if test "${with_ldbm_api+set}" = set; then
1830 withval="$with_ldbm_api"
1833 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1834 if test "$withval" = "$ol_val" ; then
1838 if test "$ol_arg" = "invalid" ; then
1839 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1841 ol_with_ldbm_api="$ol_arg"
1844 ol_with_ldbm_api="auto"
1846 # end --with-ldbm_api
1848 # OpenLDAP --with-ldbm_module
1849 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1850 if test "${with_ldbm_module+set}" = set; then
1851 withval="$with_ldbm_module"
1854 for ol_val in static dynamic ; do
1855 if test "$withval" = "$ol_val" ; then
1859 if test "$ol_arg" = "invalid" ; then
1860 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1862 ol_with_ldbm_module="$ol_arg"
1865 ol_with_ldbm_module="static"
1867 # end --with-ldbm_module
1869 # OpenLDAP --with-ldbm_type
1870 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1871 if test "${with_ldbm_type+set}" = set; then
1872 withval="$with_ldbm_type"
1875 for ol_val in auto btree hash ; do
1876 if test "$withval" = "$ol_val" ; then
1880 if test "$ol_arg" = "invalid" ; then
1881 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1883 ol_with_ldbm_type="$ol_arg"
1886 ol_with_ldbm_type="auto"
1888 # end --with-ldbm_type
1890 # OpenLDAP --enable-passwd
1891 # Check whether --enable-passwd or --disable-passwd was given.
1892 if test "${enable_passwd+set}" = set; then
1893 enableval="$enable_passwd"
1896 for ol_val in auto yes no ; do
1897 if test "$enableval" = "$ol_val" ; then
1901 if test "$ol_arg" = "invalid" ; then
1902 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1904 ol_enable_passwd="$ol_arg"
1907 ol_enable_passwd="no"
1909 # end --enable-passwd
1910 # OpenLDAP --with-passwd_module
1911 # Check whether --with-passwd_module or --without-passwd_module was given.
1912 if test "${with_passwd_module+set}" = set; then
1913 withval="$with_passwd_module"
1916 for ol_val in static dynamic ; do
1917 if test "$withval" = "$ol_val" ; then
1921 if test "$ol_arg" = "invalid" ; then
1922 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1924 ol_with_passwd_module="$ol_arg"
1927 ol_with_passwd_module="static"
1929 # end --with-passwd_module
1931 # OpenLDAP --enable-shell
1932 # Check whether --enable-shell or --disable-shell was given.
1933 if test "${enable_shell+set}" = set; then
1934 enableval="$enable_shell"
1937 for ol_val in auto yes no ; do
1938 if test "$enableval" = "$ol_val" ; then
1942 if test "$ol_arg" = "invalid" ; then
1943 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1945 ol_enable_shell="$ol_arg"
1948 ol_enable_shell="no"
1950 # end --enable-shell
1951 # OpenLDAP --with-shell_module
1952 # Check whether --with-shell_module or --without-shell_module was given.
1953 if test "${with_shell_module+set}" = set; then
1954 withval="$with_shell_module"
1957 for ol_val in static dynamic ; do
1958 if test "$withval" = "$ol_val" ; then
1962 if test "$ol_arg" = "invalid" ; then
1963 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1965 ol_with_shell_module="$ol_arg"
1968 ol_with_shell_module="static"
1970 # end --with-shell_module
1972 # OpenLDAP --enable-sql
1973 # Check whether --enable-sql or --disable-sql was given.
1974 if test "${enable_sql+set}" = set; then
1975 enableval="$enable_sql"
1978 for ol_val in auto yes no ; do
1979 if test "$enableval" = "$ol_val" ; then
1983 if test "$ol_arg" = "invalid" ; then
1984 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
1986 ol_enable_sql="$ol_arg"
1992 # OpenLDAP --with-sql_module
1993 # Check whether --with-sql_module or --without-sql_module was given.
1994 if test "${with_sql_module+set}" = set; then
1995 withval="$with_sql_module"
1998 for ol_val in static dynamic ; do
1999 if test "$withval" = "$ol_val" ; then
2003 if test "$ol_arg" = "invalid" ; then
2004 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2006 ol_with_sql_module="$ol_arg"
2009 ol_with_sql_module="static"
2011 # end --with-sql_module
2014 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2015 if test "${with_xxslurpdoptions+set}" = set; then
2016 withval="$with_xxslurpdoptions"
2020 # OpenLDAP --enable-slurpd
2021 # Check whether --enable-slurpd or --disable-slurpd was given.
2022 if test "${enable_slurpd+set}" = set; then
2023 enableval="$enable_slurpd"
2026 for ol_val in auto yes no ; do
2027 if test "$enableval" = "$ol_val" ; then
2031 if test "$ol_arg" = "invalid" ; then
2032 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2034 ol_enable_slurpd="$ol_arg"
2037 ol_enable_slurpd="auto"
2039 # end --enable-slurpd
2041 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2042 if test "${with_xxliboptions+set}" = set; then
2043 withval="$with_xxliboptions"
2047 # Check whether --enable-static or --disable-static was given.
2048 if test "${enable_static+set}" = set; then
2049 enableval="$enable_static"
2050 p=${PACKAGE-default}
2051 case "$enableval" in
2052 yes) enable_static=yes ;;
2053 no) enable_static=no ;;
2056 # Look at the argument we got. We use all the common list separators.
2057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2058 for pkg in $enableval; do
2059 if test "X$pkg" = "X$p"; then
2070 # Check whether --enable-shared or --disable-shared was given.
2071 if test "${enable_shared+set}" = set; then
2072 enableval="$enable_shared"
2073 p=${PACKAGE-default}
2074 case "$enableval" in
2075 yes) enable_shared=yes ;;
2076 no) enable_shared=no ;;
2079 # Look at the argument we got. We use all the common list separators.
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2081 for pkg in $enableval; do
2082 if test "X$pkg" = "X$p"; then
2096 if test $ol_enable_slapd = no ; then
2097 if test $ol_enable_dnssrv = yes ; then
2098 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2100 if test $ol_enable_ldap = yes ; then
2101 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2103 if test $ol_enable_ldbm = yes ; then
2104 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2106 if test $ol_enable_passwd = yes ; then
2107 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2109 if test $ol_enable_shell = yes ; then
2110 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2112 if test $ol_enable_sql = yes ; then
2113 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2115 if test $ol_enable_modules = yes ; then
2116 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2118 if test $ol_enable_wrappers = yes ; then
2119 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2121 if test $ol_enable_phonetic = yes ; then
2122 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2124 if test $ol_enable_rlookups = yes ; then
2125 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2127 if test $ol_enable_aci = yes ; then
2128 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2130 if test $ol_with_ldbm_api != auto ; then
2131 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2133 if test $ol_with_ldbm_type != auto ; then
2134 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2136 if test $ol_with_dnssrv_module != static ; then
2137 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2139 if test $ol_with_ldap_module != static ; then
2140 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2142 if test $ol_with_ldbm_module != static ; then
2143 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2145 if test $ol_with_passwd_module != static ; then
2146 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2148 if test $ol_with_shell_module != static ; then
2149 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2151 if test $ol_with_sql_module != static ; then
2152 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2154 if test $ol_enable_slurpd = yes ; then
2155 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2158 # force settings to no
2166 ol_enable_modules=no
2167 ol_enable_phonetic=no
2168 ol_enable_rlookups=no
2170 ol_enable_wrappers=no
2171 ol_enable_dynamic=no
2174 ol_with_ldbm_type=no
2176 ol_with_dnssrv_module=static
2177 ol_with_ldap_module=static
2178 ol_with_ldbm_module=static
2179 ol_with_passwd_module=static
2180 ol_with_shell_module=static
2181 ol_with_sql_module=static
2185 elif test $ol_enable_ldbm = no ; then
2187 if test $ol_with_ldbm_api != auto ; then
2188 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2191 if test $ol_with_ldbm_type != auto ; then
2192 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2195 if test $ol_with_ldbm_module != static ; then
2196 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2199 if test $ol_enable_modules != yes -a \
2200 $ol_enable_dnssrv = no -a \
2201 $ol_enable_ldap = no -a \
2202 $ol_enable_passwd = no -a \
2203 $ol_enable_shell = no -a \
2204 $ol_enable_sql = no ; then
2205 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2209 ol_with_ldbm_type=no
2210 ol_with_ldbm_module=static
2213 if test $ol_with_ldbm_api = gdbm -a \
2214 $ol_with_ldbm_type = btree ; then
2215 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2217 if test $ol_with_ldbm_api = mdbm -a \
2218 $ol_with_ldbm_type = btree ; then
2219 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2221 if test $ol_with_ldbm_api = ndbm -a \
2222 $ol_with_ldbm_type = btree ; then
2223 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2227 if test $ol_enable_slurpd = yes ; then
2228 if test $ol_with_threads = no ; then
2229 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2233 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2234 if test $ol_with_kerberos = no ; then
2235 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2237 ol_with_kerberos=yes
2238 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2239 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2240 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2245 if test $ol_enable_spasswd = yes ; then
2246 if test $ol_with_cyrus_sasl = no ; then
2247 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2249 ol_with_cyrus_sasl=yes
2252 echo "$ac_t""done" 1>&6
2275 BUILD_DNSSRV_DYNAMIC=static
2276 BUILD_LDAP_DYNAMIC=static
2277 BUILD_LDBM_DYNAMIC=static
2278 BUILD_PASSWD_DYNAMIC=static
2279 BUILD_SHELL_DYNAMIC=static
2280 BUILD_SQL_DYNAMIC=static
2282 SLAPD_MODULES_LDFLAGS=
2283 SLAPD_MODULES_CPPFLAGS=
2301 cat >> confdefs.h <<\EOF
2302 #define HAVE_MKVERSION 1
2310 *-*-aix*) if test -z "$CC" ; then
2311 case "$ol_with_threads" in
2312 auto | yes | posix) ol_aix_threads=yes ;;
2318 if test $ol_aix_threads = yes ; then
2319 if test -z "${CC}" ; then
2320 for ac_prog in cc_r xlc_r cc
2322 # Extract the first word of "$ac_prog", so it can be a program name with args.
2323 set dummy $ac_prog; ac_word=$2
2324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2325 echo "configure:2326: checking for $ac_word" >&5
2326 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2334 for ac_dir in $ac_dummy; do
2335 test -z "$ac_dir" && ac_dir=.
2336 if test -f $ac_dir/$ac_word; then
2337 ac_cv_prog_CC="$ac_prog"
2345 if test -n "$CC"; then
2346 echo "$ac_t""$CC" 1>&6
2348 echo "$ac_t""no" 1>&6
2351 test -n "$CC" && break
2355 if test "$CC" = cc ; then
2356 if test $ol_with_threads != auto ; then
2357 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2359 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2365 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2366 ol_with_threads=posix
2367 ol_cv_pthread_create=yes
2371 if test -z "${CC}"; then
2374 # Extract the first word of "$ac_prog", so it can be a program name with args.
2375 set dummy $ac_prog; ac_word=$2
2376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2377 echo "configure:2378: checking for $ac_word" >&5
2378 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2381 if test -n "$CC"; then
2382 ac_cv_prog_CC="$CC" # Let the user override the test.
2384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2386 for ac_dir in $ac_dummy; do
2387 test -z "$ac_dir" && ac_dir=.
2388 if test -f $ac_dir/$ac_word; then
2389 ac_cv_prog_CC="$ac_prog"
2397 if test -n "$CC"; then
2398 echo "$ac_t""$CC" 1>&6
2400 echo "$ac_t""no" 1>&6
2403 test -n "$CC" && break
2411 # Check whether --enable-fast-install or --disable-fast-install was given.
2412 if test "${enable_fast_install+set}" = set; then
2413 enableval="$enable_fast_install"
2414 p=${PACKAGE-default}
2415 case "$enableval" in
2416 yes) enable_fast_install=yes ;;
2417 no) enable_fast_install=no ;;
2419 enable_fast_install=no
2420 # Look at the argument we got. We use all the common list separators.
2421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2422 for pkg in $enableval; do
2423 if test "X$pkg" = "X$p"; then
2424 enable_fast_install=yes
2431 enable_fast_install=yes
2434 # Extract the first word of "ranlib", so it can be a program name with args.
2435 set dummy ranlib; ac_word=$2
2436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_word" >&5
2438 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 if test -n "$RANLIB"; then
2442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2446 for ac_dir in $ac_dummy; do
2447 test -z "$ac_dir" && ac_dir=.
2448 if test -f $ac_dir/$ac_word; then
2449 ac_cv_prog_RANLIB="ranlib"
2454 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2457 RANLIB="$ac_cv_prog_RANLIB"
2458 if test -n "$RANLIB"; then
2459 echo "$ac_t""$RANLIB" 1>&6
2461 echo "$ac_t""no" 1>&6
2464 # Extract the first word of "gcc", so it can be a program name with args.
2465 set dummy gcc; ac_word=$2
2466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2467 echo "configure:2468: checking for $ac_word" >&5
2468 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2476 for ac_dir in $ac_dummy; do
2477 test -z "$ac_dir" && ac_dir=.
2478 if test -f $ac_dir/$ac_word; then
2487 if test -n "$CC"; then
2488 echo "$ac_t""$CC" 1>&6
2490 echo "$ac_t""no" 1>&6
2493 if test -z "$CC"; then
2494 # Extract the first word of "cc", so it can be a program name with args.
2495 set dummy cc; ac_word=$2
2496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2497 echo "configure:2498: checking for $ac_word" >&5
2498 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2507 for ac_dir in $ac_dummy; do
2508 test -z "$ac_dir" && ac_dir=.
2509 if test -f $ac_dir/$ac_word; then
2510 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2511 ac_prog_rejected=yes
2519 if test $ac_prog_rejected = yes; then
2520 # We found a bogon in the path, so make sure we never use it.
2521 set dummy $ac_cv_prog_CC
2523 if test $# -gt 0; then
2524 # We chose a different compiler from the bogus one.
2525 # However, it has the same basename, so the bogon will be chosen
2526 # first if we set CC to just the basename; use the full file name.
2528 set dummy "$ac_dir/$ac_word" "$@"
2536 if test -n "$CC"; then
2537 echo "$ac_t""$CC" 1>&6
2539 echo "$ac_t""no" 1>&6
2542 if test -z "$CC"; then
2543 case "`uname -s`" in
2544 *win32* | *WIN32* | *CYGWIN*)
2545 # Extract the first word of "cl", so it can be a program name with args.
2546 set dummy cl; ac_word=$2
2547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2548 echo "configure:2549: checking for $ac_word" >&5
2549 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2557 for ac_dir in $ac_dummy; do
2558 test -z "$ac_dir" && ac_dir=.
2559 if test -f $ac_dir/$ac_word; then
2568 if test -n "$CC"; then
2569 echo "$ac_t""$CC" 1>&6
2571 echo "$ac_t""no" 1>&6
2576 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2579 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2580 echo "configure:2581: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2587 cross_compiling=$ac_cv_prog_cc_cross
2589 cat > conftest.$ac_ext << EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2596 if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2597 ac_cv_prog_cc_works=yes
2598 # If we can't run a trivial program, we are probably using a cross compiler.
2599 if (./conftest; exit) 2>/dev/null; then
2600 ac_cv_prog_cc_cross=no
2602 ac_cv_prog_cc_cross=yes
2605 echo "configure: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2607 ac_cv_prog_cc_works=no
2611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2612 ac_cpp='$CPP $CPPFLAGS'
2613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2615 cross_compiling=$ac_cv_prog_cc_cross
2617 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2618 if test $ac_cv_prog_cc_works = no; then
2619 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2621 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2622 echo "configure:2623: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2623 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2624 cross_compiling=$ac_cv_prog_cc_cross
2626 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2627 echo "configure:2628: checking whether we are using GNU C" >&5
2628 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.c <<EOF
2636 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2643 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2645 if test $ac_cv_prog_gcc = yes; then
2651 ac_test_CFLAGS="${CFLAGS+set}"
2652 ac_save_CFLAGS="$CFLAGS"
2654 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2655 echo "configure:2656: checking whether ${CC-cc} accepts -g" >&5
2656 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 echo 'void f(){}' > conftest.c
2660 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2669 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2670 if test "$ac_test_CFLAGS" = set; then
2671 CFLAGS="$ac_save_CFLAGS"
2672 elif test $ac_cv_prog_cc_g = yes; then
2673 if test "$GCC" = yes; then
2679 if test "$GCC" = yes; then
2686 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2687 if test "${with_gnu_ld+set}" = set; then
2688 withval="$with_gnu_ld"
2689 test "$withval" = no || with_gnu_ld=yes
2695 if test "$ac_cv_prog_gcc" = yes; then
2696 # Check if gcc -print-prog-name=ld gives a path.
2697 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2698 echo "configure:2699: checking for ld used by GCC" >&5
2699 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2701 # Accept absolute paths.
2702 [\\/]* | [A-Za-z]:[\\/]*)
2703 re_direlt='/[^/][^/]*/\.\./'
2704 # Canonicalize the path of ld
2705 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2706 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2707 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2709 test -z "$LD" && LD="$ac_prog"
2712 # If it fails, then pretend we aren't using GCC.
2716 # If it is relative, then search for the first ld in PATH.
2720 elif test "$with_gnu_ld" = yes; then
2721 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2722 echo "configure:2723: checking for GNU ld" >&5
2724 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2725 echo "configure:2726: checking for non-GNU ld" >&5
2727 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 if test -z "$LD"; then
2731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2732 for ac_dir in $PATH; do
2733 test -z "$ac_dir" && ac_dir=.
2734 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2735 ac_cv_path_LD="$ac_dir/$ac_prog"
2736 # Check to see if the program is GNU ld. I'd rather use --version,
2737 # but apparently some GNU ld's only accept -v.
2738 # Break only if it was the GNU/non-GNU ld that we prefer.
2739 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2740 test "$with_gnu_ld" != no && break
2742 test "$with_gnu_ld" != yes && break
2748 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2753 if test -n "$LD"; then
2754 echo "$ac_t""$LD" 1>&6
2756 echo "$ac_t""no" 1>&6
2758 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2759 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2760 echo "configure:2761: checking if the linker ($LD) is GNU ld" >&5
2761 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2765 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2766 ac_cv_prog_gnu_ld=yes
2768 ac_cv_prog_gnu_ld=no
2772 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2775 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2776 echo "configure:2777: checking for BSD-compatible nm" >&5
2777 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 if test -n "$NM"; then
2781 # Let the user override the test.
2784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2785 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2786 test -z "$ac_dir" && ac_dir=.
2787 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2788 # Check to see if the nm accepts a BSD-compat flag.
2789 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2790 # nm: unknown option "B" ignored
2791 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2792 ac_cv_path_NM="$ac_dir/nm -B"
2794 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2795 ac_cv_path_NM="$ac_dir/nm -p"
2798 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2799 continue # so that we can try to find one that supports BSD flags
2804 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2809 echo "$ac_t""$NM" 1>&6
2811 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2812 echo "configure:2813: checking whether ln -s works" >&5
2813 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2817 if ln -s X conftestdata 2>/dev/null
2820 ac_cv_prog_LN_S="ln -s"
2825 LN_S="$ac_cv_prog_LN_S"
2826 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2827 echo "$ac_t""yes" 1>&6
2829 echo "$ac_t""no" 1>&6
2832 if test $host != $build; then
2833 ac_tool_prefix=${host_alias}-
2840 NONE) lt_target="$host" ;;
2841 *) lt_target="$target" ;;
2844 # Check for any special flags to pass to ltconfig.
2845 libtool_flags="--cache-file=$cache_file"
2846 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2847 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2848 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2849 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2850 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2851 libtool_flags="$libtool_flags --enable-dlopen"
2852 libtool_flags="$libtool_flags --enable-win32-dll"
2853 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2854 if test "${enable_libtool_lock+set}" = set; then
2855 enableval="$enable_libtool_lock"
2859 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2860 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2862 # Some flags need to be propagated to the compiler or linker for good
2864 case "$lt_target" in
2866 # Find out which ABI we are using.
2867 echo '#line 2868 "configure"' > conftest.$ac_ext
2868 if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2869 case "`/usr/bin/file conftest.o`" in
2885 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2886 SAVE_CFLAGS="$CFLAGS"
2887 CFLAGS="$CFLAGS -belf"
2888 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2889 echo "configure:2890: checking whether the C compiler needs -belf" >&5
2890 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 cat > conftest.$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2903 lt_cv_cc_needs_belf=yes
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2908 lt_cv_cc_needs_belf=no
2913 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2914 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2915 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2916 CFLAGS="$SAVE_CFLAGS"
2920 *-*-cygwin* | *-*-mingw*)
2921 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2922 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2924 echo "configure:2925: checking for $ac_word" >&5
2925 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 if test -n "$DLLTOOL"; then
2929 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2933 for ac_dir in $ac_dummy; do
2934 test -z "$ac_dir" && ac_dir=.
2935 if test -f $ac_dir/$ac_word; then
2936 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2943 DLLTOOL="$ac_cv_prog_DLLTOOL"
2944 if test -n "$DLLTOOL"; then
2945 echo "$ac_t""$DLLTOOL" 1>&6
2947 echo "$ac_t""no" 1>&6
2951 if test -z "$ac_cv_prog_DLLTOOL"; then
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "dlltool", so it can be a program name with args.
2954 set dummy dlltool; ac_word=$2
2955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2956 echo "configure:2957: checking for $ac_word" >&5
2957 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 if test -n "$DLLTOOL"; then
2961 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2965 for ac_dir in $ac_dummy; do
2966 test -z "$ac_dir" && ac_dir=.
2967 if test -f $ac_dir/$ac_word; then
2968 ac_cv_prog_DLLTOOL="dlltool"
2973 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2976 DLLTOOL="$ac_cv_prog_DLLTOOL"
2977 if test -n "$DLLTOOL"; then
2978 echo "$ac_t""$DLLTOOL" 1>&6
2980 echo "$ac_t""no" 1>&6
2988 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2989 set dummy ${ac_tool_prefix}as; ac_word=$2
2990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2991 echo "configure:2992: checking for $ac_word" >&5
2992 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2995 if test -n "$AS"; then
2996 ac_cv_prog_AS="$AS" # Let the user override the test.
2998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3000 for ac_dir in $ac_dummy; do
3001 test -z "$ac_dir" && ac_dir=.
3002 if test -f $ac_dir/$ac_word; then
3003 ac_cv_prog_AS="${ac_tool_prefix}as"
3011 if test -n "$AS"; then
3012 echo "$ac_t""$AS" 1>&6
3014 echo "$ac_t""no" 1>&6
3018 if test -z "$ac_cv_prog_AS"; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "as", so it can be a program name with args.
3021 set dummy as; ac_word=$2
3022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3023 echo "configure:3024: checking for $ac_word" >&5
3024 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 if test -n "$AS"; then
3028 ac_cv_prog_AS="$AS" # Let the user override the test.
3030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3032 for ac_dir in $ac_dummy; do
3033 test -z "$ac_dir" && ac_dir=.
3034 if test -f $ac_dir/$ac_word; then
3040 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3044 if test -n "$AS"; then
3045 echo "$ac_t""$AS" 1>&6
3047 echo "$ac_t""no" 1>&6
3055 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3058 echo "configure:3059: checking for $ac_word" >&5
3059 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 if test -n "$OBJDUMP"; then
3063 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3067 for ac_dir in $ac_dummy; do
3068 test -z "$ac_dir" && ac_dir=.
3069 if test -f $ac_dir/$ac_word; then
3070 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3077 OBJDUMP="$ac_cv_prog_OBJDUMP"
3078 if test -n "$OBJDUMP"; then
3079 echo "$ac_t""$OBJDUMP" 1>&6
3081 echo "$ac_t""no" 1>&6
3085 if test -z "$ac_cv_prog_OBJDUMP"; then
3086 if test -n "$ac_tool_prefix"; then
3087 # Extract the first word of "objdump", so it can be a program name with args.
3088 set dummy objdump; ac_word=$2
3089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3090 echo "configure:3091: checking for $ac_word" >&5
3091 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3092 echo $ac_n "(cached) $ac_c" 1>&6
3094 if test -n "$OBJDUMP"; then
3095 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3099 for ac_dir in $ac_dummy; do
3100 test -z "$ac_dir" && ac_dir=.
3101 if test -f $ac_dir/$ac_word; then
3102 ac_cv_prog_OBJDUMP="objdump"
3107 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3110 OBJDUMP="$ac_cv_prog_OBJDUMP"
3111 if test -n "$OBJDUMP"; then
3112 echo "$ac_t""$OBJDUMP" 1>&6
3114 echo "$ac_t""no" 1>&6
3127 # Save cache, so that ltconfig can load it
3130 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3131 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3132 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3133 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3134 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3135 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3136 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3137 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3139 # Reload cache, that may have been modified by ltconfig
3142 # This can be used to rebuild libtool when needed
3143 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3145 # Always use our own libtool.
3146 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3148 # Redirect the config.log output again, so that the ltconfig log is not
3149 # clobbered by the next message.
3150 exec 5>>./config.log
3153 for ac_prog in mawk gawk nawk awk
3155 # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3158 echo "configure:3159: checking for $ac_word" >&5
3159 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 if test -n "$AWK"; then
3163 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3167 for ac_dir in $ac_dummy; do
3168 test -z "$ac_dir" && ac_dir=.
3169 if test -f $ac_dir/$ac_word; then
3170 ac_cv_prog_AWK="$ac_prog"
3177 AWK="$ac_cv_prog_AWK"
3178 if test -n "$AWK"; then
3179 echo "$ac_t""$AWK" 1>&6
3181 echo "$ac_t""no" 1>&6
3184 test -n "$AWK" && break
3187 # test for ln hardlink support
3188 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3189 echo "configure:3190: checking whether ln works" >&5
3190 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 rm -f conftest.src conftest.dst
3194 echo "conftest" > conftest.src
3195 if ln conftest.src conftest.dst 2>/dev/null
3197 ol_cv_prog_LN_H="ln"
3199 ol_cv_prog_LN_H="cp"
3201 rm -f conftest.src conftest.dst
3204 LN_H="$ol_cv_prog_LN_H"
3205 if test "$ol_cv_prog_LN_H" = "ln"; then
3206 echo "$ac_t""yes" 1>&6
3208 echo "$ac_t""no" 1>&6
3211 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3212 echo "configure:3213: checking whether ln -s works" >&5
3213 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3217 if ln -s X conftestdata 2>/dev/null
3220 ac_cv_prog_LN_S="ln -s"
3225 LN_S="$ac_cv_prog_LN_S"
3226 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3227 echo "$ac_t""yes" 1>&6
3229 echo "$ac_t""no" 1>&6
3233 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3237 # Extract the first word of "sendmail", so it can be a program name with args.
3238 set dummy sendmail; ac_word=$2
3239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3240 echo "configure:3241: checking for $ac_word" >&5
3241 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3246 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3249 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3253 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3254 for ac_dir in $ac_dummy; do
3255 test -z "$ac_dir" && ac_dir=.
3256 if test -f $ac_dir/$ac_word; then
3257 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3262 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3266 SENDMAIL="$ac_cv_path_SENDMAIL"
3267 if test -n "$SENDMAIL"; then
3268 echo "$ac_t""$SENDMAIL" 1>&6
3270 echo "$ac_t""no" 1>&6
3273 # Extract the first word of "vi", so it can be a program name with args.
3274 set dummy vi; ac_word=$2
3275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3276 echo "configure:3277: checking for $ac_word" >&5
3277 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3282 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3285 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3289 ac_dummy="$PATH:/usr/ucb"
3290 for ac_dir in $ac_dummy; do
3291 test -z "$ac_dir" && ac_dir=.
3292 if test -f $ac_dir/$ac_word; then
3293 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3298 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3302 EDITOR="$ac_cv_path_EDITOR"
3303 if test -n "$EDITOR"; then
3304 echo "$ac_t""$EDITOR" 1>&6
3306 echo "$ac_t""no" 1>&6
3309 # Extract the first word of "finger", so it can be a program name with args.
3310 set dummy finger; ac_word=$2
3311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3312 echo "configure:3313: checking for $ac_word" >&5
3313 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3318 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3321 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3325 ac_dummy="$PATH:/usr/ucb"
3326 for ac_dir in $ac_dummy; do
3327 test -z "$ac_dir" && ac_dir=.
3328 if test -f $ac_dir/$ac_word; then
3329 ac_cv_path_FINGER="$ac_dir/$ac_word"
3334 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3338 FINGER="$ac_cv_path_FINGER"
3339 if test -n "$FINGER"; then
3340 echo "$ac_t""$FINGER" 1>&6
3342 echo "$ac_t""no" 1>&6
3346 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3347 echo "configure:3348: checking how to run the C preprocessor" >&5
3348 # On Suns, sometimes $CPP names a directory.
3349 if test -n "$CPP" && test -d "$CPP"; then
3352 if test -z "$CPP"; then
3353 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 # This must be in double quotes, not single quotes, because CPP may get
3357 # substituted into the Makefile and "${CC-cc}" will confuse make.
3359 # On the NeXT, cc -E runs the code through the compiler's parser,
3360 # not just through cpp.
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3368 { (eval echo configure:3369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3370 if test -z "$ac_err"; then
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3377 CPP="${CC-cc} -E -traditional-cpp"
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3385 { (eval echo configure:3386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3387 if test -z "$ac_err"; then
3391 echo "configure: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3394 CPP="${CC-cc} -nologo -E"
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3402 { (eval echo configure:3403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3404 if test -z "$ac_err"; then
3408 echo "configure: failed program was:" >&5
3409 cat conftest.$ac_ext >&5
3418 ac_cv_prog_CPP="$CPP"
3420 CPP="$ac_cv_prog_CPP"
3422 ac_cv_prog_CPP="$CPP"
3424 echo "$ac_t""$CPP" 1>&6
3427 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3428 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3430 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3431 echo "configure: warning: programs compiled here do run here..." 1>&2
3432 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3434 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3435 echo "configure: warning: programs compiled here do not run here..." 1>&2
3436 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3439 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3440 echo "configure:3441: checking for AIX" >&5
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3450 egrep "yes" >/dev/null 2>&1; then
3452 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3453 #define _ALL_SOURCE 1
3458 echo "$ac_t""no" 1>&6
3463 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3464 echo "configure:3465: checking for POSIXized ISC" >&5
3465 if test -d /etc/conf/kconfig.d &&
3466 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3468 echo "$ac_t""yes" 1>&6
3469 ISC=yes # If later tests want to check for ISC.
3470 cat >> confdefs.h <<\EOF
3471 #define _POSIX_SOURCE 1
3474 if test "$GCC" = yes; then
3480 echo "$ac_t""no" 1>&6
3484 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3485 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3486 echo "configure:3487: checking for minix/config.h" >&5
3487 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 #include <minix/config.h>
3495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3496 { (eval echo configure:3497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3498 if test -z "$ac_err"; then
3500 eval "ac_cv_header_$ac_safe=yes"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3506 eval "ac_cv_header_$ac_safe=no"
3510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3514 echo "$ac_t""no" 1>&6
3518 if test "$MINIX" = yes; then
3519 cat >> confdefs.h <<\EOF
3520 #define _POSIX_SOURCE 1
3523 cat >> confdefs.h <<\EOF
3524 #define _POSIX_1_SOURCE 2
3527 cat >> confdefs.h <<\EOF
3534 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3535 echo "configure:3536: checking for Cygwin environment" >&5
3536 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3546 #define __CYGWIN__ __CYGWIN32__
3551 if { (eval echo configure:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3563 echo "$ac_t""$ac_cv_cygwin" 1>&6
3565 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3566 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3567 echo "configure:3568: checking for mingw32 environment" >&5
3568 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3579 if { (eval echo configure:3580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3591 echo "$ac_t""$ac_cv_mingw32" 1>&6
3593 test "$ac_cv_mingw32" = yes && MINGW32=yes
3594 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3595 echo "configure:3596: checking for EMX OS/2 environment" >&5
3596 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3607 if { (eval echo configure:3608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3619 echo "$ac_t""$ac_cv_emxos2" 1>&6
3621 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3625 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3626 echo "configure:3627: checking for executable suffix" >&5
3627 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3634 echo 'int main () { return 0; }' > conftest.$ac_ext
3636 if { (eval echo configure:3637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3637 for file in conftest.*; do
3639 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3640 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3644 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3647 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3652 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3653 echo "$ac_t""${ac_cv_exeext}" 1>&6
3656 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3657 echo "configure:3658: checking for object suffix" >&5
3658 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3659 echo $ac_n "(cached) $ac_c" 1>&6
3662 echo 'int i = 1;' > conftest.$ac_ext
3663 if { (eval echo configure:3664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3664 for ac_file in conftest.*; do
3667 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3671 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3676 echo "$ac_t""$ac_cv_objext" 1>&6
3677 OBJEXT=$ac_cv_objext
3678 ac_objext=$ac_cv_objext
3681 cat >> confdefs.h <<EOF
3682 #define EXEEXT "${EXEEXT}"
3686 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3687 echo "configure:3688: checking for be_app in -lbe" >&5
3688 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3689 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 ac_save_LIBS="$LIBS"
3693 LIBS="-lbe -lroot -lnet $LIBS"
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3697 /* Override any gcc2 internal prototype to avoid an error. */
3698 /* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
3706 if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3708 eval "ac_cv_lib_$ac_lib_var=yes"
3710 echo "configure: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3713 eval "ac_cv_lib_$ac_lib_var=no"
3716 LIBS="$ac_save_LIBS"
3719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3720 echo "$ac_t""yes" 1>&6
3721 LIBS="$LIBS -lbe -lroot -lnet"
3723 echo "$ac_t""no" 1>&6
3731 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3732 echo "configure:3733: checking for ${CC-cc} option to accept ANSI C" >&5
3733 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3736 am_cv_prog_cc_stdc=no
3738 # Don't try gcc -ansi; that turns off useful extensions and
3739 # breaks some systems' header files.
3740 # AIX -qlanglvl=ansi
3741 # Ultrix and OSF/1 -std1
3742 # HP-UX 10.20 and later -Ae
3743 # HP-UX older versions -Aa -D_HPUX_SOURCE
3744 # SVR4 -Xc -D__EXTENSIONS__
3745 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3747 CC="$ac_save_CC $ac_arg"
3748 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3753 #include <sys/types.h>
3754 #include <sys/stat.h>
3755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3756 struct buf { int x; };
3757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3758 static char *e (p, i)
3764 static char *f (char * (*g) (char **, int), char **p, ...)
3769 s = g (p, va_arg (v,int));
3773 int test (int i, double x);
3774 struct s1 {int (*f) (int a);};
3775 struct s2 {int (*f) (double a);};
3776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3786 if { (eval echo configure:3787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3788 am_cv_prog_cc_stdc="$ac_arg"; break
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3799 if test -z "$am_cv_prog_cc_stdc"; then
3800 echo "$ac_t""none needed" 1>&6
3802 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3804 case "x$am_cv_prog_cc_stdc" in
3806 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3809 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3810 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3813 # test for make depend flag
3816 if test -z "${MKDEP}"; then
3818 if test -z "${MKDEP_FLAGS}"; then
3819 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3820 echo "configure:3821: checking for ${OL_MKDEP} depend flag" >&5
3821 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3826 for flag in "-M" "-xM"; do
3827 cat > conftest.c <<EOF
3830 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3831 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3833 if test ! -f conftest."${ac_object}" ; then
3835 OL_MKDEP_FLAGS="$flag"
3844 echo "$ac_t""$ol_cv_mkdep" 1>&6
3847 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3852 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3857 if test "${ol_cv_mkdep}" = no ; then
3858 # this will soon become an error
3859 echo "configure: warning: do not know how to generate dependencies" 1>&2
3862 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
3863 echo "configure:3864: checking for afopen in -ls" >&5
3864 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
3865 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 ac_save_LIBS="$LIBS"
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 eval "ac_cv_lib_$ac_lib_var=yes"
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 eval "ac_cv_lib_$ac_lib_var=no"
3892 LIBS="$ac_save_LIBS"
3895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3899 cat >> confdefs.h <<\EOF
3900 #define HAVE_AIX_SECURITY 1
3905 echo "$ac_t""no" 1>&6
3911 if test $ol_enable_modules != no ; then
3912 for ac_hdr in ltdl.h
3914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3916 echo "configure:3917: checking for $ac_hdr" >&5
3917 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3926 { (eval echo configure:3927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3928 if test -z "$ac_err"; then
3930 eval "ac_cv_header_$ac_safe=yes"
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 eval "ac_cv_header_$ac_safe=no"
3940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3941 echo "$ac_t""yes" 1>&6
3942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3943 cat >> confdefs.h <<EOF
3944 #define $ac_tr_hdr 1
3948 echo "$ac_t""no" 1>&6
3953 if test $ac_cv_header_ltdl_h = no ; then
3954 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3957 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3958 echo "configure:3959: checking for lt_dlinit in -lltdl" >&5
3959 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3960 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3963 ac_save_LIBS="$LIBS"
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 /* We use char because int might match the return type of a gcc2
3970 builtin and then its argument prototype would still apply. */
3977 if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3979 eval "ac_cv_lib_$ac_lib_var=yes"
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3984 eval "ac_cv_lib_$ac_lib_var=no"
3987 LIBS="$ac_save_LIBS"
3990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3991 echo "$ac_t""yes" 1>&6
3994 cat >> confdefs.h <<\EOF
3995 #define HAVE_LIBLTDL 1
4000 echo "$ac_t""no" 1>&6
4004 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4005 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4009 ol_with_dnssrv_module=static
4010 ol_with_ldap_module=static
4011 ol_with_ldbm_module=static
4012 ol_with_passwd_module=static
4013 ol_with_shell_module=static
4014 ol_with_sql_module=static
4018 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4019 echo "configure:4020: checking for EBCDIC" >&5
4020 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4029 #include <__ASCII__/generate_error.h>
4033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4034 { (eval echo configure:4035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4036 if test -z "$ac_err"; then
4038 ol_cv_cpp_ebcdic=yes
4041 echo "configure: failed program was:" >&5
4042 cat conftest.$ac_ext >&5
4049 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4050 if test $ol_cv_cpp_ebcdic = yes ; then
4051 cat >> confdefs.h <<\EOF
4052 #define HAVE_EBCDIC 1
4057 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4058 echo "configure:4059: checking for ANSI C header files" >&5
4059 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4071 { (eval echo configure:4072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4073 if test -z "$ac_err"; then
4075 ol_cv_header_stdc=yes
4078 echo "configure: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4081 ol_cv_header_stdc=no
4085 if test $ol_cv_header_stdc = yes; then
4086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4087 cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093 egrep "memchr" >/dev/null 2>&1; then
4097 ol_cv_header_stdc=no
4103 if test $ol_cv_header_stdc = yes; then
4104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4111 egrep "free" >/dev/null 2>&1; then
4115 ol_cv_header_stdc=no
4121 if test $ol_cv_header_stdc = yes; then
4122 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4123 if test "$cross_compiling" = yes; then
4126 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4134 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4135 || ('j' <= (c) && (c) <= 'r') \
4136 || ('s' <= (c) && (c) <= 'z'))
4137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4140 int main () { int i; for (i = 0; i < 256; i++)
4141 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4145 if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4152 ol_cv_header_stdc=no
4160 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4161 if test $ol_cv_header_stdc = yes; then
4162 cat >> confdefs.h <<\EOF
4163 #define STDC_HEADERS 1
4167 ac_cv_header_stdc=disable
4170 if test $ol_cv_header_stdc != yes; then
4171 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4175 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4178 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4179 echo "configure:4180: checking for $ac_hdr that defines DIR" >&5
4180 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 #include <sys/types.h>
4192 if { (eval echo configure:4193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4194 eval "ac_cv_header_dirent_$ac_safe=yes"
4196 echo "configure: failed program was:" >&5
4197 cat conftest.$ac_ext >&5
4199 eval "ac_cv_header_dirent_$ac_safe=no"
4203 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4204 echo "$ac_t""yes" 1>&6
4205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4206 cat >> confdefs.h <<EOF
4207 #define $ac_tr_hdr 1
4209 ac_header_dirent=$ac_hdr; break
4211 echo "$ac_t""no" 1>&6
4214 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4215 if test $ac_header_dirent = dirent.h; then
4216 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4217 echo "configure:4218: checking for opendir in -ldir" >&5
4218 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4219 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 ac_save_LIBS="$LIBS"
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 /* Override any gcc2 internal prototype to avoid an error. */
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4236 if { (eval echo configure:4237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4238 eval "ac_cv_lib_$ac_lib_var=yes"
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4243 eval "ac_cv_lib_$ac_lib_var=no"
4246 LIBS="$ac_save_LIBS"
4249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4253 echo "$ac_t""no" 1>&6
4257 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4258 echo "configure:4259: checking for opendir in -lx" >&5
4259 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4260 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 ac_save_LIBS="$LIBS"
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4277 if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4279 eval "ac_cv_lib_$ac_lib_var=yes"
4281 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4284 eval "ac_cv_lib_$ac_lib_var=no"
4287 LIBS="$ac_save_LIBS"
4290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4294 echo "$ac_t""no" 1>&6
4299 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4300 echo "configure:4301: checking for sys/wait.h that is POSIX.1 compatible" >&5
4301 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 #include <sys/types.h>
4308 #include <sys/wait.h>
4310 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4313 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4318 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4321 if { (eval echo configure:4322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4323 ac_cv_header_sys_wait_h=yes
4325 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4328 ac_cv_header_sys_wait_h=no
4333 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4334 if test $ac_cv_header_sys_wait_h = yes; then
4335 cat >> confdefs.h <<\EOF
4336 #define HAVE_SYS_WAIT_H 1
4341 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4342 echo "configure:4343: checking POSIX termios" >&5
4343 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 #include <sys/types.h>
4351 #include <termios.h>
4353 /* SunOS 4.0.3 has termios.h but not the library calls. */
4357 if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4359 am_cv_sys_posix_termios=yes
4361 echo "configure: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4364 am_cv_sys_posix_termios=no
4369 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4372 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4373 echo "configure:4374: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4374 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4377 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4379 gwinsz_in_termios_h=no
4380 if test $am_cv_sys_posix_termios = yes; then
4381 cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384 #include <sys/types.h>
4385 # include <termios.h>
4391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4392 egrep "yes" >/dev/null 2>&1; then
4394 gwinsz_in_termios_h=yes
4400 if test $gwinsz_in_termios_h = no; then
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 #include <sys/types.h>
4405 # include <sys/ioctl.h>
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 egrep "yes" >/dev/null 2>&1; then
4414 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4422 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4423 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4424 cat >> confdefs.h <<\EOF
4425 #define GWINSZ_IN_SYS_IOCTL 1
4430 if test $am_cv_sys_posix_termios = yes ; then
4431 cat >> confdefs.h <<\EOF
4432 #define HAVE_POSIX_TERMIOS 1
4483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4485 echo "configure:4486: checking for $ac_hdr" >&5
4486 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4495 { (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4497 if test -z "$ac_err"; then
4499 eval "ac_cv_header_$ac_safe=yes"
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 eval "ac_cv_header_$ac_safe=no"
4509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4512 cat >> confdefs.h <<EOF
4513 #define $ac_tr_hdr 1
4517 echo "$ac_t""no" 1>&6
4524 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4525 echo "configure:4526: checking for dlopen" >&5
4526 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4529 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4532 /* System header to define __stub macros and hopefully few prototypes,
4533 which can conflict with char dlopen(); below. */
4535 /* Override any gcc2 internal prototype to avoid an error. */
4536 /* We use char because int might match the return type of a gcc2
4537 builtin and then its argument prototype would still apply. */
4543 /* The GNU C library defines this for functions which it implements
4544 to always fail with ENOSYS. Some functions are actually named
4545 something starting with __ and the normal name is an alias. */
4546 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4554 if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4556 eval "ac_cv_func_dlopen=yes"
4558 echo "configure: failed program was:" >&5
4559 cat conftest.$ac_ext >&5
4561 eval "ac_cv_func_dlopen=no"
4566 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4567 echo "$ac_t""yes" 1>&6
4570 echo "$ac_t""no" 1>&6
4571 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4572 echo "configure:4573: checking for dlopen in -ldl" >&5
4573 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
4574 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4577 ac_save_LIBS="$LIBS"
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 /* Override any gcc2 internal prototype to avoid an error. */
4583 /* We use char because int might match the return type of a gcc2
4584 builtin and then its argument prototype would still apply. */
4591 if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4593 eval "ac_cv_lib_$ac_lib_var=yes"
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4598 eval "ac_cv_lib_$ac_lib_var=no"
4601 LIBS="$ac_save_LIBS"
4604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4607 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4608 cat >> confdefs.h <<EOF
4609 #define $ac_tr_lib 1
4615 echo "$ac_t""no" 1>&6
4621 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4622 echo "configure:4623: checking for sigset in -lV3" >&5
4623 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4624 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 ac_save_LIBS="$LIBS"
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 /* Override any gcc2 internal prototype to avoid an error. */
4633 /* We use char because int might match the return type of a gcc2
4634 builtin and then its argument prototype would still apply. */
4641 if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4643 eval "ac_cv_lib_$ac_lib_var=yes"
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4648 eval "ac_cv_lib_$ac_lib_var=no"
4651 LIBS="$ac_save_LIBS"
4654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4655 echo "$ac_t""yes" 1>&6
4656 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4657 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4658 cat >> confdefs.h <<EOF
4659 #define $ac_tr_lib 1
4665 echo "$ac_t""no" 1>&6
4669 if test $ac_cv_header_winsock_h = yes; then
4670 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4671 echo "configure:4672: checking for winsock" >&5
4672 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4673 echo $ac_n "(cached) $ac_c" 1>&6
4675 cat > conftest.$ac_ext <<EOF
4676 #line 4677 "configure"
4677 #include "confdefs.h"
4678 #include <winsock.h>
4682 select(0,NULL,NULL,NULL,NULL);
4684 gethostname(NULL,0);
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4700 echo "$ac_t""$ol_cv_winsock" 1>&6
4702 if test $ol_cv_winsock = yes ; then
4703 cat >> confdefs.h <<\EOF
4704 #define HAVE_WINSOCK 1
4707 ac_cv_func_socket=yes
4708 ac_cv_func_select=yes
4709 ac_cv_func_closesocket=yes
4710 ac_cv_func_gethostname=yes
4715 echo $ac_n "checking for socket""... $ac_c" 1>&6
4716 echo "configure:4717: checking for socket" >&5
4717 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 /* System header to define __stub macros and hopefully few prototypes,
4724 which can conflict with char socket(); below. */
4726 /* Override any gcc2 internal prototype to avoid an error. */
4727 /* We use char because int might match the return type of a gcc2
4728 builtin and then its argument prototype would still apply. */
4734 /* The GNU C library defines this for functions which it implements
4735 to always fail with ENOSYS. Some functions are actually named
4736 something starting with __ and the normal name is an alias. */
4737 #if defined (__stub_socket) || defined (__stub___socket)
4745 if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4747 eval "ac_cv_func_socket=yes"
4749 echo "configure: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4752 eval "ac_cv_func_socket=no"
4757 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4758 echo "$ac_t""yes" 1>&6
4761 echo "$ac_t""no" 1>&6
4763 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4764 echo "configure:4765: checking for main in -lsocket" >&5
4765 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4766 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4767 echo $ac_n "(cached) $ac_c" 1>&6
4769 ac_save_LIBS="$LIBS"
4770 LIBS="-lsocket $LIBS"
4771 cat > conftest.$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4781 eval "ac_cv_lib_$ac_lib_var=yes"
4783 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4786 eval "ac_cv_lib_$ac_lib_var=no"
4789 LIBS="$ac_save_LIBS"
4792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4796 cat >> confdefs.h <<EOF
4797 #define $ac_tr_lib 1
4800 LIBS="-lsocket $LIBS"
4803 echo "$ac_t""no" 1>&6
4806 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4807 echo "configure:4808: checking for main in -lnet" >&5
4808 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4809 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4812 ac_save_LIBS="$LIBS"
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4822 if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4824 eval "ac_cv_lib_$ac_lib_var=yes"
4826 echo "configure: failed program was:" >&5
4827 cat conftest.$ac_ext >&5
4829 eval "ac_cv_lib_$ac_lib_var=no"
4832 LIBS="$ac_save_LIBS"
4835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4836 echo "$ac_t""yes" 1>&6
4837 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4838 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4839 cat >> confdefs.h <<EOF
4840 #define $ac_tr_lib 1
4846 echo "$ac_t""no" 1>&6
4849 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4850 echo "configure:4851: checking for main in -lnsl_s" >&5
4851 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4852 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4855 ac_save_LIBS="$LIBS"
4856 LIBS="-lnsl_s $LIBS"
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867 eval "ac_cv_lib_$ac_lib_var=yes"
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 eval "ac_cv_lib_$ac_lib_var=no"
4875 LIBS="$ac_save_LIBS"
4878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4879 echo "$ac_t""yes" 1>&6
4880 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4881 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4882 cat >> confdefs.h <<EOF
4883 #define $ac_tr_lib 1
4886 LIBS="-lnsl_s $LIBS"
4889 echo "$ac_t""no" 1>&6
4892 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4893 echo "configure:4894: checking for main in -lnsl" >&5
4894 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4895 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4898 ac_save_LIBS="$LIBS"
4900 cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4910 eval "ac_cv_lib_$ac_lib_var=yes"
4912 echo "configure: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4915 eval "ac_cv_lib_$ac_lib_var=no"
4918 LIBS="$ac_save_LIBS"
4921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4922 echo "$ac_t""yes" 1>&6
4923 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4924 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4925 cat >> confdefs.h <<EOF
4926 #define $ac_tr_lib 1
4932 echo "$ac_t""no" 1>&6
4935 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4936 echo "configure:4937: checking for socket in -linet" >&5
4937 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4938 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4941 ac_save_LIBS="$LIBS"
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 /* Override any gcc2 internal prototype to avoid an error. */
4947 /* We use char because int might match the return type of a gcc2
4948 builtin and then its argument prototype would still apply. */
4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 eval "ac_cv_lib_$ac_lib_var=yes"
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4962 eval "ac_cv_lib_$ac_lib_var=no"
4965 LIBS="$ac_save_LIBS"
4968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4969 echo "$ac_t""yes" 1>&6
4970 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4971 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4972 cat >> confdefs.h <<EOF
4973 #define $ac_tr_lib 1
4979 echo "$ac_t""no" 1>&6
4982 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4983 echo "configure:4984: checking for main in -lgen" >&5
4984 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4985 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4988 ac_save_LIBS="$LIBS"
4990 cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4998 if { (eval echo configure:4999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5000 eval "ac_cv_lib_$ac_lib_var=yes"
5002 echo "configure: failed program was:" >&5
5003 cat conftest.$ac_ext >&5
5005 eval "ac_cv_lib_$ac_lib_var=no"
5008 LIBS="$ac_save_LIBS"
5011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5012 echo "$ac_t""yes" 1>&6
5013 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5015 cat >> confdefs.h <<EOF
5016 #define $ac_tr_lib 1
5022 echo "$ac_t""no" 1>&6
5029 echo $ac_n "checking for select""... $ac_c" 1>&6
5030 echo "configure:5031: checking for select" >&5
5031 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5034 cat > conftest.$ac_ext <<EOF
5035 #line 5036 "configure"
5036 #include "confdefs.h"
5037 /* System header to define __stub macros and hopefully few prototypes,
5038 which can conflict with char select(); below. */
5040 /* Override any gcc2 internal prototype to avoid an error. */
5041 /* We use char because int might match the return type of a gcc2
5042 builtin and then its argument prototype would still apply. */
5048 /* The GNU C library defines this for functions which it implements
5049 to always fail with ENOSYS. Some functions are actually named
5050 something starting with __ and the normal name is an alias. */
5051 #if defined (__stub_select) || defined (__stub___select)
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 eval "ac_cv_func_select=yes"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 eval "ac_cv_func_select=no"
5071 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5072 echo "$ac_t""yes" 1>&6
5075 echo "$ac_t""no" 1>&6
5076 { echo "configure: error: select() required." 1>&2; exit 1; }
5080 if test "${ac_cv_header_winsock_h}" != yes; then
5081 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5082 echo "configure:5083: checking types of arguments for select()" >&5
5083 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5086 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5087 echo $ac_n "(cached) $ac_c" 1>&6
5089 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5092 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5093 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5094 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5095 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5098 #ifdef HAVE_SYS_TYPES_H
5099 #include <sys/types.h>
5101 #ifdef HAVE_SYS_TIME_H
5102 #include <sys/time.h>
5104 #ifdef HAVE_SYS_SELECT_H
5105 #include <sys/select.h>
5107 #ifdef HAVE_SYS_SOCKET_H
5108 #include <sys/socket.h>
5110 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);
5115 if { (eval echo configure:5116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5117 ac_not_found=no ; break 3
5119 echo "configure: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5134 if test "$ac_not_found" = yes; then
5135 ac_cv_func_select_arg1=int
5136 ac_cv_func_select_arg234='int *'
5137 ac_cv_func_select_arg5='struct timeval *'
5139 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5140 cat >> confdefs.h <<EOF
5141 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5144 cat >> confdefs.h <<EOF
5145 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5148 cat >> confdefs.h <<EOF
5149 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5156 for ac_hdr in regex.h
5158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5160 echo "configure:5161: checking for $ac_hdr" >&5
5161 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5164 cat > conftest.$ac_ext <<EOF
5165 #line 5166 "configure"
5166 #include "confdefs.h"
5169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5170 { (eval echo configure:5171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5172 if test -z "$ac_err"; then
5174 eval "ac_cv_header_$ac_safe=yes"
5177 echo "configure: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5180 eval "ac_cv_header_$ac_safe=no"
5184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5185 echo "$ac_t""yes" 1>&6
5186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5187 cat >> confdefs.h <<EOF
5188 #define $ac_tr_hdr 1
5192 echo "$ac_t""no" 1>&6
5196 if test "$ac_cv_header_regex_h" != yes ; then
5197 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5199 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5200 echo "configure:5201: checking for regfree" >&5
5201 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5202 echo $ac_n "(cached) $ac_c" 1>&6
5204 cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5207 /* System header to define __stub macros and hopefully few prototypes,
5208 which can conflict with char regfree(); below. */
5210 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5218 /* The GNU C library defines this for functions which it implements
5219 to always fail with ENOSYS. Some functions are actually named
5220 something starting with __ and the normal name is an alias. */
5221 #if defined (__stub_regfree) || defined (__stub___regfree)
5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5231 eval "ac_cv_func_regfree=yes"
5233 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5236 eval "ac_cv_func_regfree=no"
5241 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5242 echo "$ac_t""yes" 1>&6
5245 echo "$ac_t""no" 1>&6
5246 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5251 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5252 echo "configure:5253: checking for compatible POSIX regex" >&5
5253 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5257 if test "$cross_compiling" = yes; then
5258 ol_cv_c_posix_regex=cross
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5264 #include <sys/types.h>
5266 static char *pattern, *string;
5274 if(regcomp(&re, pattern, 0)) {
5278 string = "ALL MATCH";
5280 rc = regexec(&re, string, 0, (void*)0, 0);
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5289 ol_cv_c_posix_regex=yes
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 ol_cv_c_posix_regex=no
5301 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5303 if test "$ol_cv_c_posix_regex" = no ; then
5304 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5308 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5309 echo "configure:5310: checking for res_query" >&5
5310 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5311 echo $ac_n "(cached) $ac_c" 1>&6
5313 cat > conftest.$ac_ext <<EOF
5314 #line 5315 "configure"
5315 #include "confdefs.h"
5316 /* System header to define __stub macros and hopefully few prototypes,
5317 which can conflict with char res_query(); below. */
5319 /* Override any gcc2 internal prototype to avoid an error. */
5320 /* We use char because int might match the return type of a gcc2
5321 builtin and then its argument prototype would still apply. */
5327 /* The GNU C library defines this for functions which it implements
5328 to always fail with ENOSYS. Some functions are actually named
5329 something starting with __ and the normal name is an alias. */
5330 #if defined (__stub_res_query) || defined (__stub___res_query)
5338 if { (eval echo configure:5339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5340 eval "ac_cv_func_res_query=yes"
5342 echo "configure: failed program was:" >&5
5343 cat conftest.$ac_ext >&5
5345 eval "ac_cv_func_res_query=no"
5350 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5351 echo "$ac_t""yes" 1>&6
5354 echo "$ac_t""no" 1>&6
5357 if test $ac_cv_func_res_query = no ; then
5358 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5359 echo "configure:5360: checking for res_query in -lbind" >&5
5360 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5361 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5364 ac_save_LIBS="$LIBS"
5366 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5369 /* Override any gcc2 internal prototype to avoid an error. */
5370 /* We use char because int might match the return type of a gcc2
5371 builtin and then its argument prototype would still apply. */
5378 if { (eval echo configure:5379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5380 eval "ac_cv_lib_$ac_lib_var=yes"
5382 echo "configure: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5385 eval "ac_cv_lib_$ac_lib_var=no"
5388 LIBS="$ac_save_LIBS"
5391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5392 echo "$ac_t""yes" 1>&6
5393 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5395 cat >> confdefs.h <<EOF
5396 #define $ac_tr_lib 1
5402 echo "$ac_t""no" 1>&6
5405 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5408 if test $ac_cv_func_res_query = no ; then
5409 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5410 echo "configure:5411: checking for __res_query in -lbind" >&5
5411 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5412 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5413 echo $ac_n "(cached) $ac_c" 1>&6
5415 ac_save_LIBS="$LIBS"
5417 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5420 /* Override any gcc2 internal prototype to avoid an error. */
5421 /* We use char because int might match the return type of a gcc2
5422 builtin and then its argument prototype would still apply. */
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5431 eval "ac_cv_lib_$ac_lib_var=yes"
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5436 eval "ac_cv_lib_$ac_lib_var=no"
5439 LIBS="$ac_save_LIBS"
5442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5443 echo "$ac_t""yes" 1>&6
5444 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5445 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5446 cat >> confdefs.h <<EOF
5447 #define $ac_tr_lib 1
5453 echo "$ac_t""no" 1>&6
5456 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5459 if test $ac_cv_func_res_query = no ; then
5460 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5461 echo "configure:5462: checking for res_query in -lresolv" >&5
5462 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5463 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5466 ac_save_LIBS="$LIBS"
5467 LIBS="-lresolv $LIBS"
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 /* Override any gcc2 internal prototype to avoid an error. */
5472 /* We use char because int might match the return type of a gcc2
5473 builtin and then its argument prototype would still apply. */
5480 if { (eval echo configure:5481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5482 eval "ac_cv_lib_$ac_lib_var=yes"
5484 echo "configure: failed program was:" >&5
5485 cat conftest.$ac_ext >&5
5487 eval "ac_cv_lib_$ac_lib_var=no"
5490 LIBS="$ac_save_LIBS"
5493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5494 echo "$ac_t""yes" 1>&6
5495 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5497 cat >> confdefs.h <<EOF
5498 #define $ac_tr_lib 1
5501 LIBS="-lresolv $LIBS"
5504 echo "$ac_t""no" 1>&6
5507 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5510 if test "$ac_cv_func_res_query" = yes ; then
5511 cat >> confdefs.h <<\EOF
5512 #define HAVE_RES_QUERY 1
5516 if test $ol_enable_dnssrv != no ; then
5521 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5522 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5525 for ac_func in getaddrinfo inet_ntop
5527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5528 echo "configure:5529: checking for $ac_func" >&5
5529 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5530 echo $ac_n "(cached) $ac_c" 1>&6
5532 cat > conftest.$ac_ext <<EOF
5533 #line 5534 "configure"
5534 #include "confdefs.h"
5535 /* System header to define __stub macros and hopefully few prototypes,
5536 which can conflict with char $ac_func(); below. */
5538 /* Override any gcc2 internal prototype to avoid an error. */
5539 /* We use char because int might match the return type of a gcc2
5540 builtin and then its argument prototype would still apply. */
5546 /* The GNU C library defines this for functions which it implements
5547 to always fail with ENOSYS. Some functions are actually named
5548 something starting with __ and the normal name is an alias. */
5549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5557 if { (eval echo configure:5558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5559 eval "ac_cv_func_$ac_func=yes"
5561 echo "configure: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5564 eval "ac_cv_func_$ac_func=no"
5569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5570 echo "$ac_t""yes" 1>&6
5571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5572 cat >> confdefs.h <<EOF
5573 #define $ac_tr_func 1
5577 echo "$ac_t""no" 1>&6
5583 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
5584 if test $ol_enable_ipv6 = yes ; then
5585 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
5588 for ac_func in gai_strerror
5590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5591 echo "configure:5592: checking for $ac_func" >&5
5592 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5593 echo $ac_n "(cached) $ac_c" 1>&6
5595 cat > conftest.$ac_ext <<EOF
5596 #line 5597 "configure"
5597 #include "confdefs.h"
5598 /* System header to define __stub macros and hopefully few prototypes,
5599 which can conflict with char $ac_func(); below. */
5601 /* Override any gcc2 internal prototype to avoid an error. */
5602 /* We use char because int might match the return type of a gcc2
5603 builtin and then its argument prototype would still apply. */
5609 /* The GNU C library defines this for functions which it implements
5610 to always fail with ENOSYS. Some functions are actually named
5611 something starting with __ and the normal name is an alias. */
5612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5622 eval "ac_cv_func_$ac_func=yes"
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5627 eval "ac_cv_func_$ac_func=no"
5632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5633 echo "$ac_t""yes" 1>&6
5634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5635 cat >> confdefs.h <<EOF
5636 #define $ac_tr_func 1
5640 echo "$ac_t""no" 1>&6
5645 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5646 echo "configure:5647: checking INET6_ADDRSTRLEN" >&5
5647 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5651 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5655 # include <netinet/in.h>
5656 # ifdef INET6_ADDRSTRLEN
5657 __has_inet6_addrstrlen__;
5661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5662 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5664 ol_cv_inet6_addrstrlen=yes
5667 ol_cv_inet6_addrstrlen=no
5673 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5675 if test $ol_cv_inet6_addrstrlen = yes ; then
5677 elif test $ol_enable_ipv6 = yes ; then
5678 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5682 if test $ol_enable_local != no ; then
5683 for ac_hdr in sys/un.h
5685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5687 echo "configure:5688: checking for $ac_hdr" >&5
5688 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5697 { (eval echo configure:5698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5699 if test -z "$ac_err"; then
5701 eval "ac_cv_header_$ac_safe=yes"
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5707 eval "ac_cv_header_$ac_safe=no"
5711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5712 echo "$ac_t""yes" 1>&6
5713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5714 cat >> confdefs.h <<EOF
5715 #define $ac_tr_hdr 1
5719 echo "$ac_t""no" 1>&6
5724 if test $ol_enable_local = auto ; then
5725 ol_enable_local=$ac_cv_header_sys_un_h
5726 elif test $ac_cv_header_sys_un_h = no ; then
5727 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5736 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5737 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5738 -o $ol_with_kerberos = k425 ; then
5740 for ac_hdr in krb5.h
5742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5744 echo "configure:5745: checking for $ac_hdr" >&5
5745 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5748 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5754 { (eval echo configure:5755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5756 if test -z "$ac_err"; then
5758 eval "ac_cv_header_$ac_safe=yes"
5761 echo "configure: failed program was:" >&5
5762 cat conftest.$ac_ext >&5
5764 eval "ac_cv_header_$ac_safe=no"
5768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5769 echo "$ac_t""yes" 1>&6
5770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5771 cat >> confdefs.h <<EOF
5772 #define $ac_tr_hdr 1
5776 echo "$ac_t""no" 1>&6
5781 if test $ac_cv_header_krb5_h = yes ; then
5782 for ac_hdr in heim_err.h
5784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5786 echo "configure:5787: checking for $ac_hdr" >&5
5787 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5788 echo $ac_n "(cached) $ac_c" 1>&6
5790 cat > conftest.$ac_ext <<EOF
5791 #line 5792 "configure"
5792 #include "confdefs.h"
5795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5796 { (eval echo configure:5797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5798 if test -z "$ac_err"; then
5800 eval "ac_cv_header_$ac_safe=yes"
5803 echo "configure: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5806 eval "ac_cv_header_$ac_safe=no"
5810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5811 echo "$ac_t""yes" 1>&6
5812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5813 cat >> confdefs.h <<EOF
5814 #define $ac_tr_hdr 1
5818 echo "$ac_t""no" 1>&6
5822 if test $ac_cv_header_heim_err_h = yes ; then
5828 if test $krb5_impl = mit; then
5829 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5830 echo "configure:5831: checking for main in -lkrb5" >&5
5831 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5832 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 ac_save_LIBS="$LIBS"
5836 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5845 if { (eval echo configure:5846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5847 eval "ac_cv_lib_$ac_lib_var=yes"
5849 echo "configure: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5852 eval "ac_cv_lib_$ac_lib_var=no"
5855 LIBS="$ac_save_LIBS"
5858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5859 echo "$ac_t""yes" 1>&6
5861 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5863 echo "$ac_t""no" 1>&6
5868 elif test $krb5_impl = heimdal; then
5869 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5870 echo "configure:5871: checking for main in -lkrb5" >&5
5871 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5872 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5873 echo $ac_n "(cached) $ac_c" 1>&6
5875 ac_save_LIBS="$LIBS"
5876 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5885 if { (eval echo configure:5886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5887 eval "ac_cv_lib_$ac_lib_var=yes"
5889 echo "configure: failed program was:" >&5
5890 cat conftest.$ac_ext >&5
5892 eval "ac_cv_lib_$ac_lib_var=no"
5895 LIBS="$ac_save_LIBS"
5898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5899 echo "$ac_t""yes" 1>&6
5901 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5903 echo "$ac_t""no" 1>&6
5908 cat >> confdefs.h <<\EOF
5909 #define HAVE_HEIMDAL_KERBEROS 1
5914 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
5917 if test $have_krb5 = yes ; then
5920 cat >> confdefs.h <<\EOF
5925 if test $ol_enable_kpasswd != no ; then
5926 ol_link_kpasswd=yes;
5929 if test $ol_with_kerberos = k5only ; then
5930 ol_with_kerberos=found
5933 elif test $ol_with_kerberos != auto ; then
5934 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5940 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
5941 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5943 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5947 echo "configure:5948: checking for $ac_hdr" >&5
5948 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5951 cat > conftest.$ac_ext <<EOF
5952 #line 5953 "configure"
5953 #include "confdefs.h"
5956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5957 { (eval echo configure:5958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5959 if test -z "$ac_err"; then
5961 eval "ac_cv_header_$ac_safe=yes"
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5967 eval "ac_cv_header_$ac_safe=no"
5971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5972 echo "$ac_t""yes" 1>&6
5973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5974 cat >> confdefs.h <<EOF
5975 #define $ac_tr_hdr 1
5979 echo "$ac_t""no" 1>&6
5984 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5985 if test $krb5_impl = mit; then
5986 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5987 echo "configure:5988: checking for main in -lkrb4" >&5
5988 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5989 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5992 ac_save_LIBS="$LIBS"
5993 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
6002 if { (eval echo configure:6003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6004 eval "ac_cv_lib_$ac_lib_var=yes"
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6009 eval "ac_cv_lib_$ac_lib_var=no"
6012 LIBS="$ac_save_LIBS"
6015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6016 echo "$ac_t""yes" 1>&6
6018 KRB4_LIBS="-lkrb4 -ldes425"
6020 echo "$ac_t""no" 1>&6
6025 elif test $krb5_impl = heimdal; then
6026 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6027 echo "configure:6028: checking for main in -lkrb4" >&5
6028 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6029 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6032 ac_save_LIBS="$LIBS"
6033 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6034 cat > conftest.$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6042 if { (eval echo configure:6043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6044 eval "ac_cv_lib_$ac_lib_var=yes"
6046 echo "configure: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6049 eval "ac_cv_lib_$ac_lib_var=no"
6052 LIBS="$ac_save_LIBS"
6055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6056 echo "$ac_t""yes" 1>&6
6060 echo "$ac_t""no" 1>&6
6067 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6070 if test $have_k425 = yes ; then
6071 ol_with_kerberos=found
6074 cat >> confdefs.h <<\EOF
6075 #define HAVE_KRB425 1
6078 cat >> confdefs.h <<\EOF
6083 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6084 echo "configure:6085: checking for des_debug in Kerberos libraries" >&5
6085 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6086 echo $ac_n "(cached) $ac_c" 1>&6
6090 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6095 #include <kerberosIV/krb.h>
6096 #include <kerberosIV/des.h>
6097 extern int des_debug;
6105 if { (eval echo configure:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6107 ol_cv_var_des_debug=yes
6109 echo "configure: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6112 ol_cv_var_des_debug=no
6119 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6121 if test $ol_cv_var_des_debug = yes ; then
6122 cat >> confdefs.h <<\EOF
6123 #define HAVE_DES_DEBUG 1
6133 if test $ol_link_krb5 = yes ; then
6134 ol_with_kerberos=found
6137 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6138 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6140 for ac_hdr in krb.h des.h krb-archaeology.h
6142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6144 echo "configure:6145: checking for $ac_hdr" >&5
6145 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6146 echo $ac_n "(cached) $ac_c" 1>&6
6148 cat > conftest.$ac_ext <<EOF
6149 #line 6150 "configure"
6150 #include "confdefs.h"
6153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6154 { (eval echo configure:6155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6156 if test -z "$ac_err"; then
6158 eval "ac_cv_header_$ac_safe=yes"
6161 echo "configure: failed program was:" >&5
6162 cat conftest.$ac_ext >&5
6164 eval "ac_cv_header_$ac_safe=no"
6168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6170 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6171 cat >> confdefs.h <<EOF
6172 #define $ac_tr_hdr 1
6176 echo "$ac_t""no" 1>&6
6181 if test $ac_cv_header_krb_h = yes ; then
6182 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6183 echo "configure:6184: checking for main in -lkrb" >&5
6184 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6185 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6186 echo $ac_n "(cached) $ac_c" 1>&6
6188 ac_save_LIBS="$LIBS"
6189 LIBS="-lkrb -ldes $LIBS"
6190 cat > conftest.$ac_ext <<EOF
6191 #line 6192 "configure"
6192 #include "confdefs.h"
6198 if { (eval echo configure:6199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6200 eval "ac_cv_lib_$ac_lib_var=yes"
6202 echo "configure: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6205 eval "ac_cv_lib_$ac_lib_var=no"
6208 LIBS="$ac_save_LIBS"
6211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6212 echo "$ac_t""yes" 1>&6
6215 echo "$ac_t""no" 1>&6
6220 if test $have_k4 = yes ; then
6221 ol_with_kerberos=found
6224 cat >> confdefs.h <<\EOF
6229 KRB4_LIBS="-lkrb -ldes"
6231 if test $ac_cv_header_krb_archaeology_h = yes ; then
6232 cat >> confdefs.h <<\EOF
6233 #define HAVE_KTH_KERBEROS 1
6241 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6245 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6248 elif test $ol_enable_kbind = yes ; then
6249 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6252 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6253 cat >> confdefs.h <<\EOF
6254 #define HAVE_KERBEROS 1
6258 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6259 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6263 if test $ol_with_tls != no ; then
6264 for ac_hdr in openssl/ssl.h ssl.h
6266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6268 echo "configure:6269: checking for $ac_hdr" >&5
6269 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6270 echo $ac_n "(cached) $ac_c" 1>&6
6272 cat > conftest.$ac_ext <<EOF
6273 #line 6274 "configure"
6274 #include "confdefs.h"
6277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6278 { (eval echo configure:6279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6280 if test -z "$ac_err"; then
6282 eval "ac_cv_header_$ac_safe=yes"
6285 echo "configure: failed program was:" >&5
6286 cat conftest.$ac_ext >&5
6288 eval "ac_cv_header_$ac_safe=no"
6292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6293 echo "$ac_t""yes" 1>&6
6294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6295 cat >> confdefs.h <<EOF
6296 #define $ac_tr_hdr 1
6300 echo "$ac_t""no" 1>&6
6305 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6306 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6307 echo "configure:6308: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6308 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6309 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6310 echo $ac_n "(cached) $ac_c" 1>&6
6312 ac_save_LIBS="$LIBS"
6313 LIBS="-lssl -lcrypto $LIBS"
6314 cat > conftest.$ac_ext <<EOF
6315 #line 6316 "configure"
6316 #include "confdefs.h"
6317 /* Override any gcc2 internal prototype to avoid an error. */
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6320 char SSLeay_add_ssl_algorithms();
6323 SSLeay_add_ssl_algorithms()
6326 if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6328 eval "ac_cv_lib_$ac_lib_var=yes"
6330 echo "configure: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6333 eval "ac_cv_lib_$ac_lib_var=no"
6336 LIBS="$ac_save_LIBS"
6339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6340 echo "$ac_t""yes" 1>&6
6344 echo "$ac_t""no" 1>&6
6349 if test $have_ssleay = no ; then
6350 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6351 echo "configure:6352: checking for SSL_library_init in -lssl" >&5
6352 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6353 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 ac_save_LIBS="$LIBS"
6357 LIBS="-lssl -lcrypto $LIBS"
6358 cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 /* Override any gcc2 internal prototype to avoid an error. */
6362 /* We use char because int might match the return type of a gcc2
6363 builtin and then its argument prototype would still apply. */
6364 char SSL_library_init();
6370 if { (eval echo configure:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6372 eval "ac_cv_lib_$ac_lib_var=yes"
6374 echo "configure: failed program was:" >&5
6375 cat conftest.$ac_ext >&5
6377 eval "ac_cv_lib_$ac_lib_var=no"
6380 LIBS="$ac_save_LIBS"
6383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6384 echo "$ac_t""yes" 1>&6
6388 echo "$ac_t""no" 1>&6
6394 if test $have_ssleay = no ; then
6395 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6396 echo "configure:6397: checking for ssl3_accept in -lssl" >&5
6397 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6398 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 ac_save_LIBS="$LIBS"
6402 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6403 cat > conftest.$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6406 /* Override any gcc2 internal prototype to avoid an error. */
6407 /* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */
6415 if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6417 eval "ac_cv_lib_$ac_lib_var=yes"
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6422 eval "ac_cv_lib_$ac_lib_var=no"
6425 LIBS="$ac_save_LIBS"
6428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6429 echo "$ac_t""yes" 1>&6
6433 echo "$ac_t""no" 1>&6
6439 if test $have_ssleay = yes ; then
6443 cat >> confdefs.h <<\EOF
6444 #define HAVE_SSLEAY 1
6448 if test $need_rsaref = yes; then
6449 cat >> confdefs.h <<\EOF
6450 #define HAVE_RSAREF 1
6454 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6456 TLS_LIBS="-lssl -lcrypto"
6462 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6465 if test $ol_link_tls = yes ; then
6466 cat >> confdefs.h <<\EOF
6471 elif test $ol_with_tls = auto ; then
6472 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6473 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6475 elif test $ol_with_tls != no ; then
6476 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6481 gethostbyname_r gethostbyaddr_r \
6484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6485 echo "configure:6486: checking for $ac_func" >&5
6486 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6489 cat > conftest.$ac_ext <<EOF
6490 #line 6491 "configure"
6491 #include "confdefs.h"
6492 /* System header to define __stub macros and hopefully few prototypes,
6493 which can conflict with char $ac_func(); below. */
6495 /* Override any gcc2 internal prototype to avoid an error. */
6496 /* We use char because int might match the return type of a gcc2
6497 builtin and then its argument prototype would still apply. */
6503 /* The GNU C library defines this for functions which it implements
6504 to always fail with ENOSYS. Some functions are actually named
6505 something starting with __ and the normal name is an alias. */
6506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6514 if { (eval echo configure:6515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6516 eval "ac_cv_func_$ac_func=yes"
6518 echo "configure: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6521 eval "ac_cv_func_$ac_func=no"
6526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6527 echo "$ac_t""yes" 1>&6
6528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6529 cat >> confdefs.h <<EOF
6530 #define $ac_tr_func 1
6534 echo "$ac_t""no" 1>&6
6539 if test "$ac_cv_func_ctime_r" = no ; then
6540 ol_cv_func_ctime_r_nargs=0
6542 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6543 echo "configure:6544: checking number of arguments of ctime_r" >&5
6544 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6545 echo $ac_n "(cached) $ac_c" 1>&6
6547 cat > conftest.$ac_ext <<EOF
6548 #line 6549 "configure"
6549 #include "confdefs.h"
6552 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6555 if { (eval echo configure:6556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6557 ol_cv_func_ctime_r_nargs3=yes
6559 echo "configure: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6562 ol_cv_func_ctime_r_nargs3=no
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6571 time_t ti; char *buffer; ctime_r(&ti,buffer);
6574 if { (eval echo configure:6575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6576 ol_cv_func_ctime_r_nargs2=yes
6578 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6581 ol_cv_func_ctime_r_nargs2=no
6585 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6586 $ol_cv_func_ctime_r_nargs2 = no ; then
6588 ol_cv_func_ctime_r_nargs=3
6590 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6591 $ol_cv_func_ctime_r_nargs2 = yes ; then
6593 ol_cv_func_ctime_r_nargs=2
6596 ol_cv_func_ctime_r_nargs=0
6601 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6603 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6604 cat >> confdefs.h <<EOF
6605 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6612 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6613 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6614 echo "configure:6615: checking number of arguments of gethostbyname_r" >&5
6615 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6618 cat > conftest.$ac_ext <<EOF
6619 #line 6620 "configure"
6620 #include "confdefs.h"
6621 #include <sys/types.h>
6622 #include <sys/socket.h>
6623 #include <netinet/in.h>
6625 #define BUFSIZE (sizeof(struct hostent)+10)
6627 struct hostent hent; char buffer[BUFSIZE];
6628 int bufsize=BUFSIZE;int h_errno;
6629 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6630 buffer, bufsize, &h_errno);
6633 if { (eval echo configure:6634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6635 ol_cv_func_gethostbyname_r_nargs5=yes
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6640 ol_cv_func_gethostbyname_r_nargs5=no
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 #include <sys/types.h>
6648 #include <sys/socket.h>
6649 #include <netinet/in.h>
6651 #define BUFSIZE (sizeof(struct hostent)+10)
6653 struct hostent hent;struct hostent *rhent;
6654 char buffer[BUFSIZE];
6655 int bufsize=BUFSIZE;int h_errno;
6656 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6660 if { (eval echo configure:6661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6662 ol_cv_func_gethostbyname_r_nargs6=yes
6664 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6667 ol_cv_func_gethostbyname_r_nargs6=no
6671 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6672 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6674 ol_cv_func_gethostbyname_r_nargs=5
6676 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6677 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6679 ol_cv_func_gethostbyname_r_nargs=6
6682 ol_cv_func_gethostbyname_r_nargs=0
6687 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6688 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6689 cat >> confdefs.h <<EOF
6690 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6696 ol_cv_func_gethostbyname_r_nargs=0
6699 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6700 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6701 echo "configure:6702: checking number of arguments of gethostbyaddr_r" >&5
6702 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6703 echo $ac_n "(cached) $ac_c" 1>&6
6705 cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure"
6707 #include "confdefs.h"
6708 #include <sys/types.h>
6709 #include <sys/socket.h>
6710 #include <netinet/in.h>
6712 #define BUFSIZE (sizeof(struct hostent)+10)
6714 struct hostent hent; char buffer[BUFSIZE];
6716 size_t alen=sizeof(struct in_addr);
6717 int bufsize=BUFSIZE;int h_errno;
6718 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6719 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6722 if { (eval echo configure:6723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6724 ol_cv_func_gethostbyaddr_r_nargs7=yes
6726 echo "configure: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6729 ol_cv_func_gethostbyaddr_r_nargs7=no
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 #include <sys/types.h>
6737 #include <sys/socket.h>
6738 #include <netinet/in.h>
6740 #define BUFSIZE (sizeof(struct hostent)+10)
6742 struct hostent hent;
6743 struct hostent *rhent; char buffer[BUFSIZE];
6745 size_t alen=sizeof(struct in_addr);
6746 int bufsize=BUFSIZE;int h_errno;
6747 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6748 alen, AF_INET, &hent, buffer, bufsize,
6752 if { (eval echo configure:6753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6754 ol_cv_func_gethostbyaddr_r_nargs8=yes
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6759 ol_cv_func_gethostbyaddr_r_nargs8=no
6763 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6764 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6766 ol_cv_func_gethostbyaddr_r_nargs=7
6768 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6769 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6771 ol_cv_func_gethostbyaddr_r_nargs=8
6774 ol_cv_func_gethostbyaddr_r_nargs=0
6779 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6780 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6781 cat >> confdefs.h <<EOF
6782 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6788 ol_cv_func_gethostbyaddr_r_nargs=0
6791 if test "$ac_cv_func_ctime_r" = yes \
6792 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6793 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6794 -a "$ac_cv_func_gethostbyname_r" = yes \
6795 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6796 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6797 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6798 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6799 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6802 cat >> confdefs.h <<\EOF
6803 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6810 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6811 -o $ol_with_threads = nt ; then
6814 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6815 echo "configure:6816: checking for _beginthread" >&5
6816 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6822 /* System header to define __stub macros and hopefully few prototypes,
6823 which can conflict with char _beginthread(); below. */
6825 /* Override any gcc2 internal prototype to avoid an error. */
6826 /* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6828 char _beginthread();
6833 /* The GNU C library defines this for functions which it implements
6834 to always fail with ENOSYS. Some functions are actually named
6835 something starting with __ and the normal name is an alias. */
6836 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6846 eval "ac_cv_func__beginthread=yes"
6848 echo "configure: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6851 eval "ac_cv_func__beginthread=no"
6856 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6857 echo "$ac_t""yes" 1>&6
6860 echo "$ac_t""no" 1>&6
6864 if test $ac_cv_func__beginthread = yes ; then
6865 cat >> confdefs.h <<\EOF
6866 #define HAVE_NT_THREADS 1
6872 if test "$ol_cv_nt_threads" = yes ; then
6874 ol_with_threads=found
6875 ol_with_yielding_select=yes
6877 cat >> confdefs.h <<\EOF
6878 #define HAVE_NT_SERVICE_MANAGER 1
6881 cat >> confdefs.h <<\EOF
6882 #define HAVE_NT_EVENT_LOG 1
6887 if test $ol_with_threads = nt ; then
6888 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6892 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6893 -o $ol_with_threads = posix ; then
6895 for ac_hdr in pthread.h
6897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6899 echo "configure:6900: checking for $ac_hdr" >&5
6900 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6901 echo $ac_n "(cached) $ac_c" 1>&6
6903 cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6909 { (eval echo configure:6910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6911 if test -z "$ac_err"; then
6913 eval "ac_cv_header_$ac_safe=yes"
6916 echo "configure: failed program was:" >&5
6917 cat conftest.$ac_ext >&5
6919 eval "ac_cv_header_$ac_safe=no"
6923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6924 echo "$ac_t""yes" 1>&6
6925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6926 cat >> confdefs.h <<EOF
6927 #define $ac_tr_hdr 1
6931 echo "$ac_t""no" 1>&6
6936 if test $ac_cv_header_pthread_h = yes ; then
6937 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6938 echo "configure:6939: checking POSIX thread version" >&5
6939 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6940 echo $ac_n "(cached) $ac_c" 1>&6
6943 cat > conftest.$ac_ext <<EOF
6944 #line 6945 "configure"
6945 #include "confdefs.h"
6947 # include <pthread.h>
6948 /* this check could be improved */
6949 # ifdef PTHREAD_ONCE_INIT
6950 pthread_version_final;
6954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6955 egrep "pthread_version_final" >/dev/null 2>&1; then
6957 ol_pthread_final=yes
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6969 # include <pthread.h>
6970 /* this check could be improved */
6971 # ifdef pthread_once_init
6972 pthread_version_draft4;
6976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6977 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6979 ol_pthread_draft4=yes
6982 ol_pthread_draft4=no
6987 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6988 ol_cv_pthread_version=final
6989 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6990 ol_cv_pthread_version=draft4
6992 ol_cv_pthread_version=unknown
6997 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7000 if test $ol_cv_pthread_version = final ; then
7001 cat >> confdefs.h <<\EOF
7002 #define HAVE_PTHREADS_FINAL 1
7005 elif test $ol_cv_pthread_version = draft4 ; then
7006 cat >> confdefs.h <<\EOF
7007 #define HAVE_PTHREADS_D4 1
7011 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7014 # consider threads found
7015 ol_with_threads=found
7018 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7019 echo "configure:7020: checking for LinuxThreads pthread.h" >&5
7020 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7021 echo $ac_n "(cached) $ac_c" 1>&6
7023 cat > conftest.$ac_ext <<EOF
7024 #line 7025 "configure"
7025 #include "confdefs.h"
7026 #include <pthread.h>
7028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7031 ol_cv_header_linux_threads=yes
7034 ol_cv_header_linux_threads=no
7041 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7042 if test $ol_cv_header_linux_threads = yes; then
7043 cat >> confdefs.h <<\EOF
7044 #define HAVE_LINUX_THREADS 1
7050 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7051 echo "configure:7052: checking for GNU Pth pthread.h" >&5
7052 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7053 echo $ac_n "(cached) $ac_c" 1>&6
7055 cat > conftest.$ac_ext <<EOF
7056 #line 7057 "configure"
7057 #include "confdefs.h"
7058 #include <pthread.h>
7059 #ifdef _POSIX_THREAD_IS_GNU_PTH
7064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7065 egrep "__gnu_pth__" >/dev/null 2>&1; then
7067 ol_cv_header_gnu_pth_pthread_h=yes
7070 ol_cv_header_gnu_pth_pthread_h=no
7077 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7080 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7081 for ac_hdr in sched.h
7083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7085 echo "configure:7086: checking for $ac_hdr" >&5
7086 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7089 cat > conftest.$ac_ext <<EOF
7090 #line 7091 "configure"
7091 #include "confdefs.h"
7094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7095 { (eval echo configure:7096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7097 if test -z "$ac_err"; then
7099 eval "ac_cv_header_$ac_safe=yes"
7102 echo "configure: failed program was:" >&5
7103 cat conftest.$ac_ext >&5
7105 eval "ac_cv_header_$ac_safe=no"
7109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7110 echo "$ac_t""yes" 1>&6
7111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7112 cat >> confdefs.h <<EOF
7113 #define $ac_tr_hdr 1
7117 echo "$ac_t""no" 1>&6
7124 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7125 echo "configure:7126: checking for pthread_create in default libraries" >&5
7126 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7127 echo $ac_n "(cached) $ac_c" 1>&6
7130 if test "$cross_compiling" = yes; then
7131 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7134 /* pthread test headers */
7135 #include <pthread.h>
7137 #define NULL (void*)0
7140 static void *task(p)
7143 return (void *) (p == NULL);
7148 /* pthread test function */
7151 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7152 /* This system (e.g. AIX) defaults detached; must override */
7153 pthread_attr_t attr;
7155 status = pthread_attr_init(&attr);
7156 if( status ) exit( status );
7158 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7159 if( status ) exit( status );
7162 #elif defined( HAVE_PTHREADS_D4 )
7163 # define ATTR pthread_attr_default
7168 /* make sure pthread_create() isn't just a stub */
7169 status = pthread_create(&t, ATTR, task, NULL);
7170 if( status ) exit( status );
7172 /* give the thread a chance to complete...
7173 * it should remain joinable and hence detachable
7177 /* make sure pthread_detach() isn't just a stub */
7178 #if HAVE_PTHREADS_D4
7179 status = pthread_detach( &t );
7181 status = pthread_detach( t );
7184 #ifdef HAVE_LINUX_THREADS
7185 pthread_kill_other_threads_np();
7192 if { (eval echo configure:7193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7194 ol_cv_pthread_create=yes
7196 echo "configure: failed program was:" >&5
7197 cat conftest.$ac_ext >&5
7199 ol_cv_pthread_create=no
7203 cat > conftest.$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7206 /* pthread test headers */
7207 #include <pthread.h>
7209 #define NULL (void*)0
7212 static void *task(p)
7215 return (void *) (p == NULL);
7219 int main(argc, argv)
7224 /* pthread test function */
7227 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7228 /* This system (e.g. AIX) defaults detached; must override */
7229 pthread_attr_t attr;
7231 status = pthread_attr_init(&attr);
7232 if( status ) exit( status );
7234 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7235 if( status ) exit( status );
7238 #elif defined( HAVE_PTHREADS_D4 )
7239 # define ATTR pthread_attr_default
7244 /* make sure pthread_create() isn't just a stub */
7245 status = pthread_create(&t, ATTR, task, NULL);
7246 if( status ) exit( status );
7248 /* give the thread a chance to complete...
7249 * it should remain joinable and hence detachable
7253 /* make sure pthread_detach() isn't just a stub */
7254 #if HAVE_PTHREADS_D4
7255 status = pthread_detach( &t );
7257 status = pthread_detach( t );
7260 #ifdef HAVE_LINUX_THREADS
7261 pthread_kill_other_threads_np();
7269 if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7271 ol_cv_pthread_create=yes
7273 echo "configure: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7276 ol_cv_pthread_create=no
7283 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7285 if test $ol_cv_pthread_create != no ; then
7286 ol_link_threads=posix
7290 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7291 if test "$ol_link_threads" = no ; then
7293 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7294 echo "configure:7295: checking for pthread link with -kthread" >&5
7295 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7296 echo $ac_n "(cached) $ac_c" 1>&6
7301 LIBS="-kthread $LIBS"
7303 if test "$cross_compiling" = yes; then
7304 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7307 /* pthread test headers */
7308 #include <pthread.h>
7310 #define NULL (void*)0
7313 static void *task(p)
7316 return (void *) (p == NULL);
7321 /* pthread test function */
7324 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7325 /* This system (e.g. AIX) defaults detached; must override */
7326 pthread_attr_t attr;
7328 status = pthread_attr_init(&attr);
7329 if( status ) exit( status );
7331 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7332 if( status ) exit( status );
7335 #elif defined( HAVE_PTHREADS_D4 )
7336 # define ATTR pthread_attr_default
7341 /* make sure pthread_create() isn't just a stub */
7342 status = pthread_create(&t, ATTR, task, NULL);
7343 if( status ) exit( status );
7345 /* give the thread a chance to complete...
7346 * it should remain joinable and hence detachable
7350 /* make sure pthread_detach() isn't just a stub */
7351 #if HAVE_PTHREADS_D4
7352 status = pthread_detach( &t );
7354 status = pthread_detach( t );
7357 #ifdef HAVE_LINUX_THREADS
7358 pthread_kill_other_threads_np();
7365 if { (eval echo configure:7366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7367 ol_cv_pthread_kthread=yes
7369 echo "configure: failed program was:" >&5
7370 cat conftest.$ac_ext >&5
7372 ol_cv_pthread_kthread=no
7376 cat > conftest.$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7379 /* pthread test headers */
7380 #include <pthread.h>
7382 #define NULL (void*)0
7385 static void *task(p)
7388 return (void *) (p == NULL);
7392 int main(argc, argv)
7397 /* pthread test function */
7400 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7401 /* This system (e.g. AIX) defaults detached; must override */
7402 pthread_attr_t attr;
7404 status = pthread_attr_init(&attr);
7405 if( status ) exit( status );
7407 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7408 if( status ) exit( status );
7411 #elif defined( HAVE_PTHREADS_D4 )
7412 # define ATTR pthread_attr_default
7417 /* make sure pthread_create() isn't just a stub */
7418 status = pthread_create(&t, ATTR, task, NULL);
7419 if( status ) exit( status );
7421 /* give the thread a chance to complete...
7422 * it should remain joinable and hence detachable
7426 /* make sure pthread_detach() isn't just a stub */
7427 #if HAVE_PTHREADS_D4
7428 status = pthread_detach( &t );
7430 status = pthread_detach( t );
7433 #ifdef HAVE_LINUX_THREADS
7434 pthread_kill_other_threads_np();
7442 if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7444 ol_cv_pthread_kthread=yes
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7449 ol_cv_pthread_kthread=no
7460 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7462 if test $ol_cv_pthread_kthread = yes ; then
7463 ol_link_pthreads="-kthread"
7464 ol_link_threads=posix
7468 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7469 if test "$ol_link_threads" = no ; then
7471 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7472 echo "configure:7473: checking for pthread link with -pthread" >&5
7473 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7474 echo $ac_n "(cached) $ac_c" 1>&6
7479 LIBS="-pthread $LIBS"
7481 if test "$cross_compiling" = yes; then
7482 cat > conftest.$ac_ext <<EOF
7483 #line 7484 "configure"
7484 #include "confdefs.h"
7485 /* pthread test headers */
7486 #include <pthread.h>
7488 #define NULL (void*)0
7491 static void *task(p)
7494 return (void *) (p == NULL);
7499 /* pthread test function */
7502 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7503 /* This system (e.g. AIX) defaults detached; must override */
7504 pthread_attr_t attr;
7506 status = pthread_attr_init(&attr);
7507 if( status ) exit( status );
7509 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7510 if( status ) exit( status );
7513 #elif defined( HAVE_PTHREADS_D4 )
7514 # define ATTR pthread_attr_default
7519 /* make sure pthread_create() isn't just a stub */
7520 status = pthread_create(&t, ATTR, task, NULL);
7521 if( status ) exit( status );
7523 /* give the thread a chance to complete...
7524 * it should remain joinable and hence detachable
7528 /* make sure pthread_detach() isn't just a stub */
7529 #if HAVE_PTHREADS_D4
7530 status = pthread_detach( &t );
7532 status = pthread_detach( t );
7535 #ifdef HAVE_LINUX_THREADS
7536 pthread_kill_other_threads_np();
7543 if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7545 ol_cv_pthread_pthread=yes
7547 echo "configure: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7550 ol_cv_pthread_pthread=no
7554 cat > conftest.$ac_ext <<EOF
7555 #line 7556 "configure"
7556 #include "confdefs.h"
7557 /* pthread test headers */
7558 #include <pthread.h>
7560 #define NULL (void*)0
7563 static void *task(p)
7566 return (void *) (p == NULL);
7570 int main(argc, argv)
7575 /* pthread test function */
7578 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7579 /* This system (e.g. AIX) defaults detached; must override */
7580 pthread_attr_t attr;
7582 status = pthread_attr_init(&attr);
7583 if( status ) exit( status );
7585 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7586 if( status ) exit( status );
7589 #elif defined( HAVE_PTHREADS_D4 )
7590 # define ATTR pthread_attr_default
7595 /* make sure pthread_create() isn't just a stub */
7596 status = pthread_create(&t, ATTR, task, NULL);
7597 if( status ) exit( status );
7599 /* give the thread a chance to complete...
7600 * it should remain joinable and hence detachable
7604 /* make sure pthread_detach() isn't just a stub */
7605 #if HAVE_PTHREADS_D4
7606 status = pthread_detach( &t );
7608 status = pthread_detach( t );
7611 #ifdef HAVE_LINUX_THREADS
7612 pthread_kill_other_threads_np();
7620 if { (eval echo configure:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7622 ol_cv_pthread_pthread=yes
7624 echo "configure: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7627 ol_cv_pthread_pthread=no
7638 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7640 if test $ol_cv_pthread_pthread = yes ; then
7641 ol_link_pthreads="-pthread"
7642 ol_link_threads=posix
7646 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7647 if test "$ol_link_threads" = no ; then
7649 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7650 echo "configure:7651: checking for pthread link with -pthreads" >&5
7651 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7652 echo $ac_n "(cached) $ac_c" 1>&6
7657 LIBS="-pthreads $LIBS"
7659 if test "$cross_compiling" = yes; then
7660 cat > conftest.$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7663 /* pthread test headers */
7664 #include <pthread.h>
7666 #define NULL (void*)0
7669 static void *task(p)
7672 return (void *) (p == NULL);
7677 /* pthread test function */
7680 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7681 /* This system (e.g. AIX) defaults detached; must override */
7682 pthread_attr_t attr;
7684 status = pthread_attr_init(&attr);
7685 if( status ) exit( status );
7687 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7688 if( status ) exit( status );
7691 #elif defined( HAVE_PTHREADS_D4 )
7692 # define ATTR pthread_attr_default
7697 /* make sure pthread_create() isn't just a stub */
7698 status = pthread_create(&t, ATTR, task, NULL);
7699 if( status ) exit( status );
7701 /* give the thread a chance to complete...
7702 * it should remain joinable and hence detachable
7706 /* make sure pthread_detach() isn't just a stub */
7707 #if HAVE_PTHREADS_D4
7708 status = pthread_detach( &t );
7710 status = pthread_detach( t );
7713 #ifdef HAVE_LINUX_THREADS
7714 pthread_kill_other_threads_np();
7721 if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7723 ol_cv_pthread_pthreads=yes
7725 echo "configure: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7728 ol_cv_pthread_pthreads=no
7732 cat > conftest.$ac_ext <<EOF
7733 #line 7734 "configure"
7734 #include "confdefs.h"
7735 /* pthread test headers */
7736 #include <pthread.h>
7738 #define NULL (void*)0
7741 static void *task(p)
7744 return (void *) (p == NULL);
7748 int main(argc, argv)
7753 /* pthread test function */
7756 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7757 /* This system (e.g. AIX) defaults detached; must override */
7758 pthread_attr_t attr;
7760 status = pthread_attr_init(&attr);
7761 if( status ) exit( status );
7763 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7764 if( status ) exit( status );
7767 #elif defined( HAVE_PTHREADS_D4 )
7768 # define ATTR pthread_attr_default
7773 /* make sure pthread_create() isn't just a stub */
7774 status = pthread_create(&t, ATTR, task, NULL);
7775 if( status ) exit( status );
7777 /* give the thread a chance to complete...
7778 * it should remain joinable and hence detachable
7782 /* make sure pthread_detach() isn't just a stub */
7783 #if HAVE_PTHREADS_D4
7784 status = pthread_detach( &t );
7786 status = pthread_detach( t );
7789 #ifdef HAVE_LINUX_THREADS
7790 pthread_kill_other_threads_np();
7798 if { (eval echo configure:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7800 ol_cv_pthread_pthreads=yes
7802 echo "configure: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7805 ol_cv_pthread_pthreads=no
7816 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7818 if test $ol_cv_pthread_pthreads = yes ; then
7819 ol_link_pthreads="-pthreads"
7820 ol_link_threads=posix
7824 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7825 if test "$ol_link_threads" = no ; then
7827 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7828 echo "configure:7829: checking for pthread link with -mthreads" >&5
7829 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7830 echo $ac_n "(cached) $ac_c" 1>&6
7835 LIBS="-mthreads $LIBS"
7837 if test "$cross_compiling" = yes; then
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* pthread test headers */
7842 #include <pthread.h>
7844 #define NULL (void*)0
7847 static void *task(p)
7850 return (void *) (p == NULL);
7855 /* pthread test function */
7858 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7859 /* This system (e.g. AIX) defaults detached; must override */
7860 pthread_attr_t attr;
7862 status = pthread_attr_init(&attr);
7863 if( status ) exit( status );
7865 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7866 if( status ) exit( status );
7869 #elif defined( HAVE_PTHREADS_D4 )
7870 # define ATTR pthread_attr_default
7875 /* make sure pthread_create() isn't just a stub */
7876 status = pthread_create(&t, ATTR, task, NULL);
7877 if( status ) exit( status );
7879 /* give the thread a chance to complete...
7880 * it should remain joinable and hence detachable
7884 /* make sure pthread_detach() isn't just a stub */
7885 #if HAVE_PTHREADS_D4
7886 status = pthread_detach( &t );
7888 status = pthread_detach( t );
7891 #ifdef HAVE_LINUX_THREADS
7892 pthread_kill_other_threads_np();
7899 if { (eval echo configure:7900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7901 ol_cv_pthread_mthreads=yes
7903 echo "configure: failed program was:" >&5
7904 cat conftest.$ac_ext >&5
7906 ol_cv_pthread_mthreads=no
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 /* pthread test headers */
7914 #include <pthread.h>
7916 #define NULL (void*)0
7919 static void *task(p)
7922 return (void *) (p == NULL);
7926 int main(argc, argv)
7931 /* pthread test function */
7934 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7935 /* This system (e.g. AIX) defaults detached; must override */
7936 pthread_attr_t attr;
7938 status = pthread_attr_init(&attr);
7939 if( status ) exit( status );
7941 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7942 if( status ) exit( status );
7945 #elif defined( HAVE_PTHREADS_D4 )
7946 # define ATTR pthread_attr_default
7951 /* make sure pthread_create() isn't just a stub */
7952 status = pthread_create(&t, ATTR, task, NULL);
7953 if( status ) exit( status );
7955 /* give the thread a chance to complete...
7956 * it should remain joinable and hence detachable
7960 /* make sure pthread_detach() isn't just a stub */
7961 #if HAVE_PTHREADS_D4
7962 status = pthread_detach( &t );
7964 status = pthread_detach( t );
7967 #ifdef HAVE_LINUX_THREADS
7968 pthread_kill_other_threads_np();
7976 if { (eval echo configure:7977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7978 ol_cv_pthread_mthreads=yes
7980 echo "configure: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7983 ol_cv_pthread_mthreads=no
7994 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7996 if test $ol_cv_pthread_mthreads = yes ; then
7997 ol_link_pthreads="-mthreads"
7998 ol_link_threads=posix
8002 # Pthread try link: -thread (ol_cv_pthread_thread)
8003 if test "$ol_link_threads" = no ; then
8005 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8006 echo "configure:8007: checking for pthread link with -thread" >&5
8007 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8008 echo $ac_n "(cached) $ac_c" 1>&6
8013 LIBS="-thread $LIBS"
8015 if test "$cross_compiling" = yes; then
8016 cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure"
8018 #include "confdefs.h"
8019 /* pthread test headers */
8020 #include <pthread.h>
8022 #define NULL (void*)0
8025 static void *task(p)
8028 return (void *) (p == NULL);
8033 /* pthread test function */
8036 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8037 /* This system (e.g. AIX) defaults detached; must override */
8038 pthread_attr_t attr;
8040 status = pthread_attr_init(&attr);
8041 if( status ) exit( status );
8043 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8044 if( status ) exit( status );
8047 #elif defined( HAVE_PTHREADS_D4 )
8048 # define ATTR pthread_attr_default
8053 /* make sure pthread_create() isn't just a stub */
8054 status = pthread_create(&t, ATTR, task, NULL);
8055 if( status ) exit( status );
8057 /* give the thread a chance to complete...
8058 * it should remain joinable and hence detachable
8062 /* make sure pthread_detach() isn't just a stub */
8063 #if HAVE_PTHREADS_D4
8064 status = pthread_detach( &t );
8066 status = pthread_detach( t );
8069 #ifdef HAVE_LINUX_THREADS
8070 pthread_kill_other_threads_np();
8077 if { (eval echo configure:8078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8079 ol_cv_pthread_thread=yes
8081 echo "configure: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8084 ol_cv_pthread_thread=no
8088 cat > conftest.$ac_ext <<EOF
8089 #line 8090 "configure"
8090 #include "confdefs.h"
8091 /* pthread test headers */
8092 #include <pthread.h>
8094 #define NULL (void*)0
8097 static void *task(p)
8100 return (void *) (p == NULL);
8104 int main(argc, argv)
8109 /* pthread test function */
8112 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8113 /* This system (e.g. AIX) defaults detached; must override */
8114 pthread_attr_t attr;
8116 status = pthread_attr_init(&attr);
8117 if( status ) exit( status );
8119 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8120 if( status ) exit( status );
8123 #elif defined( HAVE_PTHREADS_D4 )
8124 # define ATTR pthread_attr_default
8129 /* make sure pthread_create() isn't just a stub */
8130 status = pthread_create(&t, ATTR, task, NULL);
8131 if( status ) exit( status );
8133 /* give the thread a chance to complete...
8134 * it should remain joinable and hence detachable
8138 /* make sure pthread_detach() isn't just a stub */
8139 #if HAVE_PTHREADS_D4
8140 status = pthread_detach( &t );
8142 status = pthread_detach( t );
8145 #ifdef HAVE_LINUX_THREADS
8146 pthread_kill_other_threads_np();
8154 if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8156 ol_cv_pthread_thread=yes
8158 echo "configure: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8161 ol_cv_pthread_thread=no
8172 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8174 if test $ol_cv_pthread_thread = yes ; then
8175 ol_link_pthreads="-thread"
8176 ol_link_threads=posix
8181 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8182 if test "$ol_link_threads" = no ; then
8183 # try -lpthread -lmach -lexc -lc_r
8184 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8185 echo "configure:8186: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8186 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8187 echo $ac_n "(cached) $ac_c" 1>&6
8192 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8194 if test "$cross_compiling" = yes; then
8195 cat > conftest.$ac_ext <<EOF
8196 #line 8197 "configure"
8197 #include "confdefs.h"
8198 /* pthread test headers */
8199 #include <pthread.h>
8201 #define NULL (void*)0
8204 static void *task(p)
8207 return (void *) (p == NULL);
8212 /* pthread test function */
8215 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8216 /* This system (e.g. AIX) defaults detached; must override */
8217 pthread_attr_t attr;
8219 status = pthread_attr_init(&attr);
8220 if( status ) exit( status );
8222 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8223 if( status ) exit( status );
8226 #elif defined( HAVE_PTHREADS_D4 )
8227 # define ATTR pthread_attr_default
8232 /* make sure pthread_create() isn't just a stub */
8233 status = pthread_create(&t, ATTR, task, NULL);
8234 if( status ) exit( status );
8236 /* give the thread a chance to complete...
8237 * it should remain joinable and hence detachable
8241 /* make sure pthread_detach() isn't just a stub */
8242 #if HAVE_PTHREADS_D4
8243 status = pthread_detach( &t );
8245 status = pthread_detach( t );
8248 #ifdef HAVE_LINUX_THREADS
8249 pthread_kill_other_threads_np();
8256 if { (eval echo configure:8257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8258 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8260 echo "configure: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8263 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8267 cat > conftest.$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8270 /* pthread test headers */
8271 #include <pthread.h>
8273 #define NULL (void*)0
8276 static void *task(p)
8279 return (void *) (p == NULL);
8283 int main(argc, argv)
8288 /* pthread test function */
8291 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8292 /* This system (e.g. AIX) defaults detached; must override */
8293 pthread_attr_t attr;
8295 status = pthread_attr_init(&attr);
8296 if( status ) exit( status );
8298 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8299 if( status ) exit( status );
8302 #elif defined( HAVE_PTHREADS_D4 )
8303 # define ATTR pthread_attr_default
8308 /* make sure pthread_create() isn't just a stub */
8309 status = pthread_create(&t, ATTR, task, NULL);
8310 if( status ) exit( status );
8312 /* give the thread a chance to complete...
8313 * it should remain joinable and hence detachable
8317 /* make sure pthread_detach() isn't just a stub */
8318 #if HAVE_PTHREADS_D4
8319 status = pthread_detach( &t );
8321 status = pthread_detach( t );
8324 #ifdef HAVE_LINUX_THREADS
8325 pthread_kill_other_threads_np();
8333 if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8335 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8340 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8351 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8353 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8354 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8355 ol_link_threads=posix
8359 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8360 if test "$ol_link_threads" = no ; then
8361 # try -lpthread -lmach -lexc
8362 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8363 echo "configure:8364: checking for pthread link with -lpthread -lmach -lexc" >&5
8364 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8370 LIBS="-lpthread -lmach -lexc $LIBS"
8372 if test "$cross_compiling" = yes; then
8373 cat > conftest.$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8376 /* pthread test headers */
8377 #include <pthread.h>
8379 #define NULL (void*)0
8382 static void *task(p)
8385 return (void *) (p == NULL);
8390 /* pthread test function */
8393 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8394 /* This system (e.g. AIX) defaults detached; must override */
8395 pthread_attr_t attr;
8397 status = pthread_attr_init(&attr);
8398 if( status ) exit( status );
8400 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8401 if( status ) exit( status );
8404 #elif defined( HAVE_PTHREADS_D4 )
8405 # define ATTR pthread_attr_default
8410 /* make sure pthread_create() isn't just a stub */
8411 status = pthread_create(&t, ATTR, task, NULL);
8412 if( status ) exit( status );
8414 /* give the thread a chance to complete...
8415 * it should remain joinable and hence detachable
8419 /* make sure pthread_detach() isn't just a stub */
8420 #if HAVE_PTHREADS_D4
8421 status = pthread_detach( &t );
8423 status = pthread_detach( t );
8426 #ifdef HAVE_LINUX_THREADS
8427 pthread_kill_other_threads_np();
8434 if { (eval echo configure:8435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8436 ol_cv_pthread_lpthread_lmach_lexc=yes
8438 echo "configure: failed program was:" >&5
8439 cat conftest.$ac_ext >&5
8441 ol_cv_pthread_lpthread_lmach_lexc=no
8445 cat > conftest.$ac_ext <<EOF
8446 #line 8447 "configure"
8447 #include "confdefs.h"
8448 /* pthread test headers */
8449 #include <pthread.h>
8451 #define NULL (void*)0
8454 static void *task(p)
8457 return (void *) (p == NULL);
8461 int main(argc, argv)
8466 /* pthread test function */
8469 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8470 /* This system (e.g. AIX) defaults detached; must override */
8471 pthread_attr_t attr;
8473 status = pthread_attr_init(&attr);
8474 if( status ) exit( status );
8476 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8477 if( status ) exit( status );
8480 #elif defined( HAVE_PTHREADS_D4 )
8481 # define ATTR pthread_attr_default
8486 /* make sure pthread_create() isn't just a stub */
8487 status = pthread_create(&t, ATTR, task, NULL);
8488 if( status ) exit( status );
8490 /* give the thread a chance to complete...
8491 * it should remain joinable and hence detachable
8495 /* make sure pthread_detach() isn't just a stub */
8496 #if HAVE_PTHREADS_D4
8497 status = pthread_detach( &t );
8499 status = pthread_detach( t );
8502 #ifdef HAVE_LINUX_THREADS
8503 pthread_kill_other_threads_np();
8511 if { (eval echo configure:8512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8513 ol_cv_pthread_lpthread_lmach_lexc=yes
8515 echo "configure: failed program was:" >&5
8516 cat conftest.$ac_ext >&5
8518 ol_cv_pthread_lpthread_lmach_lexc=no
8529 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8531 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8532 ol_link_pthreads="-lpthread -lmach -lexc"
8533 ol_link_threads=posix
8538 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8539 if test "$ol_link_threads" = no ; then
8540 # try -lpthread -Wl,-woff,85
8541 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8542 echo "configure:8543: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8543 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8544 echo $ac_n "(cached) $ac_c" 1>&6
8549 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8551 if test "$cross_compiling" = yes; then
8552 cat > conftest.$ac_ext <<EOF
8553 #line 8554 "configure"
8554 #include "confdefs.h"
8555 /* pthread test headers */
8556 #include <pthread.h>
8558 #define NULL (void*)0
8561 static void *task(p)
8564 return (void *) (p == NULL);
8569 /* pthread test function */
8572 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8573 /* This system (e.g. AIX) defaults detached; must override */
8574 pthread_attr_t attr;
8576 status = pthread_attr_init(&attr);
8577 if( status ) exit( status );
8579 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8580 if( status ) exit( status );
8583 #elif defined( HAVE_PTHREADS_D4 )
8584 # define ATTR pthread_attr_default
8589 /* make sure pthread_create() isn't just a stub */
8590 status = pthread_create(&t, ATTR, task, NULL);
8591 if( status ) exit( status );
8593 /* give the thread a chance to complete...
8594 * it should remain joinable and hence detachable
8598 /* make sure pthread_detach() isn't just a stub */
8599 #if HAVE_PTHREADS_D4
8600 status = pthread_detach( &t );
8602 status = pthread_detach( t );
8605 #ifdef HAVE_LINUX_THREADS
8606 pthread_kill_other_threads_np();
8613 if { (eval echo configure:8614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8615 ol_cv_pthread_lib_lpthread_woff=yes
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8620 ol_cv_pthread_lib_lpthread_woff=no
8624 cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8627 /* pthread test headers */
8628 #include <pthread.h>
8630 #define NULL (void*)0
8633 static void *task(p)
8636 return (void *) (p == NULL);
8640 int main(argc, argv)
8645 /* pthread test function */
8648 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8649 /* This system (e.g. AIX) defaults detached; must override */
8650 pthread_attr_t attr;
8652 status = pthread_attr_init(&attr);
8653 if( status ) exit( status );
8655 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8656 if( status ) exit( status );
8659 #elif defined( HAVE_PTHREADS_D4 )
8660 # define ATTR pthread_attr_default
8665 /* make sure pthread_create() isn't just a stub */
8666 status = pthread_create(&t, ATTR, task, NULL);
8667 if( status ) exit( status );
8669 /* give the thread a chance to complete...
8670 * it should remain joinable and hence detachable
8674 /* make sure pthread_detach() isn't just a stub */
8675 #if HAVE_PTHREADS_D4
8676 status = pthread_detach( &t );
8678 status = pthread_detach( t );
8681 #ifdef HAVE_LINUX_THREADS
8682 pthread_kill_other_threads_np();
8690 if { (eval echo configure:8691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8692 ol_cv_pthread_lib_lpthread_woff=yes
8694 echo "configure: failed program was:" >&5
8695 cat conftest.$ac_ext >&5
8697 ol_cv_pthread_lib_lpthread_woff=no
8708 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8710 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8711 ol_link_pthreads="-lpthread -Wl,-woff,85"
8712 ol_link_threads=posix
8717 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8718 if test "$ol_link_threads" = no ; then
8720 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8721 echo "configure:8722: checking for pthread link with -lpthread" >&5
8722 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8723 echo $ac_n "(cached) $ac_c" 1>&6
8728 LIBS="-lpthread $LIBS"
8730 if test "$cross_compiling" = yes; then
8731 cat > conftest.$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8734 /* pthread test headers */
8735 #include <pthread.h>
8737 #define NULL (void*)0
8740 static void *task(p)
8743 return (void *) (p == NULL);
8748 /* pthread test function */
8751 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8752 /* This system (e.g. AIX) defaults detached; must override */
8753 pthread_attr_t attr;
8755 status = pthread_attr_init(&attr);
8756 if( status ) exit( status );
8758 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8759 if( status ) exit( status );
8762 #elif defined( HAVE_PTHREADS_D4 )
8763 # define ATTR pthread_attr_default
8768 /* make sure pthread_create() isn't just a stub */
8769 status = pthread_create(&t, ATTR, task, NULL);
8770 if( status ) exit( status );
8772 /* give the thread a chance to complete...
8773 * it should remain joinable and hence detachable
8777 /* make sure pthread_detach() isn't just a stub */
8778 #if HAVE_PTHREADS_D4
8779 status = pthread_detach( &t );
8781 status = pthread_detach( t );
8784 #ifdef HAVE_LINUX_THREADS
8785 pthread_kill_other_threads_np();
8792 if { (eval echo configure:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8794 ol_cv_pthread_lpthread=yes
8796 echo "configure: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8799 ol_cv_pthread_lpthread=no
8803 cat > conftest.$ac_ext <<EOF
8804 #line 8805 "configure"
8805 #include "confdefs.h"
8806 /* pthread test headers */
8807 #include <pthread.h>
8809 #define NULL (void*)0
8812 static void *task(p)
8815 return (void *) (p == NULL);
8819 int main(argc, argv)
8824 /* pthread test function */
8827 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8828 /* This system (e.g. AIX) defaults detached; must override */
8829 pthread_attr_t attr;
8831 status = pthread_attr_init(&attr);
8832 if( status ) exit( status );
8834 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8835 if( status ) exit( status );
8838 #elif defined( HAVE_PTHREADS_D4 )
8839 # define ATTR pthread_attr_default
8844 /* make sure pthread_create() isn't just a stub */
8845 status = pthread_create(&t, ATTR, task, NULL);
8846 if( status ) exit( status );
8848 /* give the thread a chance to complete...
8849 * it should remain joinable and hence detachable
8853 /* make sure pthread_detach() isn't just a stub */
8854 #if HAVE_PTHREADS_D4
8855 status = pthread_detach( &t );
8857 status = pthread_detach( t );
8860 #ifdef HAVE_LINUX_THREADS
8861 pthread_kill_other_threads_np();
8869 if { (eval echo configure:8870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8871 ol_cv_pthread_lpthread=yes
8873 echo "configure: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8876 ol_cv_pthread_lpthread=no
8887 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8889 if test $ol_cv_pthread_lpthread = yes ; then
8890 ol_link_pthreads="-lpthread"
8891 ol_link_threads=posix
8895 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8896 if test "$ol_link_threads" = no ; then
8898 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8899 echo "configure:8900: checking for pthread link with -lc_r" >&5
8900 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8901 echo $ac_n "(cached) $ac_c" 1>&6
8908 if test "$cross_compiling" = yes; then
8909 cat > conftest.$ac_ext <<EOF
8910 #line 8911 "configure"
8911 #include "confdefs.h"
8912 /* pthread test headers */
8913 #include <pthread.h>
8915 #define NULL (void*)0
8918 static void *task(p)
8921 return (void *) (p == NULL);
8926 /* pthread test function */
8929 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8930 /* This system (e.g. AIX) defaults detached; must override */
8931 pthread_attr_t attr;
8933 status = pthread_attr_init(&attr);
8934 if( status ) exit( status );
8936 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8937 if( status ) exit( status );
8940 #elif defined( HAVE_PTHREADS_D4 )
8941 # define ATTR pthread_attr_default
8946 /* make sure pthread_create() isn't just a stub */
8947 status = pthread_create(&t, ATTR, task, NULL);
8948 if( status ) exit( status );
8950 /* give the thread a chance to complete...
8951 * it should remain joinable and hence detachable
8955 /* make sure pthread_detach() isn't just a stub */
8956 #if HAVE_PTHREADS_D4
8957 status = pthread_detach( &t );
8959 status = pthread_detach( t );
8962 #ifdef HAVE_LINUX_THREADS
8963 pthread_kill_other_threads_np();
8970 if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8972 ol_cv_pthread_lc_r=yes
8974 echo "configure: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8977 ol_cv_pthread_lc_r=no
8981 cat > conftest.$ac_ext <<EOF
8982 #line 8983 "configure"
8983 #include "confdefs.h"
8984 /* pthread test headers */
8985 #include <pthread.h>
8987 #define NULL (void*)0
8990 static void *task(p)
8993 return (void *) (p == NULL);
8997 int main(argc, argv)
9002 /* pthread test function */
9005 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9006 /* This system (e.g. AIX) defaults detached; must override */
9007 pthread_attr_t attr;
9009 status = pthread_attr_init(&attr);
9010 if( status ) exit( status );
9012 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9013 if( status ) exit( status );
9016 #elif defined( HAVE_PTHREADS_D4 )
9017 # define ATTR pthread_attr_default
9022 /* make sure pthread_create() isn't just a stub */
9023 status = pthread_create(&t, ATTR, task, NULL);
9024 if( status ) exit( status );
9026 /* give the thread a chance to complete...
9027 * it should remain joinable and hence detachable
9031 /* make sure pthread_detach() isn't just a stub */
9032 #if HAVE_PTHREADS_D4
9033 status = pthread_detach( &t );
9035 status = pthread_detach( t );
9038 #ifdef HAVE_LINUX_THREADS
9039 pthread_kill_other_threads_np();
9047 if { (eval echo configure:9048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9049 ol_cv_pthread_lc_r=yes
9051 echo "configure: failed program was:" >&5
9052 cat conftest.$ac_ext >&5
9054 ol_cv_pthread_lc_r=no
9065 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9067 if test $ol_cv_pthread_lc_r = yes ; then
9068 ol_link_pthreads="-lc_r"
9069 ol_link_threads=posix
9074 # Pthread try link: -threads (ol_cv_pthread_threads)
9075 if test "$ol_link_threads" = no ; then
9077 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9078 echo "configure:9079: checking for pthread link with -threads" >&5
9079 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9080 echo $ac_n "(cached) $ac_c" 1>&6
9085 LIBS="-threads $LIBS"
9087 if test "$cross_compiling" = yes; then
9088 cat > conftest.$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9091 /* pthread test headers */
9092 #include <pthread.h>
9094 #define NULL (void*)0
9097 static void *task(p)
9100 return (void *) (p == NULL);
9105 /* pthread test function */
9108 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9109 /* This system (e.g. AIX) defaults detached; must override */
9110 pthread_attr_t attr;
9112 status = pthread_attr_init(&attr);
9113 if( status ) exit( status );
9115 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9116 if( status ) exit( status );
9119 #elif defined( HAVE_PTHREADS_D4 )
9120 # define ATTR pthread_attr_default
9125 /* make sure pthread_create() isn't just a stub */
9126 status = pthread_create(&t, ATTR, task, NULL);
9127 if( status ) exit( status );
9129 /* give the thread a chance to complete...
9130 * it should remain joinable and hence detachable
9134 /* make sure pthread_detach() isn't just a stub */
9135 #if HAVE_PTHREADS_D4
9136 status = pthread_detach( &t );
9138 status = pthread_detach( t );
9141 #ifdef HAVE_LINUX_THREADS
9142 pthread_kill_other_threads_np();
9149 if { (eval echo configure:9150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9151 ol_cv_pthread_threads=yes
9153 echo "configure: failed program was:" >&5
9154 cat conftest.$ac_ext >&5
9156 ol_cv_pthread_threads=no
9160 cat > conftest.$ac_ext <<EOF
9161 #line 9162 "configure"
9162 #include "confdefs.h"
9163 /* pthread test headers */
9164 #include <pthread.h>
9166 #define NULL (void*)0
9169 static void *task(p)
9172 return (void *) (p == NULL);
9176 int main(argc, argv)
9181 /* pthread test function */
9184 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9185 /* This system (e.g. AIX) defaults detached; must override */
9186 pthread_attr_t attr;
9188 status = pthread_attr_init(&attr);
9189 if( status ) exit( status );
9191 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9192 if( status ) exit( status );
9195 #elif defined( HAVE_PTHREADS_D4 )
9196 # define ATTR pthread_attr_default
9201 /* make sure pthread_create() isn't just a stub */
9202 status = pthread_create(&t, ATTR, task, NULL);
9203 if( status ) exit( status );
9205 /* give the thread a chance to complete...
9206 * it should remain joinable and hence detachable
9210 /* make sure pthread_detach() isn't just a stub */
9211 #if HAVE_PTHREADS_D4
9212 status = pthread_detach( &t );
9214 status = pthread_detach( t );
9217 #ifdef HAVE_LINUX_THREADS
9218 pthread_kill_other_threads_np();
9226 if { (eval echo configure:9227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9228 ol_cv_pthread_threads=yes
9230 echo "configure: failed program was:" >&5
9231 cat conftest.$ac_ext >&5
9233 ol_cv_pthread_threads=no
9244 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9246 if test $ol_cv_pthread_threads = yes ; then
9247 ol_link_pthreads="-threads"
9248 ol_link_threads=posix
9253 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9254 if test "$ol_link_threads" = no ; then
9255 # try -lpthreads -lmach -lexc -lc_r
9256 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9257 echo "configure:9258: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9258 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9259 echo $ac_n "(cached) $ac_c" 1>&6
9264 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9266 if test "$cross_compiling" = yes; then
9267 cat > conftest.$ac_ext <<EOF
9268 #line 9269 "configure"
9269 #include "confdefs.h"
9270 /* pthread test headers */
9271 #include <pthread.h>
9273 #define NULL (void*)0
9276 static void *task(p)
9279 return (void *) (p == NULL);
9284 /* pthread test function */
9287 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9288 /* This system (e.g. AIX) defaults detached; must override */
9289 pthread_attr_t attr;
9291 status = pthread_attr_init(&attr);
9292 if( status ) exit( status );
9294 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9295 if( status ) exit( status );
9298 #elif defined( HAVE_PTHREADS_D4 )
9299 # define ATTR pthread_attr_default
9304 /* make sure pthread_create() isn't just a stub */
9305 status = pthread_create(&t, ATTR, task, NULL);
9306 if( status ) exit( status );
9308 /* give the thread a chance to complete...
9309 * it should remain joinable and hence detachable
9313 /* make sure pthread_detach() isn't just a stub */
9314 #if HAVE_PTHREADS_D4
9315 status = pthread_detach( &t );
9317 status = pthread_detach( t );
9320 #ifdef HAVE_LINUX_THREADS
9321 pthread_kill_other_threads_np();
9328 if { (eval echo configure:9329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9330 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9332 echo "configure: failed program was:" >&5
9333 cat conftest.$ac_ext >&5
9335 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9339 cat > conftest.$ac_ext <<EOF
9340 #line 9341 "configure"
9341 #include "confdefs.h"
9342 /* pthread test headers */
9343 #include <pthread.h>
9345 #define NULL (void*)0
9348 static void *task(p)
9351 return (void *) (p == NULL);
9355 int main(argc, argv)
9360 /* pthread test function */
9363 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9364 /* This system (e.g. AIX) defaults detached; must override */
9365 pthread_attr_t attr;
9367 status = pthread_attr_init(&attr);
9368 if( status ) exit( status );
9370 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9371 if( status ) exit( status );
9374 #elif defined( HAVE_PTHREADS_D4 )
9375 # define ATTR pthread_attr_default
9380 /* make sure pthread_create() isn't just a stub */
9381 status = pthread_create(&t, ATTR, task, NULL);
9382 if( status ) exit( status );
9384 /* give the thread a chance to complete...
9385 * it should remain joinable and hence detachable
9389 /* make sure pthread_detach() isn't just a stub */
9390 #if HAVE_PTHREADS_D4
9391 status = pthread_detach( &t );
9393 status = pthread_detach( t );
9396 #ifdef HAVE_LINUX_THREADS
9397 pthread_kill_other_threads_np();
9405 if { (eval echo configure:9406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9407 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9409 echo "configure: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9412 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9423 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9425 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9426 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9427 ol_link_threads=posix
9431 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9432 if test "$ol_link_threads" = no ; then
9433 # try -lpthreads -lmach -lexc
9434 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9435 echo "configure:9436: checking for pthread link with -lpthreads -lmach -lexc" >&5
9436 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9437 echo $ac_n "(cached) $ac_c" 1>&6
9442 LIBS="-lpthreads -lmach -lexc $LIBS"
9444 if test "$cross_compiling" = yes; then
9445 cat > conftest.$ac_ext <<EOF
9446 #line 9447 "configure"
9447 #include "confdefs.h"
9448 /* pthread test headers */
9449 #include <pthread.h>
9451 #define NULL (void*)0
9454 static void *task(p)
9457 return (void *) (p == NULL);
9462 /* pthread test function */
9465 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9466 /* This system (e.g. AIX) defaults detached; must override */
9467 pthread_attr_t attr;
9469 status = pthread_attr_init(&attr);
9470 if( status ) exit( status );
9472 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9473 if( status ) exit( status );
9476 #elif defined( HAVE_PTHREADS_D4 )
9477 # define ATTR pthread_attr_default
9482 /* make sure pthread_create() isn't just a stub */
9483 status = pthread_create(&t, ATTR, task, NULL);
9484 if( status ) exit( status );
9486 /* give the thread a chance to complete...
9487 * it should remain joinable and hence detachable
9491 /* make sure pthread_detach() isn't just a stub */
9492 #if HAVE_PTHREADS_D4
9493 status = pthread_detach( &t );
9495 status = pthread_detach( t );
9498 #ifdef HAVE_LINUX_THREADS
9499 pthread_kill_other_threads_np();
9506 if { (eval echo configure:9507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9508 ol_cv_pthread_lpthreads_lmach_lexc=yes
9510 echo "configure: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9513 ol_cv_pthread_lpthreads_lmach_lexc=no
9517 cat > conftest.$ac_ext <<EOF
9518 #line 9519 "configure"
9519 #include "confdefs.h"
9520 /* pthread test headers */
9521 #include <pthread.h>
9523 #define NULL (void*)0
9526 static void *task(p)
9529 return (void *) (p == NULL);
9533 int main(argc, argv)
9538 /* pthread test function */
9541 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9542 /* This system (e.g. AIX) defaults detached; must override */
9543 pthread_attr_t attr;
9545 status = pthread_attr_init(&attr);
9546 if( status ) exit( status );
9548 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9549 if( status ) exit( status );
9552 #elif defined( HAVE_PTHREADS_D4 )
9553 # define ATTR pthread_attr_default
9558 /* make sure pthread_create() isn't just a stub */
9559 status = pthread_create(&t, ATTR, task, NULL);
9560 if( status ) exit( status );
9562 /* give the thread a chance to complete...
9563 * it should remain joinable and hence detachable
9567 /* make sure pthread_detach() isn't just a stub */
9568 #if HAVE_PTHREADS_D4
9569 status = pthread_detach( &t );
9571 status = pthread_detach( t );
9574 #ifdef HAVE_LINUX_THREADS
9575 pthread_kill_other_threads_np();
9583 if { (eval echo configure:9584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9585 ol_cv_pthread_lpthreads_lmach_lexc=yes
9587 echo "configure: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9590 ol_cv_pthread_lpthreads_lmach_lexc=no
9601 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9603 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9604 ol_link_pthreads="-lpthreads -lmach -lexc"
9605 ol_link_threads=posix
9609 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9610 if test "$ol_link_threads" = no ; then
9611 # try -lpthreads -lexc
9612 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9613 echo "configure:9614: checking for pthread link with -lpthreads -lexc" >&5
9614 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9615 echo $ac_n "(cached) $ac_c" 1>&6
9620 LIBS="-lpthreads -lexc $LIBS"
9622 if test "$cross_compiling" = yes; then
9623 cat > conftest.$ac_ext <<EOF
9624 #line 9625 "configure"
9625 #include "confdefs.h"
9626 /* pthread test headers */
9627 #include <pthread.h>
9629 #define NULL (void*)0
9632 static void *task(p)
9635 return (void *) (p == NULL);
9640 /* pthread test function */
9643 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9644 /* This system (e.g. AIX) defaults detached; must override */
9645 pthread_attr_t attr;
9647 status = pthread_attr_init(&attr);
9648 if( status ) exit( status );
9650 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9651 if( status ) exit( status );
9654 #elif defined( HAVE_PTHREADS_D4 )
9655 # define ATTR pthread_attr_default
9660 /* make sure pthread_create() isn't just a stub */
9661 status = pthread_create(&t, ATTR, task, NULL);
9662 if( status ) exit( status );
9664 /* give the thread a chance to complete...
9665 * it should remain joinable and hence detachable
9669 /* make sure pthread_detach() isn't just a stub */
9670 #if HAVE_PTHREADS_D4
9671 status = pthread_detach( &t );
9673 status = pthread_detach( t );
9676 #ifdef HAVE_LINUX_THREADS
9677 pthread_kill_other_threads_np();
9684 if { (eval echo configure:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9686 ol_cv_pthread_lpthreads_lexc=yes
9688 echo "configure: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9691 ol_cv_pthread_lpthreads_lexc=no
9695 cat > conftest.$ac_ext <<EOF
9696 #line 9697 "configure"
9697 #include "confdefs.h"
9698 /* pthread test headers */
9699 #include <pthread.h>
9701 #define NULL (void*)0
9704 static void *task(p)
9707 return (void *) (p == NULL);
9711 int main(argc, argv)
9716 /* pthread test function */
9719 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9720 /* This system (e.g. AIX) defaults detached; must override */
9721 pthread_attr_t attr;
9723 status = pthread_attr_init(&attr);
9724 if( status ) exit( status );
9726 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9727 if( status ) exit( status );
9730 #elif defined( HAVE_PTHREADS_D4 )
9731 # define ATTR pthread_attr_default
9736 /* make sure pthread_create() isn't just a stub */
9737 status = pthread_create(&t, ATTR, task, NULL);
9738 if( status ) exit( status );
9740 /* give the thread a chance to complete...
9741 * it should remain joinable and hence detachable
9745 /* make sure pthread_detach() isn't just a stub */
9746 #if HAVE_PTHREADS_D4
9747 status = pthread_detach( &t );
9749 status = pthread_detach( t );
9752 #ifdef HAVE_LINUX_THREADS
9753 pthread_kill_other_threads_np();
9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9763 ol_cv_pthread_lpthreads_lexc=yes
9765 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9768 ol_cv_pthread_lpthreads_lexc=no
9779 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9781 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9782 ol_link_pthreads="-lpthreads -lexc"
9783 ol_link_threads=posix
9788 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9789 if test "$ol_link_threads" = no ; then
9791 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9792 echo "configure:9793: checking for pthread link with -lpthreads" >&5
9793 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9794 echo $ac_n "(cached) $ac_c" 1>&6
9799 LIBS="-lpthreads $LIBS"
9801 if test "$cross_compiling" = yes; then
9802 cat > conftest.$ac_ext <<EOF
9803 #line 9804 "configure"
9804 #include "confdefs.h"
9805 /* pthread test headers */
9806 #include <pthread.h>
9808 #define NULL (void*)0
9811 static void *task(p)
9814 return (void *) (p == NULL);
9819 /* pthread test function */
9822 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9823 /* This system (e.g. AIX) defaults detached; must override */
9824 pthread_attr_t attr;
9826 status = pthread_attr_init(&attr);
9827 if( status ) exit( status );
9829 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9830 if( status ) exit( status );
9833 #elif defined( HAVE_PTHREADS_D4 )
9834 # define ATTR pthread_attr_default
9839 /* make sure pthread_create() isn't just a stub */
9840 status = pthread_create(&t, ATTR, task, NULL);
9841 if( status ) exit( status );
9843 /* give the thread a chance to complete...
9844 * it should remain joinable and hence detachable
9848 /* make sure pthread_detach() isn't just a stub */
9849 #if HAVE_PTHREADS_D4
9850 status = pthread_detach( &t );
9852 status = pthread_detach( t );
9855 #ifdef HAVE_LINUX_THREADS
9856 pthread_kill_other_threads_np();
9863 if { (eval echo configure:9864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9865 ol_cv_pthread_lib_lpthreads=yes
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9870 ol_cv_pthread_lib_lpthreads=no
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 /* pthread test headers */
9878 #include <pthread.h>
9880 #define NULL (void*)0
9883 static void *task(p)
9886 return (void *) (p == NULL);
9890 int main(argc, argv)
9895 /* pthread test function */
9898 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9899 /* This system (e.g. AIX) defaults detached; must override */
9900 pthread_attr_t attr;
9902 status = pthread_attr_init(&attr);
9903 if( status ) exit( status );
9905 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9906 if( status ) exit( status );
9909 #elif defined( HAVE_PTHREADS_D4 )
9910 # define ATTR pthread_attr_default
9915 /* make sure pthread_create() isn't just a stub */
9916 status = pthread_create(&t, ATTR, task, NULL);
9917 if( status ) exit( status );
9919 /* give the thread a chance to complete...
9920 * it should remain joinable and hence detachable
9924 /* make sure pthread_detach() isn't just a stub */
9925 #if HAVE_PTHREADS_D4
9926 status = pthread_detach( &t );
9928 status = pthread_detach( t );
9931 #ifdef HAVE_LINUX_THREADS
9932 pthread_kill_other_threads_np();
9940 if { (eval echo configure:9941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9942 ol_cv_pthread_lib_lpthreads=yes
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9947 ol_cv_pthread_lib_lpthreads=no
9958 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9960 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9961 ol_link_pthreads="-lpthreads"
9962 ol_link_threads=posix
9967 if test $ol_link_threads != no ; then
9968 cat >> confdefs.h <<\EOF
9969 #define HAVE_PTHREADS 1
9973 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9975 save_CPPFLAGS="$CPPFLAGS"
9977 LIBS="$LTHREAD_LIBS $LIBS"
9979 for ac_func in sched_yield pthread_yield
9981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9982 echo "configure:9983: checking for $ac_func" >&5
9983 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9984 echo $ac_n "(cached) $ac_c" 1>&6
9986 cat > conftest.$ac_ext <<EOF
9987 #line 9988 "configure"
9988 #include "confdefs.h"
9989 /* System header to define __stub macros and hopefully few prototypes,
9990 which can conflict with char $ac_func(); below. */
9992 /* Override any gcc2 internal prototype to avoid an error. */
9993 /* We use char because int might match the return type of a gcc2
9994 builtin and then its argument prototype would still apply. */
10000 /* The GNU C library defines this for functions which it implements
10001 to always fail with ENOSYS. Some functions are actually named
10002 something starting with __ and the normal name is an alias. */
10003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10011 if { (eval echo configure:10012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10013 eval "ac_cv_func_$ac_func=yes"
10015 echo "configure: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10018 eval "ac_cv_func_$ac_func=no"
10023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10024 echo "$ac_t""yes" 1>&6
10025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10026 cat >> confdefs.h <<EOF
10027 #define $ac_tr_func 1
10031 echo "$ac_t""no" 1>&6
10036 if test $ac_cv_func_sched_yield = no -a \
10037 $ac_cv_func_pthread_yield = no ; then
10038 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10039 echo "configure:10040: checking for sched_yield in -lrt" >&5
10040 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10041 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10042 echo $ac_n "(cached) $ac_c" 1>&6
10044 ac_save_LIBS="$LIBS"
10046 cat > conftest.$ac_ext <<EOF
10047 #line 10048 "configure"
10048 #include "confdefs.h"
10049 /* Override any gcc2 internal prototype to avoid an error. */
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10052 char sched_yield();
10058 if { (eval echo configure:10059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10060 eval "ac_cv_lib_$ac_lib_var=yes"
10062 echo "configure: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10065 eval "ac_cv_lib_$ac_lib_var=no"
10068 LIBS="$ac_save_LIBS"
10071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10072 echo "$ac_t""yes" 1>&6
10073 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10074 cat >> confdefs.h <<\EOF
10075 #define HAVE_SCHED_YIELD 1
10078 ac_cv_func_sched_yield=yes
10080 echo "$ac_t""no" 1>&6
10081 ac_cv_func_sched_yield=no
10085 if test $ac_cv_func_sched_yield = no -a \
10086 $ac_cv_func_pthread_yield = no ; then
10087 for ac_func in thr_yield
10089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10090 echo "configure:10091: checking for $ac_func" >&5
10091 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10092 echo $ac_n "(cached) $ac_c" 1>&6
10094 cat > conftest.$ac_ext <<EOF
10095 #line 10096 "configure"
10096 #include "confdefs.h"
10097 /* System header to define __stub macros and hopefully few prototypes,
10098 which can conflict with char $ac_func(); below. */
10099 #include <assert.h>
10100 /* Override any gcc2 internal prototype to avoid an error. */
10101 /* We use char because int might match the return type of a gcc2
10102 builtin and then its argument prototype would still apply. */
10108 /* The GNU C library defines this for functions which it implements
10109 to always fail with ENOSYS. Some functions are actually named
10110 something starting with __ and the normal name is an alias. */
10111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10119 if { (eval echo configure:10120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10121 eval "ac_cv_func_$ac_func=yes"
10123 echo "configure: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
10126 eval "ac_cv_func_$ac_func=no"
10131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10132 echo "$ac_t""yes" 1>&6
10133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10134 cat >> confdefs.h <<EOF
10135 #define $ac_tr_func 1
10139 echo "$ac_t""no" 1>&6
10144 if test $ac_cv_func_sched_yield = no -a \
10145 $ac_cv_func_pthread_yield = no -a \
10146 "$ac_cv_func_thr_yield" = no ; then
10147 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10150 for ac_func in pthread_kill pthread_rwlock_destroy
10152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10153 echo "configure:10154: checking for $ac_func" >&5
10154 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10155 echo $ac_n "(cached) $ac_c" 1>&6
10157 cat > conftest.$ac_ext <<EOF
10158 #line 10159 "configure"
10159 #include "confdefs.h"
10160 /* System header to define __stub macros and hopefully few prototypes,
10161 which can conflict with char $ac_func(); below. */
10162 #include <assert.h>
10163 /* Override any gcc2 internal prototype to avoid an error. */
10164 /* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10171 /* The GNU C library defines this for functions which it implements
10172 to always fail with ENOSYS. Some functions are actually named
10173 something starting with __ and the normal name is an alias. */
10174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10182 if { (eval echo configure:10183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10184 eval "ac_cv_func_$ac_func=yes"
10186 echo "configure: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10189 eval "ac_cv_func_$ac_func=no"
10194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10195 echo "$ac_t""yes" 1>&6
10196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10197 cat >> confdefs.h <<EOF
10198 #define $ac_tr_func 1
10202 echo "$ac_t""no" 1>&6
10207 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10208 echo "configure:10209: checking for pthread_detach with <pthread.h>" >&5
10209 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10213 cat > conftest.$ac_ext <<EOF
10214 #line 10215 "configure"
10215 #include "confdefs.h"
10217 #include <pthread.h>
10219 #define NULL (void*)0
10223 pthread_detach(NULL);
10226 if { (eval echo configure:10227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10228 ol_cv_func_pthread_detach=yes
10230 echo "configure: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10233 ol_cv_func_pthread_detach=no
10239 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10241 if test $ol_cv_func_pthread_detach = no ; then
10242 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10245 cat >> confdefs.h <<\EOF
10246 #define HAVE_PTHREAD_DETACH 1
10251 pthread_setconcurrency \
10252 pthread_getconcurrency \
10253 thr_setconcurrency \
10254 thr_getconcurrency \
10257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10258 echo "configure:10259: checking for $ac_func" >&5
10259 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10260 echo $ac_n "(cached) $ac_c" 1>&6
10262 cat > conftest.$ac_ext <<EOF
10263 #line 10264 "configure"
10264 #include "confdefs.h"
10265 /* System header to define __stub macros and hopefully few prototypes,
10266 which can conflict with char $ac_func(); below. */
10267 #include <assert.h>
10268 /* Override any gcc2 internal prototype to avoid an error. */
10269 /* We use char because int might match the return type of a gcc2
10270 builtin and then its argument prototype would still apply. */
10276 /* The GNU C library defines this for functions which it implements
10277 to always fail with ENOSYS. Some functions are actually named
10278 something starting with __ and the normal name is an alias. */
10279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10287 if { (eval echo configure:10288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10289 eval "ac_cv_func_$ac_func=yes"
10291 echo "configure: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10294 eval "ac_cv_func_$ac_func=no"
10299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10300 echo "$ac_t""yes" 1>&6
10301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10302 cat >> confdefs.h <<EOF
10303 #define $ac_tr_func 1
10307 echo "$ac_t""no" 1>&6
10313 for ac_func in pthread_kill_other_threads_np
10315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10316 echo "configure:10317: checking for $ac_func" >&5
10317 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10318 echo $ac_n "(cached) $ac_c" 1>&6
10320 cat > conftest.$ac_ext <<EOF
10321 #line 10322 "configure"
10322 #include "confdefs.h"
10323 /* System header to define __stub macros and hopefully few prototypes,
10324 which can conflict with char $ac_func(); below. */
10325 #include <assert.h>
10326 /* Override any gcc2 internal prototype to avoid an error. */
10327 /* We use char because int might match the return type of a gcc2
10328 builtin and then its argument prototype would still apply. */
10334 /* The GNU C library defines this for functions which it implements
10335 to always fail with ENOSYS. Some functions are actually named
10336 something starting with __ and the normal name is an alias. */
10337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10345 if { (eval echo configure:10346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10347 eval "ac_cv_func_$ac_func=yes"
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10352 eval "ac_cv_func_$ac_func=no"
10357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10358 echo "$ac_t""yes" 1>&6
10359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10360 cat >> confdefs.h <<EOF
10361 #define $ac_tr_func 1
10365 echo "$ac_t""no" 1>&6
10369 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10370 echo "configure:10371: checking for LinuxThreads implementation" >&5
10371 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10372 echo $ac_n "(cached) $ac_c" 1>&6
10374 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10377 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10382 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10383 echo "configure:10384: checking for LinuxThreads consistency" >&5
10384 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10385 echo $ac_n "(cached) $ac_c" 1>&6
10388 if test $ol_cv_header_linux_threads = yes -a \
10389 $ol_cv_sys_linux_threads = yes; then
10390 ol_cv_linux_threads=yes
10391 elif test $ol_cv_header_linux_threads = no -a \
10392 $ol_cv_sys_linux_threads = no; then
10393 ol_cv_linux_threads=no
10395 ol_cv_linux_threads=error
10400 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10403 if test $ol_cv_linux_threads = error; then
10404 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10407 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10408 echo "configure:10409: checking if pthread_create() works" >&5
10409 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10413 if test "$cross_compiling" = yes; then
10414 ol_cv_pthread_create_works=yes
10416 cat > conftest.$ac_ext <<EOF
10417 #line 10418 "configure"
10418 #include "confdefs.h"
10419 /* pthread test headers */
10420 #include <pthread.h>
10422 #define NULL (void*)0
10425 static void *task(p)
10428 return (void *) (p == NULL);
10432 int main(argc, argv)
10437 /* pthread test function */
10440 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10441 /* This system (e.g. AIX) defaults detached; must override */
10442 pthread_attr_t attr;
10444 status = pthread_attr_init(&attr);
10445 if( status ) exit( status );
10447 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10448 if( status ) exit( status );
10450 # define ATTR &attr
10451 #elif defined( HAVE_PTHREADS_D4 )
10452 # define ATTR pthread_attr_default
10457 /* make sure pthread_create() isn't just a stub */
10458 status = pthread_create(&t, ATTR, task, NULL);
10459 if( status ) exit( status );
10461 /* give the thread a chance to complete...
10462 * it should remain joinable and hence detachable
10466 /* make sure pthread_detach() isn't just a stub */
10467 #if HAVE_PTHREADS_D4
10468 status = pthread_detach( &t );
10470 status = pthread_detach( t );
10473 #ifdef HAVE_LINUX_THREADS
10474 pthread_kill_other_threads_np();
10482 if { (eval echo configure:10483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10484 ol_cv_pthread_create_works=yes
10486 echo "configure: failed program was:" >&5
10487 cat conftest.$ac_ext >&5
10489 ol_cv_pthread_create_works=no
10496 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10498 if test $ol_cv_pthread_create_works = no ; then
10499 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10502 if test $ol_with_yielding_select = auto ; then
10503 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10504 echo "configure:10505: checking if select yields when using pthreads" >&5
10505 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10506 echo $ac_n "(cached) $ac_c" 1>&6
10509 if test "$cross_compiling" = yes; then
10510 ol_cv_pthread_select_yields=cross
10512 cat > conftest.$ac_ext <<EOF
10513 #line 10514 "configure"
10514 #include "confdefs.h"
10516 #include <sys/types.h>
10517 #include <sys/time.h>
10518 #include <unistd.h>
10519 #include <pthread.h>
10521 #define NULL (void*) 0
10524 static int fildes[2];
10526 static void *task(p)
10538 FD_SET(fildes[0], &rfds);
10540 /* we're not interested in any fds */
10541 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10548 exit(0); /* if we exit here, the select blocked the whole process */
10551 int main(argc, argv)
10557 /* create a pipe to select */
10558 if(pipe(&fildes[0])) {
10563 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10564 (void) pthread_setconcurrency(2);
10566 #ifdef HAVE_THR_SETCONCURRENCY
10567 /* Set Solaris LWP concurrency to 2 */
10568 thr_setconcurrency(2);
10572 #if HAVE_PTHREADS_D4
10573 pthread_create(&t, pthread_attr_default, task, NULL);
10575 pthread_create(&t, NULL, task, NULL);
10578 #if HAVE_SCHED_YIELD
10579 sched_yield(); /* make sure task runs first */
10581 #ifdef HAVE_PTHREAD_YIELD
10582 pthread_yield(); /* make sure task runs first */
10589 if { (eval echo configure:10590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10591 ol_cv_pthread_select_yields=no
10593 echo "configure: failed program was:" >&5
10594 cat conftest.$ac_ext >&5
10596 ol_cv_pthread_select_yields=yes
10603 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10605 if test $ol_cv_pthread_select_yields = cross ; then
10606 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10609 if test $ol_cv_pthread_select_yields = yes ; then
10610 ol_with_yielding_select=yes
10614 CPPFLAGS="$save_CPPFLAGS"
10617 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10621 if test $ol_with_threads = posix ; then
10622 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10626 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10627 -o $ol_with_threads = mach ; then
10629 for ac_hdr in mach/cthreads.h
10631 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10633 echo "configure:10634: checking for $ac_hdr" >&5
10634 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10635 echo $ac_n "(cached) $ac_c" 1>&6
10637 cat > conftest.$ac_ext <<EOF
10638 #line 10639 "configure"
10639 #include "confdefs.h"
10642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10643 { (eval echo configure:10644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10645 if test -z "$ac_err"; then
10647 eval "ac_cv_header_$ac_safe=yes"
10650 echo "configure: failed program was:" >&5
10651 cat conftest.$ac_ext >&5
10653 eval "ac_cv_header_$ac_safe=no"
10657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10658 echo "$ac_t""yes" 1>&6
10659 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10660 cat >> confdefs.h <<EOF
10661 #define $ac_tr_hdr 1
10665 echo "$ac_t""no" 1>&6
10669 if test $ac_cv_header_mach_cthreads_h = yes ; then
10670 ol_with_threads=found
10672 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10673 echo "configure:10674: checking for cthread_fork" >&5
10674 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10675 echo $ac_n "(cached) $ac_c" 1>&6
10677 cat > conftest.$ac_ext <<EOF
10678 #line 10679 "configure"
10679 #include "confdefs.h"
10680 /* System header to define __stub macros and hopefully few prototypes,
10681 which can conflict with char cthread_fork(); below. */
10682 #include <assert.h>
10683 /* Override any gcc2 internal prototype to avoid an error. */
10684 /* We use char because int might match the return type of a gcc2
10685 builtin and then its argument prototype would still apply. */
10686 char cthread_fork();
10691 /* The GNU C library defines this for functions which it implements
10692 to always fail with ENOSYS. Some functions are actually named
10693 something starting with __ and the normal name is an alias. */
10694 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10702 if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10704 eval "ac_cv_func_cthread_fork=yes"
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10709 eval "ac_cv_func_cthread_fork=no"
10714 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10715 echo "$ac_t""yes" 1>&6
10716 ol_link_threads=yes
10718 echo "$ac_t""no" 1>&6
10722 if test $ol_link_threads = no ; then
10723 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10724 echo "configure:10725: checking for cthread_fork with -all_load" >&5
10725 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10726 echo $ac_n "(cached) $ac_c" 1>&6
10730 LIBS="-all_load $LIBS"
10731 cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10734 #include <mach/cthreads.h>
10737 cthread_fork((void *)0, (void *)0);
10741 if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10743 ol_cv_cthread_all_load=yes
10745 echo "configure: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10748 ol_cv_cthread_all_load=no
10755 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10757 if test $ol_cv_cthread_all_load = yes ; then
10758 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10759 ol_link_threads=mach
10763 if test $ol_link_threads != no ; then
10764 : check for cthread specific functionality here
10765 cat >> confdefs.h <<\EOF
10766 #define HAVE_MACH_CTHREADS 1
10770 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10774 if test $ol_with_threads = mach ; then
10775 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10779 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10780 -o $ol_with_threads = pth ; then
10782 for ac_hdr in pth.h
10784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10786 echo "configure:10787: checking for $ac_hdr" >&5
10787 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10788 echo $ac_n "(cached) $ac_c" 1>&6
10790 cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure"
10792 #include "confdefs.h"
10795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10796 { (eval echo configure:10797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10798 if test -z "$ac_err"; then
10800 eval "ac_cv_header_$ac_safe=yes"
10803 echo "configure: failed program was:" >&5
10804 cat conftest.$ac_ext >&5
10806 eval "ac_cv_header_$ac_safe=no"
10810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10811 echo "$ac_t""yes" 1>&6
10812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10813 cat >> confdefs.h <<EOF
10814 #define $ac_tr_hdr 1
10818 echo "$ac_t""no" 1>&6
10823 if test $ac_cv_header_pth_h = yes ; then
10824 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10825 echo "configure:10826: checking for pth_version in -lpth" >&5
10826 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10827 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10828 echo $ac_n "(cached) $ac_c" 1>&6
10830 ac_save_LIBS="$LIBS"
10832 cat > conftest.$ac_ext <<EOF
10833 #line 10834 "configure"
10834 #include "confdefs.h"
10835 /* Override any gcc2 internal prototype to avoid an error. */
10836 /* We use char because int might match the return type of a gcc2
10837 builtin and then its argument prototype would still apply. */
10838 char pth_version();
10844 if { (eval echo configure:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10846 eval "ac_cv_lib_$ac_lib_var=yes"
10848 echo "configure: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10851 eval "ac_cv_lib_$ac_lib_var=no"
10854 LIBS="$ac_save_LIBS"
10857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10858 echo "$ac_t""yes" 1>&6
10861 echo "$ac_t""no" 1>&6
10866 if test $have_pth = yes ; then
10867 cat >> confdefs.h <<\EOF
10868 #define HAVE_GNU_PTH 1
10871 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10872 ol_link_threads=pth
10874 if test $ol_with_yielding_select = auto ; then
10875 ol_with_yielding_select=yes
10881 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10882 -o $ol_with_threads = lwp ; then
10884 for ac_hdr in thread.h synch.h
10886 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10887 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10888 echo "configure:10889: checking for $ac_hdr" >&5
10889 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10890 echo $ac_n "(cached) $ac_c" 1>&6
10892 cat > conftest.$ac_ext <<EOF
10893 #line 10894 "configure"
10894 #include "confdefs.h"
10897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10898 { (eval echo configure:10899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10900 if test -z "$ac_err"; then
10902 eval "ac_cv_header_$ac_safe=yes"
10905 echo "configure: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10908 eval "ac_cv_header_$ac_safe=no"
10912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10913 echo "$ac_t""yes" 1>&6
10914 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10915 cat >> confdefs.h <<EOF
10916 #define $ac_tr_hdr 1
10920 echo "$ac_t""no" 1>&6
10924 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10925 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10926 echo "configure:10927: checking for thr_create in -lthread" >&5
10927 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10928 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10929 echo $ac_n "(cached) $ac_c" 1>&6
10931 ac_save_LIBS="$LIBS"
10932 LIBS="-lthread $LIBS"
10933 cat > conftest.$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10936 /* Override any gcc2 internal prototype to avoid an error. */
10937 /* We use char because int might match the return type of a gcc2
10938 builtin and then its argument prototype would still apply. */
10945 if { (eval echo configure:10946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10947 eval "ac_cv_lib_$ac_lib_var=yes"
10949 echo "configure: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
10952 eval "ac_cv_lib_$ac_lib_var=no"
10955 LIBS="$ac_save_LIBS"
10958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10959 echo "$ac_t""yes" 1>&6
10962 echo "$ac_t""no" 1>&6
10967 if test $have_thr = yes ; then
10968 cat >> confdefs.h <<\EOF
10972 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10973 ol_link_threads=thr
10975 if test $ol_with_yielding_select = auto ; then
10976 ol_with_yielding_select=yes
10980 thr_setconcurrency \
10981 thr_getconcurrency \
10984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10985 echo "configure:10986: checking for $ac_func" >&5
10986 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10987 echo $ac_n "(cached) $ac_c" 1>&6
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 /* System header to define __stub macros and hopefully few prototypes,
10993 which can conflict with char $ac_func(); below. */
10994 #include <assert.h>
10995 /* Override any gcc2 internal prototype to avoid an error. */
10996 /* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
11003 /* The GNU C library defines this for functions which it implements
11004 to always fail with ENOSYS. Some functions are actually named
11005 something starting with __ and the normal name is an alias. */
11006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11014 if { (eval echo configure:11015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11016 eval "ac_cv_func_$ac_func=yes"
11018 echo "configure: failed program was:" >&5
11019 cat conftest.$ac_ext >&5
11021 eval "ac_cv_func_$ac_func=no"
11026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11027 echo "$ac_t""yes" 1>&6
11028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11029 cat >> confdefs.h <<EOF
11030 #define $ac_tr_func 1
11034 echo "$ac_t""no" 1>&6
11041 for ac_hdr in lwp/lwp.h
11043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11045 echo "configure:11046: checking for $ac_hdr" >&5
11046 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11047 echo $ac_n "(cached) $ac_c" 1>&6
11049 cat > conftest.$ac_ext <<EOF
11050 #line 11051 "configure"
11051 #include "confdefs.h"
11054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11055 { (eval echo configure:11056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11057 if test -z "$ac_err"; then
11059 eval "ac_cv_header_$ac_safe=yes"
11062 echo "configure: failed program was:" >&5
11063 cat conftest.$ac_ext >&5
11065 eval "ac_cv_header_$ac_safe=no"
11069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11070 echo "$ac_t""yes" 1>&6
11071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11072 cat >> confdefs.h <<EOF
11073 #define $ac_tr_hdr 1
11077 echo "$ac_t""no" 1>&6
11081 if test $ac_cv_header_lwp_lwp_h = yes ; then
11082 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11083 echo "configure:11084: checking for lwp_create in -llwp" >&5
11084 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11085 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11086 echo $ac_n "(cached) $ac_c" 1>&6
11088 ac_save_LIBS="$LIBS"
11090 cat > conftest.$ac_ext <<EOF
11091 #line 11092 "configure"
11092 #include "confdefs.h"
11093 /* Override any gcc2 internal prototype to avoid an error. */
11094 /* We use char because int might match the return type of a gcc2
11095 builtin and then its argument prototype would still apply. */
11102 if { (eval echo configure:11103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11104 eval "ac_cv_lib_$ac_lib_var=yes"
11106 echo "configure: failed program was:" >&5
11107 cat conftest.$ac_ext >&5
11109 eval "ac_cv_lib_$ac_lib_var=no"
11112 LIBS="$ac_save_LIBS"
11115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11116 echo "$ac_t""yes" 1>&6
11119 echo "$ac_t""no" 1>&6
11124 if test $have_lwp = yes ; then
11125 cat >> confdefs.h <<\EOF
11129 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11130 ol_link_threads=lwp
11132 if test $ol_with_yielding_select = auto ; then
11133 ol_with_yielding_select=no
11139 if test $ol_with_yielding_select = yes ; then
11140 cat >> confdefs.h <<\EOF
11141 #define HAVE_YIELDING_SELECT 1
11146 if test $ol_with_threads = manual ; then
11147 ol_link_threads=yes
11149 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11151 for ac_hdr in pthread.h sched.h
11153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11155 echo "configure:11156: checking for $ac_hdr" >&5
11156 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11157 echo $ac_n "(cached) $ac_c" 1>&6
11159 cat > conftest.$ac_ext <<EOF
11160 #line 11161 "configure"
11161 #include "confdefs.h"
11164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11165 { (eval echo configure:11166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11167 if test -z "$ac_err"; then
11169 eval "ac_cv_header_$ac_safe=yes"
11172 echo "configure: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11175 eval "ac_cv_header_$ac_safe=no"
11179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11180 echo "$ac_t""yes" 1>&6
11181 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11182 cat >> confdefs.h <<EOF
11183 #define $ac_tr_hdr 1
11187 echo "$ac_t""no" 1>&6
11191 for ac_func in sched_yield pthread_yield
11193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11194 echo "configure:11195: checking for $ac_func" >&5
11195 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11201 /* System header to define __stub macros and hopefully few prototypes,
11202 which can conflict with char $ac_func(); below. */
11203 #include <assert.h>
11204 /* Override any gcc2 internal prototype to avoid an error. */
11205 /* We use char because int might match the return type of a gcc2
11206 builtin and then its argument prototype would still apply. */
11212 /* The GNU C library defines this for functions which it implements
11213 to always fail with ENOSYS. Some functions are actually named
11214 something starting with __ and the normal name is an alias. */
11215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11223 if { (eval echo configure:11224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11225 eval "ac_cv_func_$ac_func=yes"
11227 echo "configure: failed program was:" >&5
11228 cat conftest.$ac_ext >&5
11230 eval "ac_cv_func_$ac_func=no"
11235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11236 echo "$ac_t""yes" 1>&6
11237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11238 cat >> confdefs.h <<EOF
11239 #define $ac_tr_func 1
11243 echo "$ac_t""no" 1>&6
11248 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11249 echo "configure:11250: checking for LinuxThreads pthread.h" >&5
11250 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11253 cat > conftest.$ac_ext <<EOF
11254 #line 11255 "configure"
11255 #include "confdefs.h"
11256 #include <pthread.h>
11258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11259 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11261 ol_cv_header_linux_threads=yes
11264 ol_cv_header_linux_threads=no
11271 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11272 if test $ol_cv_header_linux_threads = yes; then
11273 cat >> confdefs.h <<\EOF
11274 #define HAVE_LINUX_THREADS 1
11280 for ac_hdr in mach/cthreads.h
11282 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11284 echo "configure:11285: checking for $ac_hdr" >&5
11285 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11286 echo $ac_n "(cached) $ac_c" 1>&6
11288 cat > conftest.$ac_ext <<EOF
11289 #line 11290 "configure"
11290 #include "confdefs.h"
11293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11294 { (eval echo configure:11295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11296 if test -z "$ac_err"; then
11298 eval "ac_cv_header_$ac_safe=yes"
11301 echo "configure: failed program was:" >&5
11302 cat conftest.$ac_ext >&5
11304 eval "ac_cv_header_$ac_safe=no"
11308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11309 echo "$ac_t""yes" 1>&6
11310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11311 cat >> confdefs.h <<EOF
11312 #define $ac_tr_hdr 1
11316 echo "$ac_t""no" 1>&6
11320 for ac_hdr in lwp/lwp.h
11322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11324 echo "configure:11325: checking for $ac_hdr" >&5
11325 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11326 echo $ac_n "(cached) $ac_c" 1>&6
11328 cat > conftest.$ac_ext <<EOF
11329 #line 11330 "configure"
11330 #include "confdefs.h"
11333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11334 { (eval echo configure:11335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11336 if test -z "$ac_err"; then
11338 eval "ac_cv_header_$ac_safe=yes"
11341 echo "configure: failed program was:" >&5
11342 cat conftest.$ac_ext >&5
11344 eval "ac_cv_header_$ac_safe=no"
11348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11349 echo "$ac_t""yes" 1>&6
11350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11351 cat >> confdefs.h <<EOF
11352 #define $ac_tr_hdr 1
11356 echo "$ac_t""no" 1>&6
11360 for ac_hdr in thread.h synch.h
11362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11364 echo "configure:11365: checking for $ac_hdr" >&5
11365 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11366 echo $ac_n "(cached) $ac_c" 1>&6
11368 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11374 { (eval echo configure:11375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11376 if test -z "$ac_err"; then
11378 eval "ac_cv_header_$ac_safe=yes"
11381 echo "configure: failed program was:" >&5
11382 cat conftest.$ac_ext >&5
11384 eval "ac_cv_header_$ac_safe=no"
11388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11389 echo "$ac_t""yes" 1>&6
11390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11391 cat >> confdefs.h <<EOF
11392 #define $ac_tr_hdr 1
11396 echo "$ac_t""no" 1>&6
11402 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11403 cat >> confdefs.h <<\EOF
11404 #define REENTRANT 1
11407 cat >> confdefs.h <<\EOF
11408 #define _REENTRANT 1
11411 cat >> confdefs.h <<\EOF
11412 #define THREAD_SAFE 1
11415 cat >> confdefs.h <<\EOF
11416 #define _THREAD_SAFE 1
11419 cat >> confdefs.h <<\EOF
11420 #define THREADSAFE 1
11423 cat >> confdefs.h <<\EOF
11424 #define _THREADSAFE 1
11427 cat >> confdefs.h <<\EOF
11428 #define _SGI_MP_SOURCE 1
11432 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11433 echo "configure:11434: checking for thread specific errno" >&5
11434 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11435 echo $ac_n "(cached) $ac_c" 1>&6
11438 cat > conftest.$ac_ext <<EOF
11439 #line 11440 "configure"
11440 #include "confdefs.h"
11446 if { (eval echo configure:11447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11448 ol_cv_errno_thread_specific=yes
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11453 ol_cv_errno_thread_specific=no
11459 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11461 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11462 echo "configure:11463: checking for thread specific h_errno" >&5
11463 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11464 echo $ac_n "(cached) $ac_c" 1>&6
11467 cat > conftest.$ac_ext <<EOF
11468 #line 11469 "configure"
11469 #include "confdefs.h"
11475 if { (eval echo configure:11476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11477 ol_cv_h_errno_thread_specific=yes
11479 echo "configure: failed program was:" >&5
11480 cat conftest.$ac_ext >&5
11482 ol_cv_h_errno_thread_specific=no
11488 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11490 if test $ol_cv_errno_thread_specific != yes \
11491 -o $ol_cv_h_errno_thread_specific != yes ; then
11492 LIBS="$LTHREAD_LIBS $LIBS"
11498 if test $ol_link_threads = no ; then
11499 if test $ol_with_threads = yes ; then
11500 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11503 if test $ol_with_threads = auto ; then
11504 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11508 cat >> confdefs.h <<\EOF
11509 #define NO_THREADS 1
11515 if test $ol_link_threads != no ; then
11516 cat >> confdefs.h <<\EOF
11517 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11524 if test $ol_with_ldbm_api = auto \
11525 -o $ol_with_ldbm_api = berkeley \
11526 -o $ol_with_ldbm_api = bcompat ; then
11528 if test $ol_with_ldbm_api = bcompat; then \
11529 ol_cv_berkeley_db=no
11530 for ac_hdr in db_185.h db.h
11532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11534 echo "configure:11535: checking for $ac_hdr" >&5
11535 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
11538 cat > conftest.$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11544 { (eval echo configure:11545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11546 if test -z "$ac_err"; then
11548 eval "ac_cv_header_$ac_safe=yes"
11551 echo "configure: failed program was:" >&5
11552 cat conftest.$ac_ext >&5
11554 eval "ac_cv_header_$ac_safe=no"
11558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11559 echo "$ac_t""yes" 1>&6
11560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11561 cat >> confdefs.h <<EOF
11562 #define $ac_tr_hdr 1
11566 echo "$ac_t""no" 1>&6
11570 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11571 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11572 echo "configure:11573: checking if Berkeley DB header compatibility" >&5
11573 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11574 echo $ac_n "(cached) $ac_c" 1>&6
11577 cat > conftest.$ac_ext <<EOF
11578 #line 11579 "configure"
11579 #include "confdefs.h"
11582 # include <db_185.h>
11587 /* this check could be improved */
11588 #ifndef DB_VERSION_MAJOR
11589 # define DB_VERSION_MAJOR 1
11592 #if DB_VERSION_MAJOR == 1
11597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11598 egrep "__db_version_1" >/dev/null 2>&1; then
11600 ol_cv_header_db1=yes
11603 ol_cv_header_db1=no
11609 echo "$ac_t""$ol_cv_header_db1" 1>&6
11611 if test $ol_cv_header_db1 = yes ; then
11613 if test $ol_cv_lib_db = no ; then
11614 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11615 echo "configure:11616: checking for Berkeley DB link (default)" >&5
11616 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11622 LIBS="$ol_DB_LIB $LIBS"
11624 cat > conftest.$ac_ext <<EOF
11625 #line 11626 "configure"
11626 #include "confdefs.h"
11628 #ifdef HAVE_DB_185_H
11629 # include <db_185.h>
11634 #ifndef DB_VERSION_MAJOR
11635 # define DB_VERSION_MAJOR 1
11639 #define NULL ((void*)0)
11644 #if DB_VERSION_MAJOR > 1
11647 int major, minor, patch;
11649 version = db_version( &major, &minor, &patch );
11651 if( major != DB_VERSION_MAJOR ||
11652 minor < DB_VERSION_MINOR )
11654 printf("Berkeley DB version mismatch\n"
11655 "\texpected: %s\n\tgot: %s\n",
11656 DB_VERSION_STRING, version);
11662 #if DB_VERSION_MAJOR > 2
11663 db_env_create( NULL, 0 );
11664 #elif DB_VERSION_MAJOR > 1
11665 db_appexit( NULL );
11667 (void) dbopen( NULL, 0, 0, 0, NULL);
11672 if { (eval echo configure:11673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11676 echo "configure: failed program was:" >&5
11677 cat conftest.$ac_ext >&5
11687 echo "$ac_t""$ol_cv_db_none" 1>&6
11689 if test $ol_cv_db_none = yes ; then
11694 if test $ol_cv_lib_db = no ; then
11695 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11696 echo "configure:11697: checking for Berkeley DB link (-ldb)" >&5
11697 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11698 echo $ac_n "(cached) $ac_c" 1>&6
11703 LIBS="$ol_DB_LIB $LIBS"
11705 cat > conftest.$ac_ext <<EOF
11706 #line 11707 "configure"
11707 #include "confdefs.h"
11709 #ifdef HAVE_DB_185_H
11710 # include <db_185.h>
11715 #ifndef DB_VERSION_MAJOR
11716 # define DB_VERSION_MAJOR 1
11720 #define NULL ((void*)0)
11725 #if DB_VERSION_MAJOR > 1
11728 int major, minor, patch;
11730 version = db_version( &major, &minor, &patch );
11732 if( major != DB_VERSION_MAJOR ||
11733 minor < DB_VERSION_MINOR )
11735 printf("Berkeley DB version mismatch\n"
11736 "\texpected: %s\n\tgot: %s\n",
11737 DB_VERSION_STRING, version);
11743 #if DB_VERSION_MAJOR > 2
11744 db_env_create( NULL, 0 );
11745 #elif DB_VERSION_MAJOR > 1
11746 db_appexit( NULL );
11748 (void) dbopen( NULL, 0, 0, 0, NULL);
11753 if { (eval echo configure:11754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11757 echo "configure: failed program was:" >&5
11758 cat conftest.$ac_ext >&5
11768 echo "$ac_t""$ol_cv_db_db" 1>&6
11770 if test $ol_cv_db_db = yes ; then
11775 if test $ol_cv_lib_db = no ; then
11776 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11777 echo "configure:11778: checking for Berkeley DB link (-ldb3)" >&5
11778 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11779 echo $ac_n "(cached) $ac_c" 1>&6
11784 LIBS="$ol_DB_LIB $LIBS"
11786 cat > conftest.$ac_ext <<EOF
11787 #line 11788 "configure"
11788 #include "confdefs.h"
11790 #ifdef HAVE_DB_185_H
11791 # include <db_185.h>
11796 #ifndef DB_VERSION_MAJOR
11797 # define DB_VERSION_MAJOR 1
11801 #define NULL ((void*)0)
11806 #if DB_VERSION_MAJOR > 1
11809 int major, minor, patch;
11811 version = db_version( &major, &minor, &patch );
11813 if( major != DB_VERSION_MAJOR ||
11814 minor < DB_VERSION_MINOR )
11816 printf("Berkeley DB version mismatch\n"
11817 "\texpected: %s\n\tgot: %s\n",
11818 DB_VERSION_STRING, version);
11824 #if DB_VERSION_MAJOR > 2
11825 db_env_create( NULL, 0 );
11826 #elif DB_VERSION_MAJOR > 1
11827 db_appexit( NULL );
11829 (void) dbopen( NULL, 0, 0, 0, NULL);
11834 if { (eval echo configure:11835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11838 echo "configure: failed program was:" >&5
11839 cat conftest.$ac_ext >&5
11849 echo "$ac_t""$ol_cv_db_db3" 1>&6
11851 if test $ol_cv_db_db3 = yes ; then
11856 if test $ol_cv_lib_db = no ; then
11857 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11858 echo "configure:11859: checking for Berkeley DB link (-ldb2)" >&5
11859 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11860 echo $ac_n "(cached) $ac_c" 1>&6
11865 LIBS="$ol_DB_LIB $LIBS"
11867 cat > conftest.$ac_ext <<EOF
11868 #line 11869 "configure"
11869 #include "confdefs.h"
11871 #ifdef HAVE_DB_185_H
11872 # include <db_185.h>
11877 #ifndef DB_VERSION_MAJOR
11878 # define DB_VERSION_MAJOR 1
11882 #define NULL ((void*)0)
11887 #if DB_VERSION_MAJOR > 1
11890 int major, minor, patch;
11892 version = db_version( &major, &minor, &patch );
11894 if( major != DB_VERSION_MAJOR ||
11895 minor < DB_VERSION_MINOR )
11897 printf("Berkeley DB version mismatch\n"
11898 "\texpected: %s\n\tgot: %s\n",
11899 DB_VERSION_STRING, version);
11905 #if DB_VERSION_MAJOR > 2
11906 db_env_create( NULL, 0 );
11907 #elif DB_VERSION_MAJOR > 1
11908 db_appexit( NULL );
11910 (void) dbopen( NULL, 0, 0, 0, NULL);
11915 if { (eval echo configure:11916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11919 echo "configure: failed program was:" >&5
11920 cat conftest.$ac_ext >&5
11930 echo "$ac_t""$ol_cv_db_db2" 1>&6
11932 if test $ol_cv_db_db2 = yes ; then
11937 if test $ol_cv_lib_db = no ; then
11938 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11939 echo "configure:11940: checking for Berkeley DB link (-ldb1)" >&5
11940 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11941 echo $ac_n "(cached) $ac_c" 1>&6
11946 LIBS="$ol_DB_LIB $LIBS"
11948 cat > conftest.$ac_ext <<EOF
11949 #line 11950 "configure"
11950 #include "confdefs.h"
11952 #ifdef HAVE_DB_185_H
11953 # include <db_185.h>
11958 #ifndef DB_VERSION_MAJOR
11959 # define DB_VERSION_MAJOR 1
11963 #define NULL ((void*)0)
11968 #if DB_VERSION_MAJOR > 1
11971 int major, minor, patch;
11973 version = db_version( &major, &minor, &patch );
11975 if( major != DB_VERSION_MAJOR ||
11976 minor < DB_VERSION_MINOR )
11978 printf("Berkeley DB version mismatch\n"
11979 "\texpected: %s\n\tgot: %s\n",
11980 DB_VERSION_STRING, version);
11986 #if DB_VERSION_MAJOR > 2
11987 db_env_create( NULL, 0 );
11988 #elif DB_VERSION_MAJOR > 1
11989 db_appexit( NULL );
11991 (void) dbopen( NULL, 0, 0, 0, NULL);
11996 if { (eval echo configure:11997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12000 echo "configure: failed program was:" >&5
12001 cat conftest.$ac_ext >&5
12011 echo "$ac_t""$ol_cv_db_db1" 1>&6
12013 if test $ol_cv_db_db1 = yes ; then
12019 if test "$ol_cv_lib_db" != no ; then
12020 ol_cv_berkeley_db=yes
12026 ol_cv_berkeley_db=no
12029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12031 echo "configure:12032: checking for $ac_hdr" >&5
12032 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12033 echo $ac_n "(cached) $ac_c" 1>&6
12035 cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure"
12037 #include "confdefs.h"
12040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12041 { (eval echo configure:12042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12043 if test -z "$ac_err"; then
12045 eval "ac_cv_header_$ac_safe=yes"
12048 echo "configure: failed program was:" >&5
12049 cat conftest.$ac_ext >&5
12051 eval "ac_cv_header_$ac_safe=no"
12055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12056 echo "$ac_t""yes" 1>&6
12057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12058 cat >> confdefs.h <<EOF
12059 #define $ac_tr_hdr 1
12063 echo "$ac_t""no" 1>&6
12067 if test $ac_cv_header_db_h = yes; then
12069 if test $ol_cv_lib_db = no ; then
12070 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12071 echo "configure:12072: checking for Berkeley DB link (default)" >&5
12072 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12073 echo $ac_n "(cached) $ac_c" 1>&6
12078 LIBS="$ol_DB_LIB $LIBS"
12080 cat > conftest.$ac_ext <<EOF
12081 #line 12082 "configure"
12082 #include "confdefs.h"
12084 #ifdef HAVE_DB_185_H
12085 # include <db_185.h>
12090 #ifndef DB_VERSION_MAJOR
12091 # define DB_VERSION_MAJOR 1
12095 #define NULL ((void*)0)
12100 #if DB_VERSION_MAJOR > 1
12103 int major, minor, patch;
12105 version = db_version( &major, &minor, &patch );
12107 if( major != DB_VERSION_MAJOR ||
12108 minor < DB_VERSION_MINOR )
12110 printf("Berkeley DB version mismatch\n"
12111 "\texpected: %s\n\tgot: %s\n",
12112 DB_VERSION_STRING, version);
12118 #if DB_VERSION_MAJOR > 2
12119 db_env_create( NULL, 0 );
12120 #elif DB_VERSION_MAJOR > 1
12121 db_appexit( NULL );
12123 (void) dbopen( NULL, 0, 0, 0, NULL);
12128 if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12132 echo "configure: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12143 echo "$ac_t""$ol_cv_db_none" 1>&6
12145 if test $ol_cv_db_none = yes ; then
12150 if test $ol_cv_lib_db = no ; then
12151 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12152 echo "configure:12153: checking for Berkeley DB link (-ldb)" >&5
12153 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12154 echo $ac_n "(cached) $ac_c" 1>&6
12159 LIBS="$ol_DB_LIB $LIBS"
12161 cat > conftest.$ac_ext <<EOF
12162 #line 12163 "configure"
12163 #include "confdefs.h"
12165 #ifdef HAVE_DB_185_H
12166 # include <db_185.h>
12171 #ifndef DB_VERSION_MAJOR
12172 # define DB_VERSION_MAJOR 1
12176 #define NULL ((void*)0)
12181 #if DB_VERSION_MAJOR > 1
12184 int major, minor, patch;
12186 version = db_version( &major, &minor, &patch );
12188 if( major != DB_VERSION_MAJOR ||
12189 minor < DB_VERSION_MINOR )
12191 printf("Berkeley DB version mismatch\n"
12192 "\texpected: %s\n\tgot: %s\n",
12193 DB_VERSION_STRING, version);
12199 #if DB_VERSION_MAJOR > 2
12200 db_env_create( NULL, 0 );
12201 #elif DB_VERSION_MAJOR > 1
12202 db_appexit( NULL );
12204 (void) dbopen( NULL, 0, 0, 0, NULL);
12209 if { (eval echo configure:12210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12213 echo "configure: failed program was:" >&5
12214 cat conftest.$ac_ext >&5
12224 echo "$ac_t""$ol_cv_db_db" 1>&6
12226 if test $ol_cv_db_db = yes ; then
12231 if test $ol_cv_lib_db = no ; then
12232 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12233 echo "configure:12234: checking for Berkeley DB link (-ldb3)" >&5
12234 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12235 echo $ac_n "(cached) $ac_c" 1>&6
12240 LIBS="$ol_DB_LIB $LIBS"
12242 cat > conftest.$ac_ext <<EOF
12243 #line 12244 "configure"
12244 #include "confdefs.h"
12246 #ifdef HAVE_DB_185_H
12247 # include <db_185.h>
12252 #ifndef DB_VERSION_MAJOR
12253 # define DB_VERSION_MAJOR 1
12257 #define NULL ((void*)0)
12262 #if DB_VERSION_MAJOR > 1
12265 int major, minor, patch;
12267 version = db_version( &major, &minor, &patch );
12269 if( major != DB_VERSION_MAJOR ||
12270 minor < DB_VERSION_MINOR )
12272 printf("Berkeley DB version mismatch\n"
12273 "\texpected: %s\n\tgot: %s\n",
12274 DB_VERSION_STRING, version);
12280 #if DB_VERSION_MAJOR > 2
12281 db_env_create( NULL, 0 );
12282 #elif DB_VERSION_MAJOR > 1
12283 db_appexit( NULL );
12285 (void) dbopen( NULL, 0, 0, 0, NULL);
12290 if { (eval echo configure:12291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12294 echo "configure: failed program was:" >&5
12295 cat conftest.$ac_ext >&5
12305 echo "$ac_t""$ol_cv_db_db3" 1>&6
12307 if test $ol_cv_db_db3 = yes ; then
12312 if test $ol_cv_lib_db = no ; then
12313 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12314 echo "configure:12315: checking for Berkeley DB link (-ldb2)" >&5
12315 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12316 echo $ac_n "(cached) $ac_c" 1>&6
12321 LIBS="$ol_DB_LIB $LIBS"
12323 cat > conftest.$ac_ext <<EOF
12324 #line 12325 "configure"
12325 #include "confdefs.h"
12327 #ifdef HAVE_DB_185_H
12328 # include <db_185.h>
12333 #ifndef DB_VERSION_MAJOR
12334 # define DB_VERSION_MAJOR 1
12338 #define NULL ((void*)0)
12343 #if DB_VERSION_MAJOR > 1
12346 int major, minor, patch;
12348 version = db_version( &major, &minor, &patch );
12350 if( major != DB_VERSION_MAJOR ||
12351 minor < DB_VERSION_MINOR )
12353 printf("Berkeley DB version mismatch\n"
12354 "\texpected: %s\n\tgot: %s\n",
12355 DB_VERSION_STRING, version);
12361 #if DB_VERSION_MAJOR > 2
12362 db_env_create( NULL, 0 );
12363 #elif DB_VERSION_MAJOR > 1
12364 db_appexit( NULL );
12366 (void) dbopen( NULL, 0, 0, 0, NULL);
12371 if { (eval echo configure:12372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12375 echo "configure: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12386 echo "$ac_t""$ol_cv_db_db2" 1>&6
12388 if test $ol_cv_db_db2 = yes ; then
12393 if test $ol_cv_lib_db = no ; then
12394 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12395 echo "configure:12396: checking for Berkeley DB link (-ldb1)" >&5
12396 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12397 echo $ac_n "(cached) $ac_c" 1>&6
12402 LIBS="$ol_DB_LIB $LIBS"
12404 cat > conftest.$ac_ext <<EOF
12405 #line 12406 "configure"
12406 #include "confdefs.h"
12408 #ifdef HAVE_DB_185_H
12409 # include <db_185.h>
12414 #ifndef DB_VERSION_MAJOR
12415 # define DB_VERSION_MAJOR 1
12419 #define NULL ((void*)0)
12424 #if DB_VERSION_MAJOR > 1
12427 int major, minor, patch;
12429 version = db_version( &major, &minor, &patch );
12431 if( major != DB_VERSION_MAJOR ||
12432 minor < DB_VERSION_MINOR )
12434 printf("Berkeley DB version mismatch\n"
12435 "\texpected: %s\n\tgot: %s\n",
12436 DB_VERSION_STRING, version);
12442 #if DB_VERSION_MAJOR > 2
12443 db_env_create( NULL, 0 );
12444 #elif DB_VERSION_MAJOR > 1
12445 db_appexit( NULL );
12447 (void) dbopen( NULL, 0, 0, 0, NULL);
12452 if { (eval echo configure:12453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12456 echo "configure: failed program was:" >&5
12457 cat conftest.$ac_ext >&5
12467 echo "$ac_t""$ol_cv_db_db1" 1>&6
12469 if test $ol_cv_db_db1 = yes ; then
12475 if test "$ol_cv_lib_db" != no ; then
12476 ol_cv_berkeley_db=yes
12477 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12478 echo "configure:12479: checking for Berkeley DB thread support" >&5
12479 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12480 echo $ac_n "(cached) $ac_c" 1>&6
12484 if test $ol_cv_lib_db != yes ; then
12485 LIBS="$ol_cv_lib_db"
12488 if test "$cross_compiling" = yes; then
12489 ol_cv_berkeley_db_thread=cross
12491 cat > conftest.$ac_ext <<EOF
12492 #line 12493 "configure"
12493 #include "confdefs.h"
12495 #ifdef HAVE_DB_185_H
12501 #define NULL ((void *)0)
12506 u_int32_t flags = DB_CREATE | DB_INIT_CDB | DB_INIT_MPOOL |
12510 #ifdef DB_MPOOL_PRIVATE
12515 #if DB_VERSION_MAJOR > 2
12516 DB_ENV *env = NULL;
12518 rc = db_env_create( &env, 0 );
12521 printf("BerkeleyDB: %s\n", db_strerror(rc) );
12525 #ifdef DB_CDB_ALLDB
12526 rc = env->set_flags( env, DB_CDB_ALLDB, 1 );
12529 printf("BerkeleyDB: %s\n", db_strerror(rc) );
12534 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12535 rc = env->open( env, NULL, flags, 0 );
12537 rc = env->open( env, NULL, NULL, flags, 0 );
12541 rc = env->close( env, 0 );
12545 printf("BerkeleyDB: %s\n", db_strerror(rc) );
12551 memset( &env, '\0', sizeof(env) );
12553 rc = db_appinit( NULL, NULL, &env, flags );
12556 db_appexit( &env );
12559 unlink("__db_mpool.share");
12560 unlink("__db_lock.share");
12566 if { (eval echo configure:12567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12568 ol_cv_berkeley_db_thread=yes
12570 echo "configure: failed program was:" >&5
12571 cat conftest.$ac_ext >&5
12573 ol_cv_berkeley_db_thread=no
12581 if test $ol_cv_berkeley_db_thread != no ; then
12582 cat >> confdefs.h <<\EOF
12583 #define HAVE_BERKELEY_DB_THREAD 1
12590 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12596 if test $ol_cv_berkeley_db != no ; then
12597 cat >> confdefs.h <<\EOF
12598 #define HAVE_BERKELEY_DB 1
12602 ol_link_ldbm=berkeley
12603 ol_with_ldbm_api=db
12605 if test $ol_with_ldbm_type = hash ; then
12606 cat >> confdefs.h <<\EOF
12607 #define LDBM_USE_DBHASH 1
12611 cat >> confdefs.h <<\EOF
12612 #define LDBM_USE_DBBTREE 1
12617 if test $ol_cv_lib_db != yes ; then
12618 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12623 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12624 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12625 ol_with_ldbm_api=none
12628 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12629 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12630 echo "configure:12631: checking for MDBM library" >&5
12631 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12632 echo $ac_n "(cached) $ac_c" 1>&6
12635 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12636 echo "configure:12637: checking for mdbm_set_chain" >&5
12637 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12638 echo $ac_n "(cached) $ac_c" 1>&6
12640 cat > conftest.$ac_ext <<EOF
12641 #line 12642 "configure"
12642 #include "confdefs.h"
12643 /* System header to define __stub macros and hopefully few prototypes,
12644 which can conflict with char mdbm_set_chain(); below. */
12645 #include <assert.h>
12646 /* Override any gcc2 internal prototype to avoid an error. */
12647 /* We use char because int might match the return type of a gcc2
12648 builtin and then its argument prototype would still apply. */
12649 char mdbm_set_chain();
12654 /* The GNU C library defines this for functions which it implements
12655 to always fail with ENOSYS. Some functions are actually named
12656 something starting with __ and the normal name is an alias. */
12657 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12660 f = mdbm_set_chain;
12665 if { (eval echo configure:12666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12667 eval "ac_cv_func_mdbm_set_chain=yes"
12669 echo "configure: failed program was:" >&5
12670 cat conftest.$ac_ext >&5
12672 eval "ac_cv_func_mdbm_set_chain=no"
12677 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12678 echo "$ac_t""yes" 1>&6
12681 echo "$ac_t""no" 1>&6
12683 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12684 echo "configure:12685: checking for mdbm_set_chain in -lmdbm" >&5
12685 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12686 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12687 echo $ac_n "(cached) $ac_c" 1>&6
12689 ac_save_LIBS="$LIBS"
12690 LIBS="-lmdbm $LIBS"
12691 cat > conftest.$ac_ext <<EOF
12692 #line 12693 "configure"
12693 #include "confdefs.h"
12694 /* Override any gcc2 internal prototype to avoid an error. */
12695 /* We use char because int might match the return type of a gcc2
12696 builtin and then its argument prototype would still apply. */
12697 char mdbm_set_chain();
12703 if { (eval echo configure:12704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12705 eval "ac_cv_lib_$ac_lib_var=yes"
12707 echo "configure: failed program was:" >&5
12708 cat conftest.$ac_ext >&5
12710 eval "ac_cv_lib_$ac_lib_var=no"
12713 LIBS="$ac_save_LIBS"
12716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12717 echo "$ac_t""yes" 1>&6
12718 ol_cv_lib_mdbm=-lmdbm
12720 echo "$ac_t""no" 1>&6
12731 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12734 for ac_hdr in mdbm.h
12736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12738 echo "configure:12739: checking for $ac_hdr" >&5
12739 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12740 echo $ac_n "(cached) $ac_c" 1>&6
12742 cat > conftest.$ac_ext <<EOF
12743 #line 12744 "configure"
12744 #include "confdefs.h"
12747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12748 { (eval echo configure:12749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12750 if test -z "$ac_err"; then
12752 eval "ac_cv_header_$ac_safe=yes"
12755 echo "configure: failed program was:" >&5
12756 cat conftest.$ac_ext >&5
12758 eval "ac_cv_header_$ac_safe=no"
12762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12763 echo "$ac_t""yes" 1>&6
12764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12765 cat >> confdefs.h <<EOF
12766 #define $ac_tr_hdr 1
12770 echo "$ac_t""no" 1>&6
12774 echo $ac_n "checking for db""... $ac_c" 1>&6
12775 echo "configure:12776: checking for db" >&5
12776 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12777 echo $ac_n "(cached) $ac_c" 1>&6
12780 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12788 echo "$ac_t""$ol_cv_mdbm" 1>&6
12789 if test $ol_cv_mdbm = yes ; then
12790 cat >> confdefs.h <<\EOF
12791 #define HAVE_MDBM 1
12797 if test $ol_cv_mdbm = yes ; then
12799 ol_with_ldbm_api=mdbm
12800 if test $ol_cv_lib_mdbm != yes ; then
12801 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12806 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12807 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12808 echo "configure:12809: checking for GDBM library" >&5
12809 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12810 echo $ac_n "(cached) $ac_c" 1>&6
12813 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12814 echo "configure:12815: checking for gdbm_open" >&5
12815 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12816 echo $ac_n "(cached) $ac_c" 1>&6
12818 cat > conftest.$ac_ext <<EOF
12819 #line 12820 "configure"
12820 #include "confdefs.h"
12821 /* System header to define __stub macros and hopefully few prototypes,
12822 which can conflict with char gdbm_open(); below. */
12823 #include <assert.h>
12824 /* Override any gcc2 internal prototype to avoid an error. */
12825 /* We use char because int might match the return type of a gcc2
12826 builtin and then its argument prototype would still apply. */
12832 /* The GNU C library defines this for functions which it implements
12833 to always fail with ENOSYS. Some functions are actually named
12834 something starting with __ and the normal name is an alias. */
12835 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12843 if { (eval echo configure:12844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12845 eval "ac_cv_func_gdbm_open=yes"
12847 echo "configure: failed program was:" >&5
12848 cat conftest.$ac_ext >&5
12850 eval "ac_cv_func_gdbm_open=no"
12855 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12856 echo "$ac_t""yes" 1>&6
12859 echo "$ac_t""no" 1>&6
12861 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12862 echo "configure:12863: checking for gdbm_open in -lgdbm" >&5
12863 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12864 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12865 echo $ac_n "(cached) $ac_c" 1>&6
12867 ac_save_LIBS="$LIBS"
12868 LIBS="-lgdbm $LIBS"
12869 cat > conftest.$ac_ext <<EOF
12870 #line 12871 "configure"
12871 #include "confdefs.h"
12872 /* Override any gcc2 internal prototype to avoid an error. */
12873 /* We use char because int might match the return type of a gcc2
12874 builtin and then its argument prototype would still apply. */
12881 if { (eval echo configure:12882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12883 eval "ac_cv_lib_$ac_lib_var=yes"
12885 echo "configure: failed program was:" >&5
12886 cat conftest.$ac_ext >&5
12888 eval "ac_cv_lib_$ac_lib_var=no"
12891 LIBS="$ac_save_LIBS"
12894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12895 echo "$ac_t""yes" 1>&6
12896 ol_cv_lib_gdbm=-lgdbm
12898 echo "$ac_t""no" 1>&6
12909 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12912 for ac_hdr in gdbm.h
12914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12916 echo "configure:12917: checking for $ac_hdr" >&5
12917 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12918 echo $ac_n "(cached) $ac_c" 1>&6
12920 cat > conftest.$ac_ext <<EOF
12921 #line 12922 "configure"
12922 #include "confdefs.h"
12925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12926 { (eval echo configure:12927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12928 if test -z "$ac_err"; then
12930 eval "ac_cv_header_$ac_safe=yes"
12933 echo "configure: failed program was:" >&5
12934 cat conftest.$ac_ext >&5
12936 eval "ac_cv_header_$ac_safe=no"
12940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12941 echo "$ac_t""yes" 1>&6
12942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12943 cat >> confdefs.h <<EOF
12944 #define $ac_tr_hdr 1
12948 echo "$ac_t""no" 1>&6
12952 echo $ac_n "checking for db""... $ac_c" 1>&6
12953 echo "configure:12954: checking for db" >&5
12954 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12955 echo $ac_n "(cached) $ac_c" 1>&6
12958 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12966 echo "$ac_t""$ol_cv_gdbm" 1>&6
12967 if test $ol_cv_gdbm = yes ; then
12968 cat >> confdefs.h <<\EOF
12969 #define HAVE_GDBM 1
12975 if test $ol_cv_gdbm = yes ; then
12977 ol_with_ldbm_api=gdbm
12979 if test $ol_cv_lib_gdbm != yes ; then
12980 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12985 if test $ol_with_ldbm_api = ndbm ; then
12986 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12987 echo "configure:12988: checking for NDBM library" >&5
12988 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12989 echo $ac_n "(cached) $ac_c" 1>&6
12992 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12993 echo "configure:12994: checking for dbm_open" >&5
12994 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12995 echo $ac_n "(cached) $ac_c" 1>&6
12997 cat > conftest.$ac_ext <<EOF
12998 #line 12999 "configure"
12999 #include "confdefs.h"
13000 /* System header to define __stub macros and hopefully few prototypes,
13001 which can conflict with char dbm_open(); below. */
13002 #include <assert.h>
13003 /* Override any gcc2 internal prototype to avoid an error. */
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13011 /* The GNU C library defines this for functions which it implements
13012 to always fail with ENOSYS. Some functions are actually named
13013 something starting with __ and the normal name is an alias. */
13014 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13022 if { (eval echo configure:13023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13024 eval "ac_cv_func_dbm_open=yes"
13026 echo "configure: failed program was:" >&5
13027 cat conftest.$ac_ext >&5
13029 eval "ac_cv_func_dbm_open=no"
13034 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13035 echo "$ac_t""yes" 1>&6
13038 echo "$ac_t""no" 1>&6
13040 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
13041 echo "configure:13042: checking for dbm_open in -lndbm" >&5
13042 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13043 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13044 echo $ac_n "(cached) $ac_c" 1>&6
13046 ac_save_LIBS="$LIBS"
13047 LIBS="-lndbm $LIBS"
13048 cat > conftest.$ac_ext <<EOF
13049 #line 13050 "configure"
13050 #include "confdefs.h"
13051 /* Override any gcc2 internal prototype to avoid an error. */
13052 /* We use char because int might match the return type of a gcc2
13053 builtin and then its argument prototype would still apply. */
13060 if { (eval echo configure:13061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13062 eval "ac_cv_lib_$ac_lib_var=yes"
13064 echo "configure: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13067 eval "ac_cv_lib_$ac_lib_var=no"
13070 LIBS="$ac_save_LIBS"
13073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13074 echo "$ac_t""yes" 1>&6
13075 ol_cv_lib_ndbm=-lndbm
13077 echo "$ac_t""no" 1>&6
13079 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13080 echo "configure:13081: checking for dbm_open in -ldbm" >&5
13081 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13082 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13083 echo $ac_n "(cached) $ac_c" 1>&6
13085 ac_save_LIBS="$LIBS"
13087 cat > conftest.$ac_ext <<EOF
13088 #line 13089 "configure"
13089 #include "confdefs.h"
13090 /* Override any gcc2 internal prototype to avoid an error. */
13091 /* We use char because int might match the return type of a gcc2
13092 builtin and then its argument prototype would still apply. */
13099 if { (eval echo configure:13100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13101 eval "ac_cv_lib_$ac_lib_var=yes"
13103 echo "configure: failed program was:" >&5
13104 cat conftest.$ac_ext >&5
13106 eval "ac_cv_lib_$ac_lib_var=no"
13109 LIBS="$ac_save_LIBS"
13112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13113 echo "$ac_t""yes" 1>&6
13114 ol_cv_lib_ndbm=-ldbm
13116 echo "$ac_t""no" 1>&6
13129 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
13132 for ac_hdr in ndbm.h
13134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13136 echo "configure:13137: checking for $ac_hdr" >&5
13137 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13138 echo $ac_n "(cached) $ac_c" 1>&6
13140 cat > conftest.$ac_ext <<EOF
13141 #line 13142 "configure"
13142 #include "confdefs.h"
13145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13146 { (eval echo configure:13147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13148 if test -z "$ac_err"; then
13150 eval "ac_cv_header_$ac_safe=yes"
13153 echo "configure: failed program was:" >&5
13154 cat conftest.$ac_ext >&5
13156 eval "ac_cv_header_$ac_safe=no"
13160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13161 echo "$ac_t""yes" 1>&6
13162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13163 cat >> confdefs.h <<EOF
13164 #define $ac_tr_hdr 1
13168 echo "$ac_t""no" 1>&6
13172 echo $ac_n "checking for db""... $ac_c" 1>&6
13173 echo "configure:13174: checking for db" >&5
13174 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
13175 echo $ac_n "(cached) $ac_c" 1>&6
13178 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
13186 echo "$ac_t""$ol_cv_ndbm" 1>&6
13187 if test $ol_cv_ndbm = yes ; then
13188 cat >> confdefs.h <<\EOF
13189 #define HAVE_NDBM 1
13195 if test $ol_cv_ndbm = yes ; then
13197 ol_with_ldbm_api=ndbm
13199 if test $ol_cv_lib_ndbm != yes ; then
13200 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13205 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13206 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13207 if test $ol_enable_ldbm = yes ; then
13208 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13211 echo "configure: warning: disabling LDBM" 1>&2
13215 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13216 LINK_BINS_DYNAMIC="yes"
13218 LINK_BINS_DYNAMIC="no"
13221 if test $ol_enable_wrappers != no ; then
13222 for ac_hdr in tcpd.h
13224 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13226 echo "configure:13227: checking for $ac_hdr" >&5
13227 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13228 echo $ac_n "(cached) $ac_c" 1>&6
13230 cat > conftest.$ac_ext <<EOF
13231 #line 13232 "configure"
13232 #include "confdefs.h"
13235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13236 { (eval echo configure:13237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13238 if test -z "$ac_err"; then
13240 eval "ac_cv_header_$ac_safe=yes"
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13246 eval "ac_cv_header_$ac_safe=no"
13250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13251 echo "$ac_t""yes" 1>&6
13252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13253 cat >> confdefs.h <<EOF
13254 #define $ac_tr_hdr 1
13258 echo "$ac_t""no" 1>&6
13263 if test $ac_cv_header_tcpd_h != yes ; then
13266 cat > conftest.$ac_ext <<EOF
13267 #line 13268 "configure"
13268 #include "confdefs.h"
13270 int allow_severity = 0;
13271 int deny_severity = 0;
13277 if { (eval echo configure:13278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13281 echo "configure: failed program was:" >&5
13282 cat conftest.$ac_ext >&5
13289 if test $have_wrappers = yes ; then
13290 cat >> confdefs.h <<\EOF
13291 #define HAVE_TCPD 1
13296 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13297 echo "configure:13298: checking for main in -lnsl" >&5
13298 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13299 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13300 echo $ac_n "(cached) $ac_c" 1>&6
13302 ac_save_LIBS="$LIBS"
13304 cat > conftest.$ac_ext <<EOF
13305 #line 13306 "configure"
13306 #include "confdefs.h"
13312 if { (eval echo configure:13313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13314 eval "ac_cv_lib_$ac_lib_var=yes"
13316 echo "configure: failed program was:" >&5
13317 cat conftest.$ac_ext >&5
13319 eval "ac_cv_lib_$ac_lib_var=no"
13322 LIBS="$ac_save_LIBS"
13325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13326 echo "$ac_t""yes" 1>&6
13327 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13328 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13329 cat >> confdefs.h <<EOF
13330 #define $ac_tr_lib 1
13336 echo "$ac_t""no" 1>&6
13340 echo "configure: warning: could not find -lwrap" 1>&2
13341 if test $ol_enable_wrappers = yes ; then
13342 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13345 echo "configure: warning: disabling wrappers support" 1>&2
13346 ol_enable_wrappers=no
13351 if test $ol_enable_syslog != no ; then
13352 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13353 echo "configure:13354: checking for openlog" >&5
13354 if eval "test \"\${ac_cv_func_openlog+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"
13360 /* System header to define __stub macros and hopefully few prototypes,
13361 which can conflict with char openlog(); below. */
13362 #include <assert.h>
13363 /* Override any gcc2 internal prototype to avoid an error. */
13364 /* We use char because int might match the return type of a gcc2
13365 builtin and then its argument prototype would still apply. */
13371 /* The GNU C library defines this for functions which it implements
13372 to always fail with ENOSYS. Some functions are actually named
13373 something starting with __ and the normal name is an alias. */
13374 #if defined (__stub_openlog) || defined (__stub___openlog)
13382 if { (eval echo configure:13383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13384 eval "ac_cv_func_openlog=yes"
13386 echo "configure: failed program was:" >&5
13387 cat conftest.$ac_ext >&5
13389 eval "ac_cv_func_openlog=no"
13394 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13395 echo "$ac_t""yes" 1>&6
13398 echo "$ac_t""no" 1>&6
13401 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13402 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13404 ol_enable_syslog=$ac_cv_func_openlog
13408 if test $ol_enable_sql != no ; then
13409 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13410 echo "configure:13411: checking for SQLDriverConnect in -liodbc" >&5
13411 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13412 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13413 echo $ac_n "(cached) $ac_c" 1>&6
13415 ac_save_LIBS="$LIBS"
13416 LIBS="-liodbc $LIBS"
13417 cat > conftest.$ac_ext <<EOF
13418 #line 13419 "configure"
13419 #include "confdefs.h"
13420 /* Override any gcc2 internal prototype to avoid an error. */
13421 /* We use char because int might match the return type of a gcc2
13422 builtin and then its argument prototype would still apply. */
13423 char SQLDriverConnect();
13429 if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13431 eval "ac_cv_lib_$ac_lib_var=yes"
13433 echo "configure: failed program was:" >&5
13434 cat conftest.$ac_ext >&5
13436 eval "ac_cv_lib_$ac_lib_var=no"
13439 LIBS="$ac_save_LIBS"
13442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13443 echo "$ac_t""yes" 1>&6
13446 echo "$ac_t""no" 1>&6
13450 if test $have_iodbc = yes ; then
13451 ol_link_sql="-liodbc"
13453 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13454 echo "configure:13455: checking for SQLDriverConnect in -lodbc" >&5
13455 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13456 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13457 echo $ac_n "(cached) $ac_c" 1>&6
13459 ac_save_LIBS="$LIBS"
13460 LIBS="-lodbc $LIBS"
13461 cat > conftest.$ac_ext <<EOF
13462 #line 13463 "configure"
13463 #include "confdefs.h"
13464 /* Override any gcc2 internal prototype to avoid an error. */
13465 /* We use char because int might match the return type of a gcc2
13466 builtin and then its argument prototype would still apply. */
13467 char SQLDriverConnect();
13473 if { (eval echo configure:13474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13475 eval "ac_cv_lib_$ac_lib_var=yes"
13477 echo "configure: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13480 eval "ac_cv_lib_$ac_lib_var=no"
13483 LIBS="$ac_save_LIBS"
13486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13487 echo "$ac_t""yes" 1>&6
13490 echo "$ac_t""no" 1>&6
13494 if test $have_odbc = yes ; then
13495 ol_link_sql="-lodbc"
13499 if test $ol_link_sql != no ; then
13500 SLAPD_SQL_LIBS="$ol_link_sql"
13502 elif test $ol_enable_sql != auto ; then
13503 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13508 for ac_hdr in termcap.h ncurses.h
13510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13512 echo "configure:13513: checking for $ac_hdr" >&5
13513 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13514 echo $ac_n "(cached) $ac_c" 1>&6
13516 cat > conftest.$ac_ext <<EOF
13517 #line 13518 "configure"
13518 #include "confdefs.h"
13521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13522 { (eval echo configure:13523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13524 if test -z "$ac_err"; then
13526 eval "ac_cv_header_$ac_safe=yes"
13529 echo "configure: failed program was:" >&5
13530 cat conftest.$ac_ext >&5
13532 eval "ac_cv_header_$ac_safe=no"
13536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13537 echo "$ac_t""yes" 1>&6
13538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13539 cat >> confdefs.h <<EOF
13540 #define $ac_tr_hdr 1
13544 echo "$ac_t""no" 1>&6
13549 if test $ol_link_termcap = no ; then
13550 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13551 echo "configure:13552: checking for tputs in -ltermcap" >&5
13552 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13553 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13554 echo $ac_n "(cached) $ac_c" 1>&6
13556 ac_save_LIBS="$LIBS"
13557 LIBS="-ltermcap $LIBS"
13558 cat > conftest.$ac_ext <<EOF
13559 #line 13560 "configure"
13560 #include "confdefs.h"
13561 /* Override any gcc2 internal prototype to avoid an error. */
13562 /* We use char because int might match the return type of a gcc2
13563 builtin and then its argument prototype would still apply. */
13570 if { (eval echo configure:13571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13572 eval "ac_cv_lib_$ac_lib_var=yes"
13574 echo "configure: failed program was:" >&5
13575 cat conftest.$ac_ext >&5
13577 eval "ac_cv_lib_$ac_lib_var=no"
13580 LIBS="$ac_save_LIBS"
13583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13584 echo "$ac_t""yes" 1>&6
13587 echo "$ac_t""no" 1>&6
13591 if test $have_termcap = yes ; then
13592 cat >> confdefs.h <<\EOF
13593 #define HAVE_TERMCAP 1
13596 ol_link_termcap=yes
13597 TERMCAP_LIBS=-ltermcap
13601 if test $ol_link_termcap = no ; then
13602 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13603 echo "configure:13604: checking for initscr in -lncurses" >&5
13604 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13605 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13606 echo $ac_n "(cached) $ac_c" 1>&6
13608 ac_save_LIBS="$LIBS"
13609 LIBS="-lncurses $LIBS"
13610 cat > conftest.$ac_ext <<EOF
13611 #line 13612 "configure"
13612 #include "confdefs.h"
13613 /* Override any gcc2 internal prototype to avoid an error. */
13614 /* We use char because int might match the return type of a gcc2
13615 builtin and then its argument prototype would still apply. */
13622 if { (eval echo configure:13623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13624 eval "ac_cv_lib_$ac_lib_var=yes"
13626 echo "configure: failed program was:" >&5
13627 cat conftest.$ac_ext >&5
13629 eval "ac_cv_lib_$ac_lib_var=no"
13632 LIBS="$ac_save_LIBS"
13635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13636 echo "$ac_t""yes" 1>&6
13639 echo "$ac_t""no" 1>&6
13643 if test $have_ncurses = yes ; then
13644 cat >> confdefs.h <<\EOF
13645 #define HAVE_NCURSES 1
13648 ol_link_termcap=yes
13649 TERMCAP_LIBS=-lncurses
13653 if test $ol_link_termcap = no ; then
13654 cat >> confdefs.h <<\EOF
13655 #define NO_TERMCAP 1
13663 if test $ol_with_cyrus_sasl != no ; then
13664 for ac_hdr in sasl.h
13666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13668 echo "configure:13669: checking for $ac_hdr" >&5
13669 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13670 echo $ac_n "(cached) $ac_c" 1>&6
13672 cat > conftest.$ac_ext <<EOF
13673 #line 13674 "configure"
13674 #include "confdefs.h"
13677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13678 { (eval echo configure:13679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13680 if test -z "$ac_err"; then
13682 eval "ac_cv_header_$ac_safe=yes"
13685 echo "configure: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13688 eval "ac_cv_header_$ac_safe=no"
13692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13693 echo "$ac_t""yes" 1>&6
13694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13695 cat >> confdefs.h <<EOF
13696 #define $ac_tr_hdr 1
13700 echo "$ac_t""no" 1>&6
13705 if test $ac_cv_header_sasl_h = yes ; then
13706 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13707 echo "configure:13708: checking for sasl_client_init in -lsasl" >&5
13708 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13709 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13710 echo $ac_n "(cached) $ac_c" 1>&6
13712 ac_save_LIBS="$LIBS"
13713 LIBS="-lsasl $LIBS"
13714 cat > conftest.$ac_ext <<EOF
13715 #line 13716 "configure"
13716 #include "confdefs.h"
13717 /* Override any gcc2 internal prototype to avoid an error. */
13718 /* We use char because int might match the return type of a gcc2
13719 builtin and then its argument prototype would still apply. */
13720 char sasl_client_init();
13726 if { (eval echo configure:13727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13728 eval "ac_cv_lib_$ac_lib_var=yes"
13730 echo "configure: failed program was:" >&5
13731 cat conftest.$ac_ext >&5
13733 eval "ac_cv_lib_$ac_lib_var=no"
13736 LIBS="$ac_save_LIBS"
13739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13740 echo "$ac_t""yes" 1>&6
13741 have_cyrus_sasl=yes
13743 echo "$ac_t""no" 1>&6
13748 if test $have_cyrus_sasl != no ; then
13750 cat >> confdefs.h <<\EOF
13751 #define HAVE_CYRUS_SASL 1
13758 if test $ol_link_sasl = no ; then
13759 if test $ol_with_cyrus_sasl != auto ; then
13760 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13762 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13763 echo "configure: warning: SASL authentication not supported!" 1>&2
13764 if test $ol_link_tls = no ; then
13765 echo "configure: warning: Strong authentication not supported!" 1>&2
13769 elif test $ol_enable_spasswd != no ; then
13770 ol_link_spasswd=yes
13774 echo "configure: warning: SASL authentication not supported!" 1>&2
13775 if test $ol_link_tls = no ; then
13776 echo "configure: warning: Strong authentication not supported!" 1>&2
13780 if test $cross_compiling != yes ; then
13782 if test -r /dev/urandom ; then
13783 dev="/dev/urandom";
13784 elif test -r /idev/urandom ; then
13785 dev="/idev/urandom";
13786 elif test -r /dev/srandom ; then
13787 dev="/dev/srandom";
13788 elif test -r /dev/random ; then
13790 elif test -r /idev/random ; then
13791 dev="/idev/random";
13794 if test $dev != no ; then
13795 cat >> confdefs.h <<EOF
13796 #define URANDOM_DEVICE "$dev"
13803 if test $ol_with_fetch != no ; then
13805 LIBS="-lfetch -lcom_err $LIBS"
13806 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13807 echo "configure:13808: checking fetch(3) library" >&5
13808 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13809 echo $ac_n "(cached) $ac_c" 1>&6
13812 cat > conftest.$ac_ext <<EOF
13813 #line 13814 "configure"
13814 #include "confdefs.h"
13816 #include <sys/param.h>
13820 struct url *u = fetchParseURL("file:///");
13823 if { (eval echo configure:13824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13825 ol_cv_lib_fetch=yes
13827 echo "configure: failed program was:" >&5
13828 cat conftest.$ac_ext >&5
13835 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13837 if test $ol_cv_lib_fetch != no ; then
13838 ol_link_fetch="-lfetch -lcom_err"
13839 cat >> confdefs.h <<\EOF
13840 #define HAVE_FETCH 1
13846 if test $ol_cv_lib_fetch != no ; then
13847 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13848 ol_link_fetch=freebsd
13850 elif test $ol_with_fetch != auto ; then
13851 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13855 ol_link_readline=no
13856 if test $ol_with_readline != no ; then
13857 for ac_hdr in readline/readline.h readline/history.h
13859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13861 echo "configure:13862: checking for $ac_hdr" >&5
13862 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13863 echo $ac_n "(cached) $ac_c" 1>&6
13865 cat > conftest.$ac_ext <<EOF
13866 #line 13867 "configure"
13867 #include "confdefs.h"
13870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13871 { (eval echo configure:13872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13873 if test -z "$ac_err"; then
13875 eval "ac_cv_header_$ac_safe=yes"
13878 echo "configure: failed program was:" >&5
13879 cat conftest.$ac_ext >&5
13881 eval "ac_cv_header_$ac_safe=no"
13885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13886 echo "$ac_t""yes" 1>&6
13887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13888 cat >> confdefs.h <<EOF
13889 #define $ac_tr_hdr 1
13893 echo "$ac_t""no" 1>&6
13898 if test $ac_cv_header_readline_readline_h = yes ; then
13900 LIBS="$TERMCAP_LIBS $LIBS"
13901 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13902 echo "configure:13903: checking for readline in -lreadline" >&5
13903 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13904 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13905 echo $ac_n "(cached) $ac_c" 1>&6
13907 ac_save_LIBS="$LIBS"
13908 LIBS="-lreadline $LIBS"
13909 cat > conftest.$ac_ext <<EOF
13910 #line 13911 "configure"
13911 #include "confdefs.h"
13912 /* Override any gcc2 internal prototype to avoid an error. */
13913 /* We use char because int might match the return type of a gcc2
13914 builtin and then its argument prototype would still apply. */
13921 if { (eval echo configure:13922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13923 eval "ac_cv_lib_$ac_lib_var=yes"
13925 echo "configure: failed program was:" >&5
13926 cat conftest.$ac_ext >&5
13928 eval "ac_cv_lib_$ac_lib_var=no"
13931 LIBS="$ac_save_LIBS"
13934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13935 echo "$ac_t""yes" 1>&6
13938 echo "$ac_t""no" 1>&6
13944 if test $have_readline = yes ; then
13945 ol_with_readline=found
13946 ol_link_readline=yes
13948 READLINE_LIBS="-lreadline"
13953 if test $ol_link_readline = yes ; then
13954 cat >> confdefs.h <<\EOF
13955 #define HAVE_READLINE 1
13961 if test $ol_enable_crypt != no ; then
13962 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13963 echo "configure:13964: checking for crypt" >&5
13964 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13965 echo $ac_n "(cached) $ac_c" 1>&6
13967 cat > conftest.$ac_ext <<EOF
13968 #line 13969 "configure"
13969 #include "confdefs.h"
13970 /* System header to define __stub macros and hopefully few prototypes,
13971 which can conflict with char crypt(); below. */
13972 #include <assert.h>
13973 /* Override any gcc2 internal prototype to avoid an error. */
13974 /* We use char because int might match the return type of a gcc2
13975 builtin and then its argument prototype would still apply. */
13981 /* The GNU C library defines this for functions which it implements
13982 to always fail with ENOSYS. Some functions are actually named
13983 something starting with __ and the normal name is an alias. */
13984 #if defined (__stub_crypt) || defined (__stub___crypt)
13992 if { (eval echo configure:13993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13994 eval "ac_cv_func_crypt=yes"
13996 echo "configure: failed program was:" >&5
13997 cat conftest.$ac_ext >&5
13999 eval "ac_cv_func_crypt=no"
14004 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
14005 echo "$ac_t""yes" 1>&6
14008 echo "$ac_t""no" 1>&6
14010 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
14011 echo "configure:14012: checking for crypt in -lcrypt" >&5
14012 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
14013 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14014 echo $ac_n "(cached) $ac_c" 1>&6
14016 ac_save_LIBS="$LIBS"
14017 LIBS="-lcrypt $LIBS"
14018 cat > conftest.$ac_ext <<EOF
14019 #line 14020 "configure"
14020 #include "confdefs.h"
14021 /* Override any gcc2 internal prototype to avoid an error. */
14022 /* We use char because int might match the return type of a gcc2
14023 builtin and then its argument prototype would still apply. */
14030 if { (eval echo configure:14031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14032 eval "ac_cv_lib_$ac_lib_var=yes"
14034 echo "configure: failed program was:" >&5
14035 cat conftest.$ac_ext >&5
14037 eval "ac_cv_lib_$ac_lib_var=no"
14040 LIBS="$ac_save_LIBS"
14043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14044 echo "$ac_t""yes" 1>&6
14045 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
14048 echo "$ac_t""no" 1>&6
14055 if test $have_crypt = yes ; then
14056 cat >> confdefs.h <<\EOF
14057 #define HAVE_CRYPT 1
14061 echo "configure: warning: could not find crypt" 1>&2
14062 if test $ol_enable_crypt = yes ; then
14063 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14066 echo "configure: warning: disabling crypt support" 1>&2
14071 if test $ol_enable_proctitle != no ; then
14072 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14073 echo "configure:14074: checking for setproctitle" >&5
14074 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14075 echo $ac_n "(cached) $ac_c" 1>&6
14077 cat > conftest.$ac_ext <<EOF
14078 #line 14079 "configure"
14079 #include "confdefs.h"
14080 /* System header to define __stub macros and hopefully few prototypes,
14081 which can conflict with char setproctitle(); below. */
14082 #include <assert.h>
14083 /* Override any gcc2 internal prototype to avoid an error. */
14084 /* We use char because int might match the return type of a gcc2
14085 builtin and then its argument prototype would still apply. */
14086 char setproctitle();
14091 /* The GNU C library defines this for functions which it implements
14092 to always fail with ENOSYS. Some functions are actually named
14093 something starting with __ and the normal name is an alias. */
14094 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14102 if { (eval echo configure:14103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14104 eval "ac_cv_func_setproctitle=yes"
14106 echo "configure: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14109 eval "ac_cv_func_setproctitle=no"
14114 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14115 echo "$ac_t""yes" 1>&6
14116 have_setproctitle=yes
14118 echo "$ac_t""no" 1>&6
14120 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14121 echo "configure:14122: checking for setproctitle in -lutil" >&5
14122 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14123 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14124 echo $ac_n "(cached) $ac_c" 1>&6
14126 ac_save_LIBS="$LIBS"
14127 LIBS="-lutil $LIBS"
14128 cat > conftest.$ac_ext <<EOF
14129 #line 14130 "configure"
14130 #include "confdefs.h"
14131 /* Override any gcc2 internal prototype to avoid an error. */
14132 /* We use char because int might match the return type of a gcc2
14133 builtin and then its argument prototype would still apply. */
14134 char setproctitle();
14140 if { (eval echo configure:14141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14142 eval "ac_cv_lib_$ac_lib_var=yes"
14144 echo "configure: failed program was:" >&5
14145 cat conftest.$ac_ext >&5
14147 eval "ac_cv_lib_$ac_lib_var=no"
14150 LIBS="$ac_save_LIBS"
14153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14154 echo "$ac_t""yes" 1>&6
14155 have_setproctitle=yes
14156 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14158 echo "$ac_t""no" 1>&6
14159 have_setproctitle=no
14160 LIBOBJS="$LIBOBJS setproctitle.o"
14161 LIBSRCS="$LIBSRCS setproctitle.c"
14167 if test $have_setproctitle = yes ; then
14168 cat >> confdefs.h <<\EOF
14169 #define HAVE_SETPROCTITLE 1
14175 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14176 echo "configure:14177: checking for ANSI C header files" >&5
14177 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
14178 echo $ac_n "(cached) $ac_c" 1>&6
14180 cat > conftest.$ac_ext <<EOF
14181 #line 14182 "configure"
14182 #include "confdefs.h"
14183 #include <stdlib.h>
14184 #include <stdarg.h>
14185 #include <string.h>
14188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14189 { (eval echo configure:14190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14191 if test -z "$ac_err"; then
14193 ac_cv_header_stdc=yes
14196 echo "configure: failed program was:" >&5
14197 cat conftest.$ac_ext >&5
14199 ac_cv_header_stdc=no
14203 if test $ac_cv_header_stdc = yes; then
14204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14205 cat > conftest.$ac_ext <<EOF
14206 #line 14207 "configure"
14207 #include "confdefs.h"
14208 #include <string.h>
14210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14211 egrep "memchr" >/dev/null 2>&1; then
14215 ac_cv_header_stdc=no
14221 if test $ac_cv_header_stdc = yes; then
14222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14223 cat > conftest.$ac_ext <<EOF
14224 #line 14225 "configure"
14225 #include "confdefs.h"
14226 #include <stdlib.h>
14228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14229 egrep "free" >/dev/null 2>&1; then
14233 ac_cv_header_stdc=no
14239 if test $ac_cv_header_stdc = yes; then
14240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14241 if test "$cross_compiling" = yes; then
14244 cat > conftest.$ac_ext <<EOF
14245 #line 14246 "configure"
14246 #include "confdefs.h"
14248 #if ((' ' & 0x0FF) == 0x020)
14249 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14250 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14252 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14253 || ('j' <= (c) && (c) <= 'r') \
14254 || ('s' <= (c) && (c) <= 'z'))
14255 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14258 int main () { int i; for (i = 0; i < 256; i++)
14259 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14263 if { (eval echo configure:14264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14267 echo "configure: failed program was:" >&5
14268 cat conftest.$ac_ext >&5
14270 ac_cv_header_stdc=no
14278 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14279 if test $ac_cv_header_stdc = yes; then
14280 cat >> confdefs.h <<\EOF
14281 #define STDC_HEADERS 1
14286 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14287 echo "configure:14288: checking for mode_t" >&5
14288 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14289 echo $ac_n "(cached) $ac_c" 1>&6
14291 cat > conftest.$ac_ext <<EOF
14292 #line 14293 "configure"
14293 #include "confdefs.h"
14294 #include <sys/types.h>
14296 #include <stdlib.h>
14297 #include <stddef.h>
14301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14302 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14304 eval "ac_cv_type_mode_t=yes"
14307 eval "ac_cv_type_mode_t=no"
14312 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14313 echo "$ac_t""yes" 1>&6
14315 echo "$ac_t""no" 1>&6
14316 cat >> confdefs.h <<EOF
14322 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14323 echo "configure:14324: checking for off_t" >&5
14324 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14325 echo $ac_n "(cached) $ac_c" 1>&6
14327 cat > conftest.$ac_ext <<EOF
14328 #line 14329 "configure"
14329 #include "confdefs.h"
14330 #include <sys/types.h>
14332 #include <stdlib.h>
14333 #include <stddef.h>
14337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14338 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14340 eval "ac_cv_type_off_t=yes"
14343 eval "ac_cv_type_off_t=no"
14348 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14349 echo "$ac_t""yes" 1>&6
14351 echo "$ac_t""no" 1>&6
14352 cat >> confdefs.h <<EOF
14358 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14359 echo "configure:14360: checking for pid_t" >&5
14360 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14361 echo $ac_n "(cached) $ac_c" 1>&6
14363 cat > conftest.$ac_ext <<EOF
14364 #line 14365 "configure"
14365 #include "confdefs.h"
14366 #include <sys/types.h>
14368 #include <stdlib.h>
14369 #include <stddef.h>
14373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14374 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14376 eval "ac_cv_type_pid_t=yes"
14379 eval "ac_cv_type_pid_t=no"
14384 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14385 echo "$ac_t""yes" 1>&6
14387 echo "$ac_t""no" 1>&6
14388 cat >> confdefs.h <<EOF
14394 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14395 echo "configure:14396: checking for ptrdiff_t" >&5
14396 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14397 echo $ac_n "(cached) $ac_c" 1>&6
14399 cat > conftest.$ac_ext <<EOF
14400 #line 14401 "configure"
14401 #include "confdefs.h"
14402 #include <stddef.h>
14407 if { (eval echo configure:14408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14409 am_cv_type_ptrdiff_t=yes
14411 echo "configure: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14414 am_cv_type_ptrdiff_t=no
14419 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14420 if test $am_cv_type_ptrdiff_t = yes; then
14421 cat >> confdefs.h <<\EOF
14422 #define HAVE_PTRDIFF_T 1
14427 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14428 echo "configure:14429: checking return type of signal handlers" >&5
14429 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14430 echo $ac_n "(cached) $ac_c" 1>&6
14432 cat > conftest.$ac_ext <<EOF
14433 #line 14434 "configure"
14434 #include "confdefs.h"
14435 #include <sys/types.h>
14436 #include <signal.h>
14441 extern "C" void (*signal (int, void (*)(int)))(int);
14443 void (*signal ()) ();
14450 if { (eval echo configure:14451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14452 ac_cv_type_signal=void
14454 echo "configure: failed program was:" >&5
14455 cat conftest.$ac_ext >&5
14457 ac_cv_type_signal=int
14462 echo "$ac_t""$ac_cv_type_signal" 1>&6
14463 cat >> confdefs.h <<EOF
14464 #define RETSIGTYPE $ac_cv_type_signal
14468 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14469 echo "configure:14470: checking for size_t" >&5
14470 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14471 echo $ac_n "(cached) $ac_c" 1>&6
14473 cat > conftest.$ac_ext <<EOF
14474 #line 14475 "configure"
14475 #include "confdefs.h"
14476 #include <sys/types.h>
14478 #include <stdlib.h>
14479 #include <stddef.h>
14483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14484 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14486 eval "ac_cv_type_size_t=yes"
14489 eval "ac_cv_type_size_t=no"
14494 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14495 echo "$ac_t""yes" 1>&6
14497 echo "$ac_t""no" 1>&6
14498 cat >> confdefs.h <<EOF
14499 #define size_t unsigned
14505 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14506 echo "configure:14507: checking for ssize_t" >&5
14507 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14508 echo $ac_n "(cached) $ac_c" 1>&6
14510 cat > conftest.$ac_ext <<EOF
14511 #line 14512 "configure"
14512 #include "confdefs.h"
14513 #include <sys/types.h>
14515 #include <stdlib.h>
14516 #include <stddef.h>
14520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14521 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14523 eval "ac_cv_type_ssize_t=yes"
14526 eval "ac_cv_type_ssize_t=no"
14531 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14532 echo "$ac_t""yes" 1>&6
14534 echo "$ac_t""no" 1>&6
14535 cat >> confdefs.h <<EOF
14536 #define ssize_t signed int
14541 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14542 echo "configure:14543: checking for caddr_t" >&5
14543 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14544 echo $ac_n "(cached) $ac_c" 1>&6
14546 cat > conftest.$ac_ext <<EOF
14547 #line 14548 "configure"
14548 #include "confdefs.h"
14549 #include <sys/types.h>
14551 #include <stdlib.h>
14552 #include <stddef.h>
14556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14557 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14559 eval "ac_cv_type_caddr_t=yes"
14562 eval "ac_cv_type_caddr_t=no"
14567 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14568 echo "$ac_t""yes" 1>&6
14570 echo "$ac_t""no" 1>&6
14571 cat >> confdefs.h <<EOF
14572 #define caddr_t char *
14578 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14579 echo "configure:14580: checking for socklen_t" >&5
14580 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14581 echo $ac_n "(cached) $ac_c" 1>&6
14583 cat > conftest.$ac_ext <<EOF
14584 #line 14585 "configure"
14585 #include "confdefs.h"
14587 #ifdef HAVE_SYS_TYPES_H
14588 #include <sys/types.h>
14590 #ifdef HAVE_SYS_SOCKET_H
14591 #include <sys/socket.h>
14598 if { (eval echo configure:14599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14600 ol_cv_type_socklen_t=yes
14602 echo "configure: failed program was:" >&5
14603 cat conftest.$ac_ext >&5
14605 ol_cv_type_socklen_t=no
14610 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14611 if test $ol_cv_type_socklen_t = no; then
14612 cat >> confdefs.h <<\EOF
14613 #define socklen_t int
14618 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14619 echo "configure:14620: checking for member st_blksize in aggregate type struct stat" >&5
14620 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14621 echo $ac_n "(cached) $ac_c" 1>&6
14623 cat > conftest.$ac_ext <<EOF
14624 #line 14625 "configure"
14625 #include "confdefs.h"
14626 #include <sys/types.h>
14627 #include <sys/stat.h>
14629 struct stat foo; foo.st_blksize;
14632 if { (eval echo configure:14633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14634 ac_cv_c_struct_member_st_blksize=yes
14636 echo "configure: failed program was:" >&5
14637 cat conftest.$ac_ext >&5
14639 ac_cv_c_struct_member_st_blksize=no
14644 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14645 st_blksize="$ac_cv_c_struct_member_st_blksize"
14646 if test $ac_cv_c_struct_member_st_blksize = yes; then
14647 cat >> confdefs.h <<\EOF
14648 #define HAVE_ST_BLKSIZE 1
14653 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14654 echo "configure:14655: checking whether time.h and sys/time.h may both be included" >&5
14655 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14656 echo $ac_n "(cached) $ac_c" 1>&6
14658 cat > conftest.$ac_ext <<EOF
14659 #line 14660 "configure"
14660 #include "confdefs.h"
14661 #include <sys/types.h>
14662 #include <sys/time.h>
14668 if { (eval echo configure:14669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14670 ac_cv_header_time=yes
14672 echo "configure: failed program was:" >&5
14673 cat conftest.$ac_ext >&5
14675 ac_cv_header_time=no
14680 echo "$ac_t""$ac_cv_header_time" 1>&6
14681 if test $ac_cv_header_time = yes; then
14682 cat >> confdefs.h <<\EOF
14683 #define TIME_WITH_SYS_TIME 1
14688 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14689 echo "configure:14690: checking whether struct tm is in sys/time.h or time.h" >&5
14690 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14691 echo $ac_n "(cached) $ac_c" 1>&6
14693 cat > conftest.$ac_ext <<EOF
14694 #line 14695 "configure"
14695 #include "confdefs.h"
14696 #include <sys/types.h>
14699 struct tm *tp; tp->tm_sec;
14702 if { (eval echo configure:14703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14704 ac_cv_struct_tm=time.h
14706 echo "configure: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14709 ac_cv_struct_tm=sys/time.h
14714 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14715 if test $ac_cv_struct_tm = sys/time.h; then
14716 cat >> confdefs.h <<\EOF
14717 #define TM_IN_SYS_TIME 1
14722 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14723 echo "configure:14724: checking for uid_t in sys/types.h" >&5
14724 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14725 echo $ac_n "(cached) $ac_c" 1>&6
14727 cat > conftest.$ac_ext <<EOF
14728 #line 14729 "configure"
14729 #include "confdefs.h"
14730 #include <sys/types.h>
14732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14733 egrep "uid_t" >/dev/null 2>&1; then
14735 ac_cv_type_uid_t=yes
14738 ac_cv_type_uid_t=no
14744 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14745 if test $ac_cv_type_uid_t = no; then
14746 cat >> confdefs.h <<\EOF
14750 cat >> confdefs.h <<\EOF
14756 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14757 echo "configure:14758: checking for sig_atomic_t" >&5
14758 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14759 echo $ac_n "(cached) $ac_c" 1>&6
14761 cat > conftest.$ac_ext <<EOF
14762 #line 14763 "configure"
14763 #include "confdefs.h"
14764 #include <signal.h>
14766 sig_atomic_t atomic;
14769 if { (eval echo configure:14770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14771 ol_cv_type_sig_atomic_t=yes
14773 echo "configure: failed program was:" >&5
14774 cat conftest.$ac_ext >&5
14776 ol_cv_type_sig_atomic_t=no
14781 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14782 if test $ol_cv_type_sig_atomic_t = no; then
14783 cat >> confdefs.h <<\EOF
14784 #define sig_atomic_t int
14791 # test for pw_gecos in struct passwd
14792 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14793 echo "configure:14794: checking struct passwd for pw_gecos" >&5
14794 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14795 echo $ac_n "(cached) $ac_c" 1>&6
14798 cat > conftest.$ac_ext <<EOF
14799 #line 14800 "configure"
14800 #include "confdefs.h"
14805 pwd.pw_gecos = pwd.pw_name;
14809 if { (eval echo configure:14810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14811 ol_cv_struct_passwd_pw_gecos=yes
14813 echo "configure: failed program was:" >&5
14814 cat conftest.$ac_ext >&5
14816 ol_cv_struct_passwd_pw_gecos=no
14821 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14822 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14823 cat >> confdefs.h <<\EOF
14824 #define HAVE_PW_GECOS 1
14829 # test for pw_passwd in struct passwd
14830 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14831 echo "configure:14832: checking struct passwd for pw_passwd" >&5
14832 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14833 echo $ac_n "(cached) $ac_c" 1>&6
14836 cat > conftest.$ac_ext <<EOF
14837 #line 14838 "configure"
14838 #include "confdefs.h"
14843 pwd.pw_passwd = pwd.pw_name;
14847 if { (eval echo configure:14848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14849 ol_cv_struct_passwd_pw_passwd=yes
14851 echo "configure: failed program was:" >&5
14852 cat conftest.$ac_ext >&5
14854 ol_cv_struct_passwd_pw_passwd=no
14859 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14860 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14861 cat >> confdefs.h <<\EOF
14862 #define HAVE_PW_PASSWD 1
14868 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14869 echo "configure:14870: checking if toupper() requires islower()" >&5
14870 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14871 echo $ac_n "(cached) $ac_c" 1>&6
14874 if test "$cross_compiling" = yes; then
14875 ol_cv_c_upper_lower=safe
14877 cat > conftest.$ac_ext <<EOF
14878 #line 14879 "configure"
14879 #include "confdefs.h"
14884 if ('C' == toupper('C'))
14890 if { (eval echo configure:14891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14892 ol_cv_c_upper_lower=no
14894 echo "configure: failed program was:" >&5
14895 cat conftest.$ac_ext >&5
14897 ol_cv_c_upper_lower=yes
14904 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14905 if test $ol_cv_c_upper_lower != no ; then
14906 cat >> confdefs.h <<\EOF
14907 #define C_UPPER_LOWER 1
14912 echo $ac_n "checking for working const""... $ac_c" 1>&6
14913 echo "configure:14914: checking for working const" >&5
14914 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14915 echo $ac_n "(cached) $ac_c" 1>&6
14917 cat > conftest.$ac_ext <<EOF
14918 #line 14919 "configure"
14919 #include "confdefs.h"
14923 /* Ultrix mips cc rejects this. */
14924 typedef int charset[2]; const charset x;
14925 /* SunOS 4.1.1 cc rejects this. */
14926 char const *const *ccp;
14928 /* NEC SVR4.0.2 mips cc rejects this. */
14929 struct point {int x, y;};
14930 static struct point const zero = {0,0};
14931 /* AIX XL C 1.02.0.0 rejects this.
14932 It does not let you subtract one const X* pointer from another in an arm
14933 of an if-expression whose if-part is not a constant expression */
14934 const char *g = "string";
14935 ccp = &g + (g ? g-g : 0);
14936 /* HPUX 7.0 cc rejects these. */
14939 ccp = (char const *const *) p;
14940 { /* SCO 3.2v4 cc rejects this. */
14942 char const *s = 0 ? (char *) 0 : (char const *) 0;
14946 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14947 int x[] = {25, 17};
14948 const int *foo = &x[0];
14951 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14952 typedef const int *iptr;
14956 { /* AIX XL C 1.02.0.0 rejects this saying
14957 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14958 struct s { int j; const int *ap[3]; };
14959 struct s *b; b->j = 5;
14961 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14962 const int foo = 10;
14967 if { (eval echo configure:14968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14971 echo "configure: failed program was:" >&5
14972 cat conftest.$ac_ext >&5
14979 echo "$ac_t""$ac_cv_c_const" 1>&6
14980 if test $ac_cv_c_const = no; then
14981 cat >> confdefs.h <<\EOF
14987 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14988 echo "configure:14989: checking if compiler understands volatile" >&5
14989 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14990 echo $ac_n "(cached) $ac_c" 1>&6
14992 cat > conftest.$ac_ext <<EOF
14993 #line 14994 "configure"
14994 #include "confdefs.h"
14997 volatile int a; int * volatile b = x ? &y : &z;
14998 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
15002 if { (eval echo configure:15003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15004 ol_cv_c_volatile=yes
15006 echo "configure: failed program was:" >&5
15007 cat conftest.$ac_ext >&5
15009 ol_cv_c_volatile=no
15014 echo "$ac_t""$ol_cv_c_volatile" 1>&6
15015 if test $ol_cv_c_volatile = yes; then
15018 cat >> confdefs.h <<\EOF
15025 if test $cross_compiling = yes ; then
15026 cat >> confdefs.h <<\EOF
15027 #define CROSS_COMPILING 1
15031 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15032 echo "configure:15033: checking whether byte ordering is bigendian" >&5
15033 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
15034 echo $ac_n "(cached) $ac_c" 1>&6
15036 ac_cv_c_bigendian=unknown
15037 # See if sys/param.h defines the BYTE_ORDER macro.
15038 cat > conftest.$ac_ext <<EOF
15039 #line 15040 "configure"
15040 #include "confdefs.h"
15041 #include <sys/types.h>
15042 #include <sys/param.h>
15045 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15046 bogus endian macros
15050 if { (eval echo configure:15051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15052 # It does; now see whether it defined to BIG_ENDIAN or not.
15053 cat > conftest.$ac_ext <<EOF
15054 #line 15055 "configure"
15055 #include "confdefs.h"
15056 #include <sys/types.h>
15057 #include <sys/param.h>
15060 #if BYTE_ORDER != BIG_ENDIAN
15065 if { (eval echo configure:15066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15067 ac_cv_c_bigendian=yes
15069 echo "configure: failed program was:" >&5
15070 cat conftest.$ac_ext >&5
15072 ac_cv_c_bigendian=no
15076 echo "configure: failed program was:" >&5
15077 cat conftest.$ac_ext >&5
15080 if test $ac_cv_c_bigendian = unknown; then
15081 if test "$cross_compiling" = yes; then
15082 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15084 cat > conftest.$ac_ext <<EOF
15085 #line 15086 "configure"
15086 #include "confdefs.h"
15088 /* Are we little or big endian? From Harbison&Steele. */
15092 char c[sizeof (long)];
15095 exit (u.c[sizeof (long) - 1] == 1);
15098 if { (eval echo configure:15099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15100 ac_cv_c_bigendian=no
15102 echo "configure: failed program was:" >&5
15103 cat conftest.$ac_ext >&5
15105 ac_cv_c_bigendian=yes
15113 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15114 if test $ac_cv_c_bigendian = yes; then
15115 cat >> confdefs.h <<\EOF
15116 #define WORDS_BIGENDIAN 1
15123 echo $ac_n "checking size of short""... $ac_c" 1>&6
15124 echo "configure:15125: checking size of short" >&5
15125 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15126 echo $ac_n "(cached) $ac_c" 1>&6
15128 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15129 cat > conftest.$ac_ext <<EOF
15130 #line 15131 "configure"
15131 #include "confdefs.h"
15132 #include "confdefs.h"
15133 #include <sys/types.h>
15137 switch (0) case 0: case (sizeof (short) == $ac_size):;
15140 if { (eval echo configure:15141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15142 ac_cv_sizeof_short=$ac_size
15144 echo "configure: failed program was:" >&5
15145 cat conftest.$ac_ext >&5
15148 if test x$ac_cv_sizeof_short != x ; then break; fi
15153 if test x$ac_cv_sizeof_short = x ; then
15154 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15156 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15157 cat >> confdefs.h <<EOF
15158 #define SIZEOF_SHORT $ac_cv_sizeof_short
15162 echo $ac_n "checking size of int""... $ac_c" 1>&6
15163 echo "configure:15164: checking size of int" >&5
15164 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15165 echo $ac_n "(cached) $ac_c" 1>&6
15167 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15168 cat > conftest.$ac_ext <<EOF
15169 #line 15170 "configure"
15170 #include "confdefs.h"
15171 #include "confdefs.h"
15172 #include <sys/types.h>
15176 switch (0) case 0: case (sizeof (int) == $ac_size):;
15179 if { (eval echo configure:15180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15181 ac_cv_sizeof_int=$ac_size
15183 echo "configure: failed program was:" >&5
15184 cat conftest.$ac_ext >&5
15187 if test x$ac_cv_sizeof_int != x ; then break; fi
15192 if test x$ac_cv_sizeof_int = x ; then
15193 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15195 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15196 cat >> confdefs.h <<EOF
15197 #define SIZEOF_INT $ac_cv_sizeof_int
15201 echo $ac_n "checking size of long""... $ac_c" 1>&6
15202 echo "configure:15203: checking size of long" >&5
15203 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15204 echo $ac_n "(cached) $ac_c" 1>&6
15206 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15207 cat > conftest.$ac_ext <<EOF
15208 #line 15209 "configure"
15209 #include "confdefs.h"
15210 #include "confdefs.h"
15211 #include <sys/types.h>
15215 switch (0) case 0: case (sizeof (long) == $ac_size):;
15218 if { (eval echo configure:15219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15220 ac_cv_sizeof_long=$ac_size
15222 echo "configure: failed program was:" >&5
15223 cat conftest.$ac_ext >&5
15226 if test x$ac_cv_sizeof_long != x ; then break; fi
15231 if test x$ac_cv_sizeof_long = x ; then
15232 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15234 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15235 cat >> confdefs.h <<EOF
15236 #define SIZEOF_LONG $ac_cv_sizeof_long
15241 if test "$ac_cv_sizeof_int" -lt 4 ; then
15242 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15244 cat >> confdefs.h <<\EOF
15245 #define LBER_INT_T long
15249 cat >> confdefs.h <<\EOF
15250 #define LBER_INT_T int
15255 cat >> confdefs.h <<\EOF
15256 #define LBER_LEN_T long
15259 cat >> confdefs.h <<\EOF
15260 #define LBER_SOCKET_T int
15263 cat >> confdefs.h <<\EOF
15264 #define LBER_TAG_T long
15268 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15269 echo "configure:15270: checking for 8-bit clean memcmp" >&5
15270 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15271 echo $ac_n "(cached) $ac_c" 1>&6
15273 if test "$cross_compiling" = yes; then
15274 ac_cv_func_memcmp_clean=no
15276 cat > conftest.$ac_ext <<EOF
15277 #line 15278 "configure"
15278 #include "confdefs.h"
15282 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15283 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15287 if { (eval echo configure:15288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15289 ac_cv_func_memcmp_clean=yes
15291 echo "configure: failed program was:" >&5
15292 cat conftest.$ac_ext >&5
15294 ac_cv_func_memcmp_clean=no
15301 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15302 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15304 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15305 echo "configure:15306: checking for strftime" >&5
15306 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15307 echo $ac_n "(cached) $ac_c" 1>&6
15309 cat > conftest.$ac_ext <<EOF
15310 #line 15311 "configure"
15311 #include "confdefs.h"
15312 /* System header to define __stub macros and hopefully few prototypes,
15313 which can conflict with char strftime(); below. */
15314 #include <assert.h>
15315 /* Override any gcc2 internal prototype to avoid an error. */
15316 /* We use char because int might match the return type of a gcc2
15317 builtin and then its argument prototype would still apply. */
15323 /* The GNU C library defines this for functions which it implements
15324 to always fail with ENOSYS. Some functions are actually named
15325 something starting with __ and the normal name is an alias. */
15326 #if defined (__stub_strftime) || defined (__stub___strftime)
15334 if { (eval echo configure:15335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15336 eval "ac_cv_func_strftime=yes"
15338 echo "configure: failed program was:" >&5
15339 cat conftest.$ac_ext >&5
15341 eval "ac_cv_func_strftime=no"
15346 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15347 echo "$ac_t""yes" 1>&6
15348 cat >> confdefs.h <<\EOF
15349 #define HAVE_STRFTIME 1
15353 echo "$ac_t""no" 1>&6
15354 # strftime is in -lintl on SCO UNIX.
15355 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15356 echo "configure:15357: checking for strftime in -lintl" >&5
15357 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15358 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15359 echo $ac_n "(cached) $ac_c" 1>&6
15361 ac_save_LIBS="$LIBS"
15362 LIBS="-lintl $LIBS"
15363 cat > conftest.$ac_ext <<EOF
15364 #line 15365 "configure"
15365 #include "confdefs.h"
15366 /* Override any gcc2 internal prototype to avoid an error. */
15367 /* We use char because int might match the return type of a gcc2
15368 builtin and then its argument prototype would still apply. */
15375 if { (eval echo configure:15376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15377 eval "ac_cv_lib_$ac_lib_var=yes"
15379 echo "configure: failed program was:" >&5
15380 cat conftest.$ac_ext >&5
15382 eval "ac_cv_lib_$ac_lib_var=no"
15385 LIBS="$ac_save_LIBS"
15388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15389 echo "$ac_t""yes" 1>&6
15390 cat >> confdefs.h <<\EOF
15391 #define HAVE_STRFTIME 1
15394 LIBS="-lintl $LIBS"
15396 echo "$ac_t""no" 1>&6
15402 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15403 echo "configure:15404: checking for inet_aton()" >&5
15404 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15405 echo $ac_n "(cached) $ac_c" 1>&6
15407 cat > conftest.$ac_ext <<EOF
15408 #line 15409 "configure"
15409 #include "confdefs.h"
15411 #ifdef HAVE_SYS_TYPES_H
15412 # include <sys/types.h>
15414 #ifdef HAVE_SYS_SOCKET_H
15415 # include <sys/socket.h>
15416 # ifdef HAVE_SYS_SELECT_H
15417 # include <sys/select.h>
15419 # include <netinet/in.h>
15420 # ifdef HAVE_ARPA_INET_H
15421 # include <arpa/inet.h>
15427 int rc = inet_aton( "255.255.255.255", &in );
15430 if { (eval echo configure:15431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15432 ol_cv_func_inet_aton=yes
15434 echo "configure: failed program was:" >&5
15435 cat conftest.$ac_ext >&5
15437 ol_cv_func_inet_aton=no
15442 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15443 if test $ol_cv_func_inet_aton != no; then
15444 cat >> confdefs.h <<\EOF
15445 #define HAVE_INET_ATON 1
15451 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15452 echo "configure:15453: checking for _spawnlp" >&5
15453 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15454 echo $ac_n "(cached) $ac_c" 1>&6
15456 cat > conftest.$ac_ext <<EOF
15457 #line 15458 "configure"
15458 #include "confdefs.h"
15459 /* System header to define __stub macros and hopefully few prototypes,
15460 which can conflict with char _spawnlp(); below. */
15461 #include <assert.h>
15462 /* Override any gcc2 internal prototype to avoid an error. */
15463 /* We use char because int might match the return type of a gcc2
15464 builtin and then its argument prototype would still apply. */
15470 /* The GNU C library defines this for functions which it implements
15471 to always fail with ENOSYS. Some functions are actually named
15472 something starting with __ and the normal name is an alias. */
15473 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15481 if { (eval echo configure:15482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15483 eval "ac_cv_func__spawnlp=yes"
15485 echo "configure: failed program was:" >&5
15486 cat conftest.$ac_ext >&5
15488 eval "ac_cv_func__spawnlp=no"
15493 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15494 echo "$ac_t""yes" 1>&6
15495 cat >> confdefs.h <<\EOF
15496 #define HAVE_SPAWNLP 1
15500 echo "$ac_t""no" 1>&6
15504 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15505 echo "configure:15506: checking for _snprintf" >&5
15506 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15507 echo $ac_n "(cached) $ac_c" 1>&6
15509 cat > conftest.$ac_ext <<EOF
15510 #line 15511 "configure"
15511 #include "confdefs.h"
15512 /* System header to define __stub macros and hopefully few prototypes,
15513 which can conflict with char _snprintf(); below. */
15514 #include <assert.h>
15515 /* Override any gcc2 internal prototype to avoid an error. */
15516 /* We use char because int might match the return type of a gcc2
15517 builtin and then its argument prototype would still apply. */
15523 /* The GNU C library defines this for functions which it implements
15524 to always fail with ENOSYS. Some functions are actually named
15525 something starting with __ and the normal name is an alias. */
15526 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15534 if { (eval echo configure:15535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15536 eval "ac_cv_func__snprintf=yes"
15538 echo "configure: failed program was:" >&5
15539 cat conftest.$ac_ext >&5
15541 eval "ac_cv_func__snprintf=no"
15546 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15547 echo "$ac_t""yes" 1>&6
15548 ac_cv_func_snprintf=yes
15549 cat >> confdefs.h <<\EOF
15550 #define snprintf _snprintf
15555 echo "$ac_t""no" 1>&6
15559 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15560 echo "configure:15561: checking for _vsnprintf" >&5
15561 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15562 echo $ac_n "(cached) $ac_c" 1>&6
15564 cat > conftest.$ac_ext <<EOF
15565 #line 15566 "configure"
15566 #include "confdefs.h"
15567 /* System header to define __stub macros and hopefully few prototypes,
15568 which can conflict with char _vsnprintf(); below. */
15569 #include <assert.h>
15570 /* Override any gcc2 internal prototype to avoid an error. */
15571 /* We use char because int might match the return type of a gcc2
15572 builtin and then its argument prototype would still apply. */
15578 /* The GNU C library defines this for functions which it implements
15579 to always fail with ENOSYS. Some functions are actually named
15580 something starting with __ and the normal name is an alias. */
15581 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15589 if { (eval echo configure:15590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15591 eval "ac_cv_func__vsnprintf=yes"
15593 echo "configure: failed program was:" >&5
15594 cat conftest.$ac_ext >&5
15596 eval "ac_cv_func__vsnprintf=no"
15601 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15602 echo "$ac_t""yes" 1>&6
15603 ac_cv_func_vsnprintf=yes
15604 cat >> confdefs.h <<\EOF
15605 #define vsnprintf _vsnprintf
15610 echo "$ac_t""no" 1>&6
15614 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15615 echo "configure:15616: checking for vprintf" >&5
15616 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15617 echo $ac_n "(cached) $ac_c" 1>&6
15619 cat > conftest.$ac_ext <<EOF
15620 #line 15621 "configure"
15621 #include "confdefs.h"
15622 /* System header to define __stub macros and hopefully few prototypes,
15623 which can conflict with char vprintf(); below. */
15624 #include <assert.h>
15625 /* Override any gcc2 internal prototype to avoid an error. */
15626 /* We use char because int might match the return type of a gcc2
15627 builtin and then its argument prototype would still apply. */
15633 /* The GNU C library defines this for functions which it implements
15634 to always fail with ENOSYS. Some functions are actually named
15635 something starting with __ and the normal name is an alias. */
15636 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15644 if { (eval echo configure:15645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15646 eval "ac_cv_func_vprintf=yes"
15648 echo "configure: failed program was:" >&5
15649 cat conftest.$ac_ext >&5
15651 eval "ac_cv_func_vprintf=no"
15656 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15657 echo "$ac_t""yes" 1>&6
15658 cat >> confdefs.h <<\EOF
15659 #define HAVE_VPRINTF 1
15663 echo "$ac_t""no" 1>&6
15666 if test "$ac_cv_func_vprintf" != yes; then
15667 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15668 echo "configure:15669: checking for _doprnt" >&5
15669 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15670 echo $ac_n "(cached) $ac_c" 1>&6
15672 cat > conftest.$ac_ext <<EOF
15673 #line 15674 "configure"
15674 #include "confdefs.h"
15675 /* System header to define __stub macros and hopefully few prototypes,
15676 which can conflict with char _doprnt(); below. */
15677 #include <assert.h>
15678 /* Override any gcc2 internal prototype to avoid an error. */
15679 /* We use char because int might match the return type of a gcc2
15680 builtin and then its argument prototype would still apply. */
15686 /* The GNU C library defines this for functions which it implements
15687 to always fail with ENOSYS. Some functions are actually named
15688 something starting with __ and the normal name is an alias. */
15689 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15697 if { (eval echo configure:15698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15699 eval "ac_cv_func__doprnt=yes"
15701 echo "configure: failed program was:" >&5
15702 cat conftest.$ac_ext >&5
15704 eval "ac_cv_func__doprnt=no"
15709 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15710 echo "$ac_t""yes" 1>&6
15711 cat >> confdefs.h <<\EOF
15712 #define HAVE_DOPRNT 1
15716 echo "$ac_t""no" 1>&6
15722 if test $ac_cv_func_vprintf = yes ; then
15723 for ac_func in vsnprintf vsprintf
15725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15726 echo "configure:15727: checking for $ac_func" >&5
15727 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15728 echo $ac_n "(cached) $ac_c" 1>&6
15730 cat > conftest.$ac_ext <<EOF
15731 #line 15732 "configure"
15732 #include "confdefs.h"
15733 /* System header to define __stub macros and hopefully few prototypes,
15734 which can conflict with char $ac_func(); below. */
15735 #include <assert.h>
15736 /* Override any gcc2 internal prototype to avoid an error. */
15737 /* We use char because int might match the return type of a gcc2
15738 builtin and then its argument prototype would still apply. */
15744 /* The GNU C library defines this for functions which it implements
15745 to always fail with ENOSYS. Some functions are actually named
15746 something starting with __ and the normal name is an alias. */
15747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15755 if { (eval echo configure:15756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15757 eval "ac_cv_func_$ac_func=yes"
15759 echo "configure: failed program was:" >&5
15760 cat conftest.$ac_ext >&5
15762 eval "ac_cv_func_$ac_func=no"
15767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15768 echo "$ac_t""yes" 1>&6
15769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15770 cat >> confdefs.h <<EOF
15771 #define $ac_tr_func 1
15775 echo "$ac_t""no" 1>&6
15833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15834 echo "configure:15835: checking for $ac_func" >&5
15835 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15836 echo $ac_n "(cached) $ac_c" 1>&6
15838 cat > conftest.$ac_ext <<EOF
15839 #line 15840 "configure"
15840 #include "confdefs.h"
15841 /* System header to define __stub macros and hopefully few prototypes,
15842 which can conflict with char $ac_func(); below. */
15843 #include <assert.h>
15844 /* Override any gcc2 internal prototype to avoid an error. */
15845 /* We use char because int might match the return type of a gcc2
15846 builtin and then its argument prototype would still apply. */
15852 /* The GNU C library defines this for functions which it implements
15853 to always fail with ENOSYS. Some functions are actually named
15854 something starting with __ and the normal name is an alias. */
15855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15863 if { (eval echo configure:15864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15865 eval "ac_cv_func_$ac_func=yes"
15867 echo "configure: failed program was:" >&5
15868 cat conftest.$ac_ext >&5
15870 eval "ac_cv_func_$ac_func=no"
15875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15876 echo "$ac_t""yes" 1>&6
15877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15878 cat >> confdefs.h <<EOF
15879 #define $ac_tr_func 1
15883 echo "$ac_t""no" 1>&6
15888 for ac_func in getopt tempnam
15890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15891 echo "configure:15892: checking for $ac_func" >&5
15892 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15893 echo $ac_n "(cached) $ac_c" 1>&6
15895 cat > conftest.$ac_ext <<EOF
15896 #line 15897 "configure"
15897 #include "confdefs.h"
15898 /* System header to define __stub macros and hopefully few prototypes,
15899 which can conflict with char $ac_func(); below. */
15900 #include <assert.h>
15901 /* Override any gcc2 internal prototype to avoid an error. */
15902 /* We use char because int might match the return type of a gcc2
15903 builtin and then its argument prototype would still apply. */
15909 /* The GNU C library defines this for functions which it implements
15910 to always fail with ENOSYS. Some functions are actually named
15911 something starting with __ and the normal name is an alias. */
15912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15920 if { (eval echo configure:15921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15922 eval "ac_cv_func_$ac_func=yes"
15924 echo "configure: failed program was:" >&5
15925 cat conftest.$ac_ext >&5
15927 eval "ac_cv_func_$ac_func=no"
15932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15933 echo "$ac_t""yes" 1>&6
15934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15935 cat >> confdefs.h <<EOF
15936 #define $ac_tr_func 1
15940 echo "$ac_t""no" 1>&6
15941 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15947 if test "$ac_cv_func_getopt" != yes; then
15948 LIBSRCS="$LIBSRCS getopt.c"
15951 if test "$ac_cv_func_tempnam" != yes; then
15952 LIBSRCS="$LIBSRCS tempnam.c"
15955 # Check Configuration
15956 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15957 echo "configure:15958: checking declaration of sys_errlist" >&5
15958 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15959 echo $ac_n "(cached) $ac_c" 1>&6
15962 cat > conftest.$ac_ext <<EOF
15963 #line 15964 "configure"
15964 #include "confdefs.h"
15967 #include <sys/types.h>
15970 #include <stdlib.h>
15973 char *c = (char *) *sys_errlist
15976 if { (eval echo configure:15977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15978 ol_cv_dcl_sys_errlist=yes
15979 ol_cv_have_sys_errlist=yes
15981 echo "configure: failed program was:" >&5
15982 cat conftest.$ac_ext >&5
15984 ol_cv_dcl_sys_errlist=no
15989 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15991 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15992 if test $ol_cv_dcl_sys_errlist = no ; then
15993 cat >> confdefs.h <<\EOF
15994 #define DECL_SYS_ERRLIST 1
15998 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15999 echo "configure:16000: checking existence of sys_errlist" >&5
16000 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
16001 echo $ac_n "(cached) $ac_c" 1>&6
16004 cat > conftest.$ac_ext <<EOF
16005 #line 16006 "configure"
16006 #include "confdefs.h"
16009 char *c = (char *) *sys_errlist
16012 if { (eval echo configure:16013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16014 ol_cv_have_sys_errlist=yes
16016 echo "configure: failed program was:" >&5
16017 cat conftest.$ac_ext >&5
16019 ol_cv_have_sys_errlist=no
16024 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
16026 if test $ol_cv_have_sys_errlist = yes ; then
16027 cat >> confdefs.h <<\EOF
16028 #define HAVE_SYS_ERRLIST 1
16035 if test "$ol_enable_debug" != no ; then
16036 cat >> confdefs.h <<\EOF
16037 #define LDAP_DEBUG 1
16041 if test "$ol_enable_syslog" = yes ; then
16042 cat >> confdefs.h <<\EOF
16043 #define LDAP_SYSLOG 1
16047 if test "$ol_enable_cache" = no ; then
16048 cat >> confdefs.h <<\EOF
16049 #define LDAP_NOCACHE 1
16053 if test "$ol_link_kbind" != no ; then
16054 cat >> confdefs.h <<\EOF
16055 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16059 if test "$ol_enable_proctitle" != no ; then
16060 cat >> confdefs.h <<\EOF
16061 #define LDAP_PROCTITLE 1
16065 if test "$ol_enable_referrals" != no ; then
16066 cat >> confdefs.h <<\EOF
16067 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16071 if test "$ol_enable_local" != no; then
16072 cat >> confdefs.h <<\EOF
16073 #define LDAP_PF_LOCAL 1
16077 if test "$ol_link_ipv6" != no; then
16078 cat >> confdefs.h <<\EOF
16079 #define LDAP_PF_INET6 1
16083 if test "$ol_enable_cleartext" != no ; then
16084 cat >> confdefs.h <<\EOF
16085 #define SLAPD_CLEARTEXT 1
16089 if test "$ol_enable_crypt" != no ; then
16090 cat >> confdefs.h <<\EOF
16091 #define SLAPD_CRYPT 1
16095 if test "$ol_link_kpasswd" != no ; then
16096 cat >> confdefs.h <<\EOF
16097 #define SLAPD_KPASSWD 1
16101 if test "$ol_link_spasswd" != no ; then
16102 cat >> confdefs.h <<\EOF
16103 #define SLAPD_SPASSWD 1
16107 if test "$ol_enable_phonetic" != no ; then
16108 cat >> confdefs.h <<\EOF
16109 #define SLAPD_PHONETIC 1
16113 if test "$ol_enable_rlookups" != no ; then
16114 cat >> confdefs.h <<\EOF
16115 #define SLAPD_RLOOKUPS 1
16119 if test "$ol_enable_aci" != no ; then
16120 cat >> confdefs.h <<\EOF
16121 #define SLAPD_ACI_ENABLED 1
16126 if test "$ol_link_modules" != no ; then
16127 cat >> confdefs.h <<\EOF
16128 #define SLAPD_MODULES 1
16132 SLAPD_MODULES_LDFLAGS="-dlopen self"
16135 if test "$ol_link_dnssrv" != no ; then
16136 cat >> confdefs.h <<\EOF
16137 #define SLAPD_DNSSRV 1
16142 if test "$ol_with_dnssrv_module" != static ; then
16143 cat >> confdefs.h <<\EOF
16144 #define SLAPD_DNSSRV_DYNAMIC 1
16148 BUILD_DNSSRV_DYNAMIC=shared
16149 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16153 if test "$ol_enable_ldap" != no ; then
16154 cat >> confdefs.h <<\EOF
16155 #define SLAPD_LDAP 1
16160 if test "$ol_with_ldap_module" != static ; then
16161 cat >> confdefs.h <<\EOF
16162 #define SLAPD_LDAP_DYNAMIC 1
16166 BUILD_LDAP_DYNAMIC=shared
16167 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16171 if test "$ol_link_ldbm" != no ; then
16172 cat >> confdefs.h <<\EOF
16173 #define SLAPD_LDBM 1
16178 if test "$ol_with_ldbm_module" != static ; then
16179 cat >> confdefs.h <<\EOF
16180 #define SLAPD_LDBM_DYNAMIC 1
16184 BUILD_LDBM_DYNAMIC=shared
16185 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16189 if test "$ol_enable_passwd" != no ; then
16190 cat >> confdefs.h <<\EOF
16191 #define SLAPD_PASSWD 1
16196 if test "$ol_with_passwd_module" != static ; then
16197 cat >> confdefs.h <<\EOF
16198 #define SLAPD_PASSWD_DYNAMIC 1
16202 BUILD_PASSWD_DYNAMIC=shared
16203 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16207 if test "$ol_enable_shell" != no ; then
16208 cat >> confdefs.h <<\EOF
16209 #define SLAPD_SHELL 1
16214 if test "$ol_with_shell_module" != static ; then
16215 cat >> confdefs.h <<\EOF
16216 #define SLAPD_SHELL_DYNAMIC 1
16220 BUILD_SHELL_DYNAMIC=shared
16221 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16225 if test "$ol_enable_sql" != no ; then
16226 cat >> confdefs.h <<\EOF
16227 #define SLAPD_SQL 1
16232 if test "$ol_with_sql_module" != static; then
16233 cat >> confdefs.h <<\EOF
16234 #define SLAPD_SQL_DYNAMIC 1
16238 BUILD_SQL_DYNAMIC=shared
16239 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16243 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16244 $BUILD_SLAPD = yes ; then
16249 if test "$LINK_BINS_DYNAMIC" = yes; then
16251 LT_LIB_LINKAGE=shared
16254 LT_LIB_LINKAGE=static
16257 if test "$ac_cv_mingw32" = yes ; then
16317 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16320 # Let make expand exec_prefix.
16321 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16323 # Any assignment to VPATH causes Sun make to only execute
16324 # the first set of double-colon rules, so remove it if not needed.
16325 # If there is a colon in the path, we need to keep it.
16326 if test "x$srcdir" = x.; then
16327 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16330 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16332 DEFS=-DHAVE_CONFIG_H
16334 # Without the "./", some shells look in PATH for config.status.
16335 : ${CONFIG_STATUS=./config.status}
16337 echo creating $CONFIG_STATUS
16338 rm -f $CONFIG_STATUS
16339 cat > $CONFIG_STATUS <<EOF
16341 # Generated automatically by configure.
16342 # Run this file to recreate the current configuration.
16343 # This directory was configured as follows,
16344 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16346 # $0 $ac_configure_args
16348 # Compiler output produced by configure, useful for debugging
16349 # configure, is in ./config.log if it exists.
16351 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16354 case "\$ac_option" in
16355 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16356 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16357 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16358 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16359 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16361 -help | --help | --hel | --he | --h)
16362 echo "\$ac_cs_usage"; exit 0 ;;
16363 *) echo "\$ac_cs_usage"; exit 1 ;;
16367 ac_given_srcdir=$srcdir
16368 ac_given_INSTALL="$INSTALL"
16370 trap 'rm -fr `echo "\
16371 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16372 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16373 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16374 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16375 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16376 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16377 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16378 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16379 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16380 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16381 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16382 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16383 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16384 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16385 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16386 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16387 include/Makefile:build/top.mk:include/Makefile.in \
16388 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16389 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16390 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16391 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16392 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16393 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16394 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16395 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16396 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16397 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16398 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16399 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16400 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16401 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16402 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16403 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16404 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16405 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16406 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16407 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16408 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16409 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16410 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16411 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16413 cat >> $CONFIG_STATUS <<EOF
16415 # Protect against being on the right side of a sed subst in config.status.
16416 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16417 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16421 s%@CFLAGS@%$CFLAGS%g
16422 s%@CPPFLAGS@%$CPPFLAGS%g
16423 s%@CXXFLAGS@%$CXXFLAGS%g
16424 s%@FFLAGS@%$FFLAGS%g
16426 s%@LDFLAGS@%$LDFLAGS%g
16428 s%@exec_prefix@%$exec_prefix%g
16429 s%@prefix@%$prefix%g
16430 s%@program_transform_name@%$program_transform_name%g
16431 s%@bindir@%$bindir%g
16432 s%@sbindir@%$sbindir%g
16433 s%@libexecdir@%$libexecdir%g
16434 s%@datadir@%$datadir%g
16435 s%@sysconfdir@%$sysconfdir%g
16436 s%@sharedstatedir@%$sharedstatedir%g
16437 s%@localstatedir@%$localstatedir%g
16438 s%@libdir@%$libdir%g
16439 s%@includedir@%$includedir%g
16440 s%@oldincludedir@%$oldincludedir%g
16441 s%@infodir@%$infodir%g
16442 s%@mandir@%$mandir%g
16444 s%@host_alias@%$host_alias%g
16445 s%@host_cpu@%$host_cpu%g
16446 s%@host_vendor@%$host_vendor%g
16447 s%@host_os@%$host_os%g
16448 s%@target@%$target%g
16449 s%@target_alias@%$target_alias%g
16450 s%@target_cpu@%$target_cpu%g
16451 s%@target_vendor@%$target_vendor%g
16452 s%@target_os@%$target_os%g
16454 s%@build_alias@%$build_alias%g
16455 s%@build_cpu@%$build_cpu%g
16456 s%@build_vendor@%$build_vendor%g
16457 s%@build_os@%$build_os%g
16458 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16459 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16460 s%@INSTALL_DATA@%$INSTALL_DATA%g
16461 s%@PACKAGE@%$PACKAGE%g
16462 s%@VERSION@%$VERSION%g
16463 s%@ACLOCAL@%$ACLOCAL%g
16464 s%@AUTOCONF@%$AUTOCONF%g
16465 s%@AUTOMAKE@%$AUTOMAKE%g
16466 s%@AUTOHEADER@%$AUTOHEADER%g
16467 s%@MAKEINFO@%$MAKEINFO%g
16468 s%@install_sh@%$install_sh%g
16471 s%@AMTARFLAGS@%$AMTARFLAGS%g
16472 s%@SET_MAKE@%$SET_MAKE%g
16473 s%@top_builddir@%$top_builddir%g
16474 s%@ldap_subdir@%$ldap_subdir%g
16476 s%@RANLIB@%$RANLIB%g
16478 s%@DLLTOOL@%$DLLTOOL%g
16480 s%@OBJDUMP@%$OBJDUMP%g
16481 s%@LIBTOOL@%$LIBTOOL%g
16483 s%@SENDMAIL@%$SENDMAIL%g
16484 s%@EDITOR@%$EDITOR%g
16485 s%@FINGER@%$FINGER%g
16487 s%@EXEEXT@%$EXEEXT%g
16488 s%@OBJEXT@%$OBJEXT%g
16489 s%@OL_MKDEP@%$OL_MKDEP%g
16490 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16491 s%@LIBOBJS@%$LIBOBJS%g
16492 s%@LIBSRCS@%$LIBSRCS%g
16494 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16495 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16496 s%@DYN_EXT@%$DYN_EXT%g
16497 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16498 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16499 s%@BUILD_LDAP@%$BUILD_LDAP%g
16500 s%@BUILD_LDBM@%$BUILD_LDBM%g
16501 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16502 s%@BUILD_SHELL@%$BUILD_SHELL%g
16503 s%@BUILD_SQL@%$BUILD_SQL%g
16504 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16505 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16506 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16507 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16508 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16509 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16510 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16511 s%@LDAP_LIBS@%$LDAP_LIBS%g
16512 s%@LDIF_LIBS@%$LDIF_LIBS%g
16513 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16514 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16515 s%@LDBM_LIBS@%$LDBM_LIBS%g
16516 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16517 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16518 s%@WRAP_LIBS@%$WRAP_LIBS%g
16519 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16520 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16521 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16522 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16523 s%@KRB4_LIBS@%$KRB4_LIBS%g
16524 s%@KRB5_LIBS@%$KRB5_LIBS%g
16525 s%@READLINE_LIBS@%$READLINE_LIBS%g
16526 s%@SASL_LIBS@%$SASL_LIBS%g
16527 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16528 s%@TLS_LIBS@%$TLS_LIBS%g
16529 s%@MODULES_LIBS@%$MODULES_LIBS%g
16530 s%@AUTH_LIBS@%$AUTH_LIBS%g
16531 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16532 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16533 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16538 cat >> $CONFIG_STATUS <<\EOF
16540 # Split the substitutions into bite-sized pieces for seds with
16541 # small command number limits, like on Digital OSF/1 and HP-UX.
16542 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16543 ac_file=1 # Number of current file.
16544 ac_beg=1 # First line for current file.
16545 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16548 while $ac_more_lines; do
16549 if test $ac_beg -gt 1; then
16550 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16552 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16554 if test ! -s conftest.s$ac_file; then
16555 ac_more_lines=false
16556 rm -f conftest.s$ac_file
16558 if test -z "$ac_sed_cmds"; then
16559 ac_sed_cmds="sed -f conftest.s$ac_file"
16561 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16563 ac_file=`expr $ac_file + 1`
16565 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16568 if test -z "$ac_sed_cmds"; then
16573 cat >> $CONFIG_STATUS <<EOF
16575 CONFIG_FILES=\${CONFIG_FILES-"\
16576 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16577 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16578 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16579 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16580 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16581 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16582 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16583 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16584 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16585 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16586 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16587 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16588 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16589 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16590 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16591 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16592 include/Makefile:build/top.mk:include/Makefile.in \
16593 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16594 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16595 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16596 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16597 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16598 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16599 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16600 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16601 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16602 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16603 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16604 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16605 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16606 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16607 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16608 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16609 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16610 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16611 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16612 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16613 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16614 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16615 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16618 cat >> $CONFIG_STATUS <<\EOF
16619 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16620 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16622 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16623 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16624 *) ac_file_in="${ac_file}.in" ;;
16627 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16629 # Remove last slash and all that follows it. Not all systems have dirname.
16630 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16631 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16632 # The file is in a subdirectory.
16633 test ! -d "$ac_dir" && mkdir "$ac_dir"
16634 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16635 # A "../" for each directory in $ac_dir_suffix.
16636 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16638 ac_dir_suffix= ac_dots=
16641 case "$ac_given_srcdir" in
16643 if test -z "$ac_dots"; then top_srcdir=.
16644 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16645 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16646 *) # Relative path.
16647 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16648 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16651 case "$ac_given_INSTALL" in
16652 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16653 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16656 echo creating "$ac_file"
16658 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16660 *[Mm]akefile*) ac_comsub="1i\\
16661 # $configure_input" ;;
16665 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16667 s%@configure_input@%$configure_input%g
16668 s%@srcdir@%$srcdir%g
16669 s%@top_srcdir@%$top_srcdir%g
16670 s%@INSTALL@%$INSTALL%g
16671 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16675 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16676 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16678 # ac_d sets the value in "#define NAME VALUE" lines.
16679 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16680 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16683 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16684 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16685 ac_uB='\([ ]\)%\1#\2define\3'
16688 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16689 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16690 ac_eB='$%\1#\2define\3'
16694 if test "${CONFIG_HEADERS+set}" != set; then
16696 cat >> $CONFIG_STATUS <<EOF
16697 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16699 cat >> $CONFIG_STATUS <<\EOF
16701 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16702 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16704 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16705 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16706 *) ac_file_in="${ac_file}.in" ;;
16709 echo creating $ac_file
16711 rm -f conftest.frag conftest.in conftest.out
16712 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16713 cat $ac_file_inputs > conftest.in
16717 # Transform confdefs.h into a sed script conftest.vals that substitutes
16718 # the proper values into config.h.in to produce config.h. And first:
16719 # Protect against being on the right side of a sed subst in config.status.
16720 # Protect against being in an unquoted here document in config.status.
16721 rm -f conftest.vals
16722 cat > conftest.hdr <<\EOF
16725 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16729 sed -n -f conftest.hdr confdefs.h > conftest.vals
16732 # This sed command replaces #undef with comments. This is necessary, for
16733 # example, in the case of _POSIX_SOURCE, which is predefined and required
16734 # on some systems where configure will not decide to define it.
16735 cat >> conftest.vals <<\EOF
16736 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16739 # Break up conftest.vals because some shells have a limit on
16740 # the size of here documents, and old seds have small limits too.
16742 rm -f conftest.tail
16745 ac_lines=`grep -c . conftest.vals`
16746 # grep -c gives empty output for an empty file on some AIX systems.
16747 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16748 # Write a limited-size here document to conftest.frag.
16749 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16750 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16752 sed -f conftest.frag conftest.in > conftest.out
16754 mv conftest.out conftest.in
16755 ' >> $CONFIG_STATUS
16756 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16757 rm -f conftest.vals
16758 mv conftest.tail conftest.vals
16760 rm -f conftest.vals
16762 cat >> $CONFIG_STATUS <<\EOF
16763 rm -f conftest.frag conftest.h
16764 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16765 cat conftest.in >> conftest.h
16767 if cmp -s $ac_file conftest.h 2>/dev/null; then
16768 echo "$ac_file is unchanged"
16771 # Remove last slash and all that follows it. Not all systems have dirname.
16772 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16773 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16774 # The file is in a subdirectory.
16775 test ! -d "$ac_dir" && mkdir "$ac_dir"
16778 mv conftest.h $ac_file
16783 cat >> $CONFIG_STATUS <<EOF
16786 cat >> $CONFIG_STATUS <<\EOF
16789 echo Please \"make depend\" to build dependencies
16793 chmod +x $CONFIG_STATUS
16794 rm -fr confdefs* $ac_clean_files
16795 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1