3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-cyrus-sasl with Cyrus SASL support (auto)"
38 --with-fetch with fetch URL support (auto)"
40 --with-kerberos with Kerberos support (auto)"
42 --with-readline with readline support (auto)"
44 --with-threads use threads (auto)"
46 --with-tls with TLS/SSL support (auto)"
48 --with-yielding-select with implicitly yielding select (auto)"
52 --enable-ldapd enable building ldapd (no)"
56 --enable-slapd enable building slapd (yes)"
58 --enable-cleartext enable cleartext passwords (yes)"
60 --enable-crypt enable crypt(3) passwords (auto)"
62 --enable-modules enable dynamic module support (no)"
64 --enable-phonetic enable phonetic/soundex (no)"
66 --enable-rlookups enable reverse lookups (auto)"
68 --enable-wrappers enable tcp wrapper support (no)"
70 --enable-bdb2 enable bdb2 backend (no)"
72 --with-bdb2-module module type (static)"
74 --enable-ldap enable ldap backend (no)"
76 --with-ldap-module module type (static)"
78 --enable-ldbm enable ldbm backend (yes)"
80 --with-ldbm-module module type (static)"
82 --with-ldbm-api use LDBM API (auto)"
84 --with-ldbm-type use LDBM type (auto)"
86 --enable-passwd enable passwd backend (no)"
88 --with-passwd-module module type (static)"
90 --enable-perl enable perl backend (no)"
92 --with-perl-module module type (static)"
94 --enable-shell enable shell backend (no)"
96 --with-shell-module module type (static)"
98 --enable-tcl enable tcl backend (no)"
100 --with-tcl-module module type (static)"
104 --enable-slurpd enable building slurpd (auto)"
106 Library Generation & Linking Options"
108 --enable-static[=PKGS] build static libraries [default=yes]"
110 --enable-shared[=PKGS] build shared libraries [default=yes]"
112 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
114 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
116 --disable-libtool-lock avoid locking (might break parallel builds)"
118 # Initialize some variables set by options.
119 # The variables have the same names as the options, with
120 # dashes changed to underlines.
122 cache_file=./config.cache
131 program_transform_name=s,x,x,
139 bindir='${exec_prefix}/bin'
140 sbindir='${exec_prefix}/sbin'
141 libexecdir='${exec_prefix}/libexec'
142 datadir='${prefix}/share'
143 sysconfdir='${prefix}/etc'
144 sharedstatedir='${prefix}/com'
145 localstatedir='${prefix}/var'
146 libdir='${exec_prefix}/lib'
147 includedir='${prefix}/include'
148 oldincludedir='/usr/include'
149 infodir='${prefix}/info'
150 mandir='${prefix}/man'
152 # Initialize some other variables.
155 SHELL=${CONFIG_SHELL-/bin/sh}
156 # Maximum number of lines to put in a shell here document.
163 # If the previous option needs an argument, assign it.
164 if test -n "$ac_prev"; then
165 eval "$ac_prev=\$ac_option"
171 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
175 # Accept the important Cygnus configure options, so we can diagnose typos.
179 -bindir | --bindir | --bindi | --bind | --bin | --bi)
181 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
182 bindir="$ac_optarg" ;;
184 -build | --build | --buil | --bui | --bu)
186 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
187 build="$ac_optarg" ;;
189 -cache-file | --cache-file | --cache-fil | --cache-fi \
190 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
191 ac_prev=cache_file ;;
192 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
193 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
194 cache_file="$ac_optarg" ;;
196 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
198 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
200 datadir="$ac_optarg" ;;
202 -disable-* | --disable-*)
203 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
204 # Reject names that are not valid shell variable names.
205 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
206 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
208 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
209 eval "enable_${ac_feature}=no" ;;
211 -enable-* | --enable-*)
212 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
213 # Reject names that are not valid shell variable names.
214 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
215 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
217 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
222 eval "enable_${ac_feature}='$ac_optarg'" ;;
224 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
225 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
226 | --exec | --exe | --ex)
227 ac_prev=exec_prefix ;;
228 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
229 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
230 | --exec=* | --exe=* | --ex=*)
231 exec_prefix="$ac_optarg" ;;
233 -gas | --gas | --ga | --g)
234 # Obsolete; use --with-gas.
237 -help | --help | --hel | --he)
238 # Omit some internal or obsolete options to make the list less imposing.
239 # This message is too long to be a string in the A/UX 3.1 sh.
241 Usage: configure [options] [host]
242 Options: [defaults in brackets after descriptions]
244 --cache-file=FILE cache test results in FILE
245 --help print this message
246 --no-create do not create output files
247 --quiet, --silent do not print \`checking...' messages
248 --version print the version of autoconf that created configure
249 Directory and file names:
250 --prefix=PREFIX install architecture-independent files in PREFIX
252 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
254 --bindir=DIR user executables in DIR [EPREFIX/bin]
255 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
256 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
257 --datadir=DIR read-only architecture-independent data in DIR
259 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
260 --sharedstatedir=DIR modifiable architecture-independent data in DIR
262 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
263 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
264 --includedir=DIR C header files in DIR [PREFIX/include]
265 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
266 --infodir=DIR info documentation in DIR [PREFIX/info]
267 --mandir=DIR man documentation in DIR [PREFIX/man]
268 --srcdir=DIR find the sources in DIR [configure dir or ..]
269 --program-prefix=PREFIX prepend PREFIX to installed program names
270 --program-suffix=SUFFIX append SUFFIX to installed program names
271 --program-transform-name=PROGRAM
272 run sed PROGRAM on installed program names
276 --build=BUILD configure for building on BUILD [BUILD=HOST]
277 --host=HOST configure for HOST [guessed]
278 --target=TARGET configure for TARGET [TARGET=HOST]
279 Features and packages:
280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
282 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
283 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
284 --x-includes=DIR X include files are in DIR
285 --x-libraries=DIR X library files are in DIR
287 if test -n "$ac_help"; then
288 echo "--enable and --with options recognized:$ac_help"
292 -host | --host | --hos | --ho)
294 -host=* | --host=* | --hos=* | --ho=*)
297 -includedir | --includedir | --includedi | --included | --include \
298 | --includ | --inclu | --incl | --inc)
299 ac_prev=includedir ;;
300 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
301 | --includ=* | --inclu=* | --incl=* | --inc=*)
302 includedir="$ac_optarg" ;;
304 -infodir | --infodir | --infodi | --infod | --info | --inf)
306 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
307 infodir="$ac_optarg" ;;
309 -libdir | --libdir | --libdi | --libd)
311 -libdir=* | --libdir=* | --libdi=* | --libd=*)
312 libdir="$ac_optarg" ;;
314 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
315 | --libexe | --libex | --libe)
316 ac_prev=libexecdir ;;
317 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
318 | --libexe=* | --libex=* | --libe=*)
319 libexecdir="$ac_optarg" ;;
321 -localstatedir | --localstatedir | --localstatedi | --localstated \
322 | --localstate | --localstat | --localsta | --localst \
323 | --locals | --local | --loca | --loc | --lo)
324 ac_prev=localstatedir ;;
325 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
326 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
327 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
328 localstatedir="$ac_optarg" ;;
330 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
332 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
333 mandir="$ac_optarg" ;;
336 # Obsolete; use --without-fp.
339 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
343 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
344 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
347 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
348 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
349 | --oldin | --oldi | --old | --ol | --o)
350 ac_prev=oldincludedir ;;
351 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
352 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
353 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
354 oldincludedir="$ac_optarg" ;;
356 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
358 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
359 prefix="$ac_optarg" ;;
361 -program-prefix | --program-prefix | --program-prefi | --program-pref \
362 | --program-pre | --program-pr | --program-p)
363 ac_prev=program_prefix ;;
364 -program-prefix=* | --program-prefix=* | --program-prefi=* \
365 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
366 program_prefix="$ac_optarg" ;;
368 -program-suffix | --program-suffix | --program-suffi | --program-suff \
369 | --program-suf | --program-su | --program-s)
370 ac_prev=program_suffix ;;
371 -program-suffix=* | --program-suffix=* | --program-suffi=* \
372 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
373 program_suffix="$ac_optarg" ;;
375 -program-transform-name | --program-transform-name \
376 | --program-transform-nam | --program-transform-na \
377 | --program-transform-n | --program-transform- \
378 | --program-transform | --program-transfor \
379 | --program-transfo | --program-transf \
380 | --program-trans | --program-tran \
381 | --progr-tra | --program-tr | --program-t)
382 ac_prev=program_transform_name ;;
383 -program-transform-name=* | --program-transform-name=* \
384 | --program-transform-nam=* | --program-transform-na=* \
385 | --program-transform-n=* | --program-transform-=* \
386 | --program-transform=* | --program-transfor=* \
387 | --program-transfo=* | --program-transf=* \
388 | --program-trans=* | --program-tran=* \
389 | --progr-tra=* | --program-tr=* | --program-t=*)
390 program_transform_name="$ac_optarg" ;;
392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
393 | -silent | --silent | --silen | --sile | --sil)
396 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
398 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
400 sbindir="$ac_optarg" ;;
402 -sharedstatedir | --sharedstatedir | --sharedstatedi \
403 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
404 | --sharedst | --shareds | --shared | --share | --shar \
406 ac_prev=sharedstatedir ;;
407 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
408 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
409 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
411 sharedstatedir="$ac_optarg" ;;
413 -site | --site | --sit)
415 -site=* | --site=* | --sit=*)
418 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
420 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
421 srcdir="$ac_optarg" ;;
423 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
424 | --syscon | --sysco | --sysc | --sys | --sy)
425 ac_prev=sysconfdir ;;
426 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
427 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
428 sysconfdir="$ac_optarg" ;;
430 -target | --target | --targe | --targ | --tar | --ta | --t)
432 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
433 target="$ac_optarg" ;;
435 -v | -verbose | --verbose | --verbos | --verbo | --verb)
438 -version | --version | --versio | --versi | --vers)
439 echo "configure generated by autoconf version 2.13.1"
443 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
444 # Reject names that are not valid shell variable names.
445 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
446 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
448 ac_package=`echo $ac_package| sed 's/-/_/g'`
453 eval "with_${ac_package}='$ac_optarg'" ;;
455 -without-* | --without-*)
456 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
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'`
462 eval "with_${ac_package}=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
469 | --x-incl | --x-inc | --x-in | --x-i)
470 ac_prev=x_includes ;;
471 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
472 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
473 x_includes="$ac_optarg" ;;
475 -x-libraries | --x-libraries | --x-librarie | --x-librari \
476 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
477 ac_prev=x_libraries ;;
478 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
479 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
480 x_libraries="$ac_optarg" ;;
482 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
486 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
487 echo "configure: warning: $ac_option: invalid host type" 1>&2
489 if test "x$nonopt" != xNONE; then
490 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
498 if test -n "$ac_prev"; then
499 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
502 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
504 # File descriptor usage:
507 # 2 errors and warnings
508 # 3 some systems may open it to /dev/tty
509 # 4 used on the Kubota Titan
510 # 6 checking for... messages and results
511 # 5 compiler messages saved in config.log
512 if test "$silent" = yes; then
520 This file contains any messages produced by compilers while
521 running configure, to aid debugging if configure makes a mistake.
524 # Strip out --no-create and --no-recursion so they do not pile up.
525 # Also quote any args containing shell metacharacters.
530 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
531 | --no-cr | --no-c) ;;
532 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
533 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
534 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
535 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
536 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
541 # Only set these to C if already set. These must not be set unconditionally
542 # because not all systems understand e.g. LANG=C (notably SCO).
543 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
544 # Non-C LC_CTYPE values break the ctype check.
545 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
546 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
547 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
548 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
550 # confdefs.h avoids OS command line length limits that DEFS can exceed.
551 rm -rf conftest* confdefs.h
552 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
555 # A filename unique to this package, relative to the directory that
556 # configure is in, which we can look for to find out if srcdir is correct.
557 ac_unique_file=build/version
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
577 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
580 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
582 # Prefer explicitly selected file to automatically selected ones.
583 if test -z "$CONFIG_SITE"; then
584 if test "x$prefix" != xNONE; then
585 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
587 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
590 for ac_site_file in $CONFIG_SITE; do
591 if test -r "$ac_site_file"; then
592 echo "loading site script $ac_site_file"
599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
600 ac_cpp='$CPP $CPPFLAGS'
601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
602 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
603 cross_compiling=$ac_cv_prog_cc_cross
607 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
608 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
609 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
616 ac_n= ac_c='\c' ac_t=
620 for ac_dir in build $srcdir/build; do
621 if test -f $ac_dir/install-sh; then
623 ac_install_sh="$ac_aux_dir/install-sh -c"
625 elif test -f $ac_dir/install.sh; then
627 ac_install_sh="$ac_aux_dir/install.sh -c"
631 if test -z "$ac_aux_dir"; then
632 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
634 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
635 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
636 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
638 OL_VERSION=`cat $ac_aux_dir/version`
639 if test -z "$OL_VERSION"; then
640 { echo "configure: error: could not determine version" 1>&2; exit 1; }
644 echo $ac_n "checking host system type""... $ac_c" 1>&6
645 echo "configure:646: checking host system type" >&5
646 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
648 # Make sure we can run config.sub.
649 if $ac_config_sub sun4 >/dev/null 2>&1; then :
650 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
653 ac_cv_host_alias=$host
654 case "$ac_cv_host_alias" in
658 if ac_cv_host_alias=`$ac_config_guess`; then :
659 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
661 *) ac_cv_host_alias=$nonopt ;;
665 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
666 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
667 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
668 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
670 echo $ac_n "(cached) $ac_c" 1>&6
673 echo "$ac_t""$ac_cv_host" 1>&6
676 host_alias=$ac_cv_host_alias
677 host_cpu=$ac_cv_host_cpu
678 host_vendor=$ac_cv_host_vendor
679 host_os=$ac_cv_host_os
685 echo $ac_n "checking target system type""... $ac_c" 1>&6
686 echo "configure:687: checking target system type" >&5
687 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
689 # Make sure we can run config.sub.
690 if $ac_config_sub sun4 >/dev/null 2>&1; then :
691 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
694 ac_cv_target_alias=$target
695 case "$ac_cv_target_alias" in
699 ac_cv_target_alias=$host_alias ;;
701 *) ac_cv_target_alias=$nonopt ;;
705 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
706 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo $ac_n "(cached) $ac_c" 1>&6
713 echo "$ac_t""$ac_cv_target" 1>&6
716 target_alias=$ac_cv_target_alias
717 target_cpu=$ac_cv_target_cpu
718 target_vendor=$ac_cv_target_vendor
719 target_os=$ac_cv_target_os
725 echo $ac_n "checking build system type""... $ac_c" 1>&6
726 echo "configure:727: checking build system type" >&5
727 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
729 # Make sure we can run config.sub.
730 if $ac_config_sub sun4 >/dev/null 2>&1; then :
731 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
734 ac_cv_build_alias=$build
735 case "$ac_cv_build_alias" in
739 ac_cv_build_alias=$host_alias ;;
741 *) ac_cv_build_alias=$nonopt ;;
745 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
746 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
750 echo $ac_n "(cached) $ac_c" 1>&6
753 echo "$ac_t""$ac_cv_build" 1>&6
756 build_alias=$ac_cv_build_alias
757 build_cpu=$ac_cv_build_cpu
758 build_vendor=$ac_cv_build_vendor
759 build_os=$ac_cv_build_os
765 # Do some error checking and defaulting for the host and target type.
767 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
770 # 1. You are not allowed to specify --host, --target, and nonopt at the
772 # 2. Host defaults to nonopt.
773 # 3. If nonopt is not specified, then host defaults to the current host,
774 # as determined by config.guess.
775 # 4. Target and build default to nonopt.
776 # 5. If nonopt is not specified, then target and build default to host.
778 # The aliases save the names the user supplied, while $host etc.
779 # will get canonicalized.
780 case $host---$target---$nonopt in
781 NONE---*---* | *---NONE---* | *---*---NONE) ;;
782 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
785 test "$host_alias" != "$target_alias" &&
786 test "$program_prefix$program_suffix$program_transform_name" = \
788 program_prefix=${target_alias}-
791 # Find a good install program. We prefer a C program (faster),
792 # so one script is as good as another. But avoid the broken or
793 # incompatible versions:
794 # SysV /etc/install, /usr/sbin/install
795 # SunOS /usr/etc/install
798 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
799 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
800 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
801 # ./install, which can be erroneously created by make from ./install.sh.
802 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
803 echo "configure:804: checking for a BSD compatible install" >&5
804 if test -z "$INSTALL"; then
805 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
809 for ac_dir in $PATH; do
810 # Account for people who put trailing slashes in PATH elements.
812 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
814 # OSF1 and SCO ODT 3.0 have their own names for install.
815 # Don't use installbsd from OSF since it installs stuff as root
817 for ac_prog in ginstall scoinst install; do
818 if test -f $ac_dir/$ac_prog; then
819 if test $ac_prog = install &&
820 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
821 # AIX install. It has an incompatible calling convention.
823 elif test $ac_prog = install &&
824 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
825 # program-specific install script used by HP pwplus--don't use.
828 ac_cv_path_install="$ac_dir/$ac_prog -c"
839 if test "${ac_cv_path_install+set}" = set; then
840 INSTALL="$ac_cv_path_install"
842 # As a last resort, use the slow shell script. We don't cache a
843 # path for INSTALL within a source directory, because that will
844 # break other packages using the cache if that directory is
845 # removed, or if the path is relative.
846 INSTALL="$ac_install_sh"
849 echo "$ac_t""$INSTALL" 1>&6
851 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
852 # It thinks the first close brace ends the variable substitution.
853 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
855 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
857 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
859 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
860 echo "configure:861: checking whether build environment is sane" >&5
863 echo timestamp > conftestfile
864 # Do `set' in a subshell so we don't clobber the current shell's
865 # arguments. Must try -L first in case configure is actually a
866 # symlink; some systems play weird games with the mod time of symlinks
867 # (eg FreeBSD returns the mod time of the symlink's containing
870 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
871 if test "$*" = "X"; then
873 set X `ls -t $srcdir/configure conftestfile`
875 if test "$*" != "X $srcdir/configure conftestfile" \
876 && test "$*" != "X conftestfile $srcdir/configure"; then
878 # If neither matched, then we have a broken ls. This can happen
879 # if, for instance, CONFIG_SHELL is bash and it inherits a
880 # broken ls alias from the environment. This has actually
881 # happened. Such a system could not be considered "sane".
882 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
883 alias in your environment" 1>&2; exit 1; }
886 test "$2" = conftestfile
892 { echo "configure: error: newly created file is older than distributed files!
893 Check your system clock" 1>&2; exit 1; }
896 echo "$ac_t""yes" 1>&6
897 if test "$program_transform_name" = s,x,x,; then
898 program_transform_name=
900 # Double any \ or $. echo might interpret backslashes.
901 cat <<\EOF_SED > conftestsed
902 s,\\,\\\\,g; s,\$,$$,g
904 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
907 test "$program_prefix" != NONE &&
908 program_transform_name="s,^,${program_prefix},;$program_transform_name"
909 # Use a double $ so make ignores it.
910 test "$program_suffix" != NONE &&
911 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
913 # sed with no file args requires a program.
914 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
916 for ac_prog in mawk gawk nawk awk
918 # Extract the first word of "$ac_prog", so it can be a program name with args.
919 set dummy $ac_prog; ac_word=$2
920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
921 echo "configure:922: checking for $ac_word" >&5
922 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 if test -n "$AWK"; then
926 ac_cv_prog_AWK="$AWK" # Let the user override the test.
928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
930 for ac_dir in $ac_dummy; do
931 test -z "$ac_dir" && ac_dir=.
932 if test -f $ac_dir/$ac_word; then
933 ac_cv_prog_AWK="$ac_prog"
940 AWK="$ac_cv_prog_AWK"
941 if test -n "$AWK"; then
942 echo "$ac_t""$AWK" 1>&6
944 echo "$ac_t""no" 1>&6
947 test -n "$AWK" && break
950 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
951 echo "configure:952: checking whether ${MAKE-make} sets \${MAKE}" >&5
952 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
953 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 cat > conftestmake <<\EOF
958 @echo 'ac_maketemp="${MAKE}"'
960 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
961 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
962 if test -n "$ac_maketemp"; then
963 eval ac_cv_prog_make_${ac_make}_set=yes
965 eval ac_cv_prog_make_${ac_make}_set=no
969 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
970 echo "$ac_t""yes" 1>&6
973 echo "$ac_t""no" 1>&6
974 SET_MAKE="MAKE=${MAKE-make}"
983 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
984 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
989 missing_dir=`cd $ac_aux_dir && pwd`
990 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
991 echo "configure:992: checking for working aclocal" >&5
992 # Run test in a subshell; some versions of sh will print an error if
993 # an executable is not found, even if stderr is redirected.
994 # Redirect stdin to placate older versions of autoconf. Sigh.
995 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
997 echo "$ac_t""found" 1>&6
999 ACLOCAL="$missing_dir/missing aclocal"
1000 echo "$ac_t""missing" 1>&6
1003 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1004 echo "configure:1005: checking for working autoconf" >&5
1005 # Run test in a subshell; some versions of sh will print an error if
1006 # an executable is not found, even if stderr is redirected.
1007 # Redirect stdin to placate older versions of autoconf. Sigh.
1008 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1010 echo "$ac_t""found" 1>&6
1012 AUTOCONF="$missing_dir/missing autoconf"
1013 echo "$ac_t""missing" 1>&6
1016 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1017 echo "configure:1018: checking for working automake" >&5
1018 # Run test in a subshell; some versions of sh will print an error if
1019 # an executable is not found, even if stderr is redirected.
1020 # Redirect stdin to placate older versions of autoconf. Sigh.
1021 if (automake --version) < /dev/null > /dev/null 2>&1; then
1023 echo "$ac_t""found" 1>&6
1025 AUTOMAKE="$missing_dir/missing automake"
1026 echo "$ac_t""missing" 1>&6
1029 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1030 echo "configure:1031: checking for working autoheader" >&5
1031 # Run test in a subshell; some versions of sh will print an error if
1032 # an executable is not found, even if stderr is redirected.
1033 # Redirect stdin to placate older versions of autoconf. Sigh.
1034 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1035 AUTOHEADER=autoheader
1036 echo "$ac_t""found" 1>&6
1038 AUTOHEADER="$missing_dir/missing autoheader"
1039 echo "$ac_t""missing" 1>&6
1042 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1043 echo "configure:1044: checking for working makeinfo" >&5
1044 # Run test in a subshell; some versions of sh will print an error if
1045 # an executable is not found, even if stderr is redirected.
1046 # Redirect stdin to placate older versions of autoconf. Sigh.
1047 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1049 echo "$ac_t""found" 1>&6
1051 MAKEINFO="$missing_dir/missing makeinfo"
1052 echo "$ac_t""missing" 1>&6
1055 install_sh="$missing_dir/install-sh"
1056 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1058 for ac_prog in gnutar gtar tar
1060 # Extract the first word of "$ac_prog", so it can be a program name with args.
1061 set dummy $ac_prog; ac_word=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_word" >&5
1064 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 if test -n "$AMTAR"; then
1068 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1072 for ac_dir in $ac_dummy; do
1073 test -z "$ac_dir" && ac_dir=.
1074 if test -f $ac_dir/$ac_word; then
1075 ac_cv_prog_AMTAR="$ac_prog"
1082 AMTAR="$ac_cv_prog_AMTAR"
1083 if test -n "$AMTAR"; then
1084 echo "$ac_t""$AMTAR" 1>&6
1086 echo "$ac_t""no" 1>&6
1089 test -n "$AMTAR" && break
1094 if test -n "$AMTAR"; then
1095 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1102 cat >> confdefs.h <<EOF
1103 #define OPENLDAP_PACKAGE "$PACKAGE"
1106 cat >> confdefs.h <<EOF
1107 #define OPENLDAP_VERSION "$VERSION"
1113 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1114 echo "configure:1115: checking configure arguments" >&5
1119 ldap_subdir="openldap"
1121 # Check whether --with-subdir or --without-subdir was given.
1122 if test "${with_subdir+set}" = set; then
1123 withval="$with_subdir"
1125 if test "$withval" = "no"; then
1127 elif test "$withval" != "yes"; then
1128 ldap_subdir="$withval"
1134 # OpenLDAP --enable-debug
1135 # Check whether --enable-debug or --disable-debug was given.
1136 if test "${enable_debug+set}" = set; then
1137 enableval="$enable_debug"
1140 for ol_val in auto yes no ; do
1141 if test "$enableval" = "$ol_val" ; then
1145 if test "$ol_arg" = "invalid" ; then
1146 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1148 ol_enable_debug="$ol_arg"
1151 ol_enable_debug="yes"
1153 # end --enable-debug
1154 # OpenLDAP --enable-syslog
1155 # Check whether --enable-syslog or --disable-syslog was given.
1156 if test "${enable_syslog+set}" = set; then
1157 enableval="$enable_syslog"
1160 for ol_val in auto yes no ; do
1161 if test "$enableval" = "$ol_val" ; then
1165 if test "$ol_arg" = "invalid" ; then
1166 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1168 ol_enable_syslog="$ol_arg"
1171 ol_enable_syslog="auto"
1173 # end --enable-syslog
1174 # OpenLDAP --enable-proctitle
1175 # Check whether --enable-proctitle or --disable-proctitle was given.
1176 if test "${enable_proctitle+set}" = set; then
1177 enableval="$enable_proctitle"
1180 for ol_val in auto yes no ; do
1181 if test "$enableval" = "$ol_val" ; then
1185 if test "$ol_arg" = "invalid" ; then
1186 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1188 ol_enable_proctitle="$ol_arg"
1191 ol_enable_proctitle="yes"
1193 # end --enable-proctitle
1194 # OpenLDAP --enable-cache
1195 # Check whether --enable-cache or --disable-cache was given.
1196 if test "${enable_cache+set}" = set; then
1197 enableval="$enable_cache"
1200 for ol_val in auto yes no ; do
1201 if test "$enableval" = "$ol_val" ; then
1205 if test "$ol_arg" = "invalid" ; then
1206 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1208 ol_enable_cache="$ol_arg"
1211 ol_enable_cache="yes"
1213 # end --enable-cache
1214 # OpenLDAP --enable-dns
1215 # Check whether --enable-dns or --disable-dns was given.
1216 if test "${enable_dns+set}" = set; then
1217 enableval="$enable_dns"
1220 for ol_val in auto yes no ; do
1221 if test "$enableval" = "$ol_val" ; then
1225 if test "$ol_arg" = "invalid" ; then
1226 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1228 ol_enable_dns="$ol_arg"
1234 # OpenLDAP --enable-referrals
1235 # Check whether --enable-referrals or --disable-referrals was given.
1236 if test "${enable_referrals+set}" = set; then
1237 enableval="$enable_referrals"
1240 for ol_val in auto yes no ; do
1241 if test "$enableval" = "$ol_val" ; then
1245 if test "$ol_arg" = "invalid" ; then
1246 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1248 ol_enable_referrals="$ol_arg"
1251 ol_enable_referrals="yes"
1253 # end --enable-referrals
1254 # OpenLDAP --enable-cldap
1255 # Check whether --enable-cldap or --disable-cldap was given.
1256 if test "${enable_cldap+set}" = set; then
1257 enableval="$enable_cldap"
1260 for ol_val in auto yes no ; do
1261 if test "$enableval" = "$ol_val" ; then
1265 if test "$ol_arg" = "invalid" ; then
1266 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1268 ol_enable_cldap="$ol_arg"
1271 ol_enable_cldap="no"
1273 # end --enable-cldap
1274 # OpenLDAP --enable-x_compile
1275 # Check whether --enable-x_compile or --disable-x_compile was given.
1276 if test "${enable_x_compile+set}" = set; then
1277 enableval="$enable_x_compile"
1280 for ol_val in yes no ; do
1281 if test "$enableval" = "$ol_val" ; then
1285 if test "$ol_arg" = "invalid" ; then
1286 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1288 ol_enable_x_compile="$ol_arg"
1291 ol_enable_x_compile="no"
1293 # end --enable-x_compile
1295 # OpenLDAP --enable-dmalloc
1296 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1297 if test "${enable_dmalloc+set}" = set; then
1298 enableval="$enable_dmalloc"
1301 for ol_val in auto yes no ; do
1302 if test "$enableval" = "$ol_val" ; then
1306 if test "$ol_arg" = "invalid" ; then
1307 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1309 ol_enable_dmalloc="$ol_arg"
1312 ol_enable_dmalloc="no"
1314 # end --enable-dmalloc
1316 # OpenLDAP --with-cyrus_sasl
1317 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1318 if test "${with_cyrus_sasl+set}" = set; then
1319 withval="$with_cyrus_sasl"
1322 for ol_val in auto yes no ; do
1323 if test "$withval" = "$ol_val" ; then
1327 if test "$ol_arg" = "invalid" ; then
1328 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1330 ol_with_cyrus_sasl="$ol_arg"
1333 ol_with_cyrus_sasl="auto"
1335 # end --with-cyrus_sasl
1337 # OpenLDAP --with-fetch
1338 # Check whether --with-fetch or --without-fetch was given.
1339 if test "${with_fetch+set}" = set; then
1340 withval="$with_fetch"
1343 for ol_val in auto yes no ; do
1344 if test "$withval" = "$ol_val" ; then
1348 if test "$ol_arg" = "invalid" ; then
1349 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1351 ol_with_fetch="$ol_arg"
1354 ol_with_fetch="auto"
1358 # OpenLDAP --with-kerberos
1359 # Check whether --with-kerberos or --without-kerberos was given.
1360 if test "${with_kerberos+set}" = set; then
1361 withval="$with_kerberos"
1364 for ol_val in auto k5 k4 afs yes no ; do
1365 if test "$withval" = "$ol_val" ; then
1369 if test "$ol_arg" = "invalid" ; then
1370 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1372 ol_with_kerberos="$ol_arg"
1375 ol_with_kerberos="auto"
1377 # end --with-kerberos
1379 # OpenLDAP --with-readline
1380 # Check whether --with-readline or --without-readline was given.
1381 if test "${with_readline+set}" = set; then
1382 withval="$with_readline"
1385 for ol_val in auto yes no ; do
1386 if test "$withval" = "$ol_val" ; then
1390 if test "$ol_arg" = "invalid" ; then
1391 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1393 ol_with_readline="$ol_arg"
1396 ol_with_readline="auto"
1398 # end --with-readline
1400 # OpenLDAP --with-threads
1401 # Check whether --with-threads or --without-threads was given.
1402 if test "${with_threads+set}" = set; then
1403 withval="$with_threads"
1406 for ol_val in auto posix mach lwp yes no manual ; do
1407 if test "$withval" = "$ol_val" ; then
1411 if test "$ol_arg" = "invalid" ; then
1412 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1414 ol_with_threads="$ol_arg"
1417 ol_with_threads="auto"
1419 # end --with-threads
1421 # OpenLDAP --with-tls
1422 # Check whether --with-tls or --without-tls was given.
1423 if test "${with_tls+set}" = set; then
1427 for ol_val in auto ssleay openssl yes no ; do
1428 if test "$withval" = "$ol_val" ; then
1432 if test "$ol_arg" = "invalid" ; then
1433 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1435 ol_with_tls="$ol_arg"
1442 # OpenLDAP --with-yielding_select
1443 # Check whether --with-yielding_select or --without-yielding_select was given.
1444 if test "${with_yielding_select+set}" = set; then
1445 withval="$with_yielding_select"
1448 for ol_val in auto yes no manual ; do
1449 if test "$withval" = "$ol_val" ; then
1453 if test "$ol_arg" = "invalid" ; then
1454 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1456 ol_with_yielding_select="$ol_arg"
1459 ol_with_yielding_select="auto"
1461 # end --with-yielding_select
1465 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1466 if test "${with_xxldapdoptions+set}" = set; then
1467 withval="$with_xxldapdoptions"
1471 # OpenLDAP --enable-ldapd
1472 # Check whether --enable-ldapd or --disable-ldapd was given.
1473 if test "${enable_ldapd+set}" = set; then
1474 enableval="$enable_ldapd"
1477 for ol_val in auto yes no ; do
1478 if test "$enableval" = "$ol_val" ; then
1482 if test "$ol_arg" = "invalid" ; then
1483 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1485 ol_enable_ldapd="$ol_arg"
1488 ol_enable_ldapd="no"
1490 # end --enable-ldapd
1492 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1493 if test "${with_xxslapdoptions+set}" = set; then
1494 withval="$with_xxslapdoptions"
1498 # OpenLDAP --enable-slapd
1499 # Check whether --enable-slapd or --disable-slapd was given.
1500 if test "${enable_slapd+set}" = set; then
1501 enableval="$enable_slapd"
1504 for ol_val in auto yes no ; do
1505 if test "$enableval" = "$ol_val" ; then
1509 if test "$ol_arg" = "invalid" ; then
1510 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1512 ol_enable_slapd="$ol_arg"
1515 ol_enable_slapd="yes"
1517 # end --enable-slapd
1518 # OpenLDAP --enable-cleartext
1519 # Check whether --enable-cleartext or --disable-cleartext was given.
1520 if test "${enable_cleartext+set}" = set; then
1521 enableval="$enable_cleartext"
1524 for ol_val in auto yes no ; do
1525 if test "$enableval" = "$ol_val" ; then
1529 if test "$ol_arg" = "invalid" ; then
1530 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1532 ol_enable_cleartext="$ol_arg"
1535 ol_enable_cleartext="yes"
1537 # end --enable-cleartext
1538 # OpenLDAP --enable-crypt
1539 # Check whether --enable-crypt or --disable-crypt was given.
1540 if test "${enable_crypt+set}" = set; then
1541 enableval="$enable_crypt"
1544 for ol_val in auto yes no ; do
1545 if test "$enableval" = "$ol_val" ; then
1549 if test "$ol_arg" = "invalid" ; then
1550 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1552 ol_enable_crypt="$ol_arg"
1555 ol_enable_crypt="auto"
1557 # end --enable-crypt
1558 # OpenLDAP --enable-modules
1559 # Check whether --enable-modules or --disable-modules was given.
1560 if test "${enable_modules+set}" = set; then
1561 enableval="$enable_modules"
1564 for ol_val in auto yes no ; do
1565 if test "$enableval" = "$ol_val" ; then
1569 if test "$ol_arg" = "invalid" ; then
1570 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1572 ol_enable_modules="$ol_arg"
1575 ol_enable_modules="no"
1577 # end --enable-modules
1578 # OpenLDAP --enable-phonetic
1579 # Check whether --enable-phonetic or --disable-phonetic was given.
1580 if test "${enable_phonetic+set}" = set; then
1581 enableval="$enable_phonetic"
1584 for ol_val in auto yes no ; do
1585 if test "$enableval" = "$ol_val" ; then
1589 if test "$ol_arg" = "invalid" ; then
1590 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1592 ol_enable_phonetic="$ol_arg"
1595 ol_enable_phonetic="no"
1597 # end --enable-phonetic
1598 # OpenLDAP --enable-rlookups
1599 # Check whether --enable-rlookups or --disable-rlookups was given.
1600 if test "${enable_rlookups+set}" = set; then
1601 enableval="$enable_rlookups"
1604 for ol_val in auto yes no ; do
1605 if test "$enableval" = "$ol_val" ; then
1609 if test "$ol_arg" = "invalid" ; then
1610 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1612 ol_enable_rlookups="$ol_arg"
1615 ol_enable_rlookups="auto"
1617 # end --enable-rlookups
1618 # OpenLDAP --enable-wrappers
1619 # Check whether --enable-wrappers or --disable-wrappers was given.
1620 if test "${enable_wrappers+set}" = set; then
1621 enableval="$enable_wrappers"
1624 for ol_val in auto yes no ; do
1625 if test "$enableval" = "$ol_val" ; then
1629 if test "$ol_arg" = "invalid" ; then
1630 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1632 ol_enable_wrappers="$ol_arg"
1635 ol_enable_wrappers="no"
1637 # end --enable-wrappers
1639 # OpenLDAP --enable-bdb2
1640 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1641 if test "${enable_bdb2+set}" = set; then
1642 enableval="$enable_bdb2"
1645 for ol_val in auto yes no ; do
1646 if test "$enableval" = "$ol_val" ; then
1650 if test "$ol_arg" = "invalid" ; then
1651 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1653 ol_enable_bdb2="$ol_arg"
1659 # OpenLDAP --with-bdb2_module
1660 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1661 if test "${with_bdb2_module+set}" = set; then
1662 withval="$with_bdb2_module"
1665 for ol_val in static dynamic ; do
1666 if test "$withval" = "$ol_val" ; then
1670 if test "$ol_arg" = "invalid" ; then
1671 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1673 ol_with_bdb2_module="$ol_arg"
1676 ol_with_bdb2_module="static"
1678 # end --with-bdb2_module
1680 # OpenLDAP --enable-ldap
1681 # Check whether --enable-ldap or --disable-ldap was given.
1682 if test "${enable_ldap+set}" = set; then
1683 enableval="$enable_ldap"
1686 for ol_val in auto yes no ; do
1687 if test "$enableval" = "$ol_val" ; then
1691 if test "$ol_arg" = "invalid" ; then
1692 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1694 ol_enable_ldap="$ol_arg"
1700 # OpenLDAP --with-ldap_module
1701 # Check whether --with-ldap_module or --without-ldap_module was given.
1702 if test "${with_ldap_module+set}" = set; then
1703 withval="$with_ldap_module"
1706 for ol_val in static dynamic ; do
1707 if test "$withval" = "$ol_val" ; then
1711 if test "$ol_arg" = "invalid" ; then
1712 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1714 ol_with_ldap_module="$ol_arg"
1717 ol_with_ldap_module="static"
1719 # end --with-ldap_module
1721 # OpenLDAP --enable-ldbm
1722 # Check whether --enable-ldbm or --disable-ldbm was given.
1723 if test "${enable_ldbm+set}" = set; then
1724 enableval="$enable_ldbm"
1727 for ol_val in auto yes no ; do
1728 if test "$enableval" = "$ol_val" ; then
1732 if test "$ol_arg" = "invalid" ; then
1733 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1735 ol_enable_ldbm="$ol_arg"
1738 ol_enable_ldbm="yes"
1741 # OpenLDAP --with-ldbm_module
1742 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1743 if test "${with_ldbm_module+set}" = set; then
1744 withval="$with_ldbm_module"
1747 for ol_val in static dynamic ; do
1748 if test "$withval" = "$ol_val" ; then
1752 if test "$ol_arg" = "invalid" ; then
1753 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1755 ol_with_ldbm_module="$ol_arg"
1758 ol_with_ldbm_module="static"
1760 # end --with-ldbm_module
1762 # OpenLDAP --with-ldbm_api
1763 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1764 if test "${with_ldbm_api+set}" = set; then
1765 withval="$with_ldbm_api"
1768 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1769 if test "$withval" = "$ol_val" ; then
1773 if test "$ol_arg" = "invalid" ; then
1774 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1776 ol_with_ldbm_api="$ol_arg"
1779 ol_with_ldbm_api="auto"
1781 # end --with-ldbm_api
1783 # OpenLDAP --with-ldbm_type
1784 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1785 if test "${with_ldbm_type+set}" = set; then
1786 withval="$with_ldbm_type"
1789 for ol_val in auto btree hash ; do
1790 if test "$withval" = "$ol_val" ; then
1794 if test "$ol_arg" = "invalid" ; then
1795 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1797 ol_with_ldbm_type="$ol_arg"
1800 ol_with_ldbm_type="auto"
1802 # end --with-ldbm_type
1805 # OpenLDAP --enable-passwd
1806 # Check whether --enable-passwd or --disable-passwd was given.
1807 if test "${enable_passwd+set}" = set; then
1808 enableval="$enable_passwd"
1811 for ol_val in auto yes no ; do
1812 if test "$enableval" = "$ol_val" ; then
1816 if test "$ol_arg" = "invalid" ; then
1817 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1819 ol_enable_passwd="$ol_arg"
1822 ol_enable_passwd="no"
1824 # end --enable-passwd
1825 # OpenLDAP --with-passwd_module
1826 # Check whether --with-passwd_module or --without-passwd_module was given.
1827 if test "${with_passwd_module+set}" = set; then
1828 withval="$with_passwd_module"
1831 for ol_val in static dynamic ; do
1832 if test "$withval" = "$ol_val" ; then
1836 if test "$ol_arg" = "invalid" ; then
1837 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1839 ol_with_passwd_module="$ol_arg"
1842 ol_with_passwd_module="static"
1844 # end --with-passwd_module
1846 # OpenLDAP --enable-perl
1847 # Check whether --enable-perl or --disable-perl was given.
1848 if test "${enable_perl+set}" = set; then
1849 enableval="$enable_perl"
1852 for ol_val in auto yes no ; do
1853 if test "$enableval" = "$ol_val" ; then
1857 if test "$ol_arg" = "invalid" ; then
1858 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1860 ol_enable_perl="$ol_arg"
1866 # OpenLDAP --with-perl_module
1867 # Check whether --with-perl_module or --without-perl_module was given.
1868 if test "${with_perl_module+set}" = set; then
1869 withval="$with_perl_module"
1872 for ol_val in static dynamic ; do
1873 if test "$withval" = "$ol_val" ; then
1877 if test "$ol_arg" = "invalid" ; then
1878 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1880 ol_with_perl_module="$ol_arg"
1883 ol_with_perl_module="static"
1885 # end --with-perl_module
1887 # OpenLDAP --enable-shell
1888 # Check whether --enable-shell or --disable-shell was given.
1889 if test "${enable_shell+set}" = set; then
1890 enableval="$enable_shell"
1893 for ol_val in auto yes no ; do
1894 if test "$enableval" = "$ol_val" ; then
1898 if test "$ol_arg" = "invalid" ; then
1899 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1901 ol_enable_shell="$ol_arg"
1904 ol_enable_shell="no"
1906 # end --enable-shell
1907 # OpenLDAP --with-shell_module
1908 # Check whether --with-shell_module or --without-shell_module was given.
1909 if test "${with_shell_module+set}" = set; then
1910 withval="$with_shell_module"
1913 for ol_val in static dynamic ; do
1914 if test "$withval" = "$ol_val" ; then
1918 if test "$ol_arg" = "invalid" ; then
1919 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1921 ol_with_shell_module="$ol_arg"
1924 ol_with_shell_module="static"
1926 # end --with-shell_module
1928 # OpenLDAP --enable-tcl
1929 # Check whether --enable-tcl or --disable-tcl was given.
1930 if test "${enable_tcl+set}" = set; then
1931 enableval="$enable_tcl"
1934 for ol_val in auto yes no ; do
1935 if test "$enableval" = "$ol_val" ; then
1939 if test "$ol_arg" = "invalid" ; then
1940 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1942 ol_enable_tcl="$ol_arg"
1948 # OpenLDAP --with-tcl_module
1949 # Check whether --with-tcl_module or --without-tcl_module was given.
1950 if test "${with_tcl_module+set}" = set; then
1951 withval="$with_tcl_module"
1954 for ol_val in static dynamic ; do
1955 if test "$withval" = "$ol_val" ; then
1959 if test "$ol_arg" = "invalid" ; then
1960 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
1962 ol_with_tcl_module="$ol_arg"
1965 ol_with_tcl_module="static"
1967 # end --with-tcl_module
1970 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1971 if test "${with_xxslurpdoptions+set}" = set; then
1972 withval="$with_xxslurpdoptions"
1976 # OpenLDAP --enable-slurpd
1977 # Check whether --enable-slurpd or --disable-slurpd was given.
1978 if test "${enable_slurpd+set}" = set; then
1979 enableval="$enable_slurpd"
1982 for ol_val in auto yes no ; do
1983 if test "$enableval" = "$ol_val" ; then
1987 if test "$ol_arg" = "invalid" ; then
1988 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1990 ol_enable_slurpd="$ol_arg"
1993 ol_enable_slurpd="auto"
1995 # end --enable-slurpd
1997 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1998 if test "${with_xxliboptions+set}" = set; then
1999 withval="$with_xxliboptions"
2003 # Check whether --enable-static or --disable-static was given.
2004 if test "${enable_static+set}" = set; then
2005 enableval="$enable_static"
2006 p=${PACKAGE-default}
2007 case "$enableval" in
2008 yes) enable_static=yes ;;
2009 no) enable_static=no ;;
2012 # Look at the argument we got. We use all the common list separators.
2013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2014 for pkg in $enableval; do
2015 if test "X$pkg" = "X$p"; then
2026 # Check whether --enable-shared or --disable-shared was given.
2027 if test "${enable_shared+set}" = set; then
2028 enableval="$enable_shared"
2029 p=${PACKAGE-default}
2030 case "$enableval" in
2031 yes) enable_shared=yes ;;
2032 no) enable_shared=no ;;
2035 # Look at the argument we got. We use all the common list separators.
2036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2037 for pkg in $enableval; do
2038 if test "X$pkg" = "X$p"; then
2051 if test $ol_enable_dns = yes ; then
2052 if test $ol_enable_referrals = no ; then
2053 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2055 if test $ol_enable_referrals = auto ; then
2056 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2057 ol_enable_referrals=yes
2061 if test $ol_enable_slapd = no ; then
2062 if test $ol_enable_bdb2 = yes ; then
2063 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2065 if test $ol_enable_ldap = yes ; then
2066 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2068 if test $ol_enable_ldbm = yes ; then
2069 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2071 if test $ol_enable_passwd = yes ; then
2072 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2074 if test $ol_enable_perl = yes ; then
2075 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2077 if test $ol_enable_shell = yes ; then
2078 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2080 if test $ol_enable_tcl = yes ; then
2081 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2083 if test $ol_enable_modules = yes ; then
2084 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2086 if test $ol_enable_wrappers = yes ; then
2087 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2089 if test $ol_enable_phonetic = yes ; then
2090 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2092 if test $ol_enable_rlookups = yes ; then
2093 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2095 if test $ol_with_ldbm_api != auto ; then
2096 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2098 if test $ol_with_ldbm_type != auto ; then
2099 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2101 if test $ol_with_bdb2_module != static ; then
2102 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2104 if test $ol_with_ldap_module != static ; then
2105 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2107 if test $ol_with_ldbm_module != static ; then
2108 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2110 if test $ol_with_passwd_module != static ; then
2111 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2113 if test $ol_with_perl_module != static ; then
2114 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2116 if test $ol_with_shell_module != static ; then
2117 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2119 if test $ol_with_tcl_module != static ; then
2120 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2122 if test $ol_enable_slurpd = yes ; then
2123 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2126 # force settings to no
2135 ol_enable_modules=no
2136 ol_enable_phonetic=no
2137 ol_enable_rlookups=no
2138 ol_enable_wrappers=no
2141 ol_with_ldbm_type=no
2143 ol_with_bdb2_module=static
2144 ol_with_ldap_module=static
2145 ol_with_ldbm_module=static
2146 ol_with_passwd_module=static
2147 ol_with_perl_module=static
2148 ol_with_shell_module=static
2149 ol_with_tcl_module=static
2153 elif test $ol_enable_ldbm = no ; then
2155 if test $ol_with_ldbm_api != auto ; then
2156 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2159 if test $ol_with_ldbm_type != auto ; then
2160 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2163 if test $ol_with_ldbm_module != static ; then
2164 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2167 if test $ol_enable_bdb2 = yes ; then
2168 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2171 if test $ol_enable_modules != yes -a \
2172 $ol_enable_ldap = no -a \
2173 $ol_enable_passwd = no -a \
2174 $ol_enable_perl = no -a \
2175 $ol_enable_shell = no -a \
2176 $ol_enable_tcl = no ; then
2177 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2181 ol_with_ldbm_type=no
2182 ol_with_ldbm_module=static
2184 elif test $ol_enable_bdb2 = yes ; then
2186 if test $ol_with_ldbm_api != auto -a \
2187 $ol_with_ldbm_api != db2 ; then
2188 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2191 ol_with_ldbm_api=db2
2195 if test $ol_enable_bdb2 != no ; then
2196 if test $ol_with_ldbm_api != auto -a \
2197 $ol_with_ldbm_api != db2 ; then
2198 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2203 if test $ol_with_ldbm_api = gdbm -a \
2204 $ol_with_ldbm_type = btree ; then
2205 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2207 if test $ol_with_ldbm_api = mdbm -a \
2208 $ol_with_ldbm_type = btree ; then
2209 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2211 if test $ol_with_ldbm_api = ndbm -a \
2212 $ol_with_ldbm_type = btree ; then
2213 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2217 if test $ol_enable_slurpd = yes ; then
2218 if test $ol_with_threads = no ; then
2219 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2223 echo "$ac_t""done" 1>&6
2249 BUILD_BDB2_DYNAMIC=no
2250 BUILD_LDAP_DYNAMIC=no
2251 BUILD_LDBM_DYNAMIC=no
2252 BUILD_PASSWD_DYNAMIC=no
2253 BUILD_PERL_DYNAMIC=no
2254 BUILD_SHELL_DYNAMIC=no
2255 BUILD_TCL_DYNAMIC=no
2257 SLAPD_MODULES_LDFLAGS=
2258 SLAPD_MODULES_CPPFLAGS=
2261 SLAPD_PERL_CPPFLAGS=
2270 cat >> confdefs.h <<\EOF
2271 #define HAVE_MKVERSION 1
2280 *-*-aix*) if test -z "$CC" ; then
2281 case "$ol_with_threads" in
2282 auto | yes | posix) ol_aix_threads=yes ;;
2288 if test $ol_aix_threads = yes ; then
2289 if test -z "${CC}" ; then
2290 for ac_prog in cc_r xlc_r cc
2292 # Extract the first word of "$ac_prog", so it can be a program name with args.
2293 set dummy $ac_prog; ac_word=$2
2294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2295 echo "configure:2296: checking for $ac_word" >&5
2296 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 if test -n "$CC"; then
2300 ac_cv_prog_CC="$CC" # Let the user override the test.
2302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2304 for ac_dir in $ac_dummy; do
2305 test -z "$ac_dir" && ac_dir=.
2306 if test -f $ac_dir/$ac_word; then
2307 ac_cv_prog_CC="$ac_prog"
2315 if test -n "$CC"; then
2316 echo "$ac_t""$CC" 1>&6
2318 echo "$ac_t""no" 1>&6
2321 test -n "$CC" && break
2325 if test "$CC" = cc ; then
2326 if test $ol_with_threads != auto ; then
2327 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2329 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2335 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2336 ol_with_threads=posix
2337 ol_cv_pthread_create=yes
2341 if test -z "${CC}"; then
2344 # Extract the first word of "$ac_prog", so it can be a program name with args.
2345 set dummy $ac_prog; ac_word=$2
2346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_word" >&5
2348 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 if test -n "$CC"; then
2352 ac_cv_prog_CC="$CC" # Let the user override the test.
2354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2356 for ac_dir in $ac_dummy; do
2357 test -z "$ac_dir" && ac_dir=.
2358 if test -f $ac_dir/$ac_word; then
2359 ac_cv_prog_CC="$ac_prog"
2367 if test -n "$CC"; then
2368 echo "$ac_t""$CC" 1>&6
2370 echo "$ac_t""no" 1>&6
2373 test -n "$CC" && break
2379 # Check whether --enable-fast-install or --disable-fast-install was given.
2380 if test "${enable_fast_install+set}" = set; then
2381 enableval="$enable_fast_install"
2382 p=${PACKAGE-default}
2383 case "$enableval" in
2384 yes) enable_fast_install=yes ;;
2385 no) enable_fast_install=no ;;
2387 enable_fast_install=no
2388 # Look at the argument we got. We use all the common list separators.
2389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2390 for pkg in $enableval; do
2391 if test "X$pkg" = "X$p"; then
2392 enable_fast_install=yes
2399 enable_fast_install=yes
2402 # Extract the first word of "ranlib", so it can be a program name with args.
2403 set dummy ranlib; ac_word=$2
2404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2405 echo "configure:2406: checking for $ac_word" >&5
2406 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 if test -n "$RANLIB"; then
2410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2414 for ac_dir in $ac_dummy; do
2415 test -z "$ac_dir" && ac_dir=.
2416 if test -f $ac_dir/$ac_word; then
2417 ac_cv_prog_RANLIB="ranlib"
2422 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2425 RANLIB="$ac_cv_prog_RANLIB"
2426 if test -n "$RANLIB"; then
2427 echo "$ac_t""$RANLIB" 1>&6
2429 echo "$ac_t""no" 1>&6
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433 set dummy gcc; ac_word=$2
2434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2435 echo "configure:2436: checking for $ac_word" >&5
2436 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2444 for ac_dir in $ac_dummy; do
2445 test -z "$ac_dir" && ac_dir=.
2446 if test -f $ac_dir/$ac_word; then
2455 if test -n "$CC"; then
2456 echo "$ac_t""$CC" 1>&6
2458 echo "$ac_t""no" 1>&6
2461 if test -z "$CC"; then
2462 # Extract the first word of "cc", so it can be a program name with args.
2463 set dummy cc; ac_word=$2
2464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2465 echo "configure:2466: checking for $ac_word" >&5
2466 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 if test -n "$CC"; then
2470 ac_cv_prog_CC="$CC" # Let the user override the test.
2472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2475 for ac_dir in $ac_dummy; do
2476 test -z "$ac_dir" && ac_dir=.
2477 if test -f $ac_dir/$ac_word; then
2478 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2479 ac_prog_rejected=yes
2487 if test $ac_prog_rejected = yes; then
2488 # We found a bogon in the path, so make sure we never use it.
2489 set dummy $ac_cv_prog_CC
2491 if test $# -gt 0; then
2492 # We chose a different compiler from the bogus one.
2493 # However, it has the same basename, so the bogon will be chosen
2494 # first if we set CC to just the basename; use the full file name.
2496 set dummy "$ac_dir/$ac_word" "$@"
2504 if test -n "$CC"; then
2505 echo "$ac_t""$CC" 1>&6
2507 echo "$ac_t""no" 1>&6
2510 if test -z "$CC"; then
2511 case "`uname -s`" in
2512 *win32* | *WIN32* | *CYGWIN*)
2513 # Extract the first word of "cl", so it can be a program name with args.
2514 set dummy cl; ac_word=$2
2515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2516 echo "configure:2517: checking for $ac_word" >&5
2517 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2525 for ac_dir in $ac_dummy; do
2526 test -z "$ac_dir" && ac_dir=.
2527 if test -f $ac_dir/$ac_word; then
2536 if test -n "$CC"; then
2537 echo "$ac_t""$CC" 1>&6
2539 echo "$ac_t""no" 1>&6
2544 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2547 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2548 echo "configure:2549: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2552 ac_cpp='$CPP $CPPFLAGS'
2553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2555 cross_compiling=$ac_cv_prog_cc_cross
2557 cat > conftest.$ac_ext << EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2564 if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2565 ac_cv_prog_cc_works=yes
2566 # If we can't run a trivial program, we are probably using a cross compiler.
2567 if (./conftest; exit) 2>/dev/null; then
2568 ac_cv_prog_cc_cross=no
2570 ac_cv_prog_cc_cross=yes
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2575 ac_cv_prog_cc_works=no
2579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2583 cross_compiling=$ac_cv_prog_cc_cross
2585 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2586 if test $ac_cv_prog_cc_works = no; then
2587 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2589 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2590 echo "configure:2591: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2591 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2592 cross_compiling=$ac_cv_prog_cc_cross
2594 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2595 echo "configure:2596: checking whether we are using GNU C" >&5
2596 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2599 cat > conftest.c <<EOF
2604 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2611 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2613 if test $ac_cv_prog_gcc = yes; then
2619 ac_test_CFLAGS="${CFLAGS+set}"
2620 ac_save_CFLAGS="$CFLAGS"
2622 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2623 echo "configure:2624: checking whether ${CC-cc} accepts -g" >&5
2624 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 echo 'void f(){}' > conftest.c
2628 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2637 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2638 if test "$ac_test_CFLAGS" = set; then
2639 CFLAGS="$ac_save_CFLAGS"
2640 elif test $ac_cv_prog_cc_g = yes; then
2641 if test "$GCC" = yes; then
2647 if test "$GCC" = yes; then
2654 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2655 if test "${with_gnu_ld+set}" = set; then
2656 withval="$with_gnu_ld"
2657 test "$withval" = no || with_gnu_ld=yes
2663 if test "$ac_cv_prog_gcc" = yes; then
2664 # Check if gcc -print-prog-name=ld gives a path.
2665 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2666 echo "configure:2667: checking for ld used by GCC" >&5
2667 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2669 # Accept absolute paths.
2670 [\\/]* | [A-Za-z]:[\\/]*)
2671 re_direlt='/[^/][^/]*/\.\./'
2672 # Canonicalize the path of ld
2673 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2674 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2675 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2677 test -z "$LD" && LD="$ac_prog"
2680 # If it fails, then pretend we aren't using GCC.
2684 # If it is relative, then search for the first ld in PATH.
2688 elif test "$with_gnu_ld" = yes; then
2689 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2690 echo "configure:2691: checking for GNU ld" >&5
2692 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2693 echo "configure:2694: checking for non-GNU ld" >&5
2695 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 if test -z "$LD"; then
2699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2700 for ac_dir in $PATH; do
2701 test -z "$ac_dir" && ac_dir=.
2702 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2703 ac_cv_path_LD="$ac_dir/$ac_prog"
2704 # Check to see if the program is GNU ld. I'd rather use --version,
2705 # but apparently some GNU ld's only accept -v.
2706 # Break only if it was the GNU/non-GNU ld that we prefer.
2707 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2708 test "$with_gnu_ld" != no && break
2710 test "$with_gnu_ld" != yes && break
2716 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2721 if test -n "$LD"; then
2722 echo "$ac_t""$LD" 1>&6
2724 echo "$ac_t""no" 1>&6
2726 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2728 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2729 echo "configure:2730: checking if the linker ($LD) is GNU ld" >&5
2730 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2733 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2734 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2735 ac_cv_prog_gnu_ld=yes
2737 ac_cv_prog_gnu_ld=no
2741 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2744 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2745 echo "configure:2746: checking for BSD-compatible nm" >&5
2746 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2749 if test -n "$NM"; then
2750 # Let the user override the test.
2753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2754 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2755 test -z "$ac_dir" && ac_dir=.
2756 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2757 # Check to see if the nm accepts a BSD-compat flag.
2758 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2759 # nm: unknown option "B" ignored
2760 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2761 ac_cv_path_NM="$ac_dir/nm -B"
2763 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2764 ac_cv_path_NM="$ac_dir/nm -p"
2767 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2768 continue # so that we can try to find one that supports BSD flags
2773 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2778 echo "$ac_t""$NM" 1>&6
2781 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2782 echo "configure:2783: checking whether ln -s works" >&5
2783 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2787 if ln -s X conftestdata 2>/dev/null
2790 ac_cv_prog_LN_S="ln -s"
2795 LN_S="$ac_cv_prog_LN_S"
2796 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2797 echo "$ac_t""yes" 1>&6
2799 echo "$ac_t""no" 1>&6
2803 # Check for any special flags to pass to ltconfig.
2804 libtool_flags="--cache-file=$cache_file"
2805 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2806 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2807 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2808 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2809 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2812 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2813 if test "${enable_libtool_lock+set}" = set; then
2814 enableval="$enable_libtool_lock"
2818 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2819 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2821 # Some flags need to be propagated to the compiler or linker for good
2825 # Find out which ABI we are using.
2826 echo '#line 2827 "configure"' > conftest.$ac_ext
2827 if { (eval echo configure:2828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2828 case "`/usr/bin/file conftest.o`" in
2844 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2845 SAVE_CFLAGS="$CFLAGS"
2846 CFLAGS="$CFLAGS -belf"
2847 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2848 echo "configure:2849: checking whether the C compiler needs -belf" >&5
2849 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 cat > conftest.$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2860 if { (eval echo configure:2861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2862 lt_cv_cc_needs_belf=yes
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2867 lt_cv_cc_needs_belf=no
2872 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2873 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2874 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2875 CFLAGS="$SAVE_CFLAGS"
2883 # Save cache, so that ltconfig can load it
2886 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2887 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2888 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2889 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2890 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2891 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2892 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2893 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2895 # Reload cache, that may have been modified by ltconfig
2898 # This can be used to rebuild libtool when needed
2899 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2901 # Always use our own libtool.
2902 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2904 # Redirect the config.log output again, so that the ltconfig log is not
2905 # clobbered by the next message.
2906 exec 5>>./config.log
2909 for ac_prog in mawk gawk nawk awk
2911 # Extract the first word of "$ac_prog", so it can be a program name with args.
2912 set dummy $ac_prog; ac_word=$2
2913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_word" >&5
2915 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 if test -n "$AWK"; then
2919 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2923 for ac_dir in $ac_dummy; do
2924 test -z "$ac_dir" && ac_dir=.
2925 if test -f $ac_dir/$ac_word; then
2926 ac_cv_prog_AWK="$ac_prog"
2933 AWK="$ac_cv_prog_AWK"
2934 if test -n "$AWK"; then
2935 echo "$ac_t""$AWK" 1>&6
2937 echo "$ac_t""no" 1>&6
2940 test -n "$AWK" && break
2943 # test for ln hardlink support
2944 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2945 echo "configure:2946: checking whether ln works" >&5
2946 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 rm -f conftest.src conftest.dst
2950 echo "conftest" > conftest.src
2951 if ln conftest.src conftest.dst 2>/dev/null
2953 ol_cv_prog_LN_H="ln"
2955 ol_cv_prog_LN_H="cp"
2957 rm -f conftest.src conftest.dst
2960 LN_H="$ol_cv_prog_LN_H"
2961 if test "$ol_cv_prog_LN_H" = "ln"; then
2962 echo "$ac_t""yes" 1>&6
2964 echo "$ac_t""no" 1>&6
2967 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2968 echo "configure:2969: checking whether ln -s works" >&5
2969 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2973 if ln -s X conftestdata 2>/dev/null
2976 ac_cv_prog_LN_S="ln -s"
2981 LN_S="$ac_cv_prog_LN_S"
2982 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2983 echo "$ac_t""yes" 1>&6
2985 echo "$ac_t""no" 1>&6
2989 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2993 # Extract the first word of "sendmail", so it can be a program name with args.
2994 set dummy sendmail; ac_word=$2
2995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2996 echo "configure:2997: checking for $ac_word" >&5
2997 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3002 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3005 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3009 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3010 for ac_dir in $ac_dummy; do
3011 test -z "$ac_dir" && ac_dir=.
3012 if test -f $ac_dir/$ac_word; then
3013 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3018 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3022 SENDMAIL="$ac_cv_path_SENDMAIL"
3023 if test -n "$SENDMAIL"; then
3024 echo "$ac_t""$SENDMAIL" 1>&6
3026 echo "$ac_t""no" 1>&6
3029 # Extract the first word of "vi", so it can be a program name with args.
3030 set dummy vi; ac_word=$2
3031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3032 echo "configure:3033: checking for $ac_word" >&5
3033 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3038 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3041 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3045 ac_dummy="$PATH:/usr/ucb"
3046 for ac_dir in $ac_dummy; do
3047 test -z "$ac_dir" && ac_dir=.
3048 if test -f $ac_dir/$ac_word; then
3049 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3054 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3058 EDITOR="$ac_cv_path_EDITOR"
3059 if test -n "$EDITOR"; then
3060 echo "$ac_t""$EDITOR" 1>&6
3062 echo "$ac_t""no" 1>&6
3065 # Extract the first word of "finger", so it can be a program name with args.
3066 set dummy finger; ac_word=$2
3067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3068 echo "configure:3069: checking for $ac_word" >&5
3069 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3074 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3077 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3081 ac_dummy="$PATH:/usr/ucb"
3082 for ac_dir in $ac_dummy; do
3083 test -z "$ac_dir" && ac_dir=.
3084 if test -f $ac_dir/$ac_word; then
3085 ac_cv_path_FINGER="$ac_dir/$ac_word"
3090 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3094 FINGER="$ac_cv_path_FINGER"
3095 if test -n "$FINGER"; then
3096 echo "$ac_t""$FINGER" 1>&6
3098 echo "$ac_t""no" 1>&6
3103 if test $ol_enable_perl != no ; then
3104 # Extract the first word of "perl", so it can be a program name with args.
3105 set dummy perl; ac_word=$2
3106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3107 echo "configure:3108: checking for $ac_word" >&5
3108 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3113 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3116 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3121 for ac_dir in $ac_dummy; do
3122 test -z "$ac_dir" && ac_dir=.
3123 if test -f $ac_dir/$ac_word; then
3124 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3129 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3133 PERLBIN="$ac_cv_path_PERLBIN"
3134 if test -n "$PERLBIN"; then
3135 echo "$ac_t""$PERLBIN" 1>&6
3137 echo "$ac_t""no" 1>&6
3141 if test "no$PERLBIN" = "no" ; then
3142 if test $ol_enable_perl = yes ; then
3143 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3147 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3148 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3154 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3155 echo "configure:3156: checking how to run the C preprocessor" >&5
3156 # On Suns, sometimes $CPP names a directory.
3157 if test -n "$CPP" && test -d "$CPP"; then
3160 if test -z "$CPP"; then
3161 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 # This must be in double quotes, not single quotes, because CPP may get
3165 # substituted into the Makefile and "${CC-cc}" will confuse make.
3167 # On the NeXT, cc -E runs the code through the compiler's parser,
3168 # not just through cpp.
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3176 { (eval echo configure:3177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3178 if test -z "$ac_err"; then
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 CPP="${CC-cc} -E -traditional-cpp"
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3193 { (eval echo configure:3194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3195 if test -z "$ac_err"; then
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3202 CPP="${CC-cc} -nologo -E"
3203 cat > conftest.$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3210 { (eval echo configure:3211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3212 if test -z "$ac_err"; then
3216 echo "configure: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3226 ac_cv_prog_CPP="$CPP"
3228 CPP="$ac_cv_prog_CPP"
3230 ac_cv_prog_CPP="$CPP"
3232 echo "$ac_t""$CPP" 1>&6
3235 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3236 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3238 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3239 echo "configure: warning: programs compiled here do run here..." 1>&2
3240 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3242 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3243 echo "configure: warning: programs compiled here do not run here..." 1>&2
3244 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3247 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3248 echo "configure:3249: checking for AIX" >&5
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3258 egrep "yes" >/dev/null 2>&1; then
3260 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3261 #define _ALL_SOURCE 1
3266 echo "$ac_t""no" 1>&6
3271 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3272 echo "configure:3273: checking for POSIXized ISC" >&5
3273 if test -d /etc/conf/kconfig.d &&
3274 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3276 echo "$ac_t""yes" 1>&6
3277 ISC=yes # If later tests want to check for ISC.
3278 cat >> confdefs.h <<\EOF
3279 #define _POSIX_SOURCE 1
3282 if test "$GCC" = yes; then
3288 echo "$ac_t""no" 1>&6
3292 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3293 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3294 echo "configure:3295: checking for minix/config.h" >&5
3295 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <minix/config.h>
3303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3304 { (eval echo configure:3305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3306 if test -z "$ac_err"; then
3308 eval "ac_cv_header_$ac_safe=yes"
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3314 eval "ac_cv_header_$ac_safe=no"
3318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3319 echo "$ac_t""yes" 1>&6
3322 echo "$ac_t""no" 1>&6
3326 if test "$MINIX" = yes; then
3327 cat >> confdefs.h <<\EOF
3328 #define _POSIX_SOURCE 1
3331 cat >> confdefs.h <<\EOF
3332 #define _POSIX_1_SOURCE 2
3335 cat >> confdefs.h <<\EOF
3342 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3343 echo "configure:3344: checking for Cygwin environment" >&5
3344 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3354 #define __CYGWIN__ __CYGWIN32__
3359 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3371 echo "$ac_t""$ac_cv_cygwin" 1>&6
3373 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3374 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3375 echo "configure:3376: checking for mingw32 environment" >&5
3376 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3387 if { (eval echo configure:3388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3391 echo "configure: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3399 echo "$ac_t""$ac_cv_mingw32" 1>&6
3401 test "$ac_cv_mingw32" = yes && MINGW32=yes
3402 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3403 echo "configure:3404: checking for EMX OS/2 environment" >&5
3404 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3407 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3415 if { (eval echo configure:3416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3419 echo "configure: failed program was:" >&5
3420 cat conftest.$ac_ext >&5
3427 echo "$ac_t""$ac_cv_emxos2" 1>&6
3429 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3433 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3434 echo "configure:3435: checking for executable suffix" >&5
3435 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3438 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3442 echo 'int main () { return 0; }' > conftest.$ac_ext
3444 if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3445 for file in conftest.*; do
3447 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3448 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3452 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3455 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3460 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3461 echo "$ac_t""${ac_cv_exeext}" 1>&6
3464 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3465 echo "configure:3466: checking for object suffix" >&5
3466 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3470 echo 'int i = 1;' > conftest.$ac_ext
3471 if { (eval echo configure:3472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472 for ac_file in conftest.*; do
3475 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3479 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3484 echo "$ac_t""$ac_cv_objext" 1>&6
3485 OBJEXT=$ac_cv_objext
3486 ac_objext=$ac_cv_objext
3489 cat >> confdefs.h <<EOF
3490 #define EXEEXT "${EXEEXT}"
3494 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3495 echo "configure:3496: checking for be_app in -lbe" >&5
3496 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3497 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 ac_save_LIBS="$LIBS"
3501 LIBS="-lbe -lroot -lnet $LIBS"
3502 cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3516 eval "ac_cv_lib_$ac_lib_var=yes"
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3521 eval "ac_cv_lib_$ac_lib_var=no"
3524 LIBS="$ac_save_LIBS"
3527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3528 echo "$ac_t""yes" 1>&6
3529 LIBS="$LIBS -lbe -lroot -lnet"
3531 echo "$ac_t""no" 1>&6
3539 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3540 echo "configure:3541: checking for ${CC-cc} option to accept ANSI C" >&5
3541 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3544 am_cv_prog_cc_stdc=no
3546 # Don't try gcc -ansi; that turns off useful extensions and
3547 # breaks some systems' header files.
3548 # AIX -qlanglvl=ansi
3549 # Ultrix and OSF/1 -std1
3550 # HP-UX 10.20 and later -Ae
3551 # HP-UX older versions -Aa -D_HPUX_SOURCE
3552 # SVR4 -Xc -D__EXTENSIONS__
3553 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3555 CC="$ac_save_CC $ac_arg"
3556 cat > conftest.$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3561 #include <sys/types.h>
3562 #include <sys/stat.h>
3563 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3564 struct buf { int x; };
3565 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3566 static char *e (p, i)
3572 static char *f (char * (*g) (char **, int), char **p, ...)
3577 s = g (p, va_arg (v,int));
3581 int test (int i, double x);
3582 struct s1 {int (*f) (int a);};
3583 struct s2 {int (*f) (double a);};
3584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3590 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3594 if { (eval echo configure:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3596 am_cv_prog_cc_stdc="$ac_arg"; break
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3607 if test -z "$am_cv_prog_cc_stdc"; then
3608 echo "$ac_t""none needed" 1>&6
3610 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3612 case "x$am_cv_prog_cc_stdc" in
3614 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3617 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3618 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3621 # test for make depend flag
3624 if test -z "${MKDEP}"; then
3626 if test -z "${MKDEP_FLAGS}"; then
3627 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3628 echo "configure:3629: checking for ${OL_MKDEP} depend flag" >&5
3629 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3634 for flag in "-M" "-xM"; do
3635 cat > conftest.c <<EOF
3638 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3639 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3641 if test ! -f conftest."${ac_object}" ; then
3643 OL_MKDEP_FLAGS="$flag"
3652 echo "$ac_t""$ol_cv_mkdep" 1>&6
3655 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3660 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3665 if test "${ol_cv_mkdep}" = no ; then
3666 # this will soon become an error
3667 echo "configure: warning: do not know how to generate dependencies" 1>&2
3671 if test $ol_enable_modules != no ; then
3672 # Extract the first word of "glib-config", so it can be a program name with args.
3673 set dummy glib-config; ac_word=$2
3674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3675 echo "configure:3676: checking for $ac_word" >&5
3676 if eval "test \"\${ac_cv_path_GLIBCONFIG+set}\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 case "$GLIBCONFIG" in
3681 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
3684 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
3687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3689 for ac_dir in $ac_dummy; do
3690 test -z "$ac_dir" && ac_dir=.
3691 if test -f $ac_dir/$ac_word; then
3692 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
3700 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
3701 if test -n "$GLIBCONFIG"; then
3702 echo "$ac_t""$GLIBCONFIG" 1>&6
3704 echo "$ac_t""no" 1>&6
3708 if test "no$GLIBCONFIG" = "no" ; then
3709 if test $ol_enable_modules = yes ; then
3710 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
3714 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
3715 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
3716 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
3721 ol_with_bdb2_module=static
3722 ol_with_ldap_module=static
3723 ol_with_ldbm_module=static
3724 ol_with_passwd_module=static
3725 ol_with_perl_module=static
3726 ol_with_shell_module=static
3727 ol_with_tcl_module=static
3731 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3732 echo "configure:3733: checking for EBCDIC" >&5
3733 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3737 cat > conftest.$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3742 #include <__ASCII__/generate_error.h>
3746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3747 { (eval echo configure:3748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3749 if test -z "$ac_err"; then
3751 ol_cv_cpp_ebcdic=yes
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3762 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3763 if test $ol_cv_cpp_ebcdic = yes ; then
3764 cat >> confdefs.h <<\EOF
3765 #define HAVE_EBCDIC 1
3770 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3771 echo "configure:3772: checking for ANSI C header files" >&5
3772 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3784 { (eval echo configure:3785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3786 if test -z "$ac_err"; then
3788 ol_cv_header_stdc=yes
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3794 ol_cv_header_stdc=no
3798 if test $ol_cv_header_stdc = yes; then
3799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3800 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3806 egrep "memchr" >/dev/null 2>&1; then
3810 ol_cv_header_stdc=no
3816 if test $ol_cv_header_stdc = yes; then
3817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3824 egrep "free" >/dev/null 2>&1; then
3828 ol_cv_header_stdc=no
3834 if test $ol_cv_header_stdc = yes; then
3835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3836 if test "$cross_compiling" = yes; then
3839 cat > conftest.$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3847 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3848 || ('j' <= (c) && (c) <= 'r') \
3849 || ('s' <= (c) && (c) <= 'z'))
3850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3853 int main () { int i; for (i = 0; i < 256; i++)
3854 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3858 if { (eval echo configure:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3862 echo "configure: failed program was:" >&5
3863 cat conftest.$ac_ext >&5
3865 ol_cv_header_stdc=no
3873 echo "$ac_t""$ol_cv_header_stdc" 1>&6
3874 if test $ol_cv_header_stdc = yes; then
3875 cat >> confdefs.h <<\EOF
3876 #define STDC_HEADERS 1
3880 ac_cv_header_stdc=disable
3883 if test $ol_cv_header_stdc != yes; then
3884 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
3888 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3890 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3891 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3892 echo "configure:3893: checking for $ac_hdr that defines DIR" >&5
3893 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3896 cat > conftest.$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3899 #include <sys/types.h>
3905 if { (eval echo configure:3906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3907 eval "ac_cv_header_dirent_$ac_safe=yes"
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3912 eval "ac_cv_header_dirent_$ac_safe=no"
3916 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3917 echo "$ac_t""yes" 1>&6
3918 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3919 cat >> confdefs.h <<EOF
3920 #define $ac_tr_hdr 1
3922 ac_header_dirent=$ac_hdr; break
3924 echo "$ac_t""no" 1>&6
3927 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3928 if test $ac_header_dirent = dirent.h; then
3929 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3930 echo "configure:3931: checking for opendir in -ldir" >&5
3931 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
3932 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3935 ac_save_LIBS="$LIBS"
3937 cat > conftest.$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3940 /* Override any gcc2 internal prototype to avoid an error. */
3941 /* We use char because int might match the return type of a gcc2
3942 builtin and then its argument prototype would still apply. */
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951 eval "ac_cv_lib_$ac_lib_var=yes"
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3956 eval "ac_cv_lib_$ac_lib_var=no"
3959 LIBS="$ac_save_LIBS"
3962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3963 echo "$ac_t""yes" 1>&6
3966 echo "$ac_t""no" 1>&6
3970 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3971 echo "configure:3972: checking for opendir in -lx" >&5
3972 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
3973 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 ac_save_LIBS="$LIBS"
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 /* Override any gcc2 internal prototype to avoid an error. */
3982 /* We use char because int might match the return type of a gcc2
3983 builtin and then its argument prototype would still apply. */
3990 if { (eval echo configure:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3992 eval "ac_cv_lib_$ac_lib_var=yes"
3994 echo "configure: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3997 eval "ac_cv_lib_$ac_lib_var=no"
4000 LIBS="$ac_save_LIBS"
4003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4004 echo "$ac_t""yes" 1>&6
4007 echo "$ac_t""no" 1>&6
4012 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4013 echo "configure:4014: checking for sys/wait.h that is POSIX.1 compatible" >&5
4014 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4017 cat > conftest.$ac_ext <<EOF
4018 #line 4019 "configure"
4019 #include "confdefs.h"
4020 #include <sys/types.h>
4021 #include <sys/wait.h>
4023 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4026 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4031 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4034 if { (eval echo configure:4035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4036 ac_cv_header_sys_wait_h=yes
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4041 ac_cv_header_sys_wait_h=no
4046 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4047 if test $ac_cv_header_sys_wait_h = yes; then
4048 cat >> confdefs.h <<\EOF
4049 #define HAVE_SYS_WAIT_H 1
4054 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4055 echo "configure:4056: checking POSIX termios" >&5
4056 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4062 #include <sys/types.h>
4064 #include <termios.h>
4066 /* SunOS 4.0.3 has termios.h but not the library calls. */
4070 if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4072 am_cv_sys_posix_termios=yes
4074 echo "configure: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
4077 am_cv_sys_posix_termios=no
4082 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4085 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4086 echo "configure:4087: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4087 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4090 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4092 gwinsz_in_termios_h=no
4093 if test $am_cv_sys_posix_termios = yes; then
4094 cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4097 #include <sys/types.h>
4098 # include <termios.h>
4104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105 egrep "yes" >/dev/null 2>&1; then
4107 gwinsz_in_termios_h=yes
4113 if test $gwinsz_in_termios_h = no; then
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 #include <sys/types.h>
4118 # include <sys/ioctl.h>
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 egrep "yes" >/dev/null 2>&1; then
4127 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4135 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4136 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4137 cat >> confdefs.h <<\EOF
4138 #define GWINSZ_IN_SYS_IOCTL 1
4143 if test $am_cv_sys_posix_termios = yes ; then
4144 cat >> confdefs.h <<\EOF
4145 #define HAVE_POSIX_TERMIOS 1
4192 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4193 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4194 echo "configure:4195: checking for $ac_hdr" >&5
4195 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4204 { (eval echo configure:4205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4206 if test -z "$ac_err"; then
4208 eval "ac_cv_header_$ac_safe=yes"
4211 echo "configure: failed program was:" >&5
4212 cat conftest.$ac_ext >&5
4214 eval "ac_cv_header_$ac_safe=no"
4218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4219 echo "$ac_t""yes" 1>&6
4220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4221 cat >> confdefs.h <<EOF
4222 #define $ac_tr_hdr 1
4226 echo "$ac_t""no" 1>&6
4233 echo $ac_n "checking for socket""... $ac_c" 1>&6
4234 echo "configure:4235: checking for socket" >&5
4235 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4238 cat > conftest.$ac_ext <<EOF
4239 #line 4240 "configure"
4240 #include "confdefs.h"
4241 /* System header to define __stub macros and hopefully few prototypes,
4242 which can conflict with char socket(); below. */
4244 /* Override any gcc2 internal prototype to avoid an error. */
4245 /* We use char because int might match the return type of a gcc2
4246 builtin and then its argument prototype would still apply. */
4252 /* The GNU C library defines this for functions which it implements
4253 to always fail with ENOSYS. Some functions are actually named
4254 something starting with __ and the normal name is an alias. */
4255 #if defined (__stub_socket) || defined (__stub___socket)
4263 if { (eval echo configure:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4265 eval "ac_cv_func_socket=yes"
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4270 eval "ac_cv_func_socket=no"
4275 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4276 echo "$ac_t""yes" 1>&6
4279 echo "$ac_t""no" 1>&6
4281 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4282 echo "configure:4283: checking for main in -lsocket" >&5
4283 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4284 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4287 ac_save_LIBS="$LIBS"
4288 LIBS="-lsocket $LIBS"
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4297 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4299 eval "ac_cv_lib_$ac_lib_var=yes"
4301 echo "configure: failed program was:" >&5
4302 cat conftest.$ac_ext >&5
4304 eval "ac_cv_lib_$ac_lib_var=no"
4307 LIBS="$ac_save_LIBS"
4310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4311 echo "$ac_t""yes" 1>&6
4312 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4314 cat >> confdefs.h <<EOF
4315 #define $ac_tr_lib 1
4318 LIBS="-lsocket $LIBS"
4321 echo "$ac_t""no" 1>&6
4324 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4325 echo "configure:4326: checking for main in -lnet" >&5
4326 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4327 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4330 ac_save_LIBS="$LIBS"
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4340 if { (eval echo configure:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4342 eval "ac_cv_lib_$ac_lib_var=yes"
4344 echo "configure: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4347 eval "ac_cv_lib_$ac_lib_var=no"
4350 LIBS="$ac_save_LIBS"
4353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4355 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4356 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4357 cat >> confdefs.h <<EOF
4358 #define $ac_tr_lib 1
4364 echo "$ac_t""no" 1>&6
4367 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4368 echo "configure:4369: checking for socket in -lnet" >&5
4369 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
4370 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 ac_save_LIBS="$LIBS"
4375 cat > conftest.$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4389 eval "ac_cv_lib_$ac_lib_var=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 eval "ac_cv_lib_$ac_lib_var=no"
4397 LIBS="$ac_save_LIBS"
4400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4402 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4404 cat >> confdefs.h <<EOF
4405 #define $ac_tr_lib 1
4411 echo "$ac_t""no" 1>&6
4414 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4415 echo "configure:4416: checking for main in -lnsl_s" >&5
4416 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4417 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 ac_save_LIBS="$LIBS"
4421 LIBS="-lnsl_s $LIBS"
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4430 if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4432 eval "ac_cv_lib_$ac_lib_var=yes"
4434 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5
4437 eval "ac_cv_lib_$ac_lib_var=no"
4440 LIBS="$ac_save_LIBS"
4443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4444 echo "$ac_t""yes" 1>&6
4445 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4446 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4447 cat >> confdefs.h <<EOF
4448 #define $ac_tr_lib 1
4451 LIBS="-lnsl_s $LIBS"
4454 echo "$ac_t""no" 1>&6
4457 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4458 echo "configure:4459: checking for main in -lnsl" >&5
4459 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4460 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 ac_save_LIBS="$LIBS"
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4475 eval "ac_cv_lib_$ac_lib_var=yes"
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 eval "ac_cv_lib_$ac_lib_var=no"
4483 LIBS="$ac_save_LIBS"
4486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4488 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4489 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4490 cat >> confdefs.h <<EOF
4491 #define $ac_tr_lib 1
4497 echo "$ac_t""no" 1>&6
4500 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4501 echo "configure:4502: checking for socket in -linet" >&5
4502 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4503 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 ac_save_LIBS="$LIBS"
4508 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4511 /* Override any gcc2 internal prototype to avoid an error. */
4512 /* We use char because int might match the return type of a gcc2
4513 builtin and then its argument prototype would still apply. */
4520 if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4522 eval "ac_cv_lib_$ac_lib_var=yes"
4524 echo "configure: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4527 eval "ac_cv_lib_$ac_lib_var=no"
4530 LIBS="$ac_save_LIBS"
4533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4534 echo "$ac_t""yes" 1>&6
4535 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4536 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4537 cat >> confdefs.h <<EOF
4538 #define $ac_tr_lib 1
4544 echo "$ac_t""no" 1>&6
4547 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4548 echo "configure:4549: checking for main in -lgen" >&5
4549 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4550 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 ac_save_LIBS="$LIBS"
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4563 if { (eval echo configure:4564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4565 eval "ac_cv_lib_$ac_lib_var=yes"
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4570 eval "ac_cv_lib_$ac_lib_var=no"
4573 LIBS="$ac_save_LIBS"
4576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4577 echo "$ac_t""yes" 1>&6
4578 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4579 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4580 cat >> confdefs.h <<EOF
4581 #define $ac_tr_lib 1
4587 echo "$ac_t""no" 1>&6
4594 echo $ac_n "checking for select""... $ac_c" 1>&6
4595 echo "configure:4596: checking for select" >&5
4596 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4602 /* System header to define __stub macros and hopefully few prototypes,
4603 which can conflict with char select(); below. */
4605 /* Override any gcc2 internal prototype to avoid an error. */
4606 /* We use char because int might match the return type of a gcc2
4607 builtin and then its argument prototype would still apply. */
4613 /* The GNU C library defines this for functions which it implements
4614 to always fail with ENOSYS. Some functions are actually named
4615 something starting with __ and the normal name is an alias. */
4616 #if defined (__stub_select) || defined (__stub___select)
4624 if { (eval echo configure:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4626 eval "ac_cv_func_select=yes"
4628 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4631 eval "ac_cv_func_select=no"
4636 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4637 echo "$ac_t""yes" 1>&6
4640 echo "$ac_t""no" 1>&6
4641 { echo "configure: error: select() required." 1>&2; exit 1; }
4645 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4646 echo "configure:4647: checking types of arguments for select()" >&5
4647 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4650 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4656 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4657 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4658 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4659 cat > conftest.$ac_ext <<EOF
4660 #line 4661 "configure"
4661 #include "confdefs.h"
4662 #ifdef HAVE_SYS_TYPES_H
4663 #include <sys/types.h>
4665 #ifdef HAVE_SYS_TIME_H
4666 #include <sys/time.h>
4668 #ifdef HAVE_SYS_SELECT_H
4669 #include <sys/select.h>
4671 #ifdef HAVE_SYS_SOCKET_H
4672 #include <sys/socket.h>
4674 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);
4679 if { (eval echo configure:4680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4681 ac_not_found=no ; break 3
4683 echo "configure: failed program was:" >&5
4684 cat conftest.$ac_ext >&5
4698 if test "$ac_not_found" = yes; then
4699 ac_cv_func_select_arg1=int
4700 ac_cv_func_select_arg234='int *'
4701 ac_cv_func_select_arg5='struct timeval *'
4703 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4704 cat >> confdefs.h <<EOF
4705 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4708 cat >> confdefs.h <<EOF
4709 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4712 cat >> confdefs.h <<EOF
4713 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4719 for ac_hdr in regex.h
4721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4723 echo "configure:4724: checking for $ac_hdr" >&5
4724 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4733 { (eval echo configure:4734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4735 if test -z "$ac_err"; then
4737 eval "ac_cv_header_$ac_safe=yes"
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4743 eval "ac_cv_header_$ac_safe=no"
4747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4750 cat >> confdefs.h <<EOF
4751 #define $ac_tr_hdr 1
4755 echo "$ac_t""no" 1>&6
4759 if test "$ac_cv_header_regex_h" != yes ; then
4760 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4762 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4763 echo "configure:4764: checking for regfree" >&5
4764 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4765 echo $ac_n "(cached) $ac_c" 1>&6
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 /* System header to define __stub macros and hopefully few prototypes,
4771 which can conflict with char regfree(); below. */
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 /* We use char because int might match the return type of a gcc2
4775 builtin and then its argument prototype would still apply. */
4781 /* The GNU C library defines this for functions which it implements
4782 to always fail with ENOSYS. Some functions are actually named
4783 something starting with __ and the normal name is an alias. */
4784 #if defined (__stub_regfree) || defined (__stub___regfree)
4792 if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4794 eval "ac_cv_func_regfree=yes"
4796 echo "configure: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4799 eval "ac_cv_func_regfree=no"
4804 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4805 echo "$ac_t""yes" 1>&6
4808 echo "$ac_t""no" 1>&6
4809 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4814 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4815 echo "configure:4816: checking for compatible POSIX regex" >&5
4816 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4820 if test "$cross_compiling" = yes; then
4821 ol_cv_c_posix_regex=cross
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4827 #include <sys/types.h>
4829 static char *pattern, *string;
4837 if(regcomp(&re, pattern, 0)) {
4841 string = "ALL MATCH";
4843 rc = regexec(&re, string, 0, (void*)0, 0);
4850 if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4852 ol_cv_c_posix_regex=yes
4854 echo "configure: failed program was:" >&5
4855 cat conftest.$ac_ext >&5
4857 ol_cv_c_posix_regex=no
4864 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4866 if test "$ol_cv_c_posix_regex" = no ; then
4867 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
4871 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4872 echo "configure:4873: checking for sigset in -lV3" >&5
4873 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4874 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4877 ac_save_LIBS="$LIBS"
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4882 /* Override any gcc2 internal prototype to avoid an error. */
4883 /* We use char because int might match the return type of a gcc2
4884 builtin and then its argument prototype would still apply. */
4891 if { (eval echo configure:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4893 eval "ac_cv_lib_$ac_lib_var=yes"
4895 echo "configure: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4898 eval "ac_cv_lib_$ac_lib_var=no"
4901 LIBS="$ac_save_LIBS"
4904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4905 echo "$ac_t""yes" 1>&6
4906 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4907 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4908 cat >> confdefs.h <<EOF
4909 #define $ac_tr_lib 1
4915 echo "$ac_t""no" 1>&6
4921 if test $ol_enable_dns != no ; then
4922 echo $ac_n "checking for res_search""... $ac_c" 1>&6
4923 echo "configure:4924: checking for res_search" >&5
4924 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
4925 echo $ac_n "(cached) $ac_c" 1>&6
4927 cat > conftest.$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4930 /* System header to define __stub macros and hopefully few prototypes,
4931 which can conflict with char res_search(); below. */
4933 /* Override any gcc2 internal prototype to avoid an error. */
4934 /* We use char because int might match the return type of a gcc2
4935 builtin and then its argument prototype would still apply. */
4941 /* The GNU C library defines this for functions which it implements
4942 to always fail with ENOSYS. Some functions are actually named
4943 something starting with __ and the normal name is an alias. */
4944 #if defined (__stub_res_search) || defined (__stub___res_search)
4952 if { (eval echo configure:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4954 eval "ac_cv_func_res_search=yes"
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4959 eval "ac_cv_func_res_search=no"
4964 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
4965 echo "$ac_t""yes" 1>&6
4968 echo "$ac_t""no" 1>&6
4971 if test $ac_cv_func_res_search = no ; then
4972 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
4973 echo "configure:4974: checking for res_search in -lbind" >&5
4974 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
4975 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 ac_save_LIBS="$LIBS"
4980 cat > conftest.$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4983 /* Override any gcc2 internal prototype to avoid an error. */
4984 /* We use char because int might match the return type of a gcc2
4985 builtin and then its argument prototype would still apply. */
4992 if { (eval echo configure:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4994 eval "ac_cv_lib_$ac_lib_var=yes"
4996 echo "configure: failed program was:" >&5
4997 cat conftest.$ac_ext >&5
4999 eval "ac_cv_lib_$ac_lib_var=no"
5002 LIBS="$ac_save_LIBS"
5005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5006 echo "$ac_t""yes" 1>&6
5007 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5008 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5009 cat >> confdefs.h <<EOF
5010 #define $ac_tr_lib 1
5016 echo "$ac_t""no" 1>&6
5019 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5021 if test $ac_cv_func_res_search = no ; then
5022 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5023 echo "configure:5024: checking for res_search in -lresolv" >&5
5024 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5025 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5026 echo $ac_n "(cached) $ac_c" 1>&6
5028 ac_save_LIBS="$LIBS"
5029 LIBS="-lresolv $LIBS"
5030 cat > conftest.$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5033 /* Override any gcc2 internal prototype to avoid an error. */
5034 /* We use char because int might match the return type of a gcc2
5035 builtin and then its argument prototype would still apply. */
5042 if { (eval echo configure:5043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5044 eval "ac_cv_lib_$ac_lib_var=yes"
5046 echo "configure: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5049 eval "ac_cv_lib_$ac_lib_var=no"
5052 LIBS="$ac_save_LIBS"
5055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5056 echo "$ac_t""yes" 1>&6
5057 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5058 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5059 cat >> confdefs.h <<EOF
5060 #define $ac_tr_lib 1
5063 LIBS="-lresolv $LIBS"
5066 echo "$ac_t""no" 1>&6
5069 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5072 if test "$ac_cv_func_res_search" = yes ; then
5073 cat >> confdefs.h <<\EOF
5074 #define HAVE_RES_SEARCH 1
5077 elif test $ol_enable_dns = yes ; then
5078 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5080 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5087 if test $ol_enable_ldapd != no ; then
5088 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5090 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5091 echo "configure:5092: checking for main in -lxtpp" >&5
5092 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5093 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 ac_save_LIBS="$LIBS"
5097 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5106 if { (eval echo configure:5107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5108 eval "ac_cv_lib_$ac_lib_var=yes"
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5113 eval "ac_cv_lib_$ac_lib_var=no"
5116 LIBS="$ac_save_LIBS"
5119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5120 echo "$ac_t""yes" 1>&6
5123 cat >> confdefs.h <<\EOF
5127 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5130 echo "$ac_t""no" 1>&6
5134 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5135 echo "configure:5136: checking for main in -ldsap" >&5
5136 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 ac_save_LIBS="$LIBS"
5141 LIBS="-ldsap -lisode $LIBS"
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5150 if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5152 eval "ac_cv_lib_$ac_lib_var=yes"
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5157 eval "ac_cv_lib_$ac_lib_var=no"
5160 LIBS="$ac_save_LIBS"
5163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5164 echo "$ac_t""yes" 1>&6
5167 cat >> confdefs.h <<\EOF
5171 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5174 echo "$ac_t""no" 1>&6
5178 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5179 echo "configure:5180: checking for main in -lisode" >&5
5180 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5181 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5182 echo $ac_n "(cached) $ac_c" 1>&6
5184 ac_save_LIBS="$LIBS"
5185 LIBS="-lisode $LIBS"
5186 cat > conftest.$ac_ext <<EOF
5187 #line 5188 "configure"
5188 #include "confdefs.h"
5194 if { (eval echo configure:5195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5196 eval "ac_cv_lib_$ac_lib_var=yes"
5198 echo "configure: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5201 eval "ac_cv_lib_$ac_lib_var=no"
5204 LIBS="$ac_save_LIBS"
5207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5208 echo "$ac_t""yes" 1>&6
5211 cat >> confdefs.h <<\EOF
5212 #define HAVE_ISODE 1
5215 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5218 echo "$ac_t""no" 1>&6
5224 if test $ol_link_isode != no; then
5225 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5226 echo "configure:5227: checking for main in -lpp" >&5
5227 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5228 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
5231 ac_save_LIBS="$LIBS"
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5241 if { (eval echo configure:5242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5243 eval "ac_cv_lib_$ac_lib_var=yes"
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5248 eval "ac_cv_lib_$ac_lib_var=no"
5251 LIBS="$ac_save_LIBS"
5254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5255 echo "$ac_t""yes" 1>&6
5257 cat >> confdefs.h <<\EOF
5261 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5264 echo "$ac_t""no" 1>&6
5269 # Extract the first word of "pepsy", so it can be a program name with args.
5270 set dummy pepsy; ac_word=$2
5271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5272 echo "configure:5273: checking for $ac_word" >&5
5273 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5278 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5281 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5286 for ac_dir in $ac_dummy; do
5287 test -z "$ac_dir" && ac_dir=.
5288 if test -f $ac_dir/$ac_word; then
5289 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5297 PEPSY="$ac_cv_path_PEPSY"
5298 if test -n "$PEPSY"; then
5299 echo "$ac_t""$PEPSY" 1>&6
5301 echo "$ac_t""no" 1>&6
5308 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5309 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5313 echo "configure:5314: checking for $ac_hdr" >&5
5314 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 cat > conftest.$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5323 { (eval echo configure:5324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5325 if test -z "$ac_err"; then
5327 eval "ac_cv_header_$ac_safe=yes"
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5333 eval "ac_cv_header_$ac_safe=no"
5337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5338 echo "$ac_t""yes" 1>&6
5339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5340 cat >> confdefs.h <<EOF
5341 #define $ac_tr_hdr 1
5345 echo "$ac_t""no" 1>&6
5350 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5351 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5352 echo "configure:5353: checking for main in -lkrb4" >&5
5353 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5354 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5357 ac_save_LIBS="$LIBS"
5358 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5359 cat > conftest.$ac_ext <<EOF
5360 #line 5361 "configure"
5361 #include "confdefs.h"
5367 if { (eval echo configure:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5369 eval "ac_cv_lib_$ac_lib_var=yes"
5371 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5
5374 eval "ac_cv_lib_$ac_lib_var=no"
5377 LIBS="$ac_save_LIBS"
5380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5381 echo "$ac_t""yes" 1>&6
5384 echo "$ac_t""no" 1>&6
5389 if test $have_k5 = yes ; then
5390 ol_with_kerberos=found
5391 ol_link_kerberos=yes
5393 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5395 LIBS="$KRB_LIBS $LIBS"
5397 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5398 echo "configure:5399: checking for des_debug in Kerberos libraries" >&5
5399 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5400 echo $ac_n "(cached) $ac_c" 1>&6
5404 LIBS="$KRB_LIBS $LIBS"
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5409 #include <kerberosIV/krb.h>
5410 #include <kerberosIV/des.h>
5411 extern int des_debug;
5419 if { (eval echo configure:5420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5421 ol_cv_var_des_debug=yes
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5426 ol_cv_var_des_debug=no
5433 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5435 if test $ol_cv_var_des_debug = yes ; then
5436 cat >> confdefs.h <<\EOF
5437 #define HAVE_DES_DEBUG 1
5447 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5448 for ac_hdr in krb.h des.h
5450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5452 echo "configure:5453: checking for $ac_hdr" >&5
5453 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5456 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5462 { (eval echo configure:5463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5464 if test -z "$ac_err"; then
5466 eval "ac_cv_header_$ac_safe=yes"
5469 echo "configure: failed program was:" >&5
5470 cat conftest.$ac_ext >&5
5472 eval "ac_cv_header_$ac_safe=no"
5476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5477 echo "$ac_t""yes" 1>&6
5478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5479 cat >> confdefs.h <<EOF
5480 #define $ac_tr_hdr 1
5484 echo "$ac_t""no" 1>&6
5489 if test $ac_cv_header_krb_h = yes ; then
5490 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5491 echo "configure:5492: checking for main in -lkrb" >&5
5492 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
5493 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5494 echo $ac_n "(cached) $ac_c" 1>&6
5496 ac_save_LIBS="$LIBS"
5497 LIBS="-lkrb -ldes $LIBS"
5498 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5506 if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5508 eval "ac_cv_lib_$ac_lib_var=yes"
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5513 eval "ac_cv_lib_$ac_lib_var=no"
5516 LIBS="$ac_save_LIBS"
5519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5520 echo "$ac_t""yes" 1>&6
5523 echo "$ac_t""no" 1>&6
5528 if test $have_k4 = yes ; then
5529 ol_with_kerberos=found
5530 ol_link_kerberos=yes
5532 KRB_LIBS="-lkrb -ldes"
5537 if test $ol_link_kerberos = yes ; then
5538 cat >> confdefs.h <<\EOF
5539 #define HAVE_KERBEROS 1
5545 if test $ol_with_tls != no ; then
5547 for ac_hdr in openssl/ssl.h ssl.h
5549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5551 echo "configure:5552: checking for $ac_hdr" >&5
5552 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5553 echo $ac_n "(cached) $ac_c" 1>&6
5555 cat > conftest.$ac_ext <<EOF
5556 #line 5557 "configure"
5557 #include "confdefs.h"
5560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5561 { (eval echo configure:5562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5563 if test -z "$ac_err"; then
5565 eval "ac_cv_header_$ac_safe=yes"
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5571 eval "ac_cv_header_$ac_safe=no"
5575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5576 echo "$ac_t""yes" 1>&6
5577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5578 cat >> confdefs.h <<EOF
5579 #define $ac_tr_hdr 1
5583 echo "$ac_t""no" 1>&6
5588 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5589 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5590 echo "configure:5591: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5591 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5592 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5593 echo $ac_n "(cached) $ac_c" 1>&6
5595 ac_save_LIBS="$LIBS"
5596 LIBS="-lssl -lcrypto $LIBS"
5597 cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 /* Override any gcc2 internal prototype to avoid an error. */
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5603 char SSLeay_add_ssl_algorithms();
5606 SSLeay_add_ssl_algorithms()
5609 if { (eval echo configure:5610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5611 eval "ac_cv_lib_$ac_lib_var=yes"
5613 echo "configure: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5616 eval "ac_cv_lib_$ac_lib_var=no"
5619 LIBS="$ac_save_LIBS"
5622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5623 echo "$ac_t""yes" 1>&6
5627 echo "$ac_t""no" 1>&6
5632 if test $have_ssleay = no ; then
5633 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5634 echo "configure:5635: checking for SSL_library_init in -lssl" >&5
5635 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
5636 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5637 echo $ac_n "(cached) $ac_c" 1>&6
5639 ac_save_LIBS="$LIBS"
5640 LIBS="-lssl -lcrypto $LIBS"
5641 cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5644 /* Override any gcc2 internal prototype to avoid an error. */
5645 /* We use char because int might match the return type of a gcc2
5646 builtin and then its argument prototype would still apply. */
5647 char SSL_library_init();
5653 if { (eval echo configure:5654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5655 eval "ac_cv_lib_$ac_lib_var=yes"
5657 echo "configure: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5660 eval "ac_cv_lib_$ac_lib_var=no"
5663 LIBS="$ac_save_LIBS"
5666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5667 echo "$ac_t""yes" 1>&6
5671 echo "$ac_t""no" 1>&6
5677 if test $have_ssleay = no ; then
5678 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5679 echo "configure:5680: checking for ssl3_accept in -lssl" >&5
5680 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
5681 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5684 ac_save_LIBS="$LIBS"
5685 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5686 cat > conftest.$ac_ext <<EOF
5687 #line 5688 "configure"
5688 #include "confdefs.h"
5689 /* Override any gcc2 internal prototype to avoid an error. */
5690 /* We use char because int might match the return type of a gcc2
5691 builtin and then its argument prototype would still apply. */
5698 if { (eval echo configure:5699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5700 eval "ac_cv_lib_$ac_lib_var=yes"
5702 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5705 eval "ac_cv_lib_$ac_lib_var=no"
5708 LIBS="$ac_save_LIBS"
5711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5712 echo "$ac_t""yes" 1>&6
5716 echo "$ac_t""no" 1>&6
5722 if test $have_ssleay = yes ; then
5726 cat >> confdefs.h <<\EOF
5727 #define HAVE_SSLEAY 1
5731 if test $need_rsaref = yes; then
5732 cat >> confdefs.h <<\EOF
5733 #define HAVE_RSAREF 1
5737 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5739 TLS_LIBS="-lssl -lcrypto"
5745 if test $ol_link_tls = yes ; then
5746 cat >> confdefs.h <<\EOF
5754 gethostbyname_r gethostbyaddr_r \
5757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5758 echo "configure:5759: checking for $ac_func" >&5
5759 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5760 echo $ac_n "(cached) $ac_c" 1>&6
5762 cat > conftest.$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5765 /* System header to define __stub macros and hopefully few prototypes,
5766 which can conflict with char $ac_func(); below. */
5768 /* Override any gcc2 internal prototype to avoid an error. */
5769 /* We use char because int might match the return type of a gcc2
5770 builtin and then its argument prototype would still apply. */
5776 /* The GNU C library defines this for functions which it implements
5777 to always fail with ENOSYS. Some functions are actually named
5778 something starting with __ and the normal name is an alias. */
5779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5787 if { (eval echo configure:5788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5789 eval "ac_cv_func_$ac_func=yes"
5791 echo "configure: failed program was:" >&5
5792 cat conftest.$ac_ext >&5
5794 eval "ac_cv_func_$ac_func=no"
5799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5800 echo "$ac_t""yes" 1>&6
5801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5802 cat >> confdefs.h <<EOF
5803 #define $ac_tr_func 1
5807 echo "$ac_t""no" 1>&6
5812 if test "$ac_cv_func_ctime_r" = no ; then
5813 ol_cv_func_ctime_r_nargs=0
5815 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
5816 echo "configure:5817: checking number of arguments of ctime_r" >&5
5817 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
5818 echo $ac_n "(cached) $ac_c" 1>&6
5820 cat > conftest.$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5825 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
5828 if { (eval echo configure:5829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5830 ol_cv_func_ctime_r_nargs=3
5832 echo "configure: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5840 time_t ti; char *buffer; ctime_r(&ti,buffer);
5843 if { (eval echo configure:5844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5845 ol_cv_func_ctime_r_nargs=2
5847 echo "configure: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5850 ol_cv_func_ctime_r_nargs=0
5857 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
5858 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
5859 cat >> confdefs.h <<EOF
5860 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
5867 if test "$ac_cv_func_gethostbyname_r" = yes ; then
5868 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
5869 echo "configure:5870: checking number of arguments of gethostbyname_r" >&5
5870 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
5871 echo $ac_n "(cached) $ac_c" 1>&6
5873 cat > conftest.$ac_ext <<EOF
5874 #line 5875 "configure"
5875 #include "confdefs.h"
5876 #include <sys/types.h>
5877 #include <sys/socket.h>
5878 #include <netinet/in.h>
5880 #define BUFSIZE (sizeof(struct hostent)+10)
5882 struct hostent hent; char buffer[BUFSIZE];
5883 int bufsize=BUFSIZE;int h_errno;
5884 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
5885 buffer, bufsize, &h_errno);
5888 if { (eval echo configure:5889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5890 ol_cv_func_gethostbyname_r_nargs=5
5892 echo "configure: failed program was:" >&5
5893 cat conftest.$ac_ext >&5
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5898 #include <sys/types.h>
5899 #include <sys/socket.h>
5900 #include <netinet/in.h>
5902 #define BUFSIZE (sizeof(struct hostent)+10)
5904 struct hostent hent;struct hostent *rhent;
5905 char buffer[BUFSIZE];
5906 int bufsize=BUFSIZE;int h_errno;
5907 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
5911 if { (eval echo configure:5912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5913 ol_cv_func_gethostbyname_r_nargs=6
5915 echo "configure: failed program was:" >&5
5916 cat conftest.$ac_ext >&5
5918 ol_cv_func_gethostbyname_r_nargs=0
5925 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
5926 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
5927 cat >> confdefs.h <<EOF
5928 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
5934 ol_cv_func_gethostbyname_r_nargs=0
5937 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
5938 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
5939 echo "configure:5940: checking number of arguments of gethostbyaddr_r" >&5
5940 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
5941 echo $ac_n "(cached) $ac_c" 1>&6
5943 cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5946 #include <sys/types.h>
5947 #include <sys/socket.h>
5948 #include <netinet/in.h>
5950 #define BUFSIZE (sizeof(struct hostent)+10)
5952 struct hostent hent; char buffer[BUFSIZE];
5954 size_t alen=sizeof(struct in_addr);
5955 int bufsize=BUFSIZE;int h_errno;
5956 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5957 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
5960 if { (eval echo configure:5961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5962 ol_cv_func_gethostbyaddr_r_nargs=7
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5967 cat > conftest.$ac_ext <<EOF
5968 #line 5969 "configure"
5969 #include "confdefs.h"
5970 #include <sys/types.h>
5971 #include <sys/socket.h>
5972 #include <netinet/in.h>
5974 #define BUFSIZE (sizeof(struct hostent)+10)
5976 struct hostent hent;
5977 struct hostent *rhent; char buffer[BUFSIZE];
5979 size_t alen=sizeof(struct in_addr);
5980 int bufsize=BUFSIZE;int h_errno;
5981 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5982 alen, AF_INET, &hent, buffer, bufsize,
5986 if { (eval echo configure:5987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5988 ol_cv_func_gethostbyaddr_r_nargs=8
5990 echo "configure: failed program was:" >&5
5991 cat conftest.$ac_ext >&5
5993 ol_cv_func_gethostbyaddr_r_nargs=0
6000 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6001 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6002 cat >> confdefs.h <<EOF
6003 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6009 ol_cv_func_gethostbyaddr_r_nargs=0
6012 if test "$ac_cv_func_ctime_r" = yes \
6013 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6014 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6015 -a "$ac_cv_func_gethostbyname_r" = yes \
6016 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6017 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6018 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6019 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6020 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6023 cat >> confdefs.h <<\EOF
6024 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6030 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6031 -o $ol_with_threads = posix ; then
6033 for ac_hdr in pthread.h sched.h
6035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6037 echo "configure:6038: checking for $ac_hdr" >&5
6038 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6039 echo $ac_n "(cached) $ac_c" 1>&6
6041 cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6047 { (eval echo configure:6048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6049 if test -z "$ac_err"; then
6051 eval "ac_cv_header_$ac_safe=yes"
6054 echo "configure: failed program was:" >&5
6055 cat conftest.$ac_ext >&5
6057 eval "ac_cv_header_$ac_safe=no"
6061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6062 echo "$ac_t""yes" 1>&6
6063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6064 cat >> confdefs.h <<EOF
6065 #define $ac_tr_hdr 1
6069 echo "$ac_t""no" 1>&6
6074 if test $ac_cv_header_pthread_h = yes ; then
6075 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6076 echo "configure:6077: checking POSIX thread version" >&5
6077 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6078 echo $ac_n "(cached) $ac_c" 1>&6
6081 cat > conftest.$ac_ext <<EOF
6082 #line 6083 "configure"
6083 #include "confdefs.h"
6085 # include <pthread.h>
6086 /* this check could be improved */
6087 # ifdef PTHREAD_ONCE_INIT
6088 pthread_version_final
6092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6093 egrep "pthread_version_final" >/dev/null 2>&1; then
6095 ol_pthread_final=yes
6103 cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6107 # include <pthread.h>
6108 /* this check could be improved */
6109 # ifdef pthread_once_init
6110 pthread_version_draft4
6114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6115 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6117 ol_pthread_draft4=yes
6120 ol_pthread_draft4=no
6125 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6126 ol_cv_pthread_version=final
6127 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6128 ol_cv_pthread_version=draft4
6130 ol_cv_pthread_version=unknown
6135 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6138 if test $ol_cv_pthread_version = final ; then
6139 cat >> confdefs.h <<\EOF
6140 #define HAVE_PTHREADS_FINAL 1
6143 elif test $ol_cv_pthread_version = draft4 ; then
6144 cat >> confdefs.h <<\EOF
6145 #define HAVE_PTHREADS_D4 1
6149 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6152 # consider threads found
6153 ol_with_threads=found
6156 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6157 echo "configure:6158: checking for LinuxThreads pthread.h" >&5
6158 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6161 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure"
6163 #include "confdefs.h"
6164 #include <pthread.h>
6166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6167 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6169 ol_cv_header_linux_threads=yes
6172 ol_cv_header_linux_threads=no
6179 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6180 if test $ol_cv_header_linux_threads = yes; then
6181 cat >> confdefs.h <<\EOF
6182 #define HAVE_LINUX_THREADS 1
6189 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6190 echo "configure:6191: checking for pthread_create in default libraries" >&5
6191 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6195 if test "$cross_compiling" = yes; then
6196 ol_cv_pthread_create=yes
6198 cat > conftest.$ac_ext <<EOF
6199 #line 6200 "configure"
6200 #include "confdefs.h"
6202 #include <pthread.h>
6204 #define NULL (void*)0
6207 static void *task(p)
6210 return (void *) (p == NULL);
6213 int main(argc, argv)
6220 /* make sure pthread_create() isn't just a stub */
6221 #if HAVE_PTHREADS_D4
6222 status = pthread_create(&t, pthread_attr_default, task, NULL);
6224 status = pthread_create(&t, NULL, task, NULL);
6227 if( status ) return status;
6229 /* make sure pthread_detach() isn't just a stub */
6230 #if HAVE_PTHREADS_D4
6231 status = pthread_detach( &t );
6233 status = pthread_detach( t );
6240 if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6242 ol_cv_pthread_create=yes
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6247 ol_cv_pthread_create=no
6254 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6256 if test $ol_cv_pthread_create != no ; then
6257 ol_link_threads=posix
6261 # Pthread try link: -mt (ol_cv_pthread_mt)
6262 if test "$ol_link_threads" = no ; then
6264 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
6265 echo "configure:6266: checking for pthread link with -mt" >&5
6266 if eval "test \"\${ol_cv_pthread_mt+set}\" = set"; then
6267 echo $ac_n "(cached) $ac_c" 1>&6
6274 cat > conftest.$ac_ext <<EOF
6275 #line 6276 "configure"
6276 #include "confdefs.h"
6278 #include <pthread.h>
6280 #define NULL (void*)0
6287 #if HAVE_PTHREADS_D4
6288 pthread_create(&t, pthread_attr_default, NULL, NULL);
6289 pthread_detach( &t );
6291 pthread_create(&t, NULL, NULL, NULL);
6292 pthread_detach( t );
6294 #ifdef HAVE_LINUX_THREADS
6295 pthread_kill_other_threads_np();
6300 if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6302 ol_cv_pthread_mt=yes
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6316 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
6318 if test $ol_cv_pthread_mt = yes ; then
6319 ol_link_pthreads="-mt"
6320 ol_link_threads=posix
6324 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6325 if test "$ol_link_threads" = no ; then
6327 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6328 echo "configure:6329: checking for pthread link with -kthread" >&5
6329 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
6330 echo $ac_n "(cached) $ac_c" 1>&6
6335 LIBS="-kthread $LIBS"
6337 cat > conftest.$ac_ext <<EOF
6338 #line 6339 "configure"
6339 #include "confdefs.h"
6341 #include <pthread.h>
6343 #define NULL (void*)0
6350 #if HAVE_PTHREADS_D4
6351 pthread_create(&t, pthread_attr_default, NULL, NULL);
6352 pthread_detach( &t );
6354 pthread_create(&t, NULL, NULL, NULL);
6355 pthread_detach( t );
6357 #ifdef HAVE_LINUX_THREADS
6358 pthread_kill_other_threads_np();
6363 if { (eval echo configure:6364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6365 ol_cv_pthread_kthread=yes
6367 echo "configure: failed program was:" >&5
6368 cat conftest.$ac_ext >&5
6370 ol_cv_pthread_kthread=no
6379 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6381 if test $ol_cv_pthread_kthread = yes ; then
6382 ol_link_pthreads="-kthread"
6383 ol_link_threads=posix
6387 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6388 if test "$ol_link_threads" = no ; then
6390 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6391 echo "configure:6392: checking for pthread link with -pthread" >&5
6392 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
6393 echo $ac_n "(cached) $ac_c" 1>&6
6398 LIBS="-pthread $LIBS"
6400 cat > conftest.$ac_ext <<EOF
6401 #line 6402 "configure"
6402 #include "confdefs.h"
6404 #include <pthread.h>
6406 #define NULL (void*)0
6413 #if HAVE_PTHREADS_D4
6414 pthread_create(&t, pthread_attr_default, NULL, NULL);
6415 pthread_detach( &t );
6417 pthread_create(&t, NULL, NULL, NULL);
6418 pthread_detach( t );
6420 #ifdef HAVE_LINUX_THREADS
6421 pthread_kill_other_threads_np();
6426 if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6428 ol_cv_pthread_pthread=yes
6430 echo "configure: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6433 ol_cv_pthread_pthread=no
6442 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6444 if test $ol_cv_pthread_pthread = yes ; then
6445 ol_link_pthreads="-pthread"
6446 ol_link_threads=posix
6450 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6451 if test "$ol_link_threads" = no ; then
6453 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6454 echo "configure:6455: checking for pthread link with -pthreads" >&5
6455 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
6456 echo $ac_n "(cached) $ac_c" 1>&6
6461 LIBS="-pthreads $LIBS"
6463 cat > conftest.$ac_ext <<EOF
6464 #line 6465 "configure"
6465 #include "confdefs.h"
6467 #include <pthread.h>
6469 #define NULL (void*)0
6476 #if HAVE_PTHREADS_D4
6477 pthread_create(&t, pthread_attr_default, NULL, NULL);
6478 pthread_detach( &t );
6480 pthread_create(&t, NULL, NULL, NULL);
6481 pthread_detach( t );
6483 #ifdef HAVE_LINUX_THREADS
6484 pthread_kill_other_threads_np();
6489 if { (eval echo configure:6490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6491 ol_cv_pthread_pthreads=yes
6493 echo "configure: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6496 ol_cv_pthread_pthreads=no
6505 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
6507 if test $ol_cv_pthread_pthreads = yes ; then
6508 ol_link_pthreads="-pthreads"
6509 ol_link_threads=posix
6513 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
6514 if test "$ol_link_threads" = no ; then
6516 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
6517 echo "configure:6518: checking for pthread link with -mthreads" >&5
6518 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
6519 echo $ac_n "(cached) $ac_c" 1>&6
6524 LIBS="-mthreads $LIBS"
6526 cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6530 #include <pthread.h>
6532 #define NULL (void*)0
6539 #if HAVE_PTHREADS_D4
6540 pthread_create(&t, pthread_attr_default, NULL, NULL);
6541 pthread_detach( &t );
6543 pthread_create(&t, NULL, NULL, NULL);
6544 pthread_detach( t );
6546 #ifdef HAVE_LINUX_THREADS
6547 pthread_kill_other_threads_np();
6552 if { (eval echo configure:6553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6554 ol_cv_pthread_mthreads=yes
6556 echo "configure: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6559 ol_cv_pthread_mthreads=no
6568 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
6570 if test $ol_cv_pthread_mthreads = yes ; then
6571 ol_link_pthreads="-mthreads"
6572 ol_link_threads=posix
6576 # Pthread try link: -thread (ol_cv_pthread_thread)
6577 if test "$ol_link_threads" = no ; then
6579 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
6580 echo "configure:6581: checking for pthread link with -thread" >&5
6581 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6587 LIBS="-thread $LIBS"
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6593 #include <pthread.h>
6595 #define NULL (void*)0
6602 #if HAVE_PTHREADS_D4
6603 pthread_create(&t, pthread_attr_default, NULL, NULL);
6604 pthread_detach( &t );
6606 pthread_create(&t, NULL, NULL, NULL);
6607 pthread_detach( t );
6609 #ifdef HAVE_LINUX_THREADS
6610 pthread_kill_other_threads_np();
6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6617 ol_cv_pthread_thread=yes
6619 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5
6622 ol_cv_pthread_thread=no
6631 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
6633 if test $ol_cv_pthread_thread = yes ; then
6634 ol_link_pthreads="-thread"
6635 ol_link_threads=posix
6640 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
6641 if test "$ol_link_threads" = no ; then
6642 # try -lpthread -lmach -lexc -lc_r
6643 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
6644 echo "configure:6645: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
6645 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
6646 echo $ac_n "(cached) $ac_c" 1>&6
6651 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
6653 cat > conftest.$ac_ext <<EOF
6654 #line 6655 "configure"
6655 #include "confdefs.h"
6657 #include <pthread.h>
6659 #define NULL (void*)0
6666 #if HAVE_PTHREADS_D4
6667 pthread_create(&t, pthread_attr_default, NULL, NULL);
6668 pthread_detach( &t );
6670 pthread_create(&t, NULL, NULL, NULL);
6671 pthread_detach( t );
6673 #ifdef HAVE_LINUX_THREADS
6674 pthread_kill_other_threads_np();
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6681 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6686 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
6695 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
6697 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
6698 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
6699 ol_link_threads=posix
6703 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
6704 if test "$ol_link_threads" = no ; then
6705 # try -lpthread -lmach -lexc
6706 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
6707 echo "configure:6708: checking for pthread link with -lpthread -lmach -lexc" >&5
6708 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
6709 echo $ac_n "(cached) $ac_c" 1>&6
6714 LIBS="-lpthread -lmach -lexc $LIBS"
6716 cat > conftest.$ac_ext <<EOF
6717 #line 6718 "configure"
6718 #include "confdefs.h"
6720 #include <pthread.h>
6722 #define NULL (void*)0
6729 #if HAVE_PTHREADS_D4
6730 pthread_create(&t, pthread_attr_default, NULL, NULL);
6731 pthread_detach( &t );
6733 pthread_create(&t, NULL, NULL, NULL);
6734 pthread_detach( t );
6736 #ifdef HAVE_LINUX_THREADS
6737 pthread_kill_other_threads_np();
6742 if { (eval echo configure:6743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6744 ol_cv_pthread_lpthread_lmach_lexc=yes
6746 echo "configure: failed program was:" >&5
6747 cat conftest.$ac_ext >&5
6749 ol_cv_pthread_lpthread_lmach_lexc=no
6758 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
6760 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
6761 ol_link_pthreads="-lpthread -lmach -lexc"
6762 ol_link_threads=posix
6767 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
6768 if test "$ol_link_threads" = no ; then
6769 # try -lpthread -Wl,-woff,85
6770 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
6771 echo "configure:6772: checking for pthread link with -lpthread -Wl,-woff,85" >&5
6772 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
6773 echo $ac_n "(cached) $ac_c" 1>&6
6778 LIBS="-lpthread -Wl,-woff,85 $LIBS"
6780 cat > conftest.$ac_ext <<EOF
6781 #line 6782 "configure"
6782 #include "confdefs.h"
6784 #include <pthread.h>
6786 #define NULL (void*)0
6793 #if HAVE_PTHREADS_D4
6794 pthread_create(&t, pthread_attr_default, NULL, NULL);
6795 pthread_detach( &t );
6797 pthread_create(&t, NULL, NULL, NULL);
6798 pthread_detach( t );
6800 #ifdef HAVE_LINUX_THREADS
6801 pthread_kill_other_threads_np();
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6808 ol_cv_pthread_lib_lpthread_woff=yes
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 ol_cv_pthread_lib_lpthread_woff=no
6822 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
6824 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
6825 ol_link_pthreads="-lpthread -Wl,-woff,85"
6826 ol_link_threads=posix
6831 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
6832 if test "$ol_link_threads" = no ; then
6834 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
6835 echo "configure:6836: checking for pthread link with -lpthread" >&5
6836 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
6837 echo $ac_n "(cached) $ac_c" 1>&6
6842 LIBS="-lpthread $LIBS"
6844 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6848 #include <pthread.h>
6850 #define NULL (void*)0
6857 #if HAVE_PTHREADS_D4
6858 pthread_create(&t, pthread_attr_default, NULL, NULL);
6859 pthread_detach( &t );
6861 pthread_create(&t, NULL, NULL, NULL);
6862 pthread_detach( t );
6864 #ifdef HAVE_LINUX_THREADS
6865 pthread_kill_other_threads_np();
6870 if { (eval echo configure:6871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6872 ol_cv_pthread_lpthread=yes
6874 echo "configure: failed program was:" >&5
6875 cat conftest.$ac_ext >&5
6877 ol_cv_pthread_lpthread=no
6886 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
6888 if test $ol_cv_pthread_lpthread = yes ; then
6889 ol_link_pthreads="-lpthread"
6890 ol_link_threads=posix
6894 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
6895 if test "$ol_link_threads" = no ; then
6897 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
6898 echo "configure:6899: checking for pthread link with -lc_r" >&5
6899 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
6900 echo $ac_n "(cached) $ac_c" 1>&6
6907 cat > conftest.$ac_ext <<EOF
6908 #line 6909 "configure"
6909 #include "confdefs.h"
6911 #include <pthread.h>
6913 #define NULL (void*)0
6920 #if HAVE_PTHREADS_D4
6921 pthread_create(&t, pthread_attr_default, NULL, NULL);
6922 pthread_detach( &t );
6924 pthread_create(&t, NULL, NULL, NULL);
6925 pthread_detach( t );
6927 #ifdef HAVE_LINUX_THREADS
6928 pthread_kill_other_threads_np();
6933 if { (eval echo configure:6934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6935 ol_cv_pthread_lc_r=yes
6937 echo "configure: failed program was:" >&5
6938 cat conftest.$ac_ext >&5
6940 ol_cv_pthread_lc_r=no
6949 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
6951 if test $ol_cv_pthread_lc_r = yes ; then
6952 ol_link_pthreads="-lc_r"
6953 ol_link_threads=posix
6958 # Pthread try link: -threads (ol_cv_pthread_threads)
6959 if test "$ol_link_threads" = no ; then
6961 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
6962 echo "configure:6963: checking for pthread link with -threads" >&5
6963 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
6964 echo $ac_n "(cached) $ac_c" 1>&6
6969 LIBS="-threads $LIBS"
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6975 #include <pthread.h>
6977 #define NULL (void*)0
6984 #if HAVE_PTHREADS_D4
6985 pthread_create(&t, pthread_attr_default, NULL, NULL);
6986 pthread_detach( &t );
6988 pthread_create(&t, NULL, NULL, NULL);
6989 pthread_detach( t );
6991 #ifdef HAVE_LINUX_THREADS
6992 pthread_kill_other_threads_np();
6997 if { (eval echo configure:6998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6999 ol_cv_pthread_threads=yes
7001 echo "configure: failed program was:" >&5
7002 cat conftest.$ac_ext >&5
7004 ol_cv_pthread_threads=no
7013 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
7015 if test $ol_cv_pthread_threads = yes ; then
7016 ol_link_pthreads="-threads"
7017 ol_link_threads=posix
7022 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
7023 if test "$ol_link_threads" = no ; then
7024 # try -lpthreads -lmach -lexc -lc_r
7025 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
7026 echo "configure:7027: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
7027 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7033 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
7035 cat > conftest.$ac_ext <<EOF
7036 #line 7037 "configure"
7037 #include "confdefs.h"
7039 #include <pthread.h>
7041 #define NULL (void*)0
7048 #if HAVE_PTHREADS_D4
7049 pthread_create(&t, pthread_attr_default, NULL, NULL);
7050 pthread_detach( &t );
7052 pthread_create(&t, NULL, NULL, NULL);
7053 pthread_detach( t );
7055 #ifdef HAVE_LINUX_THREADS
7056 pthread_kill_other_threads_np();
7061 if { (eval echo configure:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7063 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
7065 echo "configure: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7068 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
7077 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
7079 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
7080 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
7081 ol_link_threads=posix
7085 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
7086 if test "$ol_link_threads" = no ; then
7087 # try -lpthreads -lmach -lexc
7088 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
7089 echo "configure:7090: checking for pthread link with -lpthreads -lmach -lexc" >&5
7090 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
7091 echo $ac_n "(cached) $ac_c" 1>&6
7096 LIBS="-lpthreads -lmach -lexc $LIBS"
7098 cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7102 #include <pthread.h>
7104 #define NULL (void*)0
7111 #if HAVE_PTHREADS_D4
7112 pthread_create(&t, pthread_attr_default, NULL, NULL);
7113 pthread_detach( &t );
7115 pthread_create(&t, NULL, NULL, NULL);
7116 pthread_detach( t );
7118 #ifdef HAVE_LINUX_THREADS
7119 pthread_kill_other_threads_np();
7124 if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7126 ol_cv_pthread_lpthreads_lmach_lexc=yes
7128 echo "configure: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7131 ol_cv_pthread_lpthreads_lmach_lexc=no
7140 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
7142 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
7143 ol_link_pthreads="-lpthreads -lmach -lexc"
7144 ol_link_threads=posix
7148 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
7149 if test "$ol_link_threads" = no ; then
7150 # try -lpthreads -lexc
7151 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
7152 echo "configure:7153: checking for pthread link with -lpthreads -lexc" >&5
7153 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7159 LIBS="-lpthreads -lexc $LIBS"
7161 cat > conftest.$ac_ext <<EOF
7162 #line 7163 "configure"
7163 #include "confdefs.h"
7165 #include <pthread.h>
7167 #define NULL (void*)0
7174 #if HAVE_PTHREADS_D4
7175 pthread_create(&t, pthread_attr_default, NULL, NULL);
7176 pthread_detach( &t );
7178 pthread_create(&t, NULL, NULL, NULL);
7179 pthread_detach( t );
7181 #ifdef HAVE_LINUX_THREADS
7182 pthread_kill_other_threads_np();
7187 if { (eval echo configure:7188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7189 ol_cv_pthread_lpthreads_lexc=yes
7191 echo "configure: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7194 ol_cv_pthread_lpthreads_lexc=no
7203 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
7205 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
7206 ol_link_pthreads="-lpthreads -lexc"
7207 ol_link_threads=posix
7212 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
7213 if test "$ol_link_threads" = no ; then
7215 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
7216 echo "configure:7217: checking for pthread link with -lpthreads" >&5
7217 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
7218 echo $ac_n "(cached) $ac_c" 1>&6
7223 LIBS="-lpthreads $LIBS"
7225 cat > conftest.$ac_ext <<EOF
7226 #line 7227 "configure"
7227 #include "confdefs.h"
7229 #include <pthread.h>
7231 #define NULL (void*)0
7238 #if HAVE_PTHREADS_D4
7239 pthread_create(&t, pthread_attr_default, NULL, NULL);
7240 pthread_detach( &t );
7242 pthread_create(&t, NULL, NULL, NULL);
7243 pthread_detach( t );
7245 #ifdef HAVE_LINUX_THREADS
7246 pthread_kill_other_threads_np();
7251 if { (eval echo configure:7252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7253 ol_cv_pthread_lib_lpthreads=yes
7255 echo "configure: failed program was:" >&5
7256 cat conftest.$ac_ext >&5
7258 ol_cv_pthread_lib_lpthreads=no
7267 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
7269 if test $ol_cv_pthread_lib_lpthreads = yes ; then
7270 ol_link_pthreads="-lpthreads"
7271 ol_link_threads=posix
7276 if test $ol_link_threads != no ; then
7277 cat >> confdefs.h <<\EOF
7278 #define HAVE_PTHREADS 1
7282 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
7284 save_CPPFLAGS="$CPPFLAGS"
7286 LIBS="$LTHREAD_LIBS $LIBS"
7288 for ac_func in sched_yield pthread_yield
7290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7291 echo "configure:7292: checking for $ac_func" >&5
7292 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7293 echo $ac_n "(cached) $ac_c" 1>&6
7295 cat > conftest.$ac_ext <<EOF
7296 #line 7297 "configure"
7297 #include "confdefs.h"
7298 /* System header to define __stub macros and hopefully few prototypes,
7299 which can conflict with char $ac_func(); below. */
7301 /* Override any gcc2 internal prototype to avoid an error. */
7302 /* We use char because int might match the return type of a gcc2
7303 builtin and then its argument prototype would still apply. */
7309 /* The GNU C library defines this for functions which it implements
7310 to always fail with ENOSYS. Some functions are actually named
7311 something starting with __ and the normal name is an alias. */
7312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7320 if { (eval echo configure:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7322 eval "ac_cv_func_$ac_func=yes"
7324 echo "configure: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7327 eval "ac_cv_func_$ac_func=no"
7332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7333 echo "$ac_t""yes" 1>&6
7334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7335 cat >> confdefs.h <<EOF
7336 #define $ac_tr_func 1
7340 echo "$ac_t""no" 1>&6
7345 if test $ac_cv_func_sched_yield = no -a \
7346 $ac_cv_func_pthread_yield = no ; then
7347 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
7348 echo "configure:7349: checking for sched_yield in -lrt" >&5
7349 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
7350 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7351 echo $ac_n "(cached) $ac_c" 1>&6
7353 ac_save_LIBS="$LIBS"
7355 cat > conftest.$ac_ext <<EOF
7356 #line 7357 "configure"
7357 #include "confdefs.h"
7358 /* Override any gcc2 internal prototype to avoid an error. */
7359 /* We use char because int might match the return type of a gcc2
7360 builtin and then its argument prototype would still apply. */
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7369 eval "ac_cv_lib_$ac_lib_var=yes"
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7374 eval "ac_cv_lib_$ac_lib_var=no"
7377 LIBS="$ac_save_LIBS"
7380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7381 echo "$ac_t""yes" 1>&6
7382 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
7383 cat >> confdefs.h <<\EOF
7384 #define HAVE_SCHED_YIELD 1
7387 ac_cv_func_sched_yield=yes
7389 echo "$ac_t""no" 1>&6
7390 ac_cv_func_sched_yield=no
7394 if test $ac_cv_func_sched_yield = no -a \
7395 $ac_cv_func_pthread_yield = no ; then
7396 for ac_func in thr_yield
7398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7399 echo "configure:7400: checking for $ac_func" >&5
7400 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7403 cat > conftest.$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 /* System header to define __stub macros and hopefully few prototypes,
7407 which can conflict with char $ac_func(); below. */
7409 /* Override any gcc2 internal prototype to avoid an error. */
7410 /* We use char because int might match the return type of a gcc2
7411 builtin and then its argument prototype would still apply. */
7417 /* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7428 if { (eval echo configure:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7430 eval "ac_cv_func_$ac_func=yes"
7432 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7435 eval "ac_cv_func_$ac_func=no"
7440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7443 cat >> confdefs.h <<EOF
7444 #define $ac_tr_func 1
7448 echo "$ac_t""no" 1>&6
7453 if test $ac_cv_func_sched_yield = no -a \
7454 $ac_cv_func_pthread_yield = no -a \
7455 "$ac_cv_func_thr_yield" = no ; then
7456 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
7459 for ac_func in pthread_kill
7461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7462 echo "configure:7463: checking for $ac_func" >&5
7463 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7464 echo $ac_n "(cached) $ac_c" 1>&6
7466 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7469 /* System header to define __stub macros and hopefully few prototypes,
7470 which can conflict with char $ac_func(); below. */
7472 /* Override any gcc2 internal prototype to avoid an error. */
7473 /* We use char because int might match the return type of a gcc2
7474 builtin and then its argument prototype would still apply. */
7480 /* The GNU C library defines this for functions which it implements
7481 to always fail with ENOSYS. Some functions are actually named
7482 something starting with __ and the normal name is an alias. */
7483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7491 if { (eval echo configure:7492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7493 eval "ac_cv_func_$ac_func=yes"
7495 echo "configure: failed program was:" >&5
7496 cat conftest.$ac_ext >&5
7498 eval "ac_cv_func_$ac_func=no"
7503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7504 echo "$ac_t""yes" 1>&6
7505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7506 cat >> confdefs.h <<EOF
7507 #define $ac_tr_func 1
7511 echo "$ac_t""no" 1>&6
7516 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
7517 echo "configure:7518: checking for pthread_detach with <pthread.h>" >&5
7518 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
7519 echo $ac_n "(cached) $ac_c" 1>&6
7522 cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7526 #include <pthread.h>
7528 #define NULL (void*)0
7532 pthread_detach(NULL);
7535 if { (eval echo configure:7536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7537 ol_cv_func_pthread_detach=yes
7539 echo "configure: failed program was:" >&5
7540 cat conftest.$ac_ext >&5
7542 ol_cv_func_pthread_detach=no
7548 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
7550 if test $ol_cv_func_pthread_detach = no ; then
7551 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
7554 cat >> confdefs.h <<\EOF
7555 #define HAVE_PTHREAD_DETACH 1
7560 pthread_setconcurrency \
7561 pthread_getconcurrency \
7562 thr_setconcurrency \
7563 thr_getconcurrency \
7566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7567 echo "configure:7568: checking for $ac_func" >&5
7568 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7569 echo $ac_n "(cached) $ac_c" 1>&6
7571 cat > conftest.$ac_ext <<EOF
7572 #line 7573 "configure"
7573 #include "confdefs.h"
7574 /* System header to define __stub macros and hopefully few prototypes,
7575 which can conflict with char $ac_func(); below. */
7577 /* Override any gcc2 internal prototype to avoid an error. */
7578 /* We use char because int might match the return type of a gcc2
7579 builtin and then its argument prototype would still apply. */
7585 /* The GNU C library defines this for functions which it implements
7586 to always fail with ENOSYS. Some functions are actually named
7587 something starting with __ and the normal name is an alias. */
7588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7596 if { (eval echo configure:7597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7598 eval "ac_cv_func_$ac_func=yes"
7600 echo "configure: failed program was:" >&5
7601 cat conftest.$ac_ext >&5
7603 eval "ac_cv_func_$ac_func=no"
7608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7609 echo "$ac_t""yes" 1>&6
7610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7611 cat >> confdefs.h <<EOF
7612 #define $ac_tr_func 1
7616 echo "$ac_t""no" 1>&6
7622 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
7623 echo "configure:7624: checking for pthread_kill_other_threads_np" >&5
7624 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7627 cat > conftest.$ac_ext <<EOF
7628 #line 7629 "configure"
7629 #include "confdefs.h"
7630 /* System header to define __stub macros and hopefully few prototypes,
7631 which can conflict with char pthread_kill_other_threads_np(); below. */
7633 /* Override any gcc2 internal prototype to avoid an error. */
7634 /* We use char because int might match the return type of a gcc2
7635 builtin and then its argument prototype would still apply. */
7636 char pthread_kill_other_threads_np();
7641 /* The GNU C library defines this for functions which it implements
7642 to always fail with ENOSYS. Some functions are actually named
7643 something starting with __ and the normal name is an alias. */
7644 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
7647 f = pthread_kill_other_threads_np;
7652 if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7654 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
7656 echo "configure: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7659 eval "ac_cv_func_pthread_kill_other_threads_np=no"
7664 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
7665 echo "$ac_t""yes" 1>&6
7668 echo "$ac_t""no" 1>&6
7671 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
7672 echo "configure:7673: checking for LinuxThreads implementation" >&5
7673 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
7674 echo $ac_n "(cached) $ac_c" 1>&6
7676 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
7679 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
7684 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
7685 echo "configure:7686: checking for LinuxThreads consistency" >&5
7686 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
7687 echo $ac_n "(cached) $ac_c" 1>&6
7690 if test $ol_cv_header_linux_threads = yes -a \
7691 $ol_cv_sys_linux_threads = yes; then
7692 ol_cv_linux_threads=yes
7693 elif test $ol_cv_header_linux_threads = no -a \
7694 $ol_cv_sys_linux_threads = no; then
7695 ol_cv_linux_threads=no
7697 ol_cv_linux_threads=error
7702 echo "$ac_t""$ol_cv_linux_threads" 1>&6
7705 if test $ol_cv_linux_threads = error; then
7706 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
7709 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
7710 echo "configure:7711: checking if pthread_create() works" >&5
7711 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
7712 echo $ac_n "(cached) $ac_c" 1>&6
7715 if test "$cross_compiling" = yes; then
7716 ol_cv_pthread_create_works=yes
7718 cat > conftest.$ac_ext <<EOF
7719 #line 7720 "configure"
7720 #include "confdefs.h"
7722 #include <pthread.h>
7724 #define NULL (void*)0
7727 static void *task(p)
7730 return (void *) (p == NULL);
7733 int main(argc, argv)
7738 #if HAVE_PTHREADS_D4
7739 exit(pthread_create(&t, pthread_attr_default, task, NULL));
7741 exit(pthread_create(&t, NULL, task, NULL));
7746 if { (eval echo configure:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7748 ol_cv_pthread_create_works=yes
7750 echo "configure: failed program was:" >&5
7751 cat conftest.$ac_ext >&5
7753 ol_cv_pthread_create_works=no
7760 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
7762 if test $ol_cv_pthread_create_works = no ; then
7763 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
7766 if test $ol_with_yielding_select = auto ; then
7767 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
7768 echo "configure:7769: checking if select yields when using pthreads" >&5
7769 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
7770 echo $ac_n "(cached) $ac_c" 1>&6
7773 if test "$cross_compiling" = yes; then
7774 ol_cv_pthread_select_yields=cross
7776 cat > conftest.$ac_ext <<EOF
7777 #line 7778 "configure"
7778 #include "confdefs.h"
7780 #include <sys/types.h>
7781 #include <sys/time.h>
7783 #include <pthread.h>
7785 #define NULL (void*) 0
7788 static int fildes[2];
7790 static void *task(p)
7802 FD_SET(fildes[0], &rfds);
7804 /* we're not interested in any fds */
7805 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
7812 exit(0); /* if we exit here, the select blocked the whole process */
7815 int main(argc, argv)
7821 /* create a pipe to select */
7822 if(pipe(&fildes[0])) {
7827 #ifdef HAVE_PTHREAD_SETCONCURRENCY
7828 (void) pthread_setconcurrency(2);
7830 #ifdef HAVE_THR_SETCONCURRENCY
7831 /* Set Solaris LWP concurrency to 2 */
7832 thr_setconcurrency(2);
7836 #if HAVE_PTHREADS_D4
7837 pthread_create(&t, pthread_attr_default, task, NULL);
7839 pthread_create(&t, NULL, task, NULL);
7842 #if HAVE_SCHED_YIELD
7843 sched_yield(); /* make sure task runs first */
7845 #ifdef HAVE_PTHREAD_YIELD
7846 pthread_yield(); /* make sure task runs first */
7853 if { (eval echo configure:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7855 ol_cv_pthread_select_yields=no
7857 echo "configure: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7860 ol_cv_pthread_select_yields=yes
7867 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
7869 if test $ol_cv_pthread_select_yields = cross ; then
7870 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
7873 if test $ol_cv_pthread_select_yields = yes ; then
7874 ol_with_yielding_select=yes
7878 CPPFLAGS="$save_CPPFLAGS"
7881 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
7885 if test $ol_with_threads = posix ; then
7886 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
7890 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7891 -o $ol_with_threads = mach ; then
7893 for ac_hdr in mach/cthreads.h
7895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7897 echo "configure:7898: checking for $ac_hdr" >&5
7898 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7899 echo $ac_n "(cached) $ac_c" 1>&6
7901 cat > conftest.$ac_ext <<EOF
7902 #line 7903 "configure"
7903 #include "confdefs.h"
7906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7907 { (eval echo configure:7908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7909 if test -z "$ac_err"; then
7911 eval "ac_cv_header_$ac_safe=yes"
7914 echo "configure: failed program was:" >&5
7915 cat conftest.$ac_ext >&5
7917 eval "ac_cv_header_$ac_safe=no"
7921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7922 echo "$ac_t""yes" 1>&6
7923 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7924 cat >> confdefs.h <<EOF
7925 #define $ac_tr_hdr 1
7929 echo "$ac_t""no" 1>&6
7933 if test $ac_cv_header_mach_cthreads_h = yes ; then
7934 ol_with_threads=found
7936 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
7937 echo "configure:7938: checking for cthread_fork" >&5
7938 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7941 cat > conftest.$ac_ext <<EOF
7942 #line 7943 "configure"
7943 #include "confdefs.h"
7944 /* System header to define __stub macros and hopefully few prototypes,
7945 which can conflict with char cthread_fork(); below. */
7947 /* Override any gcc2 internal prototype to avoid an error. */
7948 /* We use char because int might match the return type of a gcc2
7949 builtin and then its argument prototype would still apply. */
7950 char cthread_fork();
7955 /* The GNU C library defines this for functions which it implements
7956 to always fail with ENOSYS. Some functions are actually named
7957 something starting with __ and the normal name is an alias. */
7958 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
7966 if { (eval echo configure:7967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7968 eval "ac_cv_func_cthread_fork=yes"
7970 echo "configure: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7973 eval "ac_cv_func_cthread_fork=no"
7978 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
7979 echo "$ac_t""yes" 1>&6
7982 echo "$ac_t""no" 1>&6
7986 if test $ol_link_threads = no ; then
7987 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
7988 echo "configure:7989: checking for cthread_fork with -all_load" >&5
7989 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
7990 echo $ac_n "(cached) $ac_c" 1>&6
7994 LIBS="-all_load $LIBS"
7995 cat > conftest.$ac_ext <<EOF
7996 #line 7997 "configure"
7997 #include "confdefs.h"
7998 #include <mach/cthreads.h>
8001 cthread_fork((void *)0, (void *)0);
8005 if { (eval echo configure:8006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8007 ol_cv_cthread_all_load=yes
8009 echo "configure: failed program was:" >&5
8010 cat conftest.$ac_ext >&5
8012 ol_cv_cthread_all_load=no
8019 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
8021 if test $ol_cv_cthread_all_load = yes ; then
8022 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
8023 ol_link_threads=mach
8027 if test $ol_link_threads != no ; then
8028 : check for cthread specific functionality here
8029 cat >> confdefs.h <<\EOF
8030 #define HAVE_MACH_CTHREADS 1
8034 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
8038 if test $ol_with_threads = mach ; then
8039 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
8043 if test $ol_with_threads = auto -o $ol_with_threads = yes \
8044 -o $ol_with_threads = lwp ; then
8046 for ac_hdr in thread.h synch.h
8048 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8049 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8050 echo "configure:8051: checking for $ac_hdr" >&5
8051 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8060 { (eval echo configure:8061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8062 if test -z "$ac_err"; then
8064 eval "ac_cv_header_$ac_safe=yes"
8067 echo "configure: failed program was:" >&5
8068 cat conftest.$ac_ext >&5
8070 eval "ac_cv_header_$ac_safe=no"
8074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8075 echo "$ac_t""yes" 1>&6
8076 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8077 cat >> confdefs.h <<EOF
8078 #define $ac_tr_hdr 1
8082 echo "$ac_t""no" 1>&6
8086 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
8087 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
8088 echo "configure:8089: checking for thr_create in -lthread" >&5
8089 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
8090 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8091 echo $ac_n "(cached) $ac_c" 1>&6
8093 ac_save_LIBS="$LIBS"
8094 LIBS="-lthread $LIBS"
8095 cat > conftest.$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8098 /* Override any gcc2 internal prototype to avoid an error. */
8099 /* We use char because int might match the return type of a gcc2
8100 builtin and then its argument prototype would still apply. */
8107 if { (eval echo configure:8108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8109 eval "ac_cv_lib_$ac_lib_var=yes"
8111 echo "configure: failed program was:" >&5
8112 cat conftest.$ac_ext >&5
8114 eval "ac_cv_lib_$ac_lib_var=no"
8117 LIBS="$ac_save_LIBS"
8120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8121 echo "$ac_t""yes" 1>&6
8124 echo "$ac_t""no" 1>&6
8129 if test $have_thr = yes ; then
8130 cat >> confdefs.h <<\EOF
8134 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
8137 if test $ol_with_yielding_select = auto ; then
8138 ol_with_yielding_select=yes
8142 thr_setconcurrency \
8143 thr_getconcurrency \
8146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8147 echo "configure:8148: checking for $ac_func" >&5
8148 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8149 echo $ac_n "(cached) $ac_c" 1>&6
8151 cat > conftest.$ac_ext <<EOF
8152 #line 8153 "configure"
8153 #include "confdefs.h"
8154 /* System header to define __stub macros and hopefully few prototypes,
8155 which can conflict with char $ac_func(); below. */
8157 /* Override any gcc2 internal prototype to avoid an error. */
8158 /* We use char because int might match the return type of a gcc2
8159 builtin and then its argument prototype would still apply. */
8165 /* The GNU C library defines this for functions which it implements
8166 to always fail with ENOSYS. Some functions are actually named
8167 something starting with __ and the normal name is an alias. */
8168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8176 if { (eval echo configure:8177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8178 eval "ac_cv_func_$ac_func=yes"
8180 echo "configure: failed program was:" >&5
8181 cat conftest.$ac_ext >&5
8183 eval "ac_cv_func_$ac_func=no"
8188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8189 echo "$ac_t""yes" 1>&6
8190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8191 cat >> confdefs.h <<EOF
8192 #define $ac_tr_func 1
8196 echo "$ac_t""no" 1>&6
8203 for ac_hdr in lwp/lwp.h
8205 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8207 echo "configure:8208: checking for $ac_hdr" >&5
8208 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8209 echo $ac_n "(cached) $ac_c" 1>&6
8211 cat > conftest.$ac_ext <<EOF
8212 #line 8213 "configure"
8213 #include "confdefs.h"
8216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8217 { (eval echo configure:8218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8219 if test -z "$ac_err"; then
8221 eval "ac_cv_header_$ac_safe=yes"
8224 echo "configure: failed program was:" >&5
8225 cat conftest.$ac_ext >&5
8227 eval "ac_cv_header_$ac_safe=no"
8231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8232 echo "$ac_t""yes" 1>&6
8233 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8234 cat >> confdefs.h <<EOF
8235 #define $ac_tr_hdr 1
8239 echo "$ac_t""no" 1>&6
8243 if test $ac_cv_header_lwp_lwp_h = yes ; then
8244 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
8245 echo "configure:8246: checking for lwp_create in -llwp" >&5
8246 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
8247 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8248 echo $ac_n "(cached) $ac_c" 1>&6
8250 ac_save_LIBS="$LIBS"
8252 cat > conftest.$ac_ext <<EOF
8253 #line 8254 "configure"
8254 #include "confdefs.h"
8255 /* Override any gcc2 internal prototype to avoid an error. */
8256 /* We use char because int might match the return type of a gcc2
8257 builtin and then its argument prototype would still apply. */
8264 if { (eval echo configure:8265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8266 eval "ac_cv_lib_$ac_lib_var=yes"
8268 echo "configure: failed program was:" >&5
8269 cat conftest.$ac_ext >&5
8271 eval "ac_cv_lib_$ac_lib_var=no"
8274 LIBS="$ac_save_LIBS"
8277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8278 echo "$ac_t""yes" 1>&6
8281 echo "$ac_t""no" 1>&6
8286 if test $have_lwp = yes ; then
8287 cat >> confdefs.h <<\EOF
8291 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
8294 if test $ol_with_yielding_select = auto ; then
8295 ol_with_yielding_select=no
8301 if test $ol_with_yielding_select = yes ; then
8302 cat >> confdefs.h <<\EOF
8303 #define HAVE_YIELDING_SELECT 1
8308 if test $ol_with_threads = manual ; then
8311 echo "configure: warning: thread defines and link options must be set manually" 1>&2
8313 for ac_hdr in pthread.h sched.h
8315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8317 echo "configure:8318: checking for $ac_hdr" >&5
8318 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8327 { (eval echo configure:8328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8329 if test -z "$ac_err"; then
8331 eval "ac_cv_header_$ac_safe=yes"
8334 echo "configure: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8337 eval "ac_cv_header_$ac_safe=no"
8341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8342 echo "$ac_t""yes" 1>&6
8343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8344 cat >> confdefs.h <<EOF
8345 #define $ac_tr_hdr 1
8349 echo "$ac_t""no" 1>&6
8353 for ac_func in sched_yield pthread_yield
8355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8356 echo "configure:8357: checking for $ac_func" >&5
8357 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
8360 cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8363 /* System header to define __stub macros and hopefully few prototypes,
8364 which can conflict with char $ac_func(); below. */
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 /* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8374 /* The GNU C library defines this for functions which it implements
8375 to always fail with ENOSYS. Some functions are actually named
8376 something starting with __ and the normal name is an alias. */
8377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8385 if { (eval echo configure:8386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8387 eval "ac_cv_func_$ac_func=yes"
8389 echo "configure: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8392 eval "ac_cv_func_$ac_func=no"
8397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8398 echo "$ac_t""yes" 1>&6
8399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8400 cat >> confdefs.h <<EOF
8401 #define $ac_tr_func 1
8405 echo "$ac_t""no" 1>&6
8410 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
8411 echo "configure:8412: checking for LinuxThreads pthread.h" >&5
8412 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8415 cat > conftest.$ac_ext <<EOF
8416 #line 8417 "configure"
8417 #include "confdefs.h"
8418 #include <pthread.h>
8420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8421 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
8423 ol_cv_header_linux_threads=yes
8426 ol_cv_header_linux_threads=no
8433 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
8434 if test $ol_cv_header_linux_threads = yes; then
8435 cat >> confdefs.h <<\EOF
8436 #define HAVE_LINUX_THREADS 1
8442 for ac_hdr in mach/cthreads.h
8444 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8446 echo "configure:8447: checking for $ac_hdr" >&5
8447 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8448 echo $ac_n "(cached) $ac_c" 1>&6
8450 cat > conftest.$ac_ext <<EOF
8451 #line 8452 "configure"
8452 #include "confdefs.h"
8455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8456 { (eval echo configure:8457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8458 if test -z "$ac_err"; then
8460 eval "ac_cv_header_$ac_safe=yes"
8463 echo "configure: failed program was:" >&5
8464 cat conftest.$ac_ext >&5
8466 eval "ac_cv_header_$ac_safe=no"
8470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8471 echo "$ac_t""yes" 1>&6
8472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8473 cat >> confdefs.h <<EOF
8474 #define $ac_tr_hdr 1
8478 echo "$ac_t""no" 1>&6
8482 for ac_hdr in lwp/lwp.h
8484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8486 echo "configure:8487: checking for $ac_hdr" >&5
8487 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8488 echo $ac_n "(cached) $ac_c" 1>&6
8490 cat > conftest.$ac_ext <<EOF
8491 #line 8492 "configure"
8492 #include "confdefs.h"
8495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8496 { (eval echo configure:8497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8498 if test -z "$ac_err"; then
8500 eval "ac_cv_header_$ac_safe=yes"
8503 echo "configure: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8506 eval "ac_cv_header_$ac_safe=no"
8510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8511 echo "$ac_t""yes" 1>&6
8512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8513 cat >> confdefs.h <<EOF
8514 #define $ac_tr_hdr 1
8518 echo "$ac_t""no" 1>&6
8522 for ac_hdr in thread.h synch.h
8524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8526 echo "configure:8527: checking for $ac_hdr" >&5
8527 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8530 cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8536 { (eval echo configure:8537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8538 if test -z "$ac_err"; then
8540 eval "ac_cv_header_$ac_safe=yes"
8543 echo "configure: failed program was:" >&5
8544 cat conftest.$ac_ext >&5
8546 eval "ac_cv_header_$ac_safe=no"
8550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8551 echo "$ac_t""yes" 1>&6
8552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8553 cat >> confdefs.h <<EOF
8554 #define $ac_tr_hdr 1
8558 echo "$ac_t""no" 1>&6
8564 if test $ol_link_threads != no ; then
8565 cat >> confdefs.h <<\EOF
8569 cat >> confdefs.h <<\EOF
8570 #define _REENTRANT 1
8573 cat >> confdefs.h <<\EOF
8574 #define THREAD_SAFE 1
8577 cat >> confdefs.h <<\EOF
8578 #define _THREAD_SAFE 1
8581 cat >> confdefs.h <<\EOF
8582 #define THREADSAFE 1
8585 cat >> confdefs.h <<\EOF
8586 #define _THREADSAFE 1
8589 cat >> confdefs.h <<\EOF
8590 #define _SGI_MP_SOURCE 1
8594 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
8595 echo "configure:8596: checking for thread specific errno" >&5
8596 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8600 cat > conftest.$ac_ext <<EOF
8601 #line 8602 "configure"
8602 #include "confdefs.h"
8608 if { (eval echo configure:8609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8610 ol_cv_errno_thread_specific=yes
8612 echo "configure: failed program was:" >&5
8613 cat conftest.$ac_ext >&5
8615 ol_cv_errno_thread_specific=no
8621 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
8623 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
8624 echo "configure:8625: checking for thread specific h_errno" >&5
8625 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8637 if { (eval echo configure:8638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8639 ol_cv_h_errno_thread_specific=yes
8641 echo "configure: failed program was:" >&5
8642 cat conftest.$ac_ext >&5
8644 ol_cv_h_errno_thread_specific=no
8650 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
8652 if test $ol_cv_errno_thread_specific != yes \
8653 -o $ol_cv_h_errno_thread_specific != yes ; then
8654 LIBS="$LTHREAD_LIBS $LIBS"
8660 if test $ol_link_threads = no ; then
8661 if test $ol_with_threads = yes ; then
8662 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
8665 if test $ol_with_threads = auto ; then
8666 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
8670 cat >> confdefs.h <<\EOF
8671 #define NO_THREADS 1
8677 if test $ol_link_threads != no ; then
8678 cat >> confdefs.h <<\EOF
8679 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
8686 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
8687 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
8688 echo "configure:8689: checking for DB2 library" >&5
8689 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
8690 echo $ac_n "(cached) $ac_c" 1>&6
8693 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
8694 echo "configure:8695: checking for db_open in -ldb" >&5
8695 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
8696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8697 echo $ac_n "(cached) $ac_c" 1>&6
8699 ac_save_LIBS="$LIBS"
8701 cat > conftest.$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8704 /* Override any gcc2 internal prototype to avoid an error. */
8705 /* We use char because int might match the return type of a gcc2
8706 builtin and then its argument prototype would still apply. */
8713 if { (eval echo configure:8714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8715 eval "ac_cv_lib_$ac_lib_var=yes"
8717 echo "configure: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8720 eval "ac_cv_lib_$ac_lib_var=no"
8723 LIBS="$ac_save_LIBS"
8726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8727 echo "$ac_t""yes" 1>&6
8730 echo "$ac_t""no" 1>&6
8738 echo "$ac_t""$ol_cv_lib_db2" 1>&6
8742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8744 echo "configure:8745: checking for $ac_hdr" >&5
8745 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8746 echo $ac_n "(cached) $ac_c" 1>&6
8748 cat > conftest.$ac_ext <<EOF
8749 #line 8750 "configure"
8750 #include "confdefs.h"
8753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8754 { (eval echo configure:8755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8756 if test -z "$ac_err"; then
8758 eval "ac_cv_header_$ac_safe=yes"
8761 echo "configure: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8764 eval "ac_cv_header_$ac_safe=no"
8768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8769 echo "$ac_t""yes" 1>&6
8770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8771 cat >> confdefs.h <<EOF
8772 #define $ac_tr_hdr 1
8776 echo "$ac_t""no" 1>&6
8780 if test $ac_cv_header_db_h = yes ; then
8781 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
8782 echo "configure:8783: checking if db.h is DB2" >&5
8783 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8787 cat > conftest.$ac_ext <<EOF
8788 #line 8789 "configure"
8789 #include "confdefs.h"
8792 /* this check could be improved */
8793 # ifdef DB_VERSION_MAJOR
8794 # if DB_VERSION_MAJOR == 2
8800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8801 egrep "__db_version_2" >/dev/null 2>&1; then
8803 ol_cv_header_db2=yes
8812 echo "$ac_t""$ol_cv_header_db2" 1>&6
8819 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
8820 echo "configure:8821: checking for Berkeley DB2" >&5
8821 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
8822 echo $ac_n "(cached) $ac_c" 1>&6
8825 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
8826 ol_cv_berkeley_db2=no
8828 ol_cv_berkeley_db2=yes
8833 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
8834 if test $ol_cv_berkeley_db2 = yes ; then
8835 cat >> confdefs.h <<\EOF
8836 #define HAVE_BERKELEY_DB2 1
8842 if test $ol_cv_berkeley_db2 = yes ; then
8844 ol_with_ldbm_api=db2
8846 if test $ol_with_ldbm_type = hash ; then
8847 cat >> confdefs.h <<\EOF
8848 #define LDBM_USE_DBHASH 1
8852 cat >> confdefs.h <<\EOF
8853 #define LDBM_USE_DBBTREE 1
8858 if test $ol_cv_lib_db2 != yes ; then
8859 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
8865 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
8869 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
8870 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
8871 echo "configure:8872: checking for Berkeley DB library" >&5
8872 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8876 for ac_hdr in db1/db.h
8878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8880 echo "configure:8881: checking for $ac_hdr" >&5
8881 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8882 echo $ac_n "(cached) $ac_c" 1>&6
8884 cat > conftest.$ac_ext <<EOF
8885 #line 8886 "configure"
8886 #include "confdefs.h"
8889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8890 { (eval echo configure:8891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8892 if test -z "$ac_err"; then
8894 eval "ac_cv_header_$ac_safe=yes"
8897 echo "configure: failed program was:" >&5
8898 cat conftest.$ac_ext >&5
8900 eval "ac_cv_header_$ac_safe=no"
8904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8905 echo "$ac_t""yes" 1>&6
8906 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8907 cat >> confdefs.h <<EOF
8908 #define $ac_tr_hdr 1
8912 echo "$ac_t""no" 1>&6
8917 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
8918 echo "configure:8919: checking for dbopen" >&5
8919 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
8920 echo $ac_n "(cached) $ac_c" 1>&6
8922 cat > conftest.$ac_ext <<EOF
8923 #line 8924 "configure"
8924 #include "confdefs.h"
8925 /* System header to define __stub macros and hopefully few prototypes,
8926 which can conflict with char dbopen(); below. */
8928 /* Override any gcc2 internal prototype to avoid an error. */
8929 /* We use char because int might match the return type of a gcc2
8930 builtin and then its argument prototype would still apply. */
8936 /* The GNU C library defines this for functions which it implements
8937 to always fail with ENOSYS. Some functions are actually named
8938 something starting with __ and the normal name is an alias. */
8939 #if defined (__stub_dbopen) || defined (__stub___dbopen)
8947 if { (eval echo configure:8948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8949 eval "ac_cv_func_dbopen=yes"
8951 echo "configure: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8954 eval "ac_cv_func_dbopen=no"
8959 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
8960 echo "$ac_t""yes" 1>&6
8963 echo "$ac_t""no" 1>&6
8965 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
8966 echo "configure:8967: checking for dbopen in -ldb1" >&5
8967 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
8968 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8969 echo $ac_n "(cached) $ac_c" 1>&6
8971 ac_save_LIBS="$LIBS"
8973 cat > conftest.$ac_ext <<EOF
8974 #line 8975 "configure"
8975 #include "confdefs.h"
8976 /* Override any gcc2 internal prototype to avoid an error. */
8977 /* We use char because int might match the return type of a gcc2
8978 builtin and then its argument prototype would still apply. */
8985 if { (eval echo configure:8986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8987 eval "ac_cv_lib_$ac_lib_var=yes"
8989 echo "configure: failed program was:" >&5
8990 cat conftest.$ac_ext >&5
8992 eval "ac_cv_lib_$ac_lib_var=no"
8995 LIBS="$ac_save_LIBS"
8998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8999 echo "$ac_t""yes" 1>&6
9002 echo "$ac_t""no" 1>&6
9004 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9005 echo "configure:9006: checking for dbopen in -ldb" >&5
9006 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
9007 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9010 ac_save_LIBS="$LIBS"
9012 cat > conftest.$ac_ext <<EOF
9013 #line 9014 "configure"
9014 #include "confdefs.h"
9015 /* Override any gcc2 internal prototype to avoid an error. */
9016 /* We use char because int might match the return type of a gcc2
9017 builtin and then its argument prototype would still apply. */
9024 if { (eval echo configure:9025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9026 eval "ac_cv_lib_$ac_lib_var=yes"
9028 echo "configure: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9031 eval "ac_cv_lib_$ac_lib_var=no"
9034 LIBS="$ac_save_LIBS"
9037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9038 echo "$ac_t""yes" 1>&6
9041 echo "$ac_t""no" 1>&6
9055 echo "$ac_t""$ol_cv_lib_db" 1>&6
9058 for ac_hdr in db_185.h
9060 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9061 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9062 echo "configure:9063: checking for $ac_hdr" >&5
9063 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
9066 cat > conftest.$ac_ext <<EOF
9067 #line 9068 "configure"
9068 #include "confdefs.h"
9071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9072 { (eval echo configure:9073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9074 if test -z "$ac_err"; then
9076 eval "ac_cv_header_$ac_safe=yes"
9079 echo "configure: failed program was:" >&5
9080 cat conftest.$ac_ext >&5
9082 eval "ac_cv_header_$ac_safe=no"
9086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9087 echo "$ac_t""yes" 1>&6
9088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9089 cat >> confdefs.h <<EOF
9090 #define $ac_tr_hdr 1
9094 echo "$ac_t""no" 1>&6
9098 if test "$ol_cv_header_db2" = yes ; then
9100 ol_cv_header_db=$ac_cv_header_db_185_h
9102 ol_cv_header_db=$ac_cv_header_db_h
9107 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
9108 echo "configure:9109: checking for Berkeley DB" >&5
9109 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
9110 echo $ac_n "(cached) $ac_c" 1>&6
9113 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
9114 ol_cv_berkeley_db=no
9116 ol_cv_berkeley_db=yes
9121 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
9122 if test $ol_cv_berkeley_db = yes ; then
9123 cat >> confdefs.h <<\EOF
9124 #define HAVE_BERKELEY_DB 1
9130 if test $ol_cv_berkeley_db = yes ; then
9134 if test $ol_with_ldbm_type = hash ; then
9135 cat >> confdefs.h <<\EOF
9136 #define LDBM_USE_DBHASH 1
9140 cat >> confdefs.h <<\EOF
9141 #define LDBM_USE_DBBTREE 1
9146 if test $ol_cv_lib_db != yes ; then
9147 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
9152 if test $ol_with_ldbm_api = manual ; then
9155 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
9157 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
9159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9161 echo "configure:9162: checking for $ac_hdr" >&5
9162 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9163 echo $ac_n "(cached) $ac_c" 1>&6
9165 cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9171 { (eval echo configure:9172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9173 if test -z "$ac_err"; then
9175 eval "ac_cv_header_$ac_safe=yes"
9178 echo "configure: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9181 eval "ac_cv_header_$ac_safe=no"
9185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9186 echo "$ac_t""yes" 1>&6
9187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9188 cat >> confdefs.h <<EOF
9189 #define $ac_tr_hdr 1
9193 echo "$ac_t""no" 1>&6
9199 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
9200 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
9201 ol_with_ldbm_api=none
9204 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
9205 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
9206 echo "configure:9207: checking for MDBM library" >&5
9207 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
9208 echo $ac_n "(cached) $ac_c" 1>&6
9211 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
9212 echo "configure:9213: checking for mdbm_set_chain" >&5
9213 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9216 cat > conftest.$ac_ext <<EOF
9217 #line 9218 "configure"
9218 #include "confdefs.h"
9219 /* System header to define __stub macros and hopefully few prototypes,
9220 which can conflict with char mdbm_set_chain(); below. */
9222 /* Override any gcc2 internal prototype to avoid an error. */
9223 /* We use char because int might match the return type of a gcc2
9224 builtin and then its argument prototype would still apply. */
9225 char mdbm_set_chain();
9230 /* The GNU C library defines this for functions which it implements
9231 to always fail with ENOSYS. Some functions are actually named
9232 something starting with __ and the normal name is an alias. */
9233 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
9241 if { (eval echo configure:9242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9243 eval "ac_cv_func_mdbm_set_chain=yes"
9245 echo "configure: failed program was:" >&5
9246 cat conftest.$ac_ext >&5
9248 eval "ac_cv_func_mdbm_set_chain=no"
9253 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
9254 echo "$ac_t""yes" 1>&6
9257 echo "$ac_t""no" 1>&6
9259 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
9260 echo "configure:9261: checking for mdbm_set_chain in -lmdbm" >&5
9261 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
9262 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9263 echo $ac_n "(cached) $ac_c" 1>&6
9265 ac_save_LIBS="$LIBS"
9267 cat > conftest.$ac_ext <<EOF
9268 #line 9269 "configure"
9269 #include "confdefs.h"
9270 /* Override any gcc2 internal prototype to avoid an error. */
9271 /* We use char because int might match the return type of a gcc2
9272 builtin and then its argument prototype would still apply. */
9273 char mdbm_set_chain();
9279 if { (eval echo configure:9280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9281 eval "ac_cv_lib_$ac_lib_var=yes"
9283 echo "configure: failed program was:" >&5
9284 cat conftest.$ac_ext >&5
9286 eval "ac_cv_lib_$ac_lib_var=no"
9289 LIBS="$ac_save_LIBS"
9292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9293 echo "$ac_t""yes" 1>&6
9294 ol_cv_lib_mdbm=-lmdbm
9296 echo "$ac_t""no" 1>&6
9307 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
9310 for ac_hdr in mdbm.h
9312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9314 echo "configure:9315: checking for $ac_hdr" >&5
9315 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9316 echo $ac_n "(cached) $ac_c" 1>&6
9318 cat > conftest.$ac_ext <<EOF
9319 #line 9320 "configure"
9320 #include "confdefs.h"
9323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9324 { (eval echo configure:9325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9326 if test -z "$ac_err"; then
9328 eval "ac_cv_header_$ac_safe=yes"
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9334 eval "ac_cv_header_$ac_safe=no"
9338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9339 echo "$ac_t""yes" 1>&6
9340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9341 cat >> confdefs.h <<EOF
9342 #define $ac_tr_hdr 1
9346 echo "$ac_t""no" 1>&6
9350 echo $ac_n "checking for db""... $ac_c" 1>&6
9351 echo "configure:9352: checking for db" >&5
9352 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
9353 echo $ac_n "(cached) $ac_c" 1>&6
9356 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
9364 echo "$ac_t""$ol_cv_mdbm" 1>&6
9365 if test $ol_cv_mdbm = yes ; then
9366 cat >> confdefs.h <<\EOF
9373 if test $ol_cv_mdbm = yes ; then
9375 ol_with_ldbm_api=mdbm
9376 if test $ol_cv_lib_mdbm != yes ; then
9377 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
9382 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
9383 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
9384 echo "configure:9385: checking for GDBM library" >&5
9385 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
9389 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
9390 echo "configure:9391: checking for gdbm_open" >&5
9391 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
9392 echo $ac_n "(cached) $ac_c" 1>&6
9394 cat > conftest.$ac_ext <<EOF
9395 #line 9396 "configure"
9396 #include "confdefs.h"
9397 /* System header to define __stub macros and hopefully few prototypes,
9398 which can conflict with char gdbm_open(); below. */
9400 /* Override any gcc2 internal prototype to avoid an error. */
9401 /* We use char because int might match the return type of a gcc2
9402 builtin and then its argument prototype would still apply. */
9408 /* The GNU C library defines this for functions which it implements
9409 to always fail with ENOSYS. Some functions are actually named
9410 something starting with __ and the normal name is an alias. */
9411 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
9419 if { (eval echo configure:9420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9421 eval "ac_cv_func_gdbm_open=yes"
9423 echo "configure: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9426 eval "ac_cv_func_gdbm_open=no"
9431 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
9432 echo "$ac_t""yes" 1>&6
9435 echo "$ac_t""no" 1>&6
9437 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
9438 echo "configure:9439: checking for gdbm_open in -lgdbm" >&5
9439 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
9440 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9441 echo $ac_n "(cached) $ac_c" 1>&6
9443 ac_save_LIBS="$LIBS"
9445 cat > conftest.$ac_ext <<EOF
9446 #line 9447 "configure"
9447 #include "confdefs.h"
9448 /* Override any gcc2 internal prototype to avoid an error. */
9449 /* We use char because int might match the return type of a gcc2
9450 builtin and then its argument prototype would still apply. */
9457 if { (eval echo configure:9458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9459 eval "ac_cv_lib_$ac_lib_var=yes"
9461 echo "configure: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9464 eval "ac_cv_lib_$ac_lib_var=no"
9467 LIBS="$ac_save_LIBS"
9470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9471 echo "$ac_t""yes" 1>&6
9472 ol_cv_lib_gdbm=-lgdbm
9474 echo "$ac_t""no" 1>&6
9485 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
9488 for ac_hdr in gdbm.h
9490 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9491 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9492 echo "configure:9493: checking for $ac_hdr" >&5
9493 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9494 echo $ac_n "(cached) $ac_c" 1>&6
9496 cat > conftest.$ac_ext <<EOF
9497 #line 9498 "configure"
9498 #include "confdefs.h"
9501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9502 { (eval echo configure:9503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9504 if test -z "$ac_err"; then
9506 eval "ac_cv_header_$ac_safe=yes"
9509 echo "configure: failed program was:" >&5
9510 cat conftest.$ac_ext >&5
9512 eval "ac_cv_header_$ac_safe=no"
9516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9517 echo "$ac_t""yes" 1>&6
9518 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9519 cat >> confdefs.h <<EOF
9520 #define $ac_tr_hdr 1
9524 echo "$ac_t""no" 1>&6
9528 echo $ac_n "checking for db""... $ac_c" 1>&6
9529 echo "configure:9530: checking for db" >&5
9530 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
9531 echo $ac_n "(cached) $ac_c" 1>&6
9534 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
9542 echo "$ac_t""$ol_cv_gdbm" 1>&6
9543 if test $ol_cv_gdbm = yes ; then
9544 cat >> confdefs.h <<\EOF
9551 if test $ol_cv_gdbm = yes ; then
9553 ol_with_ldbm_api=gdbm
9555 if test $ol_cv_lib_gdbm != yes ; then
9556 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
9561 if test $ol_with_ldbm_api = auto ; then
9562 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
9563 elif test $ol_with_ldbm_api = ndbm ; then
9564 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
9565 echo "configure:9566: checking for NDBM library" >&5
9566 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
9567 echo $ac_n "(cached) $ac_c" 1>&6
9570 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9571 echo "configure:9572: checking for dbm_open" >&5
9572 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
9573 echo $ac_n "(cached) $ac_c" 1>&6
9575 cat > conftest.$ac_ext <<EOF
9576 #line 9577 "configure"
9577 #include "confdefs.h"
9578 /* System header to define __stub macros and hopefully few prototypes,
9579 which can conflict with char dbm_open(); below. */
9581 /* Override any gcc2 internal prototype to avoid an error. */
9582 /* We use char because int might match the return type of a gcc2
9583 builtin and then its argument prototype would still apply. */
9589 /* The GNU C library defines this for functions which it implements
9590 to always fail with ENOSYS. Some functions are actually named
9591 something starting with __ and the normal name is an alias. */
9592 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
9600 if { (eval echo configure:9601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9602 eval "ac_cv_func_dbm_open=yes"
9604 echo "configure: failed program was:" >&5
9605 cat conftest.$ac_ext >&5
9607 eval "ac_cv_func_dbm_open=no"
9612 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
9613 echo "$ac_t""yes" 1>&6
9616 echo "$ac_t""no" 1>&6
9618 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
9619 echo "configure:9620: checking for dbm_open in -lndbm" >&5
9620 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
9621 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9622 echo $ac_n "(cached) $ac_c" 1>&6
9624 ac_save_LIBS="$LIBS"
9626 cat > conftest.$ac_ext <<EOF
9627 #line 9628 "configure"
9628 #include "confdefs.h"
9629 /* Override any gcc2 internal prototype to avoid an error. */
9630 /* We use char because int might match the return type of a gcc2
9631 builtin and then its argument prototype would still apply. */
9638 if { (eval echo configure:9639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9640 eval "ac_cv_lib_$ac_lib_var=yes"
9642 echo "configure: failed program was:" >&5
9643 cat conftest.$ac_ext >&5
9645 eval "ac_cv_lib_$ac_lib_var=no"
9648 LIBS="$ac_save_LIBS"
9651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9652 echo "$ac_t""yes" 1>&6
9653 ol_cv_lib_ndbm=-lndbm
9655 echo "$ac_t""no" 1>&6
9657 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9658 echo "configure:9659: checking for dbm_open in -ldbm" >&5
9659 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
9660 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9661 echo $ac_n "(cached) $ac_c" 1>&6
9663 ac_save_LIBS="$LIBS"
9665 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9668 /* Override any gcc2 internal prototype to avoid an error. */
9669 /* We use char because int might match the return type of a gcc2
9670 builtin and then its argument prototype would still apply. */
9677 if { (eval echo configure:9678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9679 eval "ac_cv_lib_$ac_lib_var=yes"
9681 echo "configure: failed program was:" >&5
9682 cat conftest.$ac_ext >&5
9684 eval "ac_cv_lib_$ac_lib_var=no"
9687 LIBS="$ac_save_LIBS"
9690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9691 echo "$ac_t""yes" 1>&6
9692 ol_cv_lib_ndbm=-ldbm
9694 echo "$ac_t""no" 1>&6
9707 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
9710 for ac_hdr in ndbm.h
9712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9714 echo "configure:9715: checking for $ac_hdr" >&5
9715 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9716 echo $ac_n "(cached) $ac_c" 1>&6
9718 cat > conftest.$ac_ext <<EOF
9719 #line 9720 "configure"
9720 #include "confdefs.h"
9723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9724 { (eval echo configure:9725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9726 if test -z "$ac_err"; then
9728 eval "ac_cv_header_$ac_safe=yes"
9731 echo "configure: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9734 eval "ac_cv_header_$ac_safe=no"
9738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9739 echo "$ac_t""yes" 1>&6
9740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9741 cat >> confdefs.h <<EOF
9742 #define $ac_tr_hdr 1
9746 echo "$ac_t""no" 1>&6
9750 echo $ac_n "checking for db""... $ac_c" 1>&6
9751 echo "configure:9752: checking for db" >&5
9752 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
9753 echo $ac_n "(cached) $ac_c" 1>&6
9756 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
9764 echo "$ac_t""$ol_cv_ndbm" 1>&6
9765 if test $ol_cv_ndbm = yes ; then
9766 cat >> confdefs.h <<\EOF
9773 if test $ol_cv_ndbm = yes ; then
9775 ol_with_ldbm_api=ndbm
9777 if test $ol_cv_lib_ndbm != yes ; then
9778 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
9783 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
9784 echo "configure: warning: could not find suitable LDBM backend" 1>&2
9785 if test $ol_enable_ldbm = yes ; then
9786 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
9789 echo "configure: warning: disabling LDBM" 1>&2
9793 if test $ol_enable_wrappers != no ; then
9794 for ac_hdr in tcpd.h
9796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9798 echo "configure:9799: checking for $ac_hdr" >&5
9799 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9800 echo $ac_n "(cached) $ac_c" 1>&6
9802 cat > conftest.$ac_ext <<EOF
9803 #line 9804 "configure"
9804 #include "confdefs.h"
9807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9808 { (eval echo configure:9809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9810 if test -z "$ac_err"; then
9812 eval "ac_cv_header_$ac_safe=yes"
9815 echo "configure: failed program was:" >&5
9816 cat conftest.$ac_ext >&5
9818 eval "ac_cv_header_$ac_safe=no"
9822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9823 echo "$ac_t""yes" 1>&6
9824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9825 cat >> confdefs.h <<EOF
9826 #define $ac_tr_hdr 1
9830 echo "$ac_t""no" 1>&6
9835 if test $ac_cv_header_tcpd_h != yes ; then
9838 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
9839 echo "configure:9840: checking for main in -lwrap" >&5
9840 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
9841 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9842 echo $ac_n "(cached) $ac_c" 1>&6
9844 ac_save_LIBS="$LIBS"
9846 cat > conftest.$ac_ext <<EOF
9847 #line 9848 "configure"
9848 #include "confdefs.h"
9854 if { (eval echo configure:9855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9856 eval "ac_cv_lib_$ac_lib_var=yes"
9858 echo "configure: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9861 eval "ac_cv_lib_$ac_lib_var=no"
9864 LIBS="$ac_save_LIBS"
9867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9868 echo "$ac_t""yes" 1>&6
9871 echo "$ac_t""no" 1>&6
9877 if test $have_wrappers = yes ; then
9878 cat >> confdefs.h <<\EOF
9882 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
9884 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9885 echo "configure:9886: checking for main in -lnsl" >&5
9886 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9887 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9888 echo $ac_n "(cached) $ac_c" 1>&6
9890 ac_save_LIBS="$LIBS"
9892 cat > conftest.$ac_ext <<EOF
9893 #line 9894 "configure"
9894 #include "confdefs.h"
9900 if { (eval echo configure:9901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9902 eval "ac_cv_lib_$ac_lib_var=yes"
9904 echo "configure: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9907 eval "ac_cv_lib_$ac_lib_var=no"
9910 LIBS="$ac_save_LIBS"
9913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9914 echo "$ac_t""yes" 1>&6
9915 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9916 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9917 cat >> confdefs.h <<EOF
9918 #define $ac_tr_lib 1
9924 echo "$ac_t""no" 1>&6
9928 echo "configure: warning: could not find -lwrap" 1>&2
9929 if test $ol_enable_wrappers = yes ; then
9930 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
9933 echo "configure: warning: disabling wrappers support" 1>&2
9934 ol_enable_wrappers=no
9938 if test $ol_enable_syslog != no ; then
9939 echo $ac_n "checking for openlog""... $ac_c" 1>&6
9940 echo "configure:9941: checking for openlog" >&5
9941 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
9942 echo $ac_n "(cached) $ac_c" 1>&6
9944 cat > conftest.$ac_ext <<EOF
9945 #line 9946 "configure"
9946 #include "confdefs.h"
9947 /* System header to define __stub macros and hopefully few prototypes,
9948 which can conflict with char openlog(); below. */
9950 /* Override any gcc2 internal prototype to avoid an error. */
9951 /* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9958 /* The GNU C library defines this for functions which it implements
9959 to always fail with ENOSYS. Some functions are actually named
9960 something starting with __ and the normal name is an alias. */
9961 #if defined (__stub_openlog) || defined (__stub___openlog)
9969 if { (eval echo configure:9970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9971 eval "ac_cv_func_openlog=yes"
9973 echo "configure: failed program was:" >&5
9974 cat conftest.$ac_ext >&5
9976 eval "ac_cv_func_openlog=no"
9981 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
9982 echo "$ac_t""yes" 1>&6
9985 echo "$ac_t""no" 1>&6
9988 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
9989 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
9991 ol_enable_syslog=$ac_cv_func_openlog
9994 if test $ol_enable_dmalloc != no ; then
9995 for ac_hdr in dmalloc.h
9997 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9998 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9999 echo "configure:10000: checking for $ac_hdr" >&5
10000 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10001 echo $ac_n "(cached) $ac_c" 1>&6
10003 cat > conftest.$ac_ext <<EOF
10004 #line 10005 "configure"
10005 #include "confdefs.h"
10008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10009 { (eval echo configure:10010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10011 if test -z "$ac_err"; then
10013 eval "ac_cv_header_$ac_safe=yes"
10016 echo "configure: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10019 eval "ac_cv_header_$ac_safe=no"
10023 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10024 echo "$ac_t""yes" 1>&6
10025 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10026 cat >> confdefs.h <<EOF
10027 #define $ac_tr_hdr 1
10031 echo "$ac_t""no" 1>&6
10035 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
10036 echo "configure:10037: checking for dmalloc_shutdown in -ldmalloc" >&5
10037 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
10038 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10039 echo $ac_n "(cached) $ac_c" 1>&6
10041 ac_save_LIBS="$LIBS"
10042 LIBS="-ldmalloc $LIBS"
10043 cat > conftest.$ac_ext <<EOF
10044 #line 10045 "configure"
10045 #include "confdefs.h"
10046 /* Override any gcc2 internal prototype to avoid an error. */
10047 /* We use char because int might match the return type of a gcc2
10048 builtin and then its argument prototype would still apply. */
10049 char dmalloc_shutdown();
10055 if { (eval echo configure:10056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10057 eval "ac_cv_lib_$ac_lib_var=yes"
10059 echo "configure: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10062 eval "ac_cv_lib_$ac_lib_var=no"
10065 LIBS="$ac_save_LIBS"
10068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10069 echo "$ac_t""yes" 1>&6
10070 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10071 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10072 cat >> confdefs.h <<EOF
10073 #define $ac_tr_lib 1
10076 LIBS="-ldmalloc $LIBS"
10079 echo "$ac_t""no" 1>&6
10084 if test $ol_enable_tcl != no ; then
10085 for ac_hdr in tcl.h
10087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10089 echo "configure:10090: checking for $ac_hdr" >&5
10090 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10091 echo $ac_n "(cached) $ac_c" 1>&6
10093 cat > conftest.$ac_ext <<EOF
10094 #line 10095 "configure"
10095 #include "confdefs.h"
10098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10099 { (eval echo configure:10100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10101 if test -z "$ac_err"; then
10103 eval "ac_cv_header_$ac_safe=yes"
10106 echo "configure: failed program was:" >&5
10107 cat conftest.$ac_ext >&5
10109 eval "ac_cv_header_$ac_safe=no"
10113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10114 echo "$ac_t""yes" 1>&6
10115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10116 cat >> confdefs.h <<EOF
10117 #define $ac_tr_hdr 1
10121 echo "$ac_t""no" 1>&6
10126 if test $ac_cv_header_tcl_h != yes ; then
10129 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
10130 echo "configure:10131: checking for main in -ltcl" >&5
10131 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
10132 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10133 echo $ac_n "(cached) $ac_c" 1>&6
10135 ac_save_LIBS="$LIBS"
10137 cat > conftest.$ac_ext <<EOF
10138 #line 10139 "configure"
10139 #include "confdefs.h"
10145 if { (eval echo configure:10146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10147 eval "ac_cv_lib_$ac_lib_var=yes"
10149 echo "configure: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10152 eval "ac_cv_lib_$ac_lib_var=no"
10155 LIBS="$ac_save_LIBS"
10158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10159 echo "$ac_t""yes" 1>&6
10160 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
10162 echo "$ac_t""no" 1>&6
10167 if test $have_tcl != yes; then
10168 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
10169 echo "configure:10170: checking for main in -ltcl7.6" >&5
10170 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
10171 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10172 echo $ac_n "(cached) $ac_c" 1>&6
10174 ac_save_LIBS="$LIBS"
10175 LIBS="-ltcl7.6 $LIBS"
10176 cat > conftest.$ac_ext <<EOF
10177 #line 10178 "configure"
10178 #include "confdefs.h"
10184 if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10186 eval "ac_cv_lib_$ac_lib_var=yes"
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10191 eval "ac_cv_lib_$ac_lib_var=no"
10194 LIBS="$ac_save_LIBS"
10197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10198 echo "$ac_t""yes" 1>&6
10199 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
10201 echo "$ac_t""no" 1>&6
10207 if test $have_tcl != yes; then
10208 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
10209 echo "configure:10210: checking for main in -ltcl8.0" >&5
10210 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
10211 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10212 echo $ac_n "(cached) $ac_c" 1>&6
10214 ac_save_LIBS="$LIBS"
10215 LIBS="-ltcl8.0 $LIBS"
10216 cat > conftest.$ac_ext <<EOF
10217 #line 10218 "configure"
10218 #include "confdefs.h"
10224 if { (eval echo configure:10225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10226 eval "ac_cv_lib_$ac_lib_var=yes"
10228 echo "configure: failed program was:" >&5
10229 cat conftest.$ac_ext >&5
10231 eval "ac_cv_lib_$ac_lib_var=no"
10234 LIBS="$ac_save_LIBS"
10237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10238 echo "$ac_t""yes" 1>&6
10239 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
10241 echo "$ac_t""no" 1>&6
10248 if test $have_tcl != yes ; then
10249 echo "configure: warning: could not find -ltcl" 1>&2
10250 if test $ol_enable_tcl = yes ; then
10251 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
10258 # ud needs termcap (should insert check here)
10260 for ac_hdr in termcap.h ncurses.h
10262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10264 echo "configure:10265: checking for $ac_hdr" >&5
10265 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10266 echo $ac_n "(cached) $ac_c" 1>&6
10268 cat > conftest.$ac_ext <<EOF
10269 #line 10270 "configure"
10270 #include "confdefs.h"
10273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10274 { (eval echo configure:10275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10276 if test -z "$ac_err"; then
10278 eval "ac_cv_header_$ac_safe=yes"
10281 echo "configure: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10284 eval "ac_cv_header_$ac_safe=no"
10288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10289 echo "$ac_t""yes" 1>&6
10290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10291 cat >> confdefs.h <<EOF
10292 #define $ac_tr_hdr 1
10296 echo "$ac_t""no" 1>&6
10301 if test $ol_link_termcap = no ; then
10302 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
10303 echo "configure:10304: checking for tputs in -ltermcap" >&5
10304 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
10305 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10306 echo $ac_n "(cached) $ac_c" 1>&6
10308 ac_save_LIBS="$LIBS"
10309 LIBS="-ltermcap $LIBS"
10310 cat > conftest.$ac_ext <<EOF
10311 #line 10312 "configure"
10312 #include "confdefs.h"
10313 /* Override any gcc2 internal prototype to avoid an error. */
10314 /* We use char because int might match the return type of a gcc2
10315 builtin and then its argument prototype would still apply. */
10322 if { (eval echo configure:10323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10324 eval "ac_cv_lib_$ac_lib_var=yes"
10326 echo "configure: failed program was:" >&5
10327 cat conftest.$ac_ext >&5
10329 eval "ac_cv_lib_$ac_lib_var=no"
10332 LIBS="$ac_save_LIBS"
10335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10336 echo "$ac_t""yes" 1>&6
10339 echo "$ac_t""no" 1>&6
10343 if test $have_termcap = yes ; then
10344 cat >> confdefs.h <<\EOF
10345 #define HAVE_TERMCAP 1
10348 ol_link_termcap=yes
10349 TERMCAP_LIBS=-ltermcap
10353 if test $ol_link_termcap = no ; then
10354 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
10355 echo "configure:10356: checking for initscr in -lncurses" >&5
10356 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
10357 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10358 echo $ac_n "(cached) $ac_c" 1>&6
10360 ac_save_LIBS="$LIBS"
10361 LIBS="-lncurses $LIBS"
10362 cat > conftest.$ac_ext <<EOF
10363 #line 10364 "configure"
10364 #include "confdefs.h"
10365 /* Override any gcc2 internal prototype to avoid an error. */
10366 /* We use char because int might match the return type of a gcc2
10367 builtin and then its argument prototype would still apply. */
10374 if { (eval echo configure:10375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10376 eval "ac_cv_lib_$ac_lib_var=yes"
10378 echo "configure: failed program was:" >&5
10379 cat conftest.$ac_ext >&5
10381 eval "ac_cv_lib_$ac_lib_var=no"
10384 LIBS="$ac_save_LIBS"
10387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10388 echo "$ac_t""yes" 1>&6
10391 echo "$ac_t""no" 1>&6
10395 if test $have_ncurses = yes ; then
10396 cat >> confdefs.h <<\EOF
10397 #define HAVE_NCURSES 1
10400 ol_link_termcap=yes
10401 TERMCAP_LIBS=-lncurses
10405 if test $ol_link_termcap = no ; then
10406 cat >> confdefs.h <<\EOF
10407 #define NO_TERMCAP 1
10414 if test $ol_with_cyrus_sasl != no ; then
10415 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
10416 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
10417 echo "configure:10418: checking for sasl.h" >&5
10418 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10419 echo $ac_n "(cached) $ac_c" 1>&6
10421 cat > conftest.$ac_ext <<EOF
10422 #line 10423 "configure"
10423 #include "confdefs.h"
10426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10427 { (eval echo configure:10428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10429 if test -z "$ac_err"; then
10431 eval "ac_cv_header_$ac_safe=yes"
10434 echo "configure: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10437 eval "ac_cv_header_$ac_safe=no"
10441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10442 echo "$ac_t""yes" 1>&6
10445 echo "$ac_t""no" 1>&6
10449 if test $ac_cv_header_sasl_h = yes ; then
10450 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
10451 echo "configure:10452: checking for sasl_client_init in -lsasl" >&5
10452 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
10453 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10454 echo $ac_n "(cached) $ac_c" 1>&6
10456 ac_save_LIBS="$LIBS"
10457 LIBS="-lsasl $LIBS"
10458 cat > conftest.$ac_ext <<EOF
10459 #line 10460 "configure"
10460 #include "confdefs.h"
10461 /* Override any gcc2 internal prototype to avoid an error. */
10462 /* We use char because int might match the return type of a gcc2
10463 builtin and then its argument prototype would still apply. */
10464 char sasl_client_init();
10470 if { (eval echo configure:10471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10472 eval "ac_cv_lib_$ac_lib_var=yes"
10474 echo "configure: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10477 eval "ac_cv_lib_$ac_lib_var=no"
10480 LIBS="$ac_save_LIBS"
10483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10484 echo "$ac_t""yes" 1>&6
10485 have_cyrus_sasl=yes
10487 echo "$ac_t""no" 1>&6
10492 if test $have_cyrus_sasl != no ; then
10493 LUTIL_LIBS="$LUTIL_LIBS -lsasl"
10494 cat >> confdefs.h <<\EOF
10495 #define HAVE_CYRUS_SASL 1
10502 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
10503 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
10508 if test $ol_with_fetch != no ; then
10510 LIBS="-lfetch -lcom_err $LIBS"
10511 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
10512 echo "configure:10513: checking fetch(3) library" >&5
10513 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10517 cat > conftest.$ac_ext <<EOF
10518 #line 10519 "configure"
10519 #include "confdefs.h"
10521 #include <sys/param.h>
10525 struct url *u = fetchParseURL("file:///");
10528 if { (eval echo configure:10529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10530 ol_cv_lib_fetch=yes
10532 echo "configure: failed program was:" >&5
10533 cat conftest.$ac_ext >&5
10540 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
10542 if test $ol_cv_lib_fetch != no ; then
10543 ol_link_fetch="-lfetch -lcom_err"
10544 cat >> confdefs.h <<\EOF
10545 #define HAVE_FETCH 1
10551 if test $ol_cv_lib_fetch != no ; then
10552 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
10553 ol_link_fetch=freebsd
10555 elif test $ol_with_fetch != auto ; then
10556 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
10560 ol_link_readline=no
10561 if test $ol_with_readline != no ; then
10562 for ac_hdr in readline/readline.h readline/history.h
10564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10566 echo "configure:10567: checking for $ac_hdr" >&5
10567 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10568 echo $ac_n "(cached) $ac_c" 1>&6
10570 cat > conftest.$ac_ext <<EOF
10571 #line 10572 "configure"
10572 #include "confdefs.h"
10575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10576 { (eval echo configure:10577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10578 if test -z "$ac_err"; then
10580 eval "ac_cv_header_$ac_safe=yes"
10583 echo "configure: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10586 eval "ac_cv_header_$ac_safe=no"
10590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10591 echo "$ac_t""yes" 1>&6
10592 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10593 cat >> confdefs.h <<EOF
10594 #define $ac_tr_hdr 1
10598 echo "$ac_t""no" 1>&6
10603 if test $ac_cv_header_readline_readline_h = yes ; then
10605 LIBS="$TERMCAP_LIBS $LIBS"
10606 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
10607 echo "configure:10608: checking for readline in -lreadline" >&5
10608 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
10609 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10610 echo $ac_n "(cached) $ac_c" 1>&6
10612 ac_save_LIBS="$LIBS"
10613 LIBS="-lreadline $LIBS"
10614 cat > conftest.$ac_ext <<EOF
10615 #line 10616 "configure"
10616 #include "confdefs.h"
10617 /* Override any gcc2 internal prototype to avoid an error. */
10618 /* We use char because int might match the return type of a gcc2
10619 builtin and then its argument prototype would still apply. */
10626 if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10628 eval "ac_cv_lib_$ac_lib_var=yes"
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10633 eval "ac_cv_lib_$ac_lib_var=no"
10636 LIBS="$ac_save_LIBS"
10639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10640 echo "$ac_t""yes" 1>&6
10643 echo "$ac_t""no" 1>&6
10649 if test $have_readline = yes ; then
10650 ol_with_readline=found
10651 ol_link_readline=yes
10653 READLINE_LIBS="-lreadline"
10658 if test $ol_link_readline = yes ; then
10659 cat >> confdefs.h <<\EOF
10660 #define HAVE_READLINE 1
10666 # FreeBSD (and others) have crypt(3) in -lcrypt
10667 if test $ol_enable_crypt != no ; then
10668 echo $ac_n "checking for crypt""... $ac_c" 1>&6
10669 echo "configure:10670: checking for crypt" >&5
10670 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
10671 echo $ac_n "(cached) $ac_c" 1>&6
10673 cat > conftest.$ac_ext <<EOF
10674 #line 10675 "configure"
10675 #include "confdefs.h"
10676 /* System header to define __stub macros and hopefully few prototypes,
10677 which can conflict with char crypt(); below. */
10678 #include <assert.h>
10679 /* Override any gcc2 internal prototype to avoid an error. */
10680 /* We use char because int might match the return type of a gcc2
10681 builtin and then its argument prototype would still apply. */
10687 /* The GNU C library defines this for functions which it implements
10688 to always fail with ENOSYS. Some functions are actually named
10689 something starting with __ and the normal name is an alias. */
10690 #if defined (__stub_crypt) || defined (__stub___crypt)
10698 if { (eval echo configure:10699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10700 eval "ac_cv_func_crypt=yes"
10702 echo "configure: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10705 eval "ac_cv_func_crypt=no"
10710 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
10711 echo "$ac_t""yes" 1>&6
10714 echo "$ac_t""no" 1>&6
10716 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10717 echo "configure:10718: checking for crypt in -lcrypt" >&5
10718 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
10719 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10720 echo $ac_n "(cached) $ac_c" 1>&6
10722 ac_save_LIBS="$LIBS"
10723 LIBS="-lcrypt $LIBS"
10724 cat > conftest.$ac_ext <<EOF
10725 #line 10726 "configure"
10726 #include "confdefs.h"
10727 /* Override any gcc2 internal prototype to avoid an error. */
10728 /* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10736 if { (eval echo configure:10737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10738 eval "ac_cv_lib_$ac_lib_var=yes"
10740 echo "configure: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10743 eval "ac_cv_lib_$ac_lib_var=no"
10746 LIBS="$ac_save_LIBS"
10749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10750 echo "$ac_t""yes" 1>&6
10751 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
10754 echo "$ac_t""no" 1>&6
10761 if test $have_crypt = yes ; then
10762 cat >> confdefs.h <<\EOF
10763 #define HAVE_CRYPT 1
10767 echo "configure: warning: could not find crypt" 1>&2
10768 if test $ol_enable_crypt = yes ; then
10769 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
10772 echo "configure: warning: disabling crypt support" 1>&2
10777 # FreeBSD (and others) have setproctitle(3) in -lutil
10778 if test $ol_enable_proctitle != no ; then
10779 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
10780 echo "configure:10781: checking for setproctitle" >&5
10781 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
10782 echo $ac_n "(cached) $ac_c" 1>&6
10784 cat > conftest.$ac_ext <<EOF
10785 #line 10786 "configure"
10786 #include "confdefs.h"
10787 /* System header to define __stub macros and hopefully few prototypes,
10788 which can conflict with char setproctitle(); below. */
10789 #include <assert.h>
10790 /* Override any gcc2 internal prototype to avoid an error. */
10791 /* We use char because int might match the return type of a gcc2
10792 builtin and then its argument prototype would still apply. */
10793 char setproctitle();
10798 /* The GNU C library defines this for functions which it implements
10799 to always fail with ENOSYS. Some functions are actually named
10800 something starting with __ and the normal name is an alias. */
10801 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
10809 if { (eval echo configure:10810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10811 eval "ac_cv_func_setproctitle=yes"
10813 echo "configure: failed program was:" >&5
10814 cat conftest.$ac_ext >&5
10816 eval "ac_cv_func_setproctitle=no"
10821 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
10822 echo "$ac_t""yes" 1>&6
10823 have_setproctitle=yes
10825 echo "$ac_t""no" 1>&6
10827 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
10828 echo "configure:10829: checking for setproctitle in -lutil" >&5
10829 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
10830 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10831 echo $ac_n "(cached) $ac_c" 1>&6
10833 ac_save_LIBS="$LIBS"
10834 LIBS="-lutil $LIBS"
10835 cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10838 /* Override any gcc2 internal prototype to avoid an error. */
10839 /* We use char because int might match the return type of a gcc2
10840 builtin and then its argument prototype would still apply. */
10841 char setproctitle();
10847 if { (eval echo configure:10848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10849 eval "ac_cv_lib_$ac_lib_var=yes"
10851 echo "configure: failed program was:" >&5
10852 cat conftest.$ac_ext >&5
10854 eval "ac_cv_lib_$ac_lib_var=no"
10857 LIBS="$ac_save_LIBS"
10860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10861 echo "$ac_t""yes" 1>&6
10862 have_setproctitle=yes
10863 LUTIL_LIBS="$LUTIL_LIBS -lutil"
10865 echo "$ac_t""no" 1>&6
10866 have_setproctitle=no
10867 LIBOBJS="$LIBOBJS setproctitle.o"
10873 if test $have_setproctitle = yes ; then
10874 cat >> confdefs.h <<\EOF
10875 #define HAVE_SETPROCTITLE 1
10881 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10882 echo "configure:10883: checking for uid_t in sys/types.h" >&5
10883 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
10884 echo $ac_n "(cached) $ac_c" 1>&6
10886 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10889 #include <sys/types.h>
10891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10892 egrep "uid_t" >/dev/null 2>&1; then
10894 ac_cv_type_uid_t=yes
10897 ac_cv_type_uid_t=no
10903 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10904 if test $ac_cv_type_uid_t = no; then
10905 cat >> confdefs.h <<\EOF
10909 cat >> confdefs.h <<\EOF
10915 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
10916 echo "configure:10917: checking type of array argument to getgroups" >&5
10917 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
10918 echo $ac_n "(cached) $ac_c" 1>&6
10920 if test "$cross_compiling" = yes; then
10921 ac_cv_type_getgroups=cross
10923 cat > conftest.$ac_ext <<EOF
10924 #line 10925 "configure"
10925 #include "confdefs.h"
10927 /* Thanks to Mike Rendell for this test. */
10928 #include <sys/types.h>
10931 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10934 gid_t gidset[NGID];
10936 union { gid_t gval; long lval; } val;
10939 for (i = 0; i < NGID; i++)
10940 gidset[i] = val.gval;
10941 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10943 /* Exit non-zero if getgroups seems to require an array of ints. This
10944 happens when gid_t is short but getgroups modifies an array of ints. */
10945 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10949 if { (eval echo configure:10950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10951 ac_cv_type_getgroups=gid_t
10953 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10956 ac_cv_type_getgroups=int
10961 if test $ac_cv_type_getgroups = cross; then
10962 cat > conftest.$ac_ext <<EOF
10963 #line 10964 "configure"
10964 #include "confdefs.h"
10965 #include <unistd.h>
10967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10968 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10970 ac_cv_type_getgroups=gid_t
10973 ac_cv_type_getgroups=int
10980 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
10981 cat >> confdefs.h <<EOF
10982 #define GETGROUPS_T $ac_cv_type_getgroups
10985 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10986 echo "configure:10987: checking for ANSI C header files" >&5
10987 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10993 #include <stdlib.h>
10994 #include <stdarg.h>
10995 #include <string.h>
10998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10999 { (eval echo configure:11000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11001 if test -z "$ac_err"; then
11003 ac_cv_header_stdc=yes
11006 echo "configure: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11009 ac_cv_header_stdc=no
11013 if test $ac_cv_header_stdc = yes; then
11014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11015 cat > conftest.$ac_ext <<EOF
11016 #line 11017 "configure"
11017 #include "confdefs.h"
11018 #include <string.h>
11020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11021 egrep "memchr" >/dev/null 2>&1; then
11025 ac_cv_header_stdc=no
11031 if test $ac_cv_header_stdc = yes; then
11032 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11036 #include <stdlib.h>
11038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11039 egrep "free" >/dev/null 2>&1; then
11043 ac_cv_header_stdc=no
11049 if test $ac_cv_header_stdc = yes; then
11050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11051 if test "$cross_compiling" = yes; then
11054 cat > conftest.$ac_ext <<EOF
11055 #line 11056 "configure"
11056 #include "confdefs.h"
11058 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11059 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11061 int main () { int i; for (i = 0; i < 256; i++)
11062 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11066 if { (eval echo configure:11067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11073 ac_cv_header_stdc=no
11081 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11082 if test $ac_cv_header_stdc = yes; then
11083 cat >> confdefs.h <<\EOF
11084 #define STDC_HEADERS 1
11089 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11090 echo "configure:11091: checking for mode_t" >&5
11091 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
11092 echo $ac_n "(cached) $ac_c" 1>&6
11094 cat > conftest.$ac_ext <<EOF
11095 #line 11096 "configure"
11096 #include "confdefs.h"
11097 #include <sys/types.h>
11099 #include <stdlib.h>
11100 #include <stddef.h>
11103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11104 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11106 eval "ac_cv_type_mode_t=yes"
11109 eval "ac_cv_type_mode_t=no"
11114 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
11115 echo "$ac_t""yes" 1>&6
11117 echo "$ac_t""no" 1>&6
11118 cat >> confdefs.h <<EOF
11124 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11125 echo "configure:11126: checking for off_t" >&5
11126 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
11127 echo $ac_n "(cached) $ac_c" 1>&6
11129 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure"
11131 #include "confdefs.h"
11132 #include <sys/types.h>
11134 #include <stdlib.h>
11135 #include <stddef.h>
11138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11139 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11141 eval "ac_cv_type_off_t=yes"
11144 eval "ac_cv_type_off_t=no"
11149 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
11150 echo "$ac_t""yes" 1>&6
11152 echo "$ac_t""no" 1>&6
11153 cat >> confdefs.h <<EOF
11159 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11160 echo "configure:11161: checking for pid_t" >&5
11161 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
11162 echo $ac_n "(cached) $ac_c" 1>&6
11164 cat > conftest.$ac_ext <<EOF
11165 #line 11166 "configure"
11166 #include "confdefs.h"
11167 #include <sys/types.h>
11169 #include <stdlib.h>
11170 #include <stddef.h>
11173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11174 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11176 eval "ac_cv_type_pid_t=yes"
11179 eval "ac_cv_type_pid_t=no"
11184 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
11185 echo "$ac_t""yes" 1>&6
11187 echo "$ac_t""no" 1>&6
11188 cat >> confdefs.h <<EOF
11194 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
11195 echo "configure:11196: checking for ptrdiff_t" >&5
11196 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
11197 echo $ac_n "(cached) $ac_c" 1>&6
11199 cat > conftest.$ac_ext <<EOF
11200 #line 11201 "configure"
11201 #include "confdefs.h"
11202 #include <stddef.h>
11207 if { (eval echo configure:11208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11209 am_cv_type_ptrdiff_t=yes
11211 echo "configure: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11214 am_cv_type_ptrdiff_t=no
11219 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
11220 if test $am_cv_type_ptrdiff_t = yes; then
11221 cat >> confdefs.h <<\EOF
11222 #define HAVE_PTRDIFF_T 1
11227 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
11228 echo "configure:11229: checking return type of signal handlers" >&5
11229 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
11230 echo $ac_n "(cached) $ac_c" 1>&6
11232 cat > conftest.$ac_ext <<EOF
11233 #line 11234 "configure"
11234 #include "confdefs.h"
11235 #include <sys/types.h>
11236 #include <signal.h>
11241 extern "C" void (*signal (int, void (*)(int)))(int);
11243 void (*signal ()) ();
11250 if { (eval echo configure:11251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11252 ac_cv_type_signal=void
11254 echo "configure: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11257 ac_cv_type_signal=int
11262 echo "$ac_t""$ac_cv_type_signal" 1>&6
11263 cat >> confdefs.h <<EOF
11264 #define RETSIGTYPE $ac_cv_type_signal
11268 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
11269 echo "configure:11270: checking for sig_atomic_t" >&5
11270 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
11271 echo $ac_n "(cached) $ac_c" 1>&6
11273 cat > conftest.$ac_ext <<EOF
11274 #line 11275 "configure"
11275 #include "confdefs.h"
11276 #include <signal.h>
11278 sig_atomic_t atomic;
11281 if { (eval echo configure:11282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11283 ol_cv_type_sig_atomic_t=yes
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11288 ol_cv_type_sig_atomic_t=no
11293 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
11294 if test $ol_cv_type_sig_atomic_t = no; then
11295 cat >> confdefs.h <<\EOF
11296 #define sig_atomic_t int
11301 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11302 echo "configure:11303: checking for size_t" >&5
11303 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
11304 echo $ac_n "(cached) $ac_c" 1>&6
11306 cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11309 #include <sys/types.h>
11311 #include <stdlib.h>
11312 #include <stddef.h>
11315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11316 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11318 eval "ac_cv_type_size_t=yes"
11321 eval "ac_cv_type_size_t=no"
11326 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
11327 echo "$ac_t""yes" 1>&6
11329 echo "$ac_t""no" 1>&6
11330 cat >> confdefs.h <<EOF
11331 #define size_t unsigned
11336 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11337 echo "configure:11338: checking for socklen_t" >&5
11338 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
11339 echo $ac_n "(cached) $ac_c" 1>&6
11341 cat > conftest.$ac_ext <<EOF
11342 #line 11343 "configure"
11343 #include "confdefs.h"
11345 #ifdef HAVE_SYS_TYPES_H
11346 #include <sys/types.h>
11348 #ifdef HAVE_SYS_SOCKET_H
11349 #include <sys/socket.h>
11356 if { (eval echo configure:11357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11358 ol_cv_type_socklen_t=yes
11360 echo "configure: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11363 ol_cv_type_socklen_t=no
11368 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
11369 if test $ol_cv_type_socklen_t = no; then
11370 cat >> confdefs.h <<\EOF
11371 #define socklen_t int
11376 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
11377 echo "configure:11378: checking for member st_blksize in aggregate type struct stat" >&5
11378 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
11379 echo $ac_n "(cached) $ac_c" 1>&6
11381 cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11384 #include <sys/types.h>
11385 #include <sys/stat.h>
11387 struct stat foo; foo.st_blksize;
11390 if { (eval echo configure:11391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11392 ac_cv_c_struct_member_st_blksize=yes
11394 echo "configure: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11397 ac_cv_c_struct_member_st_blksize=no
11402 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
11403 st_blksize="$ac_cv_c_struct_member_st_blksize"
11404 if test $ac_cv_c_struct_member_st_blksize = yes; then
11405 cat >> confdefs.h <<\EOF
11406 #define HAVE_ST_BLKSIZE 1
11411 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
11412 echo "configure:11413: checking whether time.h and sys/time.h may both be included" >&5
11413 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
11414 echo $ac_n "(cached) $ac_c" 1>&6
11416 cat > conftest.$ac_ext <<EOF
11417 #line 11418 "configure"
11418 #include "confdefs.h"
11419 #include <sys/types.h>
11420 #include <sys/time.h>
11426 if { (eval echo configure:11427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11428 ac_cv_header_time=yes
11430 echo "configure: failed program was:" >&5
11431 cat conftest.$ac_ext >&5
11433 ac_cv_header_time=no
11438 echo "$ac_t""$ac_cv_header_time" 1>&6
11439 if test $ac_cv_header_time = yes; then
11440 cat >> confdefs.h <<\EOF
11441 #define TIME_WITH_SYS_TIME 1
11446 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
11447 echo "configure:11448: checking whether struct tm is in sys/time.h or time.h" >&5
11448 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
11449 echo $ac_n "(cached) $ac_c" 1>&6
11451 cat > conftest.$ac_ext <<EOF
11452 #line 11453 "configure"
11453 #include "confdefs.h"
11454 #include <sys/types.h>
11457 struct tm *tp; tp->tm_sec;
11460 if { (eval echo configure:11461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11462 ac_cv_struct_tm=time.h
11464 echo "configure: failed program was:" >&5
11465 cat conftest.$ac_ext >&5
11467 ac_cv_struct_tm=sys/time.h
11472 echo "$ac_t""$ac_cv_struct_tm" 1>&6
11473 if test $ac_cv_struct_tm = sys/time.h; then
11474 cat >> confdefs.h <<\EOF
11475 #define TM_IN_SYS_TIME 1
11480 # test for pw_gecos in struct passwd
11481 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
11482 echo "configure:11483: checking struct passwd for pw_gecos" >&5
11483 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
11484 echo $ac_n "(cached) $ac_c" 1>&6
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11494 pwd.pw_gecos = pwd.pw_name;
11498 if { (eval echo configure:11499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11500 ol_cv_struct_passwd_pw_gecos=yes
11502 echo "configure: failed program was:" >&5
11503 cat conftest.$ac_ext >&5
11505 ol_cv_struct_passwd_pw_gecos=no
11510 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
11511 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
11512 cat >> confdefs.h <<\EOF
11513 #define HAVE_PW_GECOS 1
11518 # test for pw_passwd in struct passwd
11519 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
11520 echo "configure:11521: checking struct passwd for pw_passwd" >&5
11521 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
11522 echo $ac_n "(cached) $ac_c" 1>&6
11525 cat > conftest.$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11532 pwd.pw_passwd = pwd.pw_name;
11536 if { (eval echo configure:11537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11538 ol_cv_struct_passwd_pw_passwd=yes
11540 echo "configure: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11543 ol_cv_struct_passwd_pw_passwd=no
11548 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
11549 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
11550 cat >> confdefs.h <<\EOF
11551 #define HAVE_PW_PASSWD 1
11557 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
11558 echo "configure:11559: checking if toupper() requires islower()" >&5
11559 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
11560 echo $ac_n "(cached) $ac_c" 1>&6
11563 if test "$cross_compiling" = yes; then
11564 ol_cv_c_upper_lower=safe
11566 cat > conftest.$ac_ext <<EOF
11567 #line 11568 "configure"
11568 #include "confdefs.h"
11573 if ('C' == toupper('C'))
11579 if { (eval echo configure:11580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11581 ol_cv_c_upper_lower=no
11583 echo "configure: failed program was:" >&5
11584 cat conftest.$ac_ext >&5
11586 ol_cv_c_upper_lower=yes
11593 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
11594 if test $ol_cv_c_upper_lower != no ; then
11595 cat >> confdefs.h <<\EOF
11596 #define C_UPPER_LOWER 1
11601 echo $ac_n "checking for working const""... $ac_c" 1>&6
11602 echo "configure:11603: checking for working const" >&5
11603 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
11604 echo $ac_n "(cached) $ac_c" 1>&6
11606 cat > conftest.$ac_ext <<EOF
11607 #line 11608 "configure"
11608 #include "confdefs.h"
11612 /* Ultrix mips cc rejects this. */
11613 typedef int charset[2]; const charset x;
11614 /* SunOS 4.1.1 cc rejects this. */
11615 char const *const *ccp;
11617 /* NEC SVR4.0.2 mips cc rejects this. */
11618 struct point {int x, y;};
11619 static struct point const zero = {0,0};
11620 /* AIX XL C 1.02.0.0 rejects this.
11621 It does not let you subtract one const X* pointer from another in an arm
11622 of an if-expression whose if-part is not a constant expression */
11623 const char *g = "string";
11624 ccp = &g + (g ? g-g : 0);
11625 /* HPUX 7.0 cc rejects these. */
11628 ccp = (char const *const *) p;
11629 { /* SCO 3.2v4 cc rejects this. */
11631 char const *s = 0 ? (char *) 0 : (char const *) 0;
11635 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11636 int x[] = {25, 17};
11637 const int *foo = &x[0];
11640 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11641 typedef const int *iptr;
11645 { /* AIX XL C 1.02.0.0 rejects this saying
11646 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11647 struct s { int j; const int *ap[3]; };
11648 struct s *b; b->j = 5;
11650 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11651 const int foo = 10;
11656 if { (eval echo configure:11657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11660 echo "configure: failed program was:" >&5
11661 cat conftest.$ac_ext >&5
11668 echo "$ac_t""$ac_cv_c_const" 1>&6
11669 if test $ac_cv_c_const = no; then
11670 cat >> confdefs.h <<\EOF
11676 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
11677 echo "configure:11678: checking if compiler understands volatile" >&5
11678 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
11679 echo $ac_n "(cached) $ac_c" 1>&6
11681 cat > conftest.$ac_ext <<EOF
11682 #line 11683 "configure"
11683 #include "confdefs.h"
11686 volatile int a; int * volatile b = x ? &y : &z;
11687 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
11691 if { (eval echo configure:11692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11693 ol_cv_c_volatile=yes
11695 echo "configure: failed program was:" >&5
11696 cat conftest.$ac_ext >&5
11698 ol_cv_c_volatile=no
11703 echo "$ac_t""$ol_cv_c_volatile" 1>&6
11704 if test $ol_cv_c_volatile = yes; then
11707 cat >> confdefs.h <<\EOF
11714 if test $cross_compiling = yes ; then
11715 cat >> confdefs.h <<\EOF
11716 #define CROSS_COMPILING 1
11720 cat >> confdefs.h <<\EOF
11721 #define LBER_INT_T long
11724 cat >> confdefs.h <<\EOF
11725 #define LBER_TAG_T long
11728 cat >> confdefs.h <<\EOF
11729 #define LBER_SOCKET_T int
11734 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11735 echo "configure:11736: checking whether byte ordering is bigendian" >&5
11736 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
11737 echo $ac_n "(cached) $ac_c" 1>&6
11739 ac_cv_c_bigendian=unknown
11740 # See if sys/param.h defines the BYTE_ORDER macro.
11741 cat > conftest.$ac_ext <<EOF
11742 #line 11743 "configure"
11743 #include "confdefs.h"
11744 #include <sys/types.h>
11745 #include <sys/param.h>
11748 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11749 bogus endian macros
11753 if { (eval echo configure:11754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11755 # It does; now see whether it defined to BIG_ENDIAN or not.
11756 cat > conftest.$ac_ext <<EOF
11757 #line 11758 "configure"
11758 #include "confdefs.h"
11759 #include <sys/types.h>
11760 #include <sys/param.h>
11763 #if BYTE_ORDER != BIG_ENDIAN
11768 if { (eval echo configure:11769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11770 ac_cv_c_bigendian=yes
11772 echo "configure: failed program was:" >&5
11773 cat conftest.$ac_ext >&5
11775 ac_cv_c_bigendian=no
11779 echo "configure: failed program was:" >&5
11780 cat conftest.$ac_ext >&5
11783 if test $ac_cv_c_bigendian = unknown; then
11784 if test "$cross_compiling" = yes; then
11785 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11787 cat > conftest.$ac_ext <<EOF
11788 #line 11789 "configure"
11789 #include "confdefs.h"
11791 /* Are we little or big endian? From Harbison&Steele. */
11795 char c[sizeof (long)];
11798 exit (u.c[sizeof (long) - 1] == 1);
11801 if { (eval echo configure:11802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11803 ac_cv_c_bigendian=no
11805 echo "configure: failed program was:" >&5
11806 cat conftest.$ac_ext >&5
11808 ac_cv_c_bigendian=yes
11816 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11817 if test $ac_cv_c_bigendian = yes; then
11818 cat >> confdefs.h <<\EOF
11819 #define WORDS_BIGENDIAN 1
11824 echo $ac_n "checking size of short""... $ac_c" 1>&6
11825 echo "configure:11826: checking size of short" >&5
11826 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
11829 if test "$cross_compiling" = yes; then
11830 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11832 cat > conftest.$ac_ext <<EOF
11833 #line 11834 "configure"
11834 #include "confdefs.h"
11838 FILE *f=fopen("conftestval", "w");
11840 fprintf(f, "%d\n", sizeof(short));
11844 if { (eval echo configure:11845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11846 ac_cv_sizeof_short=`cat conftestval`
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11851 ac_cv_sizeof_short=0
11857 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11858 cat >> confdefs.h <<EOF
11859 #define SIZEOF_SHORT $ac_cv_sizeof_short
11863 echo $ac_n "checking size of int""... $ac_c" 1>&6
11864 echo "configure:11865: checking size of int" >&5
11865 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
11866 echo $ac_n "(cached) $ac_c" 1>&6
11868 if test "$cross_compiling" = yes; then
11869 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11871 cat > conftest.$ac_ext <<EOF
11872 #line 11873 "configure"
11873 #include "confdefs.h"
11877 FILE *f=fopen("conftestval", "w");
11879 fprintf(f, "%d\n", sizeof(int));
11883 if { (eval echo configure:11884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11885 ac_cv_sizeof_int=`cat conftestval`
11887 echo "configure: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11896 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11897 cat >> confdefs.h <<EOF
11898 #define SIZEOF_INT $ac_cv_sizeof_int
11902 echo $ac_n "checking size of long""... $ac_c" 1>&6
11903 echo "configure:11904: checking size of long" >&5
11904 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
11905 echo $ac_n "(cached) $ac_c" 1>&6
11907 if test "$cross_compiling" = yes; then
11908 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11910 cat > conftest.$ac_ext <<EOF
11911 #line 11912 "configure"
11912 #include "confdefs.h"
11916 FILE *f=fopen("conftestval", "w");
11918 fprintf(f, "%d\n", sizeof(long));
11922 if { (eval echo configure:11923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11924 ac_cv_sizeof_long=`cat conftestval`
11926 echo "configure: failed program was:" >&5
11927 cat conftest.$ac_ext >&5
11929 ac_cv_sizeof_long=0
11935 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11936 cat >> confdefs.h <<EOF
11937 #define SIZEOF_LONG $ac_cv_sizeof_long
11942 if test "$ac_cv_sizeof_int" -lt 4 ; then
11943 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
11945 cat >> confdefs.h <<\EOF
11946 #define LBER_INT_T long
11949 cat >> confdefs.h <<\EOF
11950 #define LBER_TAG_T long
11953 cat >> confdefs.h <<\EOF
11954 #define LBER_SOCKET_T int
11958 cat >> confdefs.h <<\EOF
11959 #define LBER_INT_T int
11962 cat >> confdefs.h <<\EOF
11963 #define LBER_TAG_T long
11966 cat >> confdefs.h <<\EOF
11967 #define LBER_SOCKET_T int
11973 cat >> confdefs.h <<\EOF
11974 #define LBER_LEN_T long
11978 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
11979 echo "configure:11980: checking for 8-bit clean memcmp" >&5
11980 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
11981 echo $ac_n "(cached) $ac_c" 1>&6
11983 if test "$cross_compiling" = yes; then
11984 ac_cv_func_memcmp_clean=no
11986 cat > conftest.$ac_ext <<EOF
11987 #line 11988 "configure"
11988 #include "confdefs.h"
11992 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11993 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
11997 if { (eval echo configure:11998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11999 ac_cv_func_memcmp_clean=yes
12001 echo "configure: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12004 ac_cv_func_memcmp_clean=no
12011 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
12012 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
12014 echo $ac_n "checking for strftime""... $ac_c" 1>&6
12015 echo "configure:12016: checking for strftime" >&5
12016 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
12017 echo $ac_n "(cached) $ac_c" 1>&6
12019 cat > conftest.$ac_ext <<EOF
12020 #line 12021 "configure"
12021 #include "confdefs.h"
12022 /* System header to define __stub macros and hopefully few prototypes,
12023 which can conflict with char strftime(); below. */
12024 #include <assert.h>
12025 /* Override any gcc2 internal prototype to avoid an error. */
12026 /* We use char because int might match the return type of a gcc2
12027 builtin and then its argument prototype would still apply. */
12033 /* The GNU C library defines this for functions which it implements
12034 to always fail with ENOSYS. Some functions are actually named
12035 something starting with __ and the normal name is an alias. */
12036 #if defined (__stub_strftime) || defined (__stub___strftime)
12044 if { (eval echo configure:12045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12046 eval "ac_cv_func_strftime=yes"
12048 echo "configure: failed program was:" >&5
12049 cat conftest.$ac_ext >&5
12051 eval "ac_cv_func_strftime=no"
12056 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
12057 echo "$ac_t""yes" 1>&6
12058 cat >> confdefs.h <<\EOF
12059 #define HAVE_STRFTIME 1
12063 echo "$ac_t""no" 1>&6
12064 # strftime is in -lintl on SCO UNIX.
12065 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
12066 echo "configure:12067: checking for strftime in -lintl" >&5
12067 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
12068 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12069 echo $ac_n "(cached) $ac_c" 1>&6
12071 ac_save_LIBS="$LIBS"
12072 LIBS="-lintl $LIBS"
12073 cat > conftest.$ac_ext <<EOF
12074 #line 12075 "configure"
12075 #include "confdefs.h"
12076 /* Override any gcc2 internal prototype to avoid an error. */
12077 /* We use char because int might match the return type of a gcc2
12078 builtin and then its argument prototype would still apply. */
12085 if { (eval echo configure:12086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12087 eval "ac_cv_lib_$ac_lib_var=yes"
12089 echo "configure: failed program was:" >&5
12090 cat conftest.$ac_ext >&5
12092 eval "ac_cv_lib_$ac_lib_var=no"
12095 LIBS="$ac_save_LIBS"
12098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12099 echo "$ac_t""yes" 1>&6
12100 cat >> confdefs.h <<\EOF
12101 #define HAVE_STRFTIME 1
12104 LIBS="-lintl $LIBS"
12106 echo "$ac_t""no" 1>&6
12112 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
12113 echo "configure:12114: checking for inet_aton()" >&5
12114 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
12115 echo $ac_n "(cached) $ac_c" 1>&6
12117 cat > conftest.$ac_ext <<EOF
12118 #line 12119 "configure"
12119 #include "confdefs.h"
12121 #ifdef HAVE_SYS_TYPES_H
12122 # include <sys/types.h>
12124 #ifdef HAVE_SYS_SOCKET_H
12125 # include <sys/socket.h>
12126 # ifdef HAVE_SYS_SELECT_H
12127 # include <sys/select.h>
12129 # include <netinet/in.h>
12130 # ifdef HAVE_ARPA_INET_H
12131 # include <arpa/inet.h>
12137 int rc = inet_aton( "255.255.255.255", &in );
12140 if { (eval echo configure:12141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12142 ol_cv_func_inet_aton=yes
12144 echo "configure: failed program was:" >&5
12145 cat conftest.$ac_ext >&5
12147 ol_cv_func_inet_aton=no
12152 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
12153 if test $ol_cv_func_inet_aton != no; then
12154 cat >> confdefs.h <<\EOF
12155 #define HAVE_INET_ATON 1
12161 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12162 echo "configure:12163: checking for vprintf" >&5
12163 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
12164 echo $ac_n "(cached) $ac_c" 1>&6
12166 cat > conftest.$ac_ext <<EOF
12167 #line 12168 "configure"
12168 #include "confdefs.h"
12169 /* System header to define __stub macros and hopefully few prototypes,
12170 which can conflict with char vprintf(); below. */
12171 #include <assert.h>
12172 /* Override any gcc2 internal prototype to avoid an error. */
12173 /* We use char because int might match the return type of a gcc2
12174 builtin and then its argument prototype would still apply. */
12180 /* The GNU C library defines this for functions which it implements
12181 to always fail with ENOSYS. Some functions are actually named
12182 something starting with __ and the normal name is an alias. */
12183 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12191 if { (eval echo configure:12192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12193 eval "ac_cv_func_vprintf=yes"
12195 echo "configure: failed program was:" >&5
12196 cat conftest.$ac_ext >&5
12198 eval "ac_cv_func_vprintf=no"
12203 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12204 echo "$ac_t""yes" 1>&6
12205 cat >> confdefs.h <<\EOF
12206 #define HAVE_VPRINTF 1
12210 echo "$ac_t""no" 1>&6
12213 if test "$ac_cv_func_vprintf" != yes; then
12214 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12215 echo "configure:12216: checking for _doprnt" >&5
12216 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
12217 echo $ac_n "(cached) $ac_c" 1>&6
12219 cat > conftest.$ac_ext <<EOF
12220 #line 12221 "configure"
12221 #include "confdefs.h"
12222 /* System header to define __stub macros and hopefully few prototypes,
12223 which can conflict with char _doprnt(); below. */
12224 #include <assert.h>
12225 /* Override any gcc2 internal prototype to avoid an error. */
12226 /* We use char because int might match the return type of a gcc2
12227 builtin and then its argument prototype would still apply. */
12233 /* The GNU C library defines this for functions which it implements
12234 to always fail with ENOSYS. Some functions are actually named
12235 something starting with __ and the normal name is an alias. */
12236 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12244 if { (eval echo configure:12245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12246 eval "ac_cv_func__doprnt=yes"
12248 echo "configure: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12251 eval "ac_cv_func__doprnt=no"
12256 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12257 echo "$ac_t""yes" 1>&6
12258 cat >> confdefs.h <<\EOF
12259 #define HAVE_DOPRNT 1
12263 echo "$ac_t""no" 1>&6
12269 if test $ac_cv_func_vprintf = yes ; then
12270 for ac_func in vsnprintf vsprintf
12272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12273 echo "configure:12274: checking for $ac_func" >&5
12274 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12275 echo $ac_n "(cached) $ac_c" 1>&6
12277 cat > conftest.$ac_ext <<EOF
12278 #line 12279 "configure"
12279 #include "confdefs.h"
12280 /* System header to define __stub macros and hopefully few prototypes,
12281 which can conflict with char $ac_func(); below. */
12282 #include <assert.h>
12283 /* Override any gcc2 internal prototype to avoid an error. */
12284 /* We use char because int might match the return type of a gcc2
12285 builtin and then its argument prototype would still apply. */
12291 /* The GNU C library defines this for functions which it implements
12292 to always fail with ENOSYS. Some functions are actually named
12293 something starting with __ and the normal name is an alias. */
12294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12302 if { (eval echo configure:12303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12304 eval "ac_cv_func_$ac_func=yes"
12306 echo "configure: failed program was:" >&5
12307 cat conftest.$ac_ext >&5
12309 eval "ac_cv_func_$ac_func=no"
12314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12315 echo "$ac_t""yes" 1>&6
12316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12317 cat >> confdefs.h <<EOF
12318 #define $ac_tr_func 1
12322 echo "$ac_t""no" 1>&6
12376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12377 echo "configure:12378: checking for $ac_func" >&5
12378 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12379 echo $ac_n "(cached) $ac_c" 1>&6
12381 cat > conftest.$ac_ext <<EOF
12382 #line 12383 "configure"
12383 #include "confdefs.h"
12384 /* System header to define __stub macros and hopefully few prototypes,
12385 which can conflict with char $ac_func(); below. */
12386 #include <assert.h>
12387 /* Override any gcc2 internal prototype to avoid an error. */
12388 /* We use char because int might match the return type of a gcc2
12389 builtin and then its argument prototype would still apply. */
12395 /* The GNU C library defines this for functions which it implements
12396 to always fail with ENOSYS. Some functions are actually named
12397 something starting with __ and the normal name is an alias. */
12398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12406 if { (eval echo configure:12407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12408 eval "ac_cv_func_$ac_func=yes"
12410 echo "configure: failed program was:" >&5
12411 cat conftest.$ac_ext >&5
12413 eval "ac_cv_func_$ac_func=no"
12418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12419 echo "$ac_t""yes" 1>&6
12420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12421 cat >> confdefs.h <<EOF
12422 #define $ac_tr_func 1
12426 echo "$ac_t""no" 1>&6
12431 for ac_func in getopt tempnam
12433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12434 echo "configure:12435: checking for $ac_func" >&5
12435 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12436 echo $ac_n "(cached) $ac_c" 1>&6
12438 cat > conftest.$ac_ext <<EOF
12439 #line 12440 "configure"
12440 #include "confdefs.h"
12441 /* System header to define __stub macros and hopefully few prototypes,
12442 which can conflict with char $ac_func(); below. */
12443 #include <assert.h>
12444 /* Override any gcc2 internal prototype to avoid an error. */
12445 /* We use char because int might match the return type of a gcc2
12446 builtin and then its argument prototype would still apply. */
12452 /* The GNU C library defines this for functions which it implements
12453 to always fail with ENOSYS. Some functions are actually named
12454 something starting with __ and the normal name is an alias. */
12455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12463 if { (eval echo configure:12464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12465 eval "ac_cv_func_$ac_func=yes"
12467 echo "configure: failed program was:" >&5
12468 cat conftest.$ac_ext >&5
12470 eval "ac_cv_func_$ac_func=no"
12475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12476 echo "$ac_t""yes" 1>&6
12477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12478 cat >> confdefs.h <<EOF
12479 #define $ac_tr_func 1
12483 echo "$ac_t""no" 1>&6
12484 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
12490 # Check Configuration
12491 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
12492 echo "configure:12493: checking declaration of sys_errlist" >&5
12493 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
12494 echo $ac_n "(cached) $ac_c" 1>&6
12497 cat > conftest.$ac_ext <<EOF
12498 #line 12499 "configure"
12499 #include "confdefs.h"
12502 #include <sys/types.h>
12505 char *c = (char *) *sys_errlist
12508 if { (eval echo configure:12509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12510 ol_cv_dcl_sys_errlist=yes
12511 ol_cv_have_sys_errlist=yes
12513 echo "configure: failed program was:" >&5
12514 cat conftest.$ac_ext >&5
12516 ol_cv_dcl_sys_errlist=no
12521 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
12523 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
12524 if test $ol_cv_dcl_sys_errlist = no ; then
12525 cat >> confdefs.h <<\EOF
12526 #define DECL_SYS_ERRLIST 1
12530 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
12531 echo "configure:12532: checking existence of sys_errlist" >&5
12532 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
12533 echo $ac_n "(cached) $ac_c" 1>&6
12536 cat > conftest.$ac_ext <<EOF
12537 #line 12538 "configure"
12538 #include "confdefs.h"
12541 char *c = (char *) *sys_errlist
12544 if { (eval echo configure:12545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12546 ol_cv_have_sys_errlist=yes
12548 echo "configure: failed program was:" >&5
12549 cat conftest.$ac_ext >&5
12551 ol_cv_have_sys_errlist=no
12556 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
12558 if test $ol_cv_have_sys_errlist = yes ; then
12559 cat >> confdefs.h <<\EOF
12560 #define HAVE_SYS_ERRLIST 1
12567 if test "$ol_enable_debug" != no ; then
12568 cat >> confdefs.h <<\EOF
12569 #define LDAP_DEBUG 1
12573 if test "$ol_enable_syslog" = yes ; then
12574 cat >> confdefs.h <<\EOF
12575 #define LDAP_SYSLOG 1
12579 if test "$ol_enable_libui" = yes ; then
12580 cat >> confdefs.h <<\EOF
12581 #define LDAP_LIBUI 1
12585 if test "$ol_enable_cache" = no ; then
12586 cat >> confdefs.h <<\EOF
12587 #define LDAP_NOCACHE 1
12591 if test "$ol_enable_dns" != no ; then
12592 cat >> confdefs.h <<\EOF
12593 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
12597 if test "$ol_enable_proctitle" != no ; then
12598 cat >> confdefs.h <<\EOF
12599 #define LDAP_PROCTITLE 1
12603 if test "$ol_enable_referrals" != no ; then
12604 cat >> confdefs.h <<\EOF
12605 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
12609 if test "$ol_enable_cldap" != no ; then
12610 cat >> confdefs.h <<\EOF
12611 #define LDAP_CONNECTIONLESS 1
12616 if test "$ol_enable_crypt" != no ; then
12617 cat >> confdefs.h <<\EOF
12618 #define SLAPD_CRYPT 1
12622 if test "$ol_enable_cleartext" != no ; then
12623 cat >> confdefs.h <<\EOF
12624 #define SLAPD_CLEARTEXT 1
12628 if test "$ol_enable_phonetic" != no ; then
12629 cat >> confdefs.h <<\EOF
12630 #define SLAPD_PHONETIC 1
12634 if test "$ol_enable_rlookups" != no ; then
12635 cat >> confdefs.h <<\EOF
12636 #define SLAPD_RLOOKUPS 1
12641 if test "$ol_link_modules" != no ; then
12642 cat >> confdefs.h <<\EOF
12643 #define SLAPD_MODULES 1
12649 if test "$ol_link_bdb2" != no ; then
12650 cat >> confdefs.h <<\EOF
12651 #define SLAPD_BDB2 1
12656 if test "$ol_with_bdb2_module" != static ; then
12657 cat >> confdefs.h <<\EOF
12658 #define SLAPD_BDB2_DYNAMIC 1
12661 BUILD_BDB2_DYNAMIC=yes
12665 if test "$ol_enable_ldap" != no ; then
12666 cat >> confdefs.h <<\EOF
12667 #define SLAPD_LDAP 1
12672 if test "$ol_with_ldap_module" != static ; then
12673 cat >> confdefs.h <<\EOF
12674 #define SLAPD_LDAP_DYNAMIC 1
12677 BUILD_LDAP_DYNAMIC=yes
12681 if test "$ol_link_ldbm" != no ; then
12682 cat >> confdefs.h <<\EOF
12683 #define SLAPD_LDBM 1
12688 if test "$ol_with_ldbm_module" != static ; then
12689 cat >> confdefs.h <<\EOF
12690 #define SLAPD_LDBM_DYNAMIC 1
12693 BUILD_LDBM_DYNAMIC=yes
12697 if test "$ol_enable_passwd" != no ; then
12698 cat >> confdefs.h <<\EOF
12699 #define SLAPD_PASSWD 1
12704 if test "$ol_with_passwd_module" != static ; then
12705 cat >> confdefs.h <<\EOF
12706 #define SLAPD_PASSWD_DYNAMIC 1
12709 BUILD_PASSWD_DYNAMIC=yes
12713 if test "$ol_link_perl" != no ; then
12714 cat >> confdefs.h <<\EOF
12715 #define SLAPD_PERL 1
12720 if test "$ol_with_perl_module" != static ; then
12721 cat >> confdefs.h <<\EOF
12722 #define SLAPD_PERL_DYNAMIC 1
12725 BUILD_PERL_DYNAMIC=yes
12729 if test "$ol_enable_shell" != no ; then
12730 cat >> confdefs.h <<\EOF
12731 #define SLAPD_SHELL 1
12736 if test "$ol_with_shell_module" != static ; then
12737 cat >> confdefs.h <<\EOF
12738 #define SLAPD_SHELL_DYNAMIC 1
12741 BUILD_SHELL_DYNAMIC=yes
12745 if test "$ol_enable_tcl" != no ; then
12746 cat >> confdefs.h <<\EOF
12747 #define SLAPD_TCL 1
12752 if test "$ol_with_tcl_module" != static; then
12753 cat >> confdefs.h <<\EOF
12754 #define SLAPD_TCL_DYNAMIC 1
12757 BUILD_TCL_DYNAMIC=yes
12761 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
12762 $BUILD_SLAPD = yes ; then
12766 if test "$ol_link_isode" != no ; then
12812 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12814 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12815 # Let make expand exec_prefix.
12816 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12818 # Any assignment to VPATH causes Sun make to only execute
12819 # the first set of double-colon rules, so remove it if not needed.
12820 # If there is a colon in the path, we need to keep it.
12821 if test "x$srcdir" = x.; then
12822 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12825 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12827 DEFS=-DHAVE_CONFIG_H
12829 # Without the "./", some shells look in PATH for config.status.
12830 : ${CONFIG_STATUS=./config.status}
12832 echo creating $CONFIG_STATUS
12833 rm -f $CONFIG_STATUS
12834 cat > $CONFIG_STATUS <<EOF
12836 # Generated automatically by configure.
12837 # Run this file to recreate the current configuration.
12838 # This directory was configured as follows,
12839 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12841 # $0 $ac_configure_args
12843 # Compiler output produced by configure, useful for debugging
12844 # configure, is in ./config.log if it exists.
12846 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12849 case "\$ac_option" in
12850 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12851 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12852 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12853 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12854 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
12856 -help | --help | --hel | --he | --h)
12857 echo "\$ac_cs_usage"; exit 0 ;;
12858 *) echo "\$ac_cs_usage"; exit 1 ;;
12862 ac_given_srcdir=$srcdir
12863 ac_given_INSTALL="$INSTALL"
12865 trap 'rm -fr `echo "\
12866 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12867 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12868 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12869 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12870 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12871 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12872 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12873 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12874 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12875 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12876 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12877 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12878 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12879 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12880 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12881 include/Makefile:build/top.mk:include/Makefile.in \
12882 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12883 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12884 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12885 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12886 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12887 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12888 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12889 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12890 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12891 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12892 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12893 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12894 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12895 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12896 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12897 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12898 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12899 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12900 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12901 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12902 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12903 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12904 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12905 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12906 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12907 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12908 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12910 cat >> $CONFIG_STATUS <<EOF
12912 # Protect against being on the right side of a sed subst in config.status.
12913 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12914 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12918 s%@CFLAGS@%$CFLAGS%g
12919 s%@CPPFLAGS@%$CPPFLAGS%g
12920 s%@CXXFLAGS@%$CXXFLAGS%g
12921 s%@FFLAGS@%$FFLAGS%g
12923 s%@LDFLAGS@%$LDFLAGS%g
12925 s%@exec_prefix@%$exec_prefix%g
12926 s%@prefix@%$prefix%g
12927 s%@program_transform_name@%$program_transform_name%g
12928 s%@bindir@%$bindir%g
12929 s%@sbindir@%$sbindir%g
12930 s%@libexecdir@%$libexecdir%g
12931 s%@datadir@%$datadir%g
12932 s%@sysconfdir@%$sysconfdir%g
12933 s%@sharedstatedir@%$sharedstatedir%g
12934 s%@localstatedir@%$localstatedir%g
12935 s%@libdir@%$libdir%g
12936 s%@includedir@%$includedir%g
12937 s%@oldincludedir@%$oldincludedir%g
12938 s%@infodir@%$infodir%g
12939 s%@mandir@%$mandir%g
12941 s%@host_alias@%$host_alias%g
12942 s%@host_cpu@%$host_cpu%g
12943 s%@host_vendor@%$host_vendor%g
12944 s%@host_os@%$host_os%g
12945 s%@target@%$target%g
12946 s%@target_alias@%$target_alias%g
12947 s%@target_cpu@%$target_cpu%g
12948 s%@target_vendor@%$target_vendor%g
12949 s%@target_os@%$target_os%g
12951 s%@build_alias@%$build_alias%g
12952 s%@build_cpu@%$build_cpu%g
12953 s%@build_vendor@%$build_vendor%g
12954 s%@build_os@%$build_os%g
12955 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12956 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12957 s%@INSTALL_DATA@%$INSTALL_DATA%g
12958 s%@PACKAGE@%$PACKAGE%g
12959 s%@VERSION@%$VERSION%g
12960 s%@ACLOCAL@%$ACLOCAL%g
12961 s%@AUTOCONF@%$AUTOCONF%g
12962 s%@AUTOMAKE@%$AUTOMAKE%g
12963 s%@AUTOHEADER@%$AUTOHEADER%g
12964 s%@MAKEINFO@%$MAKEINFO%g
12965 s%@install_sh@%$install_sh%g
12968 s%@AMTARFLAGS@%$AMTARFLAGS%g
12969 s%@SET_MAKE@%$SET_MAKE%g
12970 s%@top_builddir@%$top_builddir%g
12971 s%@ldap_subdir@%$ldap_subdir%g
12973 s%@RANLIB@%$RANLIB%g
12977 s%@LIBTOOL@%$LIBTOOL%g
12979 s%@SENDMAIL@%$SENDMAIL%g
12980 s%@EDITOR@%$EDITOR%g
12981 s%@FINGER@%$FINGER%g
12982 s%@PERLBIN@%$PERLBIN%g
12984 s%@EXEEXT@%$EXEEXT%g
12985 s%@OBJEXT@%$OBJEXT%g
12986 s%@OL_MKDEP@%$OL_MKDEP%g
12987 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
12988 s%@GLIBCONFIG@%$GLIBCONFIG%g
12990 s%@LIBOBJS@%$LIBOBJS%g
12991 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
12992 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
12993 s%@BUILD_BDB2@%$BUILD_BDB2%g
12994 s%@BUILD_LDAP@%$BUILD_LDAP%g
12995 s%@BUILD_LDBM@%$BUILD_LDBM%g
12996 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
12997 s%@BUILD_PERL@%$BUILD_PERL%g
12998 s%@BUILD_SHELL@%$BUILD_SHELL%g
12999 s%@BUILD_TCL@%$BUILD_TCL%g
13000 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
13001 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
13002 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
13003 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
13004 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
13005 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
13006 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
13007 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
13008 s%@LDAP_LIBS@%$LDAP_LIBS%g
13009 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
13010 s%@LDIF_LIBS@%$LDIF_LIBS%g
13011 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
13012 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
13013 s%@LDBM_LIBS@%$LDBM_LIBS%g
13014 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
13015 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
13016 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
13017 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
13018 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
13019 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
13020 s%@KRB_LIBS@%$KRB_LIBS%g
13021 s%@READLINE_LIBS@%$READLINE_LIBS%g
13022 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
13023 s%@TLS_LIBS@%$TLS_LIBS%g
13028 cat >> $CONFIG_STATUS <<\EOF
13030 # Split the substitutions into bite-sized pieces for seds with
13031 # small command number limits, like on Digital OSF/1 and HP-UX.
13032 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13033 ac_file=1 # Number of current file.
13034 ac_beg=1 # First line for current file.
13035 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13038 while $ac_more_lines; do
13039 if test $ac_beg -gt 1; then
13040 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13042 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13044 if test ! -s conftest.s$ac_file; then
13045 ac_more_lines=false
13046 rm -f conftest.s$ac_file
13048 if test -z "$ac_sed_cmds"; then
13049 ac_sed_cmds="sed -f conftest.s$ac_file"
13051 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13053 ac_file=`expr $ac_file + 1`
13055 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13058 if test -z "$ac_sed_cmds"; then
13063 cat >> $CONFIG_STATUS <<EOF
13065 CONFIG_FILES=\${CONFIG_FILES-"\
13066 Makefile:build/top.mk:Makefile.in:build/dir.mk \
13067 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
13068 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
13069 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
13070 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
13071 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
13072 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
13073 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
13074 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
13075 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
13076 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
13077 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
13078 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
13079 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
13080 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
13081 include/Makefile:build/top.mk:include/Makefile.in \
13082 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
13083 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
13084 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
13085 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
13086 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
13087 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
13088 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
13089 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
13090 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
13091 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
13092 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
13093 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
13094 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
13095 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
13096 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
13097 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
13098 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
13099 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
13100 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
13101 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
13102 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
13103 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
13104 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
13105 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
13106 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
13107 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
13110 cat >> $CONFIG_STATUS <<\EOF
13111 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13112 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13114 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13115 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13116 *) ac_file_in="${ac_file}.in" ;;
13119 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13121 # Remove last slash and all that follows it. Not all systems have dirname.
13122 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13123 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13124 # The file is in a subdirectory.
13125 test ! -d "$ac_dir" && mkdir "$ac_dir"
13126 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13127 # A "../" for each directory in $ac_dir_suffix.
13128 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13130 ac_dir_suffix= ac_dots=
13133 case "$ac_given_srcdir" in
13135 if test -z "$ac_dots"; then top_srcdir=.
13136 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13137 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13138 *) # Relative path.
13139 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13140 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13143 case "$ac_given_INSTALL" in
13144 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13145 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13148 echo creating "$ac_file"
13150 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13152 *Makefile*) ac_comsub="1i\\
13153 # $configure_input" ;;
13157 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13159 s%@configure_input@%$configure_input%g
13160 s%@srcdir@%$srcdir%g
13161 s%@top_srcdir@%$top_srcdir%g
13162 s%@INSTALL@%$INSTALL%g
13163 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13167 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13168 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13170 # ac_d sets the value in "#define NAME VALUE" lines.
13171 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13172 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13175 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13176 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13177 ac_uB='\([ ]\)%\1#\2define\3'
13180 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13181 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13182 ac_eB='$%\1#\2define\3'
13186 if test "${CONFIG_HEADERS+set}" != set; then
13188 cat >> $CONFIG_STATUS <<EOF
13189 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
13191 cat >> $CONFIG_STATUS <<\EOF
13193 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13194 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13196 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13197 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13198 *) ac_file_in="${ac_file}.in" ;;
13201 echo creating $ac_file
13203 rm -f conftest.frag conftest.in conftest.out
13204 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13205 cat $ac_file_inputs > conftest.in
13209 # Transform confdefs.h into a sed script conftest.vals that substitutes
13210 # the proper values into config.h.in to produce config.h. And first:
13211 # Protect against being on the right side of a sed subst in config.status.
13212 # Protect against being in an unquoted here document in config.status.
13213 rm -f conftest.vals
13214 cat > conftest.hdr <<\EOF
13217 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13221 sed -n -f conftest.hdr confdefs.h > conftest.vals
13224 # This sed command replaces #undef with comments. This is necessary, for
13225 # example, in the case of _POSIX_SOURCE, which is predefined and required
13226 # on some systems where configure will not decide to define it.
13227 cat >> conftest.vals <<\EOF
13228 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13231 # Break up conftest.vals because some shells have a limit on
13232 # the size of here documents, and old seds have small limits too.
13234 rm -f conftest.tail
13237 ac_lines=`grep -c . conftest.vals`
13238 # grep -c gives empty output for an empty file on some AIX systems.
13239 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13240 # Write a limited-size here document to conftest.frag.
13241 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13242 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13244 sed -f conftest.frag conftest.in > conftest.out
13246 mv conftest.out conftest.in
13247 ' >> $CONFIG_STATUS
13248 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13249 rm -f conftest.vals
13250 mv conftest.tail conftest.vals
13252 rm -f conftest.vals
13254 cat >> $CONFIG_STATUS <<\EOF
13255 rm -f conftest.frag conftest.h
13256 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13257 cat conftest.in >> conftest.h
13259 if cmp -s $ac_file conftest.h 2>/dev/null; then
13260 echo "$ac_file is unchanged"
13263 # Remove last slash and all that follows it. Not all systems have dirname.
13264 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13265 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13266 # The file is in a subdirectory.
13267 test ! -d "$ac_dir" && mkdir "$ac_dir"
13270 mv conftest.h $ac_file
13275 cat >> $CONFIG_STATUS <<EOF
13278 cat >> $CONFIG_STATUS <<\EOF
13281 echo Please \"make depend\" to build dependencies
13285 chmod +x $CONFIG_STATUS
13286 rm -fr confdefs* $ac_clean_files
13287 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1