3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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-multimaster enable multimaster replication (no)"
66 --enable-phonetic enable phonetic/soundex (no)"
68 --enable-quipu build quipu migration tools (no)"
70 --enable-rlookups enable reverse lookups (auto)"
72 --enable-wrappers enable tcp wrapper support (no)"
74 --enable-bdb2 enable bdb2 backend (no)"
76 --with-bdb2-module module type (static)"
78 --enable-ldap enable ldap backend (no)"
80 --with-ldap-module module type (static)"
82 --enable-ldbm enable ldbm backend (yes)"
84 --with-ldbm-module module type (static)"
86 --with-ldbm-api use LDBM API (auto)"
88 --with-ldbm-type use LDBM type (auto)"
90 --enable-passwd enable passwd backend (no)"
92 --with-passwd-module module type (static)"
94 --enable-perl enable perl backend (no)"
96 --with-perl-module module type (static)"
98 --enable-shell enable shell backend (no)"
100 --with-shell-module module type (static)"
102 --enable-tcl enable tcl backend (no)"
104 --with-tcl-module module type (static)"
108 --enable-slurpd enable building slurpd (auto)"
110 Library Generation & Linking Options"
112 --enable-static[=PKGS] build static libraries [default=yes]"
114 --enable-shared[=PKGS] build shared libraries [default=yes]"
116 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
118 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
120 --disable-libtool-lock avoid locking (might break parallel builds)"
122 # Initialize some variables set by options.
123 # The variables have the same names as the options, with
124 # dashes changed to underlines.
126 cache_file=./config.cache
135 program_transform_name=s,x,x,
143 bindir='${exec_prefix}/bin'
144 sbindir='${exec_prefix}/sbin'
145 libexecdir='${exec_prefix}/libexec'
146 datadir='${prefix}/share'
147 sysconfdir='${prefix}/etc'
148 sharedstatedir='${prefix}/com'
149 localstatedir='${prefix}/var'
150 libdir='${exec_prefix}/lib'
151 includedir='${prefix}/include'
152 oldincludedir='/usr/include'
153 infodir='${prefix}/info'
154 mandir='${prefix}/man'
156 # Initialize some other variables.
159 SHELL=${CONFIG_SHELL-/bin/sh}
160 # Maximum number of lines to put in a shell here document.
167 # If the previous option needs an argument, assign it.
168 if test -n "$ac_prev"; then
169 eval "$ac_prev=\$ac_option"
175 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
179 # Accept the important Cygnus configure options, so we can diagnose typos.
183 -bindir | --bindir | --bindi | --bind | --bin | --bi)
185 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
186 bindir="$ac_optarg" ;;
188 -build | --build | --buil | --bui | --bu)
190 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
191 build="$ac_optarg" ;;
193 -cache-file | --cache-file | --cache-fil | --cache-fi \
194 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
195 ac_prev=cache_file ;;
196 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
197 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
198 cache_file="$ac_optarg" ;;
200 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
202 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
204 datadir="$ac_optarg" ;;
206 -disable-* | --disable-*)
207 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
208 # Reject names that are not valid shell variable names.
209 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
210 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
212 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
213 eval "enable_${ac_feature}=no" ;;
215 -enable-* | --enable-*)
216 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
217 # Reject names that are not valid shell variable names.
218 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
219 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
221 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
226 eval "enable_${ac_feature}='$ac_optarg'" ;;
228 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
229 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
230 | --exec | --exe | --ex)
231 ac_prev=exec_prefix ;;
232 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
233 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
234 | --exec=* | --exe=* | --ex=*)
235 exec_prefix="$ac_optarg" ;;
237 -gas | --gas | --ga | --g)
238 # Obsolete; use --with-gas.
241 -help | --help | --hel | --he)
242 # Omit some internal or obsolete options to make the list less imposing.
243 # This message is too long to be a string in the A/UX 3.1 sh.
245 Usage: configure [options] [host]
246 Options: [defaults in brackets after descriptions]
248 --cache-file=FILE cache test results in FILE
249 --help print this message
250 --no-create do not create output files
251 --quiet, --silent do not print \`checking...' messages
252 --version print the version of autoconf that created configure
253 Directory and file names:
254 --prefix=PREFIX install architecture-independent files in PREFIX
256 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
258 --bindir=DIR user executables in DIR [EPREFIX/bin]
259 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
260 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
261 --datadir=DIR read-only architecture-independent data in DIR
263 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
264 --sharedstatedir=DIR modifiable architecture-independent data in DIR
266 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
267 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
268 --includedir=DIR C header files in DIR [PREFIX/include]
269 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
270 --infodir=DIR info documentation in DIR [PREFIX/info]
271 --mandir=DIR man documentation in DIR [PREFIX/man]
272 --srcdir=DIR find the sources in DIR [configure dir or ..]
273 --program-prefix=PREFIX prepend PREFIX to installed program names
274 --program-suffix=SUFFIX append SUFFIX to installed program names
275 --program-transform-name=PROGRAM
276 run sed PROGRAM on installed program names
280 --build=BUILD configure for building on BUILD [BUILD=HOST]
281 --host=HOST configure for HOST [guessed]
282 --target=TARGET configure for TARGET [TARGET=HOST]
283 Features and packages:
284 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
285 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
286 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
287 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
288 --x-includes=DIR X include files are in DIR
289 --x-libraries=DIR X library files are in DIR
291 if test -n "$ac_help"; then
292 echo "--enable and --with options recognized:$ac_help"
296 -host | --host | --hos | --ho)
298 -host=* | --host=* | --hos=* | --ho=*)
301 -includedir | --includedir | --includedi | --included | --include \
302 | --includ | --inclu | --incl | --inc)
303 ac_prev=includedir ;;
304 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
305 | --includ=* | --inclu=* | --incl=* | --inc=*)
306 includedir="$ac_optarg" ;;
308 -infodir | --infodir | --infodi | --infod | --info | --inf)
310 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
311 infodir="$ac_optarg" ;;
313 -libdir | --libdir | --libdi | --libd)
315 -libdir=* | --libdir=* | --libdi=* | --libd=*)
316 libdir="$ac_optarg" ;;
318 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
319 | --libexe | --libex | --libe)
320 ac_prev=libexecdir ;;
321 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
322 | --libexe=* | --libex=* | --libe=*)
323 libexecdir="$ac_optarg" ;;
325 -localstatedir | --localstatedir | --localstatedi | --localstated \
326 | --localstate | --localstat | --localsta | --localst \
327 | --locals | --local | --loca | --loc | --lo)
328 ac_prev=localstatedir ;;
329 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
330 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
331 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
332 localstatedir="$ac_optarg" ;;
334 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
336 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 mandir="$ac_optarg" ;;
340 # Obsolete; use --without-fp.
343 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
347 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
348 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
351 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
352 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
353 | --oldin | --oldi | --old | --ol | --o)
354 ac_prev=oldincludedir ;;
355 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
356 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
357 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
358 oldincludedir="$ac_optarg" ;;
360 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
362 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
363 prefix="$ac_optarg" ;;
365 -program-prefix | --program-prefix | --program-prefi | --program-pref \
366 | --program-pre | --program-pr | --program-p)
367 ac_prev=program_prefix ;;
368 -program-prefix=* | --program-prefix=* | --program-prefi=* \
369 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
370 program_prefix="$ac_optarg" ;;
372 -program-suffix | --program-suffix | --program-suffi | --program-suff \
373 | --program-suf | --program-su | --program-s)
374 ac_prev=program_suffix ;;
375 -program-suffix=* | --program-suffix=* | --program-suffi=* \
376 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
377 program_suffix="$ac_optarg" ;;
379 -program-transform-name | --program-transform-name \
380 | --program-transform-nam | --program-transform-na \
381 | --program-transform-n | --program-transform- \
382 | --program-transform | --program-transfor \
383 | --program-transfo | --program-transf \
384 | --program-trans | --program-tran \
385 | --progr-tra | --program-tr | --program-t)
386 ac_prev=program_transform_name ;;
387 -program-transform-name=* | --program-transform-name=* \
388 | --program-transform-nam=* | --program-transform-na=* \
389 | --program-transform-n=* | --program-transform-=* \
390 | --program-transform=* | --program-transfor=* \
391 | --program-transfo=* | --program-transf=* \
392 | --program-trans=* | --program-tran=* \
393 | --progr-tra=* | --program-tr=* | --program-t=*)
394 program_transform_name="$ac_optarg" ;;
396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
397 | -silent | --silent | --silen | --sile | --sil)
400 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
402 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
404 sbindir="$ac_optarg" ;;
406 -sharedstatedir | --sharedstatedir | --sharedstatedi \
407 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
408 | --sharedst | --shareds | --shared | --share | --shar \
410 ac_prev=sharedstatedir ;;
411 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
412 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
413 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
415 sharedstatedir="$ac_optarg" ;;
417 -site | --site | --sit)
419 -site=* | --site=* | --sit=*)
422 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
424 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
425 srcdir="$ac_optarg" ;;
427 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
428 | --syscon | --sysco | --sysc | --sys | --sy)
429 ac_prev=sysconfdir ;;
430 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
431 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
432 sysconfdir="$ac_optarg" ;;
434 -target | --target | --targe | --targ | --tar | --ta | --t)
436 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
437 target="$ac_optarg" ;;
439 -v | -verbose | --verbose | --verbos | --verbo | --verb)
442 -version | --version | --versio | --versi | --vers)
443 echo "configure generated by autoconf version 2.13"
447 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
448 # Reject names that are not valid shell variable names.
449 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
450 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
452 ac_package=`echo $ac_package| sed 's/-/_/g'`
457 eval "with_${ac_package}='$ac_optarg'" ;;
459 -without-* | --without-*)
460 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
461 # Reject names that are not valid shell variable names.
462 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
463 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
465 ac_package=`echo $ac_package| sed 's/-/_/g'`
466 eval "with_${ac_package}=no" ;;
469 # Obsolete; use --with-x.
472 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
473 | --x-incl | --x-inc | --x-in | --x-i)
474 ac_prev=x_includes ;;
475 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
476 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
477 x_includes="$ac_optarg" ;;
479 -x-libraries | --x-libraries | --x-librarie | --x-librari \
480 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
481 ac_prev=x_libraries ;;
482 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
483 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
484 x_libraries="$ac_optarg" ;;
486 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
490 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
491 echo "configure: warning: $ac_option: invalid host type" 1>&2
493 if test "x$nonopt" != xNONE; then
494 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
502 if test -n "$ac_prev"; then
503 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
506 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
508 # File descriptor usage:
511 # 2 errors and warnings
512 # 3 some systems may open it to /dev/tty
513 # 4 used on the Kubota Titan
514 # 6 checking for... messages and results
515 # 5 compiler messages saved in config.log
516 if test "$silent" = yes; then
524 This file contains any messages produced by compilers while
525 running configure, to aid debugging if configure makes a mistake.
528 # Strip out --no-create and --no-recursion so they do not pile up.
529 # Also quote any args containing shell metacharacters.
534 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
535 | --no-cr | --no-c) ;;
536 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
537 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
538 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
539 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
540 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
545 # Only set these to C if already set. These must not be set unconditionally
546 # because not all systems understand e.g. LANG=C (notably SCO).
547 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
548 # Non-C LC_CTYPE values break the ctype check.
549 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
550 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
551 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
552 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
554 # confdefs.h avoids OS command line length limits that DEFS can exceed.
555 rm -rf conftest* confdefs.h
556 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
559 # A filename unique to this package, relative to the directory that
560 # configure is in, which we can look for to find out if srcdir is correct.
561 ac_unique_file=build/version
563 # Find the source files, if location was not specified.
564 if test -z "$srcdir"; then
565 ac_srcdir_defaulted=yes
566 # Try the directory containing this script, then its parent.
568 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
569 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
571 if test ! -r $srcdir/$ac_unique_file; then
575 ac_srcdir_defaulted=no
577 if test ! -r $srcdir/$ac_unique_file; then
578 if test "$ac_srcdir_defaulted" = yes; then
579 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
581 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
584 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
586 # Prefer explicitly selected file to automatically selected ones.
587 if test -z "$CONFIG_SITE"; then
588 if test "x$prefix" != xNONE; then
589 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
591 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
594 for ac_site_file in $CONFIG_SITE; do
595 if test -r "$ac_site_file"; then
596 echo "loading site script $ac_site_file"
603 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
604 ac_cpp='$CPP $CPPFLAGS'
605 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
606 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
607 cross_compiling=$ac_cv_prog_cc_cross
611 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
612 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
613 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
620 ac_n= ac_c='\c' ac_t=
624 for ac_dir in build $srcdir/build; do
625 if test -f $ac_dir/install-sh; then
627 ac_install_sh="$ac_aux_dir/install-sh -c"
629 elif test -f $ac_dir/install.sh; then
631 ac_install_sh="$ac_aux_dir/install.sh -c"
635 if test -z "$ac_aux_dir"; then
636 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
638 ac_config_guess=$ac_aux_dir/config.guess
639 ac_config_sub=$ac_aux_dir/config.sub
640 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
642 OL_VERSION=`cat $ac_aux_dir/version`
643 if test -z "$OL_VERSION"; then
644 { echo "configure: error: could not determine version" 1>&2; exit 1; }
648 # Do some error checking and defaulting for the host and target type.
650 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
653 # 1. You are not allowed to specify --host, --target, and nonopt at the
655 # 2. Host defaults to nonopt.
656 # 3. If nonopt is not specified, then host defaults to the current host,
657 # as determined by config.guess.
658 # 4. Target and build default to nonopt.
659 # 5. If nonopt is not specified, then target and build default to host.
661 # The aliases save the names the user supplied, while $host etc.
662 # will get canonicalized.
663 case $host---$target---$nonopt in
664 NONE---*---* | *---NONE---* | *---*---NONE) ;;
665 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
669 # Make sure we can run config.sub.
670 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
671 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
674 echo $ac_n "checking host system type""... $ac_c" 1>&6
675 echo "configure:676: checking host system type" >&5
678 case "$host_alias" in
682 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
683 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
685 *) host_alias=$nonopt ;;
689 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
690 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
691 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
692 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
693 echo "$ac_t""$host" 1>&6
695 echo $ac_n "checking target system type""... $ac_c" 1>&6
696 echo "configure:697: checking target system type" >&5
699 case "$target_alias" in
702 NONE) target_alias=$host_alias ;;
703 *) target_alias=$nonopt ;;
707 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
708 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
709 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
710 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
711 echo "$ac_t""$target" 1>&6
713 echo $ac_n "checking build system type""... $ac_c" 1>&6
714 echo "configure:715: checking build system type" >&5
717 case "$build_alias" in
720 NONE) build_alias=$host_alias ;;
721 *) build_alias=$nonopt ;;
725 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
726 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
727 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
728 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
729 echo "$ac_t""$build" 1>&6
731 test "$host_alias" != "$target_alias" &&
732 test "$program_prefix$program_suffix$program_transform_name" = \
734 program_prefix=${target_alias}-
737 # Find a good install program. We prefer a C program (faster),
738 # so one script is as good as another. But avoid the broken or
739 # incompatible versions:
740 # SysV /etc/install, /usr/sbin/install
741 # SunOS /usr/etc/install
744 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
745 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
746 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
747 # ./install, which can be erroneously created by make from ./install.sh.
748 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
749 echo "configure:750: checking for a BSD compatible install" >&5
750 if test -z "$INSTALL"; then
751 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
755 for ac_dir in $PATH; do
756 # Account for people who put trailing slashes in PATH elements.
758 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
760 # OSF1 and SCO ODT 3.0 have their own names for install.
761 # Don't use installbsd from OSF since it installs stuff as root
763 for ac_prog in ginstall scoinst install; do
764 if test -f $ac_dir/$ac_prog; then
765 if test $ac_prog = install &&
766 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
767 # AIX install. It has an incompatible calling convention.
770 ac_cv_path_install="$ac_dir/$ac_prog -c"
781 if test "${ac_cv_path_install+set}" = set; then
782 INSTALL="$ac_cv_path_install"
784 # As a last resort, use the slow shell script. We don't cache a
785 # path for INSTALL within a source directory, because that will
786 # break other packages using the cache if that directory is
787 # removed, or if the path is relative.
788 INSTALL="$ac_install_sh"
791 echo "$ac_t""$INSTALL" 1>&6
793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
794 # It thinks the first close brace ends the variable substitution.
795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
799 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
801 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
802 echo "configure:803: checking whether build environment is sane" >&5
805 echo timestamp > conftestfile
806 # Do `set' in a subshell so we don't clobber the current shell's
807 # arguments. Must try -L first in case configure is actually a
808 # symlink; some systems play weird games with the mod time of symlinks
809 # (eg FreeBSD returns the mod time of the symlink's containing
812 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
813 if test "$*" = "X"; then
815 set X `ls -t $srcdir/configure conftestfile`
817 if test "$*" != "X $srcdir/configure conftestfile" \
818 && test "$*" != "X conftestfile $srcdir/configure"; then
820 # If neither matched, then we have a broken ls. This can happen
821 # if, for instance, CONFIG_SHELL is bash and it inherits a
822 # broken ls alias from the environment. This has actually
823 # happened. Such a system could not be considered "sane".
824 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
825 alias in your environment" 1>&2; exit 1; }
828 test "$2" = conftestfile
834 { echo "configure: error: newly created file is older than distributed files!
835 Check your system clock" 1>&2; exit 1; }
838 echo "$ac_t""yes" 1>&6
839 if test "$program_transform_name" = s,x,x,; then
840 program_transform_name=
842 # Double any \ or $. echo might interpret backslashes.
843 cat <<\EOF_SED > conftestsed
844 s,\\,\\\\,g; s,\$,$$,g
846 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
849 test "$program_prefix" != NONE &&
850 program_transform_name="s,^,${program_prefix},; $program_transform_name"
851 # Use a double $ so make ignores it.
852 test "$program_suffix" != NONE &&
853 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
855 # sed with no file args requires a program.
856 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
858 for ac_prog in mawk gawk nawk awk
860 # Extract the first word of "$ac_prog", so it can be a program name with args.
861 set dummy $ac_prog; ac_word=$2
862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863 echo "configure:864: checking for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 if test -n "$AWK"; then
868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
872 for ac_dir in $ac_dummy; do
873 test -z "$ac_dir" && ac_dir=.
874 if test -f $ac_dir/$ac_word; then
875 ac_cv_prog_AWK="$ac_prog"
882 AWK="$ac_cv_prog_AWK"
883 if test -n "$AWK"; then
884 echo "$ac_t""$AWK" 1>&6
886 echo "$ac_t""no" 1>&6
889 test -n "$AWK" && break
892 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
893 echo "configure:894: checking whether ${MAKE-make} sets \${MAKE}" >&5
894 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
895 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 cat > conftestmake <<\EOF
900 @echo 'ac_maketemp="${MAKE}"'
902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
903 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
904 if test -n "$ac_maketemp"; then
905 eval ac_cv_prog_make_${ac_make}_set=yes
907 eval ac_cv_prog_make_${ac_make}_set=no
911 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
912 echo "$ac_t""yes" 1>&6
915 echo "$ac_t""no" 1>&6
916 SET_MAKE="MAKE=${MAKE-make}"
925 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
926 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
931 missing_dir=`cd $ac_aux_dir && pwd`
932 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
933 echo "configure:934: checking for working aclocal" >&5
934 # Run test in a subshell; some versions of sh will print an error if
935 # an executable is not found, even if stderr is redirected.
936 # Redirect stdin to placate older versions of autoconf. Sigh.
937 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
939 echo "$ac_t""found" 1>&6
941 ACLOCAL="$missing_dir/missing aclocal"
942 echo "$ac_t""missing" 1>&6
945 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
946 echo "configure:947: checking for working autoconf" >&5
947 # Run test in a subshell; some versions of sh will print an error if
948 # an executable is not found, even if stderr is redirected.
949 # Redirect stdin to placate older versions of autoconf. Sigh.
950 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
952 echo "$ac_t""found" 1>&6
954 AUTOCONF="$missing_dir/missing autoconf"
955 echo "$ac_t""missing" 1>&6
958 echo $ac_n "checking for working automake""... $ac_c" 1>&6
959 echo "configure:960: checking for working automake" >&5
960 # Run test in a subshell; some versions of sh will print an error if
961 # an executable is not found, even if stderr is redirected.
962 # Redirect stdin to placate older versions of autoconf. Sigh.
963 if (automake --version) < /dev/null > /dev/null 2>&1; then
965 echo "$ac_t""found" 1>&6
967 AUTOMAKE="$missing_dir/missing automake"
968 echo "$ac_t""missing" 1>&6
971 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
972 echo "configure:973: checking for working autoheader" >&5
973 # Run test in a subshell; some versions of sh will print an error if
974 # an executable is not found, even if stderr is redirected.
975 # Redirect stdin to placate older versions of autoconf. Sigh.
976 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
977 AUTOHEADER=autoheader
978 echo "$ac_t""found" 1>&6
980 AUTOHEADER="$missing_dir/missing autoheader"
981 echo "$ac_t""missing" 1>&6
984 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
985 echo "configure:986: checking for working makeinfo" >&5
986 # Run test in a subshell; some versions of sh will print an error if
987 # an executable is not found, even if stderr is redirected.
988 # Redirect stdin to placate older versions of autoconf. Sigh.
989 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
991 echo "$ac_t""found" 1>&6
993 MAKEINFO="$missing_dir/missing makeinfo"
994 echo "$ac_t""missing" 1>&6
997 install_sh="$missing_dir/install-sh"
998 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1000 for ac_prog in gnutar gtar tar
1002 # Extract the first word of "$ac_prog", so it can be a program name with args.
1003 set dummy $ac_prog; ac_word=$2
1004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1005 echo "configure:1006: checking for $ac_word" >&5
1006 if eval "test \"`echo '$''{'ac_cv_prog_AMTAR'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1009 if test -n "$AMTAR"; then
1010 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1014 for ac_dir in $ac_dummy; do
1015 test -z "$ac_dir" && ac_dir=.
1016 if test -f $ac_dir/$ac_word; then
1017 ac_cv_prog_AMTAR="$ac_prog"
1024 AMTAR="$ac_cv_prog_AMTAR"
1025 if test -n "$AMTAR"; then
1026 echo "$ac_t""$AMTAR" 1>&6
1028 echo "$ac_t""no" 1>&6
1031 test -n "$AMTAR" && break
1036 if test -n "$AMTAR"; then
1037 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1044 cat >> confdefs.h <<EOF
1045 #define OPENLDAP_PACKAGE "$PACKAGE"
1048 cat >> confdefs.h <<EOF
1049 #define OPENLDAP_VERSION "$VERSION"
1055 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1056 echo "configure:1057: checking configure arguments" >&5
1061 ldap_subdir="openldap"
1063 # Check whether --with-subdir or --without-subdir was given.
1064 if test "${with_subdir+set}" = set; then
1065 withval="$with_subdir"
1067 if test "$withval" = "no"; then
1069 elif test "$withval" != "yes"; then
1070 ldap_subdir="$withval"
1076 # OpenLDAP --enable-debug
1077 # Check whether --enable-debug or --disable-debug was given.
1078 if test "${enable_debug+set}" = set; then
1079 enableval="$enable_debug"
1082 for ol_val in auto yes no ; do
1083 if test "$enableval" = "$ol_val" ; then
1087 if test "$ol_arg" = "invalid" ; then
1088 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1090 ol_enable_debug="$ol_arg"
1093 ol_enable_debug="yes"
1095 # end --enable-debug
1096 # OpenLDAP --enable-syslog
1097 # Check whether --enable-syslog or --disable-syslog was given.
1098 if test "${enable_syslog+set}" = set; then
1099 enableval="$enable_syslog"
1102 for ol_val in auto yes no ; do
1103 if test "$enableval" = "$ol_val" ; then
1107 if test "$ol_arg" = "invalid" ; then
1108 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1110 ol_enable_syslog="$ol_arg"
1113 ol_enable_syslog="auto"
1115 # end --enable-syslog
1116 # OpenLDAP --enable-proctitle
1117 # Check whether --enable-proctitle or --disable-proctitle was given.
1118 if test "${enable_proctitle+set}" = set; then
1119 enableval="$enable_proctitle"
1122 for ol_val in auto yes no ; do
1123 if test "$enableval" = "$ol_val" ; then
1127 if test "$ol_arg" = "invalid" ; then
1128 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1130 ol_enable_proctitle="$ol_arg"
1133 ol_enable_proctitle="yes"
1135 # end --enable-proctitle
1136 # OpenLDAP --enable-cache
1137 # Check whether --enable-cache or --disable-cache was given.
1138 if test "${enable_cache+set}" = set; then
1139 enableval="$enable_cache"
1142 for ol_val in auto yes no ; do
1143 if test "$enableval" = "$ol_val" ; then
1147 if test "$ol_arg" = "invalid" ; then
1148 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1150 ol_enable_cache="$ol_arg"
1153 ol_enable_cache="yes"
1155 # end --enable-cache
1156 # OpenLDAP --enable-dns
1157 # Check whether --enable-dns or --disable-dns was given.
1158 if test "${enable_dns+set}" = set; then
1159 enableval="$enable_dns"
1162 for ol_val in auto yes no ; do
1163 if test "$enableval" = "$ol_val" ; then
1167 if test "$ol_arg" = "invalid" ; then
1168 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1170 ol_enable_dns="$ol_arg"
1176 # OpenLDAP --enable-referrals
1177 # Check whether --enable-referrals or --disable-referrals was given.
1178 if test "${enable_referrals+set}" = set; then
1179 enableval="$enable_referrals"
1182 for ol_val in auto yes no ; do
1183 if test "$enableval" = "$ol_val" ; then
1187 if test "$ol_arg" = "invalid" ; then
1188 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1190 ol_enable_referrals="$ol_arg"
1193 ol_enable_referrals="yes"
1195 # end --enable-referrals
1196 # OpenLDAP --enable-cldap
1197 # Check whether --enable-cldap or --disable-cldap was given.
1198 if test "${enable_cldap+set}" = set; then
1199 enableval="$enable_cldap"
1202 for ol_val in auto yes no ; do
1203 if test "$enableval" = "$ol_val" ; then
1207 if test "$ol_arg" = "invalid" ; then
1208 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1210 ol_enable_cldap="$ol_arg"
1213 ol_enable_cldap="no"
1215 # end --enable-cldap
1216 # OpenLDAP --enable-x_compile
1217 # Check whether --enable-x_compile or --disable-x_compile was given.
1218 if test "${enable_x_compile+set}" = set; then
1219 enableval="$enable_x_compile"
1222 for ol_val in yes no ; do
1223 if test "$enableval" = "$ol_val" ; then
1227 if test "$ol_arg" = "invalid" ; then
1228 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1230 ol_enable_x_compile="$ol_arg"
1233 ol_enable_x_compile="no"
1235 # end --enable-x_compile
1237 # OpenLDAP --enable-dmalloc
1238 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1239 if test "${enable_dmalloc+set}" = set; then
1240 enableval="$enable_dmalloc"
1243 for ol_val in auto yes no ; do
1244 if test "$enableval" = "$ol_val" ; then
1248 if test "$ol_arg" = "invalid" ; then
1249 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1251 ol_enable_dmalloc="$ol_arg"
1254 ol_enable_dmalloc="no"
1256 # end --enable-dmalloc
1258 # OpenLDAP --with-cyrus_sasl
1259 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1260 if test "${with_cyrus_sasl+set}" = set; then
1261 withval="$with_cyrus_sasl"
1264 for ol_val in auto yes no ; do
1265 if test "$withval" = "$ol_val" ; then
1269 if test "$ol_arg" = "invalid" ; then
1270 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1272 ol_with_cyrus_sasl="$ol_arg"
1275 ol_with_cyrus_sasl="auto"
1277 # end --with-cyrus_sasl
1279 # OpenLDAP --with-fetch
1280 # Check whether --with-fetch or --without-fetch was given.
1281 if test "${with_fetch+set}" = set; then
1282 withval="$with_fetch"
1285 for ol_val in auto yes no ; do
1286 if test "$withval" = "$ol_val" ; then
1290 if test "$ol_arg" = "invalid" ; then
1291 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1293 ol_with_fetch="$ol_arg"
1296 ol_with_fetch="auto"
1300 # OpenLDAP --with-kerberos
1301 # Check whether --with-kerberos or --without-kerberos was given.
1302 if test "${with_kerberos+set}" = set; then
1303 withval="$with_kerberos"
1306 for ol_val in auto k5 k4 afs yes no ; do
1307 if test "$withval" = "$ol_val" ; then
1311 if test "$ol_arg" = "invalid" ; then
1312 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1314 ol_with_kerberos="$ol_arg"
1317 ol_with_kerberos="auto"
1319 # end --with-kerberos
1321 # OpenLDAP --with-readline
1322 # Check whether --with-readline or --without-readline was given.
1323 if test "${with_readline+set}" = set; then
1324 withval="$with_readline"
1327 for ol_val in auto yes no ; do
1328 if test "$withval" = "$ol_val" ; then
1332 if test "$ol_arg" = "invalid" ; then
1333 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1335 ol_with_readline="$ol_arg"
1338 ol_with_readline="auto"
1340 # end --with-readline
1342 # OpenLDAP --with-threads
1343 # Check whether --with-threads or --without-threads was given.
1344 if test "${with_threads+set}" = set; then
1345 withval="$with_threads"
1348 for ol_val in auto posix mach lwp yes no manual ; do
1349 if test "$withval" = "$ol_val" ; then
1353 if test "$ol_arg" = "invalid" ; then
1354 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1356 ol_with_threads="$ol_arg"
1359 ol_with_threads="auto"
1361 # end --with-threads
1363 # OpenLDAP --with-tls
1364 # Check whether --with-tls or --without-tls was given.
1365 if test "${with_tls+set}" = set; then
1369 for ol_val in auto ssleay openssl yes no ; do
1370 if test "$withval" = "$ol_val" ; then
1374 if test "$ol_arg" = "invalid" ; then
1375 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1377 ol_with_tls="$ol_arg"
1384 # OpenLDAP --with-yielding_select
1385 # Check whether --with-yielding_select or --without-yielding_select was given.
1386 if test "${with_yielding_select+set}" = set; then
1387 withval="$with_yielding_select"
1390 for ol_val in auto yes no manual ; do
1391 if test "$withval" = "$ol_val" ; then
1395 if test "$ol_arg" = "invalid" ; then
1396 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1398 ol_with_yielding_select="$ol_arg"
1401 ol_with_yielding_select="auto"
1403 # end --with-yielding_select
1407 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1408 if test "${with_xxldapdoptions+set}" = set; then
1409 withval="$with_xxldapdoptions"
1413 # OpenLDAP --enable-ldapd
1414 # Check whether --enable-ldapd or --disable-ldapd was given.
1415 if test "${enable_ldapd+set}" = set; then
1416 enableval="$enable_ldapd"
1419 for ol_val in auto yes no ; do
1420 if test "$enableval" = "$ol_val" ; then
1424 if test "$ol_arg" = "invalid" ; then
1425 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1427 ol_enable_ldapd="$ol_arg"
1430 ol_enable_ldapd="no"
1432 # end --enable-ldapd
1434 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1435 if test "${with_xxslapdoptions+set}" = set; then
1436 withval="$with_xxslapdoptions"
1440 # OpenLDAP --enable-slapd
1441 # Check whether --enable-slapd or --disable-slapd was given.
1442 if test "${enable_slapd+set}" = set; then
1443 enableval="$enable_slapd"
1446 for ol_val in auto yes no ; do
1447 if test "$enableval" = "$ol_val" ; then
1451 if test "$ol_arg" = "invalid" ; then
1452 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1454 ol_enable_slapd="$ol_arg"
1457 ol_enable_slapd="yes"
1459 # end --enable-slapd
1460 # OpenLDAP --enable-cleartext
1461 # Check whether --enable-cleartext or --disable-cleartext was given.
1462 if test "${enable_cleartext+set}" = set; then
1463 enableval="$enable_cleartext"
1466 for ol_val in auto yes no ; do
1467 if test "$enableval" = "$ol_val" ; then
1471 if test "$ol_arg" = "invalid" ; then
1472 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1474 ol_enable_cleartext="$ol_arg"
1477 ol_enable_cleartext="yes"
1479 # end --enable-cleartext
1480 # OpenLDAP --enable-crypt
1481 # Check whether --enable-crypt or --disable-crypt was given.
1482 if test "${enable_crypt+set}" = set; then
1483 enableval="$enable_crypt"
1486 for ol_val in auto yes no ; do
1487 if test "$enableval" = "$ol_val" ; then
1491 if test "$ol_arg" = "invalid" ; then
1492 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1494 ol_enable_crypt="$ol_arg"
1497 ol_enable_crypt="auto"
1499 # end --enable-crypt
1500 # OpenLDAP --enable-modules
1501 # Check whether --enable-modules or --disable-modules was given.
1502 if test "${enable_modules+set}" = set; then
1503 enableval="$enable_modules"
1506 for ol_val in auto yes no ; do
1507 if test "$enableval" = "$ol_val" ; then
1511 if test "$ol_arg" = "invalid" ; then
1512 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1514 ol_enable_modules="$ol_arg"
1517 ol_enable_modules="no"
1519 # end --enable-modules
1520 # OpenLDAP --enable-multimaster
1521 # Check whether --enable-multimaster or --disable-multimaster was given.
1522 if test "${enable_multimaster+set}" = set; then
1523 enableval="$enable_multimaster"
1526 for ol_val in auto yes no ; do
1527 if test "$enableval" = "$ol_val" ; then
1531 if test "$ol_arg" = "invalid" ; then
1532 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1534 ol_enable_multimaster="$ol_arg"
1537 ol_enable_multimaster="no"
1539 # end --enable-multimaster
1540 # OpenLDAP --enable-phonetic
1541 # Check whether --enable-phonetic or --disable-phonetic was given.
1542 if test "${enable_phonetic+set}" = set; then
1543 enableval="$enable_phonetic"
1546 for ol_val in auto yes no ; do
1547 if test "$enableval" = "$ol_val" ; then
1551 if test "$ol_arg" = "invalid" ; then
1552 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1554 ol_enable_phonetic="$ol_arg"
1557 ol_enable_phonetic="no"
1559 # end --enable-phonetic
1560 # OpenLDAP --enable-quipu
1561 # Check whether --enable-quipu or --disable-quipu was given.
1562 if test "${enable_quipu+set}" = set; then
1563 enableval="$enable_quipu"
1566 for ol_val in auto yes no ; do
1567 if test "$enableval" = "$ol_val" ; then
1571 if test "$ol_arg" = "invalid" ; then
1572 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1574 ol_enable_quipu="$ol_arg"
1577 ol_enable_quipu="no"
1579 # end --enable-quipu
1580 # OpenLDAP --enable-rlookups
1581 # Check whether --enable-rlookups or --disable-rlookups was given.
1582 if test "${enable_rlookups+set}" = set; then
1583 enableval="$enable_rlookups"
1586 for ol_val in auto yes no ; do
1587 if test "$enableval" = "$ol_val" ; then
1591 if test "$ol_arg" = "invalid" ; then
1592 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1594 ol_enable_rlookups="$ol_arg"
1597 ol_enable_rlookups="auto"
1599 # end --enable-rlookups
1600 # OpenLDAP --enable-wrappers
1601 # Check whether --enable-wrappers or --disable-wrappers was given.
1602 if test "${enable_wrappers+set}" = set; then
1603 enableval="$enable_wrappers"
1606 for ol_val in auto yes no ; do
1607 if test "$enableval" = "$ol_val" ; then
1611 if test "$ol_arg" = "invalid" ; then
1612 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1614 ol_enable_wrappers="$ol_arg"
1617 ol_enable_wrappers="no"
1619 # end --enable-wrappers
1621 # OpenLDAP --enable-bdb2
1622 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1623 if test "${enable_bdb2+set}" = set; then
1624 enableval="$enable_bdb2"
1627 for ol_val in auto yes no ; do
1628 if test "$enableval" = "$ol_val" ; then
1632 if test "$ol_arg" = "invalid" ; then
1633 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1635 ol_enable_bdb2="$ol_arg"
1641 # OpenLDAP --with-bdb2_module
1642 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1643 if test "${with_bdb2_module+set}" = set; then
1644 withval="$with_bdb2_module"
1647 for ol_val in static dynamic ; do
1648 if test "$withval" = "$ol_val" ; then
1652 if test "$ol_arg" = "invalid" ; then
1653 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1655 ol_with_bdb2_module="$ol_arg"
1658 ol_with_bdb2_module="static"
1660 # end --with-bdb2_module
1662 # OpenLDAP --enable-ldap
1663 # Check whether --enable-ldap or --disable-ldap was given.
1664 if test "${enable_ldap+set}" = set; then
1665 enableval="$enable_ldap"
1668 for ol_val in auto yes no ; do
1669 if test "$enableval" = "$ol_val" ; then
1673 if test "$ol_arg" = "invalid" ; then
1674 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1676 ol_enable_ldap="$ol_arg"
1682 # OpenLDAP --with-ldap_module
1683 # Check whether --with-ldap_module or --without-ldap_module was given.
1684 if test "${with_ldap_module+set}" = set; then
1685 withval="$with_ldap_module"
1688 for ol_val in static dynamic ; do
1689 if test "$withval" = "$ol_val" ; then
1693 if test "$ol_arg" = "invalid" ; then
1694 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1696 ol_with_ldap_module="$ol_arg"
1699 ol_with_ldap_module="static"
1701 # end --with-ldap_module
1703 # OpenLDAP --enable-ldbm
1704 # Check whether --enable-ldbm or --disable-ldbm was given.
1705 if test "${enable_ldbm+set}" = set; then
1706 enableval="$enable_ldbm"
1709 for ol_val in auto yes no ; do
1710 if test "$enableval" = "$ol_val" ; then
1714 if test "$ol_arg" = "invalid" ; then
1715 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1717 ol_enable_ldbm="$ol_arg"
1720 ol_enable_ldbm="yes"
1723 # OpenLDAP --with-ldbm_module
1724 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1725 if test "${with_ldbm_module+set}" = set; then
1726 withval="$with_ldbm_module"
1729 for ol_val in static dynamic ; do
1730 if test "$withval" = "$ol_val" ; then
1734 if test "$ol_arg" = "invalid" ; then
1735 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1737 ol_with_ldbm_module="$ol_arg"
1740 ol_with_ldbm_module="static"
1742 # end --with-ldbm_module
1744 # OpenLDAP --with-ldbm_api
1745 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1746 if test "${with_ldbm_api+set}" = set; then
1747 withval="$with_ldbm_api"
1750 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1751 if test "$withval" = "$ol_val" ; then
1755 if test "$ol_arg" = "invalid" ; then
1756 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1758 ol_with_ldbm_api="$ol_arg"
1761 ol_with_ldbm_api="auto"
1763 # end --with-ldbm_api
1765 # OpenLDAP --with-ldbm_type
1766 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1767 if test "${with_ldbm_type+set}" = set; then
1768 withval="$with_ldbm_type"
1771 for ol_val in auto btree hash ; do
1772 if test "$withval" = "$ol_val" ; then
1776 if test "$ol_arg" = "invalid" ; then
1777 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1779 ol_with_ldbm_type="$ol_arg"
1782 ol_with_ldbm_type="auto"
1784 # end --with-ldbm_type
1787 # OpenLDAP --enable-passwd
1788 # Check whether --enable-passwd or --disable-passwd was given.
1789 if test "${enable_passwd+set}" = set; then
1790 enableval="$enable_passwd"
1793 for ol_val in auto yes no ; do
1794 if test "$enableval" = "$ol_val" ; then
1798 if test "$ol_arg" = "invalid" ; then
1799 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1801 ol_enable_passwd="$ol_arg"
1804 ol_enable_passwd="no"
1806 # end --enable-passwd
1807 # OpenLDAP --with-passwd_module
1808 # Check whether --with-passwd_module or --without-passwd_module was given.
1809 if test "${with_passwd_module+set}" = set; then
1810 withval="$with_passwd_module"
1813 for ol_val in static dynamic ; do
1814 if test "$withval" = "$ol_val" ; then
1818 if test "$ol_arg" = "invalid" ; then
1819 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1821 ol_with_passwd_module="$ol_arg"
1824 ol_with_passwd_module="static"
1826 # end --with-passwd_module
1828 # OpenLDAP --enable-perl
1829 # Check whether --enable-perl or --disable-perl was given.
1830 if test "${enable_perl+set}" = set; then
1831 enableval="$enable_perl"
1834 for ol_val in auto yes no ; do
1835 if test "$enableval" = "$ol_val" ; then
1839 if test "$ol_arg" = "invalid" ; then
1840 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1842 ol_enable_perl="$ol_arg"
1848 # OpenLDAP --with-perl_module
1849 # Check whether --with-perl_module or --without-perl_module was given.
1850 if test "${with_perl_module+set}" = set; then
1851 withval="$with_perl_module"
1854 for ol_val in static dynamic ; do
1855 if test "$withval" = "$ol_val" ; then
1859 if test "$ol_arg" = "invalid" ; then
1860 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1862 ol_with_perl_module="$ol_arg"
1865 ol_with_perl_module="static"
1867 # end --with-perl_module
1869 # OpenLDAP --enable-shell
1870 # Check whether --enable-shell or --disable-shell was given.
1871 if test "${enable_shell+set}" = set; then
1872 enableval="$enable_shell"
1875 for ol_val in auto yes no ; do
1876 if test "$enableval" = "$ol_val" ; then
1880 if test "$ol_arg" = "invalid" ; then
1881 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1883 ol_enable_shell="$ol_arg"
1886 ol_enable_shell="no"
1888 # end --enable-shell
1889 # OpenLDAP --with-shell_module
1890 # Check whether --with-shell_module or --without-shell_module was given.
1891 if test "${with_shell_module+set}" = set; then
1892 withval="$with_shell_module"
1895 for ol_val in static dynamic ; do
1896 if test "$withval" = "$ol_val" ; then
1900 if test "$ol_arg" = "invalid" ; then
1901 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1903 ol_with_shell_module="$ol_arg"
1906 ol_with_shell_module="static"
1908 # end --with-shell_module
1910 # OpenLDAP --enable-tcl
1911 # Check whether --enable-tcl or --disable-tcl was given.
1912 if test "${enable_tcl+set}" = set; then
1913 enableval="$enable_tcl"
1916 for ol_val in auto yes no ; do
1917 if test "$enableval" = "$ol_val" ; then
1921 if test "$ol_arg" = "invalid" ; then
1922 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1924 ol_enable_tcl="$ol_arg"
1930 # OpenLDAP --with-tcl_module
1931 # Check whether --with-tcl_module or --without-tcl_module was given.
1932 if test "${with_tcl_module+set}" = set; then
1933 withval="$with_tcl_module"
1936 for ol_val in static dynamic ; do
1937 if test "$withval" = "$ol_val" ; then
1941 if test "$ol_arg" = "invalid" ; then
1942 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
1944 ol_with_tcl_module="$ol_arg"
1947 ol_with_tcl_module="static"
1949 # end --with-tcl_module
1952 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1953 if test "${with_xxslurpdoptions+set}" = set; then
1954 withval="$with_xxslurpdoptions"
1958 # OpenLDAP --enable-slurpd
1959 # Check whether --enable-slurpd or --disable-slurpd was given.
1960 if test "${enable_slurpd+set}" = set; then
1961 enableval="$enable_slurpd"
1964 for ol_val in auto yes no ; do
1965 if test "$enableval" = "$ol_val" ; then
1969 if test "$ol_arg" = "invalid" ; then
1970 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1972 ol_enable_slurpd="$ol_arg"
1975 ol_enable_slurpd="auto"
1977 # end --enable-slurpd
1979 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1980 if test "${with_xxliboptions+set}" = set; then
1981 withval="$with_xxliboptions"
1985 # Check whether --enable-static or --disable-static was given.
1986 if test "${enable_static+set}" = set; then
1987 enableval="$enable_static"
1988 p=${PACKAGE-default}
1989 case "$enableval" in
1990 yes) enable_static=yes ;;
1991 no) enable_static=no ;;
1994 # Look at the argument we got. We use all the common list separators.
1995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1996 for pkg in $enableval; do
1997 if test "X$pkg" = "X$p"; then
2008 # Check whether --enable-shared or --disable-shared was given.
2009 if test "${enable_shared+set}" = set; then
2010 enableval="$enable_shared"
2011 p=${PACKAGE-default}
2012 case "$enableval" in
2013 yes) enable_shared=yes ;;
2014 no) enable_shared=no ;;
2017 # Look at the argument we got. We use all the common list separators.
2018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2019 for pkg in $enableval; do
2020 if test "X$pkg" = "X$p"; then
2033 if test $ol_enable_dns = yes ; then
2034 if test $ol_enable_referrals = no ; then
2035 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2037 if test $ol_enable_referrals = auto ; then
2038 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2039 ol_enable_referrals=yes
2043 if test $ol_enable_slapd = no ; then
2044 if test $ol_enable_bdb2 = yes ; then
2045 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2047 if test $ol_enable_ldap = yes ; then
2048 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2050 if test $ol_enable_ldbm = yes ; then
2051 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2053 if test $ol_enable_passwd = yes ; then
2054 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2056 if test $ol_enable_perl = yes ; then
2057 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2059 if test $ol_enable_shell = yes ; then
2060 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2062 if test $ol_enable_tcl = yes ; then
2063 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2065 if test $ol_enable_modules = yes ; then
2066 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2068 if test $ol_enable_multimaster = yes ; then
2069 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2071 if test $ol_enable_wrappers = yes ; then
2072 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2074 if test $ol_enable_phonetic = yes ; then
2075 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2077 if test $ol_enable_quipu = yes ; then
2078 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2080 if test $ol_enable_rlookups = yes ; then
2081 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2083 if test $ol_with_ldbm_api != auto ; then
2084 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2086 if test $ol_with_ldbm_type != auto ; then
2087 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2089 if test $ol_with_bdb2_module != static ; then
2090 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2092 if test $ol_with_ldap_module != static ; then
2093 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2095 if test $ol_with_ldbm_module != static ; then
2096 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2098 if test $ol_with_passwd_module != static ; then
2099 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2101 if test $ol_with_perl_module != static ; then
2102 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2104 if test $ol_with_shell_module != static ; then
2105 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2107 if test $ol_with_tcl_module != static ; then
2108 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2110 if test $ol_enable_slurpd = yes ; then
2111 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2114 # force settings to no
2123 ol_enable_modules=no
2124 ol_enable_multimaster=no
2125 ol_enable_phonetic=no
2127 ol_enable_rlookups=no
2128 ol_enable_wrappers=no
2131 ol_with_ldbm_type=no
2133 ol_with_bdb2_module=static
2134 ol_with_ldap_module=static
2135 ol_with_ldbm_module=static
2136 ol_with_passwd_module=static
2137 ol_with_perl_module=static
2138 ol_with_shell_module=static
2139 ol_with_tcl_module=static
2143 elif test $ol_enable_ldbm = no ; then
2145 if test $ol_with_ldbm_api != auto ; then
2146 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2149 if test $ol_with_ldbm_type != auto ; then
2150 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2153 if test $ol_with_ldbm_module != static ; then
2154 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2157 if test $ol_enable_bdb2 = yes ; then
2158 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2161 if test $ol_enable_modules != yes -a \
2162 $ol_enable_ldap = no -a \
2163 $ol_enable_passwd = no -a \
2164 $ol_enable_perl = no -a \
2165 $ol_enable_shell = no -a \
2166 $ol_enable_tcl = no ; then
2167 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2171 ol_with_ldbm_type=no
2172 ol_with_ldbm_module=static
2174 elif test $ol_enable_bdb2 = yes ; then
2176 if test $ol_with_ldbm_api != auto -a \
2177 $ol_with_ldbm_api != db2 ; then
2178 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2181 ol_with_ldbm_api=db2
2185 if test $ol_enable_bdb2 != no ; then
2186 if test $ol_with_ldbm_api != auto -a \
2187 $ol_with_ldbm_api != db2 ; then
2188 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2193 if test $ol_with_ldbm_api = gdbm -a \
2194 $ol_with_ldbm_type = btree ; then
2195 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2197 if test $ol_with_ldbm_api = mdbm -a \
2198 $ol_with_ldbm_type = btree ; then
2199 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2201 if test $ol_with_ldbm_api = ndbm -a \
2202 $ol_with_ldbm_type = btree ; then
2203 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2207 if test $ol_enable_slurpd = yes ; then
2208 if test $ol_with_threads = no ; then
2209 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2213 echo "$ac_t""done" 1>&6
2240 BUILD_BDB2_DYNAMIC=static
2241 BUILD_LDAP_DYNAMIC=static
2242 BUILD_LDBM_DYNAMIC=static
2243 BUILD_PASSWD_DYNAMIC=static
2244 BUILD_PERL_DYNAMIC=static
2245 BUILD_SHELL_DYNAMIC=static
2246 BUILD_TCL_DYNAMIC=static
2248 SLAPD_MODULES_LDFLAGS=
2249 SLAPD_MODULES_CPPFLAGS=
2253 SLAPD_PERL_CPPFLAGS=
2264 cat >> confdefs.h <<\EOF
2265 #define HAVE_MKVERSION 1
2274 *-*-aix*) if test -z "$CC" ; then
2275 case "$ol_with_threads" in
2276 auto | yes | posix) ol_aix_threads=yes ;;
2282 if test $ol_aix_threads = yes ; then
2283 if test -z "${CC}" ; then
2284 for ac_prog in cc_r xlc_r cc
2286 # Extract the first word of "$ac_prog", so it can be a program name with args.
2287 set dummy $ac_prog; ac_word=$2
2288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_word" >&5
2290 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 if test -n "$CC"; then
2294 ac_cv_prog_CC="$CC" # Let the user override the test.
2296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2298 for ac_dir in $ac_dummy; do
2299 test -z "$ac_dir" && ac_dir=.
2300 if test -f $ac_dir/$ac_word; then
2301 ac_cv_prog_CC="$ac_prog"
2309 if test -n "$CC"; then
2310 echo "$ac_t""$CC" 1>&6
2312 echo "$ac_t""no" 1>&6
2315 test -n "$CC" && break
2319 if test "$CC" = cc ; then
2320 if test $ol_with_threads != auto ; then
2321 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2323 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2329 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2330 ol_with_threads=posix
2331 ol_cv_pthread_create=yes
2335 if test -z "${CC}"; then
2338 # Extract the first word of "$ac_prog", so it can be a program name with args.
2339 set dummy $ac_prog; ac_word=$2
2340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2341 echo "configure:2342: checking for $ac_word" >&5
2342 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2350 for ac_dir in $ac_dummy; do
2351 test -z "$ac_dir" && ac_dir=.
2352 if test -f $ac_dir/$ac_word; then
2353 ac_cv_prog_CC="$ac_prog"
2361 if test -n "$CC"; then
2362 echo "$ac_t""$CC" 1>&6
2364 echo "$ac_t""no" 1>&6
2367 test -n "$CC" && break
2374 # Check whether --enable-fast-install or --disable-fast-install was given.
2375 if test "${enable_fast_install+set}" = set; then
2376 enableval="$enable_fast_install"
2377 p=${PACKAGE-default}
2378 case "$enableval" in
2379 yes) enable_fast_install=yes ;;
2380 no) enable_fast_install=no ;;
2382 enable_fast_install=no
2383 # Look at the argument we got. We use all the common list separators.
2384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2385 for pkg in $enableval; do
2386 if test "X$pkg" = "X$p"; then
2387 enable_fast_install=yes
2394 enable_fast_install=yes
2397 # Extract the first word of "ranlib", so it can be a program name with args.
2398 set dummy ranlib; ac_word=$2
2399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2400 echo "configure:2401: checking for $ac_word" >&5
2401 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 if test -n "$RANLIB"; then
2405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2409 for ac_dir in $ac_dummy; do
2410 test -z "$ac_dir" && ac_dir=.
2411 if test -f $ac_dir/$ac_word; then
2412 ac_cv_prog_RANLIB="ranlib"
2417 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2420 RANLIB="$ac_cv_prog_RANLIB"
2421 if test -n "$RANLIB"; then
2422 echo "$ac_t""$RANLIB" 1>&6
2424 echo "$ac_t""no" 1>&6
2427 # Extract the first word of "gcc", so it can be a program name with args.
2428 set dummy gcc; ac_word=$2
2429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_word" >&5
2431 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2439 for ac_dir in $ac_dummy; do
2440 test -z "$ac_dir" && ac_dir=.
2441 if test -f $ac_dir/$ac_word; then
2450 if test -n "$CC"; then
2451 echo "$ac_t""$CC" 1>&6
2453 echo "$ac_t""no" 1>&6
2456 if test -z "$CC"; then
2457 # Extract the first word of "cc", so it can be a program name with args.
2458 set dummy cc; ac_word=$2
2459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2460 echo "configure:2461: checking for $ac_word" >&5
2461 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2470 for ac_dir in $ac_dummy; do
2471 test -z "$ac_dir" && ac_dir=.
2472 if test -f $ac_dir/$ac_word; then
2473 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2474 ac_prog_rejected=yes
2482 if test $ac_prog_rejected = yes; then
2483 # We found a bogon in the path, so make sure we never use it.
2484 set dummy $ac_cv_prog_CC
2486 if test $# -gt 0; then
2487 # We chose a different compiler from the bogus one.
2488 # However, it has the same basename, so the bogon will be chosen
2489 # first if we set CC to just the basename; use the full file name.
2491 set dummy "$ac_dir/$ac_word" "$@"
2499 if test -n "$CC"; then
2500 echo "$ac_t""$CC" 1>&6
2502 echo "$ac_t""no" 1>&6
2505 if test -z "$CC"; then
2506 case "`uname -s`" in
2508 # Extract the first word of "cl", so it can be a program name with args.
2509 set dummy cl; ac_word=$2
2510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2511 echo "configure:2512: checking for $ac_word" >&5
2512 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 if test -n "$CC"; then
2516 ac_cv_prog_CC="$CC" # Let the user override the test.
2518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2520 for ac_dir in $ac_dummy; do
2521 test -z "$ac_dir" && ac_dir=.
2522 if test -f $ac_dir/$ac_word; then
2531 if test -n "$CC"; then
2532 echo "$ac_t""$CC" 1>&6
2534 echo "$ac_t""no" 1>&6
2539 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2542 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2543 echo "configure:2544: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2549 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2550 cross_compiling=$ac_cv_prog_cc_cross
2552 cat > conftest.$ac_ext << EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2559 if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2560 ac_cv_prog_cc_works=yes
2561 # If we can't run a trivial program, we are probably using a cross compiler.
2562 if (./conftest; exit) 2>/dev/null; then
2563 ac_cv_prog_cc_cross=no
2565 ac_cv_prog_cc_cross=yes
2568 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2570 ac_cv_prog_cc_works=no
2574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2578 cross_compiling=$ac_cv_prog_cc_cross
2580 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2581 if test $ac_cv_prog_cc_works = no; then
2582 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2584 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2585 echo "configure:2586: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2586 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2587 cross_compiling=$ac_cv_prog_cc_cross
2589 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2590 echo "configure:2591: checking whether we are using GNU C" >&5
2591 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2594 cat > conftest.c <<EOF
2599 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2606 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2608 if test $ac_cv_prog_gcc = yes; then
2614 ac_test_CFLAGS="${CFLAGS+set}"
2615 ac_save_CFLAGS="$CFLAGS"
2617 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2618 echo "configure:2619: checking whether ${CC-cc} accepts -g" >&5
2619 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 echo 'void f(){}' > conftest.c
2623 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2632 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2633 if test "$ac_test_CFLAGS" = set; then
2634 CFLAGS="$ac_save_CFLAGS"
2635 elif test $ac_cv_prog_cc_g = yes; then
2636 if test "$GCC" = yes; then
2642 if test "$GCC" = yes; then
2649 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2650 if test "${with_gnu_ld+set}" = set; then
2651 withval="$with_gnu_ld"
2652 test "$withval" = no || with_gnu_ld=yes
2658 if test "$ac_cv_prog_gcc" = yes; then
2659 # Check if gcc -print-prog-name=ld gives a path.
2660 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2661 echo "configure:2662: checking for ld used by GCC" >&5
2662 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2664 # Accept absolute paths.
2665 [\\/]* | [A-Za-z]:[\\/]*)
2666 re_direlt='/[^/][^/]*/\.\./'
2667 # Canonicalize the path of ld
2668 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2669 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2670 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2672 test -z "$LD" && LD="$ac_prog"
2675 # If it fails, then pretend we aren't using GCC.
2679 # If it is relative, then search for the first ld in PATH.
2683 elif test "$with_gnu_ld" = yes; then
2684 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2685 echo "configure:2686: checking for GNU ld" >&5
2687 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2688 echo "configure:2689: checking for non-GNU ld" >&5
2690 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 if test -z "$LD"; then
2694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2695 for ac_dir in $PATH; do
2696 test -z "$ac_dir" && ac_dir=.
2697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2698 ac_cv_path_LD="$ac_dir/$ac_prog"
2699 # Check to see if the program is GNU ld. I'd rather use --version,
2700 # but apparently some GNU ld's only accept -v.
2701 # Break only if it was the GNU/non-GNU ld that we prefer.
2702 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2703 test "$with_gnu_ld" != no && break
2705 test "$with_gnu_ld" != yes && break
2711 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2716 if test -n "$LD"; then
2717 echo "$ac_t""$LD" 1>&6
2719 echo "$ac_t""no" 1>&6
2721 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2723 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2724 echo "configure:2725: checking if the linker ($LD) is GNU ld" >&5
2725 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2729 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2730 ac_cv_prog_gnu_ld=yes
2732 ac_cv_prog_gnu_ld=no
2736 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2739 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2740 echo "configure:2741: checking for BSD-compatible nm" >&5
2741 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 if test -n "$NM"; then
2745 # Let the user override the test.
2748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2749 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2750 test -z "$ac_dir" && ac_dir=.
2751 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2752 # Check to see if the nm accepts a BSD-compat flag.
2753 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2754 # nm: unknown option "B" ignored
2755 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2756 ac_cv_path_NM="$ac_dir/nm -B"
2758 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2759 ac_cv_path_NM="$ac_dir/nm -p"
2762 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2763 continue # so that we can try to find one that supports BSD flags
2768 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2773 echo "$ac_t""$NM" 1>&6
2776 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2777 echo "configure:2778: checking whether ln -s works" >&5
2778 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2782 if ln -s X conftestdata 2>/dev/null
2785 ac_cv_prog_LN_S="ln -s"
2790 LN_S="$ac_cv_prog_LN_S"
2791 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2792 echo "$ac_t""yes" 1>&6
2794 echo "$ac_t""no" 1>&6
2798 # Check for any special flags to pass to ltconfig.
2799 libtool_flags="--cache-file=$cache_file"
2800 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2801 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2802 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2803 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2804 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2805 libtool_flags="$libtool_flags --enable-dlopen"
2807 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2808 if test "${enable_libtool_lock+set}" = set; then
2809 enableval="$enable_libtool_lock"
2813 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2814 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2816 # Some flags need to be propagated to the compiler or linker for good
2820 # Find out which ABI we are using.
2821 echo '#line 2822 "configure"' > conftest.$ac_ext
2822 if { (eval echo configure:2823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2823 case "`/usr/bin/file conftest.o`" in
2839 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2840 SAVE_CFLAGS="$CFLAGS"
2841 CFLAGS="$CFLAGS -belf"
2842 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2843 echo "configure:2844: checking whether the C compiler needs -belf" >&5
2844 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2847 cat > conftest.$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2855 if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2857 lt_cv_cc_needs_belf=yes
2859 echo "configure: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2862 lt_cv_cc_needs_belf=no
2867 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2868 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2869 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2870 CFLAGS="$SAVE_CFLAGS"
2878 # Save cache, so that ltconfig can load it
2881 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2882 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2883 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2884 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2885 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2886 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2887 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2888 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2890 # Reload cache, that may have been modified by ltconfig
2893 # This can be used to rebuild libtool when needed
2894 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2896 # Always use our own libtool.
2897 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2899 # Redirect the config.log output again, so that the ltconfig log is not
2900 # clobbered by the next message.
2901 exec 5>>./config.log
2904 for ac_prog in mawk gawk nawk awk
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907 set dummy $ac_prog; ac_word=$2
2908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2909 echo "configure:2910: checking for $ac_word" >&5
2910 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2913 if test -n "$AWK"; then
2914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2918 for ac_dir in $ac_dummy; do
2919 test -z "$ac_dir" && ac_dir=.
2920 if test -f $ac_dir/$ac_word; then
2921 ac_cv_prog_AWK="$ac_prog"
2928 AWK="$ac_cv_prog_AWK"
2929 if test -n "$AWK"; then
2930 echo "$ac_t""$AWK" 1>&6
2932 echo "$ac_t""no" 1>&6
2935 test -n "$AWK" && break
2938 # test for ln hardlink support
2939 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2940 echo "configure:2941: checking whether ln works" >&5
2941 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2944 rm -f conftest.src conftest.dst
2945 echo "conftest" > conftest.src
2946 if ln conftest.src conftest.dst 2>/dev/null
2948 ol_cv_prog_LN_H="ln"
2950 ol_cv_prog_LN_H="cp"
2952 rm -f conftest.src conftest.dst
2955 LN_H="$ol_cv_prog_LN_H"
2956 if test "$ol_cv_prog_LN_H" = "ln"; then
2957 echo "$ac_t""yes" 1>&6
2959 echo "$ac_t""no" 1>&6
2962 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2963 echo "configure:2964: checking whether ln -s works" >&5
2964 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2968 if ln -s X conftestdata 2>/dev/null
2971 ac_cv_prog_LN_S="ln -s"
2976 LN_S="$ac_cv_prog_LN_S"
2977 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2978 echo "$ac_t""yes" 1>&6
2980 echo "$ac_t""no" 1>&6
2984 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2988 # Extract the first word of "sendmail", so it can be a program name with args.
2989 set dummy sendmail; ac_word=$2
2990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2991 echo "configure:2992: checking for $ac_word" >&5
2992 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2997 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3000 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3004 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3005 for ac_dir in $ac_dummy; do
3006 test -z "$ac_dir" && ac_dir=.
3007 if test -f $ac_dir/$ac_word; then
3008 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3013 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3017 SENDMAIL="$ac_cv_path_SENDMAIL"
3018 if test -n "$SENDMAIL"; then
3019 echo "$ac_t""$SENDMAIL" 1>&6
3021 echo "$ac_t""no" 1>&6
3024 # Extract the first word of "vi", so it can be a program name with args.
3025 set dummy vi; ac_word=$2
3026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_word" >&5
3028 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3033 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3036 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3040 ac_dummy="$PATH:/usr/ucb"
3041 for ac_dir in $ac_dummy; do
3042 test -z "$ac_dir" && ac_dir=.
3043 if test -f $ac_dir/$ac_word; then
3044 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3049 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3053 EDITOR="$ac_cv_path_EDITOR"
3054 if test -n "$EDITOR"; then
3055 echo "$ac_t""$EDITOR" 1>&6
3057 echo "$ac_t""no" 1>&6
3060 # Extract the first word of "finger", so it can be a program name with args.
3061 set dummy finger; ac_word=$2
3062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3063 echo "configure:3064: checking for $ac_word" >&5
3064 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3069 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3072 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3076 ac_dummy="$PATH:/usr/ucb"
3077 for ac_dir in $ac_dummy; do
3078 test -z "$ac_dir" && ac_dir=.
3079 if test -f $ac_dir/$ac_word; then
3080 ac_cv_path_FINGER="$ac_dir/$ac_word"
3085 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3089 FINGER="$ac_cv_path_FINGER"
3090 if test -n "$FINGER"; then
3091 echo "$ac_t""$FINGER" 1>&6
3093 echo "$ac_t""no" 1>&6
3098 if test $ol_enable_perl != no ; then
3099 # Extract the first word of "perl", so it can be a program name with args.
3100 set dummy perl; ac_word=$2
3101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3102 echo "configure:3103: checking for $ac_word" >&5
3103 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3108 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3111 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3116 for ac_dir in $ac_dummy; do
3117 test -z "$ac_dir" && ac_dir=.
3118 if test -f $ac_dir/$ac_word; then
3119 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3124 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3128 PERLBIN="$ac_cv_path_PERLBIN"
3129 if test -n "$PERLBIN"; then
3130 echo "$ac_t""$PERLBIN" 1>&6
3132 echo "$ac_t""no" 1>&6
3136 if test "no$PERLBIN" = "no" ; then
3137 if test $ol_enable_perl = yes ; then
3138 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3142 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3143 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3149 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3150 echo "configure:3151: checking how to run the C preprocessor" >&5
3151 # On Suns, sometimes $CPP names a directory.
3152 if test -n "$CPP" && test -d "$CPP"; then
3155 if test -z "$CPP"; then
3156 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 # This must be in double quotes, not single quotes, because CPP may get
3160 # substituted into the Makefile and "${CC-cc}" will confuse make.
3162 # On the NeXT, cc -E runs the code through the compiler's parser,
3163 # not just through cpp.
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3171 { (eval echo configure:3172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3173 if test -z "$ac_err"; then
3177 echo "configure: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3180 CPP="${CC-cc} -E -traditional-cpp"
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3188 { (eval echo configure:3189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3190 if test -z "$ac_err"; then
3194 echo "configure: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3197 CPP="${CC-cc} -nologo -E"
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3205 { (eval echo configure:3206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3207 if test -z "$ac_err"; then
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3221 ac_cv_prog_CPP="$CPP"
3223 CPP="$ac_cv_prog_CPP"
3225 ac_cv_prog_CPP="$CPP"
3227 echo "$ac_t""$CPP" 1>&6
3230 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3231 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3233 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3234 echo "configure: warning: programs compiled here do run here..." 1>&2
3235 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3237 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3238 echo "configure: warning: programs compiled here do not run here..." 1>&2
3239 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3242 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3243 echo "configure:3244: checking for AIX" >&5
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3253 egrep "yes" >/dev/null 2>&1; then
3255 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3256 #define _ALL_SOURCE 1
3261 echo "$ac_t""no" 1>&6
3266 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3267 echo "configure:3268: checking for POSIXized ISC" >&5
3268 if test -d /etc/conf/kconfig.d &&
3269 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3271 echo "$ac_t""yes" 1>&6
3272 ISC=yes # If later tests want to check for ISC.
3273 cat >> confdefs.h <<\EOF
3274 #define _POSIX_SOURCE 1
3277 if test "$GCC" = yes; then
3283 echo "$ac_t""no" 1>&6
3287 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3288 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3289 echo "configure:3290: checking for minix/config.h" >&5
3290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 #include <minix/config.h>
3298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3299 { (eval echo configure:3300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3301 if test -z "$ac_err"; then
3303 eval "ac_cv_header_$ac_safe=yes"
3306 echo "configure: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3309 eval "ac_cv_header_$ac_safe=no"
3313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3314 echo "$ac_t""yes" 1>&6
3317 echo "$ac_t""no" 1>&6
3321 if test "$MINIX" = yes; then
3322 cat >> confdefs.h <<\EOF
3323 #define _POSIX_SOURCE 1
3326 cat >> confdefs.h <<\EOF
3327 #define _POSIX_1_SOURCE 2
3330 cat >> confdefs.h <<\EOF
3337 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3338 echo "configure:3339: checking for Cygwin environment" >&5
3339 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3342 cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3349 #define __CYGWIN__ __CYGWIN32__
3354 if { (eval echo configure:3355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3367 echo "$ac_t""$ac_cv_cygwin" 1>&6
3369 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3370 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3371 echo "configure:3372: checking for mingw32 environment" >&5
3372 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3383 if { (eval echo configure:3384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3396 echo "$ac_t""$ac_cv_mingw32" 1>&6
3398 test "$ac_cv_mingw32" = yes && MINGW32=yes
3401 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3402 echo "configure:3403: checking for executable suffix" >&5
3403 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3410 echo 'int main () { return 0; }' > conftest.$ac_ext
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3413 for file in conftest.*; do
3415 *.c | *.o | *.obj) ;;
3416 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3420 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3423 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3428 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3429 echo "$ac_t""${ac_cv_exeext}" 1>&6
3432 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3433 echo "configure:3434: checking for object suffix" >&5
3434 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3438 echo 'int i = 1;' > conftest.$ac_ext
3439 if { (eval echo configure:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3440 for ac_file in conftest.*; do
3443 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3447 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3452 echo "$ac_t""$ac_cv_objext" 1>&6
3453 OBJEXT=$ac_cv_objext
3454 ac_objext=$ac_cv_objext
3457 cat >> confdefs.h <<EOF
3458 #define EXEEXT "${EXEEXT}"
3462 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3463 echo "configure:3464: checking for be_app in -lbe" >&5
3464 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
3465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 ac_save_LIBS="$LIBS"
3469 LIBS="-lbe -lroot -lnet $LIBS"
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 /* Override any gcc2 internal prototype to avoid an error. */
3474 /* We use char because int might match the return type of a gcc2
3475 builtin and then its argument prototype would still apply. */
3482 if { (eval echo configure:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3484 eval "ac_cv_lib_$ac_lib_var=yes"
3486 echo "configure: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3489 eval "ac_cv_lib_$ac_lib_var=no"
3492 LIBS="$ac_save_LIBS"
3495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 LIBS="$LIBS -lbe -lroot -lnet"
3499 echo "$ac_t""no" 1>&6
3507 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3508 echo "configure:3509: checking for ${CC-cc} option to accept ANSI C" >&5
3509 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 am_cv_prog_cc_stdc=no
3514 # Don't try gcc -ansi; that turns off useful extensions and
3515 # breaks some systems' header files.
3516 # AIX -qlanglvl=ansi
3517 # Ultrix and OSF/1 -std1
3518 # HP-UX 10.20 and later -Ae
3519 # HP-UX older versions -Aa -D_HPUX_SOURCE
3520 # SVR4 -Xc -D__EXTENSIONS__
3521 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3523 CC="$ac_save_CC $ac_arg"
3524 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3529 #include <sys/types.h>
3530 #include <sys/stat.h>
3531 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3532 struct buf { int x; };
3533 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3534 static char *e (p, i)
3540 static char *f (char * (*g) (char **, int), char **p, ...)
3545 s = g (p, va_arg (v,int));
3549 int test (int i, double x);
3550 struct s1 {int (*f) (int a);};
3551 struct s2 {int (*f) (double a);};
3552 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3558 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3562 if { (eval echo configure:3563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3564 am_cv_prog_cc_stdc="$ac_arg"; break
3566 echo "configure: failed program was:" >&5
3567 cat conftest.$ac_ext >&5
3575 if test -z "$am_cv_prog_cc_stdc"; then
3576 echo "$ac_t""none needed" 1>&6
3578 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3580 case "x$am_cv_prog_cc_stdc" in
3582 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3585 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3586 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3589 # test for make depend flag
3592 if test -z "${MKDEP}"; then
3594 if test -z "${MKDEP_FLAGS}"; then
3595 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3596 echo "configure:3597: checking for ${OL_MKDEP} depend flag" >&5
3597 if eval "test \"`echo '$''{'ol_cv_mkdep'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3602 for flag in "-M" "-xM"; do
3603 cat > conftest.c <<EOF
3606 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3607 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3609 if test ! -f conftest."${ac_object}" ; then
3611 OL_MKDEP_FLAGS="$flag"
3620 echo "$ac_t""$ol_cv_mkdep" 1>&6
3623 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3628 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3633 if test "${ol_cv_mkdep}" = no ; then
3634 # this will soon become an error
3635 echo "configure: warning: do not know how to generate dependencies" 1>&2
3639 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3640 echo "configure:3641: checking for EBCDIC" >&5
3641 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
3642 echo $ac_n "(cached) $ac_c" 1>&6
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3650 #include <__ASCII__/generate_error.h>
3654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3655 { (eval echo configure:3656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3657 if test -z "$ac_err"; then
3659 ol_cv_cpp_ebcdic=yes
3662 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3670 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3671 if test $ol_cv_cpp_ebcdic = yes ; then
3672 cat >> confdefs.h <<\EOF
3673 #define HAVE_EBCDIC 1
3678 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3679 echo "configure:3680: checking for ANSI C header files" >&5
3680 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3683 cat > conftest.$ac_ext <<EOF
3684 #line 3685 "configure"
3685 #include "confdefs.h"
3691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3692 { (eval echo configure:3693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3694 if test -z "$ac_err"; then
3696 ol_cv_header_stdc=yes
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3702 ol_cv_header_stdc=no
3706 if test $ol_cv_header_stdc = yes; then
3707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3714 egrep "memchr" >/dev/null 2>&1; then
3718 ol_cv_header_stdc=no
3724 if test $ol_cv_header_stdc = yes; then
3725 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3726 cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 egrep "free" >/dev/null 2>&1; then
3736 ol_cv_header_stdc=no
3742 if test $ol_cv_header_stdc = yes; then
3743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3744 if test "$cross_compiling" = yes; then
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3755 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3756 || ('j' <= (c) && (c) <= 'r') \
3757 || ('s' <= (c) && (c) <= 'z'))
3758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3761 int main () { int i; for (i = 0; i < 256; i++)
3762 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3766 if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3773 ol_cv_header_stdc=no
3781 echo "$ac_t""$ol_cv_header_stdc" 1>&6
3782 if test $ol_cv_header_stdc = yes; then
3783 cat >> confdefs.h <<\EOF
3784 #define STDC_HEADERS 1
3788 ac_cv_header_stdc=disable
3791 if test $ol_cv_header_stdc != yes; then
3792 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
3796 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3798 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3799 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3800 echo "configure:3801: checking for $ac_hdr that defines DIR" >&5
3801 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3804 cat > conftest.$ac_ext <<EOF
3805 #line 3806 "configure"
3806 #include "confdefs.h"
3807 #include <sys/types.h>
3813 if { (eval echo configure:3814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3815 eval "ac_cv_header_dirent_$ac_safe=yes"
3817 echo "configure: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3820 eval "ac_cv_header_dirent_$ac_safe=no"
3824 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3825 echo "$ac_t""yes" 1>&6
3826 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3827 cat >> confdefs.h <<EOF
3828 #define $ac_tr_hdr 1
3830 ac_header_dirent=$ac_hdr; break
3832 echo "$ac_t""no" 1>&6
3835 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3836 if test $ac_header_dirent = dirent.h; then
3837 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3838 echo "configure:3839: checking for opendir in -ldir" >&5
3839 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3841 echo $ac_n "(cached) $ac_c" 1>&6
3843 ac_save_LIBS="$LIBS"
3845 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848 /* Override any gcc2 internal prototype to avoid an error. */
3849 /* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3857 if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3859 eval "ac_cv_lib_$ac_lib_var=yes"
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3864 eval "ac_cv_lib_$ac_lib_var=no"
3867 LIBS="$ac_save_LIBS"
3870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3871 echo "$ac_t""yes" 1>&6
3874 echo "$ac_t""no" 1>&6
3878 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3879 echo "configure:3880: checking for opendir in -lx" >&5
3880 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3884 ac_save_LIBS="$LIBS"
3886 cat > conftest.$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 /* Override any gcc2 internal prototype to avoid an error. */
3890 /* We use char because int might match the return type of a gcc2
3891 builtin and then its argument prototype would still apply. */
3898 if { (eval echo configure:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3900 eval "ac_cv_lib_$ac_lib_var=yes"
3902 echo "configure: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3905 eval "ac_cv_lib_$ac_lib_var=no"
3908 LIBS="$ac_save_LIBS"
3911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3912 echo "$ac_t""yes" 1>&6
3915 echo "$ac_t""no" 1>&6
3920 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3921 echo "configure:3922: checking for sys/wait.h that is POSIX.1 compatible" >&5
3922 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 #include <sys/types.h>
3929 #include <sys/wait.h>
3931 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3934 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3939 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3942 if { (eval echo configure:3943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3944 ac_cv_header_sys_wait_h=yes
3946 echo "configure: failed program was:" >&5
3947 cat conftest.$ac_ext >&5
3949 ac_cv_header_sys_wait_h=no
3954 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3955 if test $ac_cv_header_sys_wait_h = yes; then
3956 cat >> confdefs.h <<\EOF
3957 #define HAVE_SYS_WAIT_H 1
3962 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
3963 echo "configure:3964: checking POSIX termios" >&5
3964 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 #include <sys/types.h>
3972 #include <termios.h>
3974 /* SunOS 4.0.3 has termios.h but not the library calls. */
3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3980 am_cv_sys_posix_termios=yes
3982 echo "configure: failed program was:" >&5
3983 cat conftest.$ac_ext >&5
3985 am_cv_sys_posix_termios=no
3990 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
3993 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
3994 echo "configure:3995: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
3995 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3998 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4000 gwinsz_in_termios_h=no
4001 if test $am_cv_sys_posix_termios = yes; then
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4005 #include <sys/types.h>
4006 # include <termios.h>
4012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4013 egrep "yes" >/dev/null 2>&1; then
4015 gwinsz_in_termios_h=yes
4021 if test $gwinsz_in_termios_h = no; then
4022 cat > conftest.$ac_ext <<EOF
4023 #line 4024 "configure"
4024 #include "confdefs.h"
4025 #include <sys/types.h>
4026 # include <sys/ioctl.h>
4032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4033 egrep "yes" >/dev/null 2>&1; then
4035 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4043 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4044 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4045 cat >> confdefs.h <<\EOF
4046 #define GWINSZ_IN_SYS_IOCTL 1
4051 if test $am_cv_sys_posix_termios = yes ; then
4052 cat >> confdefs.h <<\EOF
4053 #define HAVE_POSIX_TERMIOS 1
4100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4102 echo "configure:4103: checking for $ac_hdr" >&5
4103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4112 { (eval echo configure:4113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4114 if test -z "$ac_err"; then
4116 eval "ac_cv_header_$ac_safe=yes"
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4122 eval "ac_cv_header_$ac_safe=no"
4126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4127 echo "$ac_t""yes" 1>&6
4128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4129 cat >> confdefs.h <<EOF
4130 #define $ac_tr_hdr 1
4134 echo "$ac_t""no" 1>&6
4141 echo $ac_n "checking for socket""... $ac_c" 1>&6
4142 echo "configure:4143: checking for socket" >&5
4143 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4146 cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 /* System header to define __stub macros and hopefully few prototypes,
4150 which can conflict with char socket(); below. */
4152 /* Override any gcc2 internal prototype to avoid an error. */
4153 /* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4159 /* The GNU C library defines this for functions which it implements
4160 to always fail with ENOSYS. Some functions are actually named
4161 something starting with __ and the normal name is an alias. */
4162 #if defined (__stub_socket) || defined (__stub___socket)
4170 if { (eval echo configure:4171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4172 eval "ac_cv_func_socket=yes"
4174 echo "configure: failed program was:" >&5
4175 cat conftest.$ac_ext >&5
4177 eval "ac_cv_func_socket=no"
4182 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4183 echo "$ac_t""yes" 1>&6
4186 echo "$ac_t""no" 1>&6
4188 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4189 echo "configure:4190: checking for main in -lsocket" >&5
4190 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 ac_save_LIBS="$LIBS"
4195 LIBS="-lsocket $LIBS"
4196 cat > conftest.$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4206 eval "ac_cv_lib_$ac_lib_var=yes"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 eval "ac_cv_lib_$ac_lib_var=no"
4214 LIBS="$ac_save_LIBS"
4217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4218 echo "$ac_t""yes" 1>&6
4219 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4220 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4221 cat >> confdefs.h <<EOF
4222 #define $ac_tr_lib 1
4225 LIBS="-lsocket $LIBS"
4228 echo "$ac_t""no" 1>&6
4231 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4232 echo "configure:4233: checking for main in -lnet" >&5
4233 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
4234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4235 echo $ac_n "(cached) $ac_c" 1>&6
4237 ac_save_LIBS="$LIBS"
4239 cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4247 if { (eval echo configure:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4249 eval "ac_cv_lib_$ac_lib_var=yes"
4251 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4254 eval "ac_cv_lib_$ac_lib_var=no"
4257 LIBS="$ac_save_LIBS"
4260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4261 echo "$ac_t""yes" 1>&6
4262 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4264 cat >> confdefs.h <<EOF
4265 #define $ac_tr_lib 1
4271 echo "$ac_t""no" 1>&6
4274 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4275 echo "configure:4276: checking for socket in -lnet" >&5
4276 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
4277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 ac_save_LIBS="$LIBS"
4282 cat > conftest.$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4285 /* Override any gcc2 internal prototype to avoid an error. */
4286 /* We use char because int might match the return type of a gcc2
4287 builtin and then its argument prototype would still apply. */
4294 if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4296 eval "ac_cv_lib_$ac_lib_var=yes"
4298 echo "configure: failed program was:" >&5
4299 cat conftest.$ac_ext >&5
4301 eval "ac_cv_lib_$ac_lib_var=no"
4304 LIBS="$ac_save_LIBS"
4307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4308 echo "$ac_t""yes" 1>&6
4309 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4311 cat >> confdefs.h <<EOF
4312 #define $ac_tr_lib 1
4318 echo "$ac_t""no" 1>&6
4321 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4322 echo "configure:4323: checking for main in -lnsl_s" >&5
4323 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
4324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4327 ac_save_LIBS="$LIBS"
4328 LIBS="-lnsl_s $LIBS"
4329 cat > conftest.$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4337 if { (eval echo configure:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4339 eval "ac_cv_lib_$ac_lib_var=yes"
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4344 eval "ac_cv_lib_$ac_lib_var=no"
4347 LIBS="$ac_save_LIBS"
4350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4351 echo "$ac_t""yes" 1>&6
4352 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4353 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4354 cat >> confdefs.h <<EOF
4355 #define $ac_tr_lib 1
4358 LIBS="-lnsl_s $LIBS"
4361 echo "$ac_t""no" 1>&6
4364 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4365 echo "configure:4366: checking for main in -lnsl" >&5
4366 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 ac_save_LIBS="$LIBS"
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4380 if { (eval echo configure:4381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4382 eval "ac_cv_lib_$ac_lib_var=yes"
4384 echo "configure: failed program was:" >&5
4385 cat conftest.$ac_ext >&5
4387 eval "ac_cv_lib_$ac_lib_var=no"
4390 LIBS="$ac_save_LIBS"
4393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4394 echo "$ac_t""yes" 1>&6
4395 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4397 cat >> confdefs.h <<EOF
4398 #define $ac_tr_lib 1
4404 echo "$ac_t""no" 1>&6
4407 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4408 echo "configure:4409: checking for socket in -linet" >&5
4409 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
4410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 ac_save_LIBS="$LIBS"
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 /* We use char because int might match the return type of a gcc2
4420 builtin and then its argument prototype would still apply. */
4427 if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4429 eval "ac_cv_lib_$ac_lib_var=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_lib_$ac_lib_var=no"
4437 LIBS="$ac_save_LIBS"
4440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4441 echo "$ac_t""yes" 1>&6
4442 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4443 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4444 cat >> confdefs.h <<EOF
4445 #define $ac_tr_lib 1
4451 echo "$ac_t""no" 1>&6
4454 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4455 echo "configure:4456: checking for main in -lgen" >&5
4456 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
4457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 ac_save_LIBS="$LIBS"
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4470 if { (eval echo configure:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4472 eval "ac_cv_lib_$ac_lib_var=yes"
4474 echo "configure: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4477 eval "ac_cv_lib_$ac_lib_var=no"
4480 LIBS="$ac_save_LIBS"
4483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4487 cat >> confdefs.h <<EOF
4488 #define $ac_tr_lib 1
4494 echo "$ac_t""no" 1>&6
4501 echo $ac_n "checking for select""... $ac_c" 1>&6
4502 echo "configure:4503: checking for select" >&5
4503 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 cat > conftest.$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4509 /* System header to define __stub macros and hopefully few prototypes,
4510 which can conflict with char select(); below. */
4512 /* Override any gcc2 internal prototype to avoid an error. */
4513 /* We use char because int might match the return type of a gcc2
4514 builtin and then its argument prototype would still apply. */
4519 /* The GNU C library defines this for functions which it implements
4520 to always fail with ENOSYS. Some functions are actually named
4521 something starting with __ and the normal name is an alias. */
4522 #if defined (__stub_select) || defined (__stub___select)
4530 if { (eval echo configure:4531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4532 eval "ac_cv_func_select=yes"
4534 echo "configure: failed program was:" >&5
4535 cat conftest.$ac_ext >&5
4537 eval "ac_cv_func_select=no"
4542 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4543 echo "$ac_t""yes" 1>&6
4546 echo "$ac_t""no" 1>&6
4547 { echo "configure: error: select() required." 1>&2; exit 1; }
4551 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4552 echo "configure:4553: checking types of arguments for select()" >&5
4553 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6
4556 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4562 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4563 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4564 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4565 cat > conftest.$ac_ext <<EOF
4566 #line 4567 "configure"
4567 #include "confdefs.h"
4568 #ifdef HAVE_SYS_TYPES_H
4569 #include <sys/types.h>
4571 #ifdef HAVE_SYS_TIME_H
4572 #include <sys/time.h>
4574 #ifdef HAVE_SYS_SELECT_H
4575 #include <sys/select.h>
4577 #ifdef HAVE_SYS_SOCKET_H
4578 #include <sys/socket.h>
4580 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);
4585 if { (eval echo configure:4586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4587 ac_not_found=no ; break 3
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4604 if test "$ac_not_found" = yes; then
4605 ac_cv_func_select_arg1=int
4606 ac_cv_func_select_arg234='int *'
4607 ac_cv_func_select_arg5='struct timeval *'
4609 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4610 cat >> confdefs.h <<EOF
4611 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4614 cat >> confdefs.h <<EOF
4615 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4618 cat >> confdefs.h <<EOF
4619 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4625 for ac_hdr in regex.h
4627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4629 echo "configure:4630: checking for $ac_hdr" >&5
4630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4639 { (eval echo configure:4640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4641 if test -z "$ac_err"; then
4643 eval "ac_cv_header_$ac_safe=yes"
4646 echo "configure: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4649 eval "ac_cv_header_$ac_safe=no"
4653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4654 echo "$ac_t""yes" 1>&6
4655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4656 cat >> confdefs.h <<EOF
4657 #define $ac_tr_hdr 1
4661 echo "$ac_t""no" 1>&6
4665 if test "$ac_cv_header_regex_h" != yes ; then
4666 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4668 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4669 echo "configure:4670: checking for regfree" >&5
4670 if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
4671 echo $ac_n "(cached) $ac_c" 1>&6
4673 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4676 /* System header to define __stub macros and hopefully few prototypes,
4677 which can conflict with char regfree(); below. */
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4686 /* The GNU C library defines this for functions which it implements
4687 to always fail with ENOSYS. Some functions are actually named
4688 something starting with __ and the normal name is an alias. */
4689 #if defined (__stub_regfree) || defined (__stub___regfree)
4697 if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4699 eval "ac_cv_func_regfree=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4704 eval "ac_cv_func_regfree=no"
4709 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4713 echo "$ac_t""no" 1>&6
4714 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4719 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4720 echo "configure:4721: checking for compatible POSIX regex" >&5
4721 if eval "test \"`echo '$''{'ol_cv_c_posix_regex'+set}'`\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4725 if test "$cross_compiling" = yes; then
4726 ol_cv_c_posix_regex=cross
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4732 #include <sys/types.h>
4734 static char *pattern, *string;
4742 if(regcomp(&re, pattern, 0)) {
4746 string = "ALL MATCH";
4748 rc = regexec(&re, string, 0, (void*)0, 0);
4755 if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4757 ol_cv_c_posix_regex=yes
4759 echo "configure: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
4762 ol_cv_c_posix_regex=no
4769 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4771 if test "$ol_cv_c_posix_regex" = no ; then
4772 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
4776 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4777 echo "configure:4778: checking for sigset in -lV3" >&5
4778 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
4779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 ac_save_LIBS="$LIBS"
4784 cat > conftest.$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4787 /* Override any gcc2 internal prototype to avoid an error. */
4788 /* We use char because int might match the return type of a gcc2
4789 builtin and then its argument prototype would still apply. */
4796 if { (eval echo configure:4797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4798 eval "ac_cv_lib_$ac_lib_var=yes"
4800 echo "configure: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4803 eval "ac_cv_lib_$ac_lib_var=no"
4806 LIBS="$ac_save_LIBS"
4809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4810 echo "$ac_t""yes" 1>&6
4811 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4812 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4813 cat >> confdefs.h <<EOF
4814 #define $ac_tr_lib 1
4820 echo "$ac_t""no" 1>&6
4826 if test $ol_enable_dns != no ; then
4827 echo $ac_n "checking for res_search""... $ac_c" 1>&6
4828 echo "configure:4829: checking for res_search" >&5
4829 if eval "test \"`echo '$''{'ac_cv_func_res_search'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 /* System header to define __stub macros and hopefully few prototypes,
4836 which can conflict with char res_search(); below. */
4838 /* Override any gcc2 internal prototype to avoid an error. */
4839 /* We use char because int might match the return type of a gcc2
4840 builtin and then its argument prototype would still apply. */
4845 /* The GNU C library defines this for functions which it implements
4846 to always fail with ENOSYS. Some functions are actually named
4847 something starting with __ and the normal name is an alias. */
4848 #if defined (__stub_res_search) || defined (__stub___res_search)
4856 if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4858 eval "ac_cv_func_res_search=yes"
4860 echo "configure: failed program was:" >&5
4861 cat conftest.$ac_ext >&5
4863 eval "ac_cv_func_res_search=no"
4868 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
4869 echo "$ac_t""yes" 1>&6
4872 echo "$ac_t""no" 1>&6
4875 if test $ac_cv_func_res_search = no ; then
4876 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
4877 echo "configure:4878: checking for res_search in -lbind" >&5
4878 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
4879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4882 ac_save_LIBS="$LIBS"
4884 cat > conftest.$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4887 /* Override any gcc2 internal prototype to avoid an error. */
4888 /* We use char because int might match the return type of a gcc2
4889 builtin and then its argument prototype would still apply. */
4896 if { (eval echo configure:4897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4898 eval "ac_cv_lib_$ac_lib_var=yes"
4900 echo "configure: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4903 eval "ac_cv_lib_$ac_lib_var=no"
4906 LIBS="$ac_save_LIBS"
4909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4910 echo "$ac_t""yes" 1>&6
4911 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4912 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4913 cat >> confdefs.h <<EOF
4914 #define $ac_tr_lib 1
4920 echo "$ac_t""no" 1>&6
4923 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
4925 if test $ac_cv_func_res_search = no ; then
4926 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
4927 echo "configure:4928: checking for __res_search in -lbind" >&5
4928 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-%__p_%'`
4929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4932 ac_save_LIBS="$LIBS"
4934 cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4937 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4940 char __res_search();
4946 if { (eval echo configure:4947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4948 eval "ac_cv_lib_$ac_lib_var=yes"
4950 echo "configure: failed program was:" >&5
4951 cat conftest.$ac_ext >&5
4953 eval "ac_cv_lib_$ac_lib_var=no"
4956 LIBS="$ac_save_LIBS"
4959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4960 echo "$ac_t""yes" 1>&6
4961 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4962 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4963 cat >> confdefs.h <<EOF
4964 #define $ac_tr_lib 1
4970 echo "$ac_t""no" 1>&6
4973 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
4975 if test $ac_cv_func_res_search = no ; then
4976 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
4977 echo "configure:4978: checking for res_search in -lresolv" >&5
4978 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
4979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4982 ac_save_LIBS="$LIBS"
4983 LIBS="-lresolv $LIBS"
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 /* Override any gcc2 internal prototype to avoid an error. */
4988 /* We use char because int might match the return type of a gcc2
4989 builtin and then its argument prototype would still apply. */
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4998 eval "ac_cv_lib_$ac_lib_var=yes"
5000 echo "configure: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5003 eval "ac_cv_lib_$ac_lib_var=no"
5006 LIBS="$ac_save_LIBS"
5009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5010 echo "$ac_t""yes" 1>&6
5011 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5012 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5013 cat >> confdefs.h <<EOF
5014 #define $ac_tr_lib 1
5017 LIBS="-lresolv $LIBS"
5020 echo "$ac_t""no" 1>&6
5023 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5026 if test "$ac_cv_func_res_search" = yes ; then
5027 cat >> confdefs.h <<\EOF
5028 #define HAVE_RES_SEARCH 1
5031 elif test $ol_enable_dns = yes ; then
5032 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5034 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5041 if test $ol_enable_ldapd != no ; then
5042 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5044 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5045 echo "configure:5046: checking for main in -lxtpp" >&5
5046 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
5047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5050 ac_save_LIBS="$LIBS"
5051 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5062 eval "ac_cv_lib_$ac_lib_var=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 eval "ac_cv_lib_$ac_lib_var=no"
5070 LIBS="$ac_save_LIBS"
5073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5077 cat >> confdefs.h <<\EOF
5081 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5084 echo "$ac_t""no" 1>&6
5088 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5089 echo "configure:5090: checking for main in -ldsap" >&5
5090 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
5091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5094 ac_save_LIBS="$LIBS"
5095 LIBS="-ldsap -lisode $LIBS"
5096 cat > conftest.$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5104 if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5106 eval "ac_cv_lib_$ac_lib_var=yes"
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5111 eval "ac_cv_lib_$ac_lib_var=no"
5114 LIBS="$ac_save_LIBS"
5117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5118 echo "$ac_t""yes" 1>&6
5121 cat >> confdefs.h <<\EOF
5125 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5128 echo "$ac_t""no" 1>&6
5132 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5133 echo "configure:5134: checking for main in -lisode" >&5
5134 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
5135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
5138 ac_save_LIBS="$LIBS"
5139 LIBS="-lisode $LIBS"
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5150 eval "ac_cv_lib_$ac_lib_var=yes"
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5155 eval "ac_cv_lib_$ac_lib_var=no"
5158 LIBS="$ac_save_LIBS"
5161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5162 echo "$ac_t""yes" 1>&6
5165 cat >> confdefs.h <<\EOF
5166 #define HAVE_ISODE 1
5169 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5172 echo "$ac_t""no" 1>&6
5178 if test $ol_link_isode != no; then
5179 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5180 echo "configure:5181: checking for main in -lpp" >&5
5181 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
5182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5185 ac_save_LIBS="$LIBS"
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5197 eval "ac_cv_lib_$ac_lib_var=yes"
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5202 eval "ac_cv_lib_$ac_lib_var=no"
5205 LIBS="$ac_save_LIBS"
5208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5209 echo "$ac_t""yes" 1>&6
5211 cat >> confdefs.h <<\EOF
5215 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5218 echo "$ac_t""no" 1>&6
5223 # Extract the first word of "pepsy", so it can be a program name with args.
5224 set dummy pepsy; ac_word=$2
5225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5226 echo "configure:5227: checking for $ac_word" >&5
5227 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5232 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5235 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5240 for ac_dir in $ac_dummy; do
5241 test -z "$ac_dir" && ac_dir=.
5242 if test -f $ac_dir/$ac_word; then
5243 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5251 PEPSY="$ac_cv_path_PEPSY"
5252 if test -n "$PEPSY"; then
5253 echo "$ac_t""$PEPSY" 1>&6
5255 echo "$ac_t""no" 1>&6
5260 if test $ol_enable_quipu != no ; then
5261 for ac_hdr in quipu/commonarg.h
5263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5265 echo "configure:5266: checking for $ac_hdr" >&5
5266 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5275 { (eval echo configure:5276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5277 if test -z "$ac_err"; then
5279 eval "ac_cv_header_$ac_safe=yes"
5282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
5285 eval "ac_cv_header_$ac_safe=no"
5289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5290 echo "$ac_t""yes" 1>&6
5291 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5292 cat >> confdefs.h <<EOF
5293 #define $ac_tr_hdr 1
5297 echo "$ac_t""no" 1>&6
5302 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5304 elif test $ol_enable_quipu = auto ; then
5305 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5307 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5313 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5314 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5316 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5317 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5318 echo "configure:5319: checking for $ac_hdr" >&5
5319 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 cat > conftest.$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5328 { (eval echo configure:5329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5330 if test -z "$ac_err"; then
5332 eval "ac_cv_header_$ac_safe=yes"
5335 echo "configure: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5338 eval "ac_cv_header_$ac_safe=no"
5342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5343 echo "$ac_t""yes" 1>&6
5344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5345 cat >> confdefs.h <<EOF
5346 #define $ac_tr_hdr 1
5350 echo "$ac_t""no" 1>&6
5355 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5356 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5357 echo "configure:5358: checking for main in -lkrb4" >&5
5358 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
5359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5360 echo $ac_n "(cached) $ac_c" 1>&6
5362 ac_save_LIBS="$LIBS"
5363 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5364 cat > conftest.$ac_ext <<EOF
5365 #line 5366 "configure"
5366 #include "confdefs.h"
5372 if { (eval echo configure:5373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5374 eval "ac_cv_lib_$ac_lib_var=yes"
5376 echo "configure: failed program was:" >&5
5377 cat conftest.$ac_ext >&5
5379 eval "ac_cv_lib_$ac_lib_var=no"
5382 LIBS="$ac_save_LIBS"
5385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5386 echo "$ac_t""yes" 1>&6
5389 echo "$ac_t""no" 1>&6
5394 if test $have_k5 = yes ; then
5395 ol_with_kerberos=found
5396 ol_link_kerberos=yes
5398 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5400 LIBS="$KRB_LIBS $LIBS"
5402 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5403 echo "configure:5404: checking for des_debug in Kerberos libraries" >&5
5404 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
5405 echo $ac_n "(cached) $ac_c" 1>&6
5409 LIBS="$KRB_LIBS $LIBS"
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5414 #include <kerberosIV/krb.h>
5415 #include <kerberosIV/des.h>
5416 extern int des_debug;
5424 if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5426 ol_cv_var_des_debug=yes
5428 echo "configure: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5431 ol_cv_var_des_debug=no
5438 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5440 if test $ol_cv_var_des_debug = yes ; then
5441 cat >> confdefs.h <<\EOF
5442 #define HAVE_DES_DEBUG 1
5452 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5453 for ac_hdr in krb.h des.h
5455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5457 echo "configure:5458: checking for $ac_hdr" >&5
5458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5459 echo $ac_n "(cached) $ac_c" 1>&6
5461 cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5467 { (eval echo configure:5468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5469 if test -z "$ac_err"; then
5471 eval "ac_cv_header_$ac_safe=yes"
5474 echo "configure: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5477 eval "ac_cv_header_$ac_safe=no"
5481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5482 echo "$ac_t""yes" 1>&6
5483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5484 cat >> confdefs.h <<EOF
5485 #define $ac_tr_hdr 1
5489 echo "$ac_t""no" 1>&6
5494 if test $ac_cv_header_krb_h = yes ; then
5495 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5496 echo "configure:5497: checking for main in -lkrb" >&5
5497 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
5498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5501 ac_save_LIBS="$LIBS"
5502 LIBS="-lkrb -ldes $LIBS"
5503 cat > conftest.$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5511 if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5513 eval "ac_cv_lib_$ac_lib_var=yes"
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5518 eval "ac_cv_lib_$ac_lib_var=no"
5521 LIBS="$ac_save_LIBS"
5524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5525 echo "$ac_t""yes" 1>&6
5528 echo "$ac_t""no" 1>&6
5533 if test $have_k4 = yes ; then
5534 ol_with_kerberos=found
5535 ol_link_kerberos=yes
5537 KRB_LIBS="-lkrb -ldes"
5542 if test $ol_link_kerberos = yes ; then
5543 cat >> confdefs.h <<\EOF
5544 #define HAVE_KERBEROS 1
5550 if test $ol_with_tls != no ; then
5552 for ac_hdr in openssl/ssl.h ssl.h
5554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_hdr" >&5
5557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5566 { (eval echo configure:5567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5568 if test -z "$ac_err"; then
5570 eval "ac_cv_header_$ac_safe=yes"
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5576 eval "ac_cv_header_$ac_safe=no"
5580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5581 echo "$ac_t""yes" 1>&6
5582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5583 cat >> confdefs.h <<EOF
5584 #define $ac_tr_hdr 1
5588 echo "$ac_t""no" 1>&6
5593 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5594 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5595 echo "configure:5596: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5596 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
5597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5600 ac_save_LIBS="$LIBS"
5601 LIBS="-lssl -lcrypto $LIBS"
5602 cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5605 /* Override any gcc2 internal prototype to avoid an error. */
5606 /* We use char because int might match the return type of a gcc2
5607 builtin and then its argument prototype would still apply. */
5608 char SSLeay_add_ssl_algorithms();
5611 SSLeay_add_ssl_algorithms()
5614 if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5616 eval "ac_cv_lib_$ac_lib_var=yes"
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5621 eval "ac_cv_lib_$ac_lib_var=no"
5624 LIBS="$ac_save_LIBS"
5627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5628 echo "$ac_t""yes" 1>&6
5632 echo "$ac_t""no" 1>&6
5637 if test $have_ssleay = no ; then
5638 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5639 echo "configure:5640: checking for SSL_library_init in -lssl" >&5
5640 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
5641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5642 echo $ac_n "(cached) $ac_c" 1>&6
5644 ac_save_LIBS="$LIBS"
5645 LIBS="-lssl -lcrypto $LIBS"
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5649 /* Override any gcc2 internal prototype to avoid an error. */
5650 /* We use char because int might match the return type of a gcc2
5651 builtin and then its argument prototype would still apply. */
5652 char SSL_library_init();
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5660 eval "ac_cv_lib_$ac_lib_var=yes"
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5665 eval "ac_cv_lib_$ac_lib_var=no"
5668 LIBS="$ac_save_LIBS"
5671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5672 echo "$ac_t""yes" 1>&6
5676 echo "$ac_t""no" 1>&6
5682 if test $have_ssleay = no ; then
5683 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5684 echo "configure:5685: checking for ssl3_accept in -lssl" >&5
5685 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
5686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5689 ac_save_LIBS="$LIBS"
5690 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5694 /* Override any gcc2 internal prototype to avoid an error. */
5695 /* We use char because int might match the return type of a gcc2
5696 builtin and then its argument prototype would still apply. */
5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5705 eval "ac_cv_lib_$ac_lib_var=yes"
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 eval "ac_cv_lib_$ac_lib_var=no"
5713 LIBS="$ac_save_LIBS"
5716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5717 echo "$ac_t""yes" 1>&6
5721 echo "$ac_t""no" 1>&6
5727 if test $have_ssleay = yes ; then
5731 cat >> confdefs.h <<\EOF
5732 #define HAVE_SSLEAY 1
5736 if test $need_rsaref = yes; then
5737 cat >> confdefs.h <<\EOF
5738 #define HAVE_RSAREF 1
5742 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5744 TLS_LIBS="-lssl -lcrypto"
5750 if test $ol_link_tls = yes ; then
5751 cat >> confdefs.h <<\EOF
5759 gethostbyname_r gethostbyaddr_r \
5762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5763 echo "configure:5764: checking for $ac_func" >&5
5764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5765 echo $ac_n "(cached) $ac_c" 1>&6
5767 cat > conftest.$ac_ext <<EOF
5768 #line 5769 "configure"
5769 #include "confdefs.h"
5770 /* System header to define __stub macros and hopefully few prototypes,
5771 which can conflict with char $ac_func(); below. */
5773 /* Override any gcc2 internal prototype to avoid an error. */
5774 /* We use char because int might match the return type of a gcc2
5775 builtin and then its argument prototype would still apply. */
5780 /* The GNU C library defines this for functions which it implements
5781 to always fail with ENOSYS. Some functions are actually named
5782 something starting with __ and the normal name is an alias. */
5783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5791 if { (eval echo configure:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5793 eval "ac_cv_func_$ac_func=yes"
5795 echo "configure: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5798 eval "ac_cv_func_$ac_func=no"
5803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5804 echo "$ac_t""yes" 1>&6
5805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5806 cat >> confdefs.h <<EOF
5807 #define $ac_tr_func 1
5811 echo "$ac_t""no" 1>&6
5816 if test "$ac_cv_func_ctime_r" = no ; then
5817 ol_cv_func_ctime_r_nargs=0
5819 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
5820 echo "configure:5821: checking number of arguments of ctime_r" >&5
5821 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5824 cat > conftest.$ac_ext <<EOF
5825 #line 5826 "configure"
5826 #include "confdefs.h"
5829 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
5832 if { (eval echo configure:5833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5834 ol_cv_func_ctime_r_nargs=3
5836 echo "configure: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5844 time_t ti; char *buffer; ctime_r(&ti,buffer);
5847 if { (eval echo configure:5848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5849 ol_cv_func_ctime_r_nargs=2
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5854 ol_cv_func_ctime_r_nargs=0
5861 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
5862 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
5863 cat >> confdefs.h <<EOF
5864 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
5871 if test "$ac_cv_func_gethostbyname_r" = yes ; then
5872 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
5873 echo "configure:5874: checking number of arguments of gethostbyname_r" >&5
5874 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5880 #include <sys/types.h>
5881 #include <sys/socket.h>
5882 #include <netinet/in.h>
5884 #define BUFSIZE (sizeof(struct hostent)+10)
5886 struct hostent hent; char buffer[BUFSIZE];
5887 int bufsize=BUFSIZE;int h_errno;
5888 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
5889 buffer, bufsize, &h_errno);
5892 if { (eval echo configure:5893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5894 ol_cv_func_gethostbyname_r_nargs=5
5896 echo "configure: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5899 cat > conftest.$ac_ext <<EOF
5900 #line 5901 "configure"
5901 #include "confdefs.h"
5902 #include <sys/types.h>
5903 #include <sys/socket.h>
5904 #include <netinet/in.h>
5906 #define BUFSIZE (sizeof(struct hostent)+10)
5908 struct hostent hent;struct hostent *rhent;
5909 char buffer[BUFSIZE];
5910 int bufsize=BUFSIZE;int h_errno;
5911 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
5915 if { (eval echo configure:5916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5917 ol_cv_func_gethostbyname_r_nargs=6
5919 echo "configure: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 ol_cv_func_gethostbyname_r_nargs=0
5929 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
5930 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
5931 cat >> confdefs.h <<EOF
5932 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
5938 ol_cv_func_gethostbyname_r_nargs=0
5941 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
5942 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
5943 echo "configure:5944: checking number of arguments of gethostbyaddr_r" >&5
5944 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
5945 echo $ac_n "(cached) $ac_c" 1>&6
5947 cat > conftest.$ac_ext <<EOF
5948 #line 5949 "configure"
5949 #include "confdefs.h"
5950 #include <sys/types.h>
5951 #include <sys/socket.h>
5952 #include <netinet/in.h>
5954 #define BUFSIZE (sizeof(struct hostent)+10)
5956 struct hostent hent; char buffer[BUFSIZE];
5958 size_t alen=sizeof(struct in_addr);
5959 int bufsize=BUFSIZE;int h_errno;
5960 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5961 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
5964 if { (eval echo configure:5965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5966 ol_cv_func_gethostbyaddr_r_nargs=7
5968 echo "configure: failed program was:" >&5
5969 cat conftest.$ac_ext >&5
5971 cat > conftest.$ac_ext <<EOF
5972 #line 5973 "configure"
5973 #include "confdefs.h"
5974 #include <sys/types.h>
5975 #include <sys/socket.h>
5976 #include <netinet/in.h>
5978 #define BUFSIZE (sizeof(struct hostent)+10)
5980 struct hostent hent;
5981 struct hostent *rhent; char buffer[BUFSIZE];
5983 size_t alen=sizeof(struct in_addr);
5984 int bufsize=BUFSIZE;int h_errno;
5985 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5986 alen, AF_INET, &hent, buffer, bufsize,
5990 if { (eval echo configure:5991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5992 ol_cv_func_gethostbyaddr_r_nargs=8
5994 echo "configure: failed program was:" >&5
5995 cat conftest.$ac_ext >&5
5997 ol_cv_func_gethostbyaddr_r_nargs=0
6004 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6005 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6006 cat >> confdefs.h <<EOF
6007 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6013 ol_cv_func_gethostbyaddr_r_nargs=0
6016 if test "$ac_cv_func_ctime_r" = yes \
6017 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6018 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6019 -a "$ac_cv_func_gethostbyname_r" = yes \
6020 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6021 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6022 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6023 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6024 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6027 cat >> confdefs.h <<\EOF
6028 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6034 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6035 -o $ol_with_threads = posix ; then
6037 for ac_hdr in pthread.h sched.h
6039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6041 echo "configure:6042: checking for $ac_hdr" >&5
6042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6043 echo $ac_n "(cached) $ac_c" 1>&6
6045 cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6051 { (eval echo configure:6052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6053 if test -z "$ac_err"; then
6055 eval "ac_cv_header_$ac_safe=yes"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6061 eval "ac_cv_header_$ac_safe=no"
6065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6066 echo "$ac_t""yes" 1>&6
6067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6068 cat >> confdefs.h <<EOF
6069 #define $ac_tr_hdr 1
6073 echo "$ac_t""no" 1>&6
6078 if test $ac_cv_header_pthread_h = yes ; then
6079 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6080 echo "configure:6081: checking POSIX thread version" >&5
6081 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6085 cat > conftest.$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6089 # include <pthread.h>
6090 /* this check could be improved */
6091 # ifdef PTHREAD_ONCE_INIT
6092 pthread_version_final
6096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6097 egrep "pthread_version_final" >/dev/null 2>&1; then
6099 ol_pthread_final=yes
6107 cat > conftest.$ac_ext <<EOF
6108 #line 6109 "configure"
6109 #include "confdefs.h"
6111 # include <pthread.h>
6112 /* this check could be improved */
6113 # ifdef pthread_once_init
6114 pthread_version_draft4
6118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6121 ol_pthread_draft4=yes
6124 ol_pthread_draft4=no
6129 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6130 ol_cv_pthread_version=final
6131 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6132 ol_cv_pthread_version=draft4
6134 ol_cv_pthread_version=unknown
6139 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6142 if test $ol_cv_pthread_version = final ; then
6143 cat >> confdefs.h <<\EOF
6144 #define HAVE_PTHREADS_FINAL 1
6147 elif test $ol_cv_pthread_version = draft4 ; then
6148 cat >> confdefs.h <<\EOF
6149 #define HAVE_PTHREADS_D4 1
6153 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6156 # consider threads found
6157 ol_with_threads=found
6160 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6161 echo "configure:6162: checking for LinuxThreads pthread.h" >&5
6162 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 #include <pthread.h>
6170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6171 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6173 ol_cv_header_linux_threads=yes
6176 ol_cv_header_linux_threads=no
6183 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6184 if test $ol_cv_header_linux_threads = yes; then
6185 cat >> confdefs.h <<\EOF
6186 #define HAVE_LINUX_THREADS 1
6193 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6194 echo "configure:6195: checking for pthread_create in default libraries" >&5
6195 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
6196 echo $ac_n "(cached) $ac_c" 1>&6
6199 if test "$cross_compiling" = yes; then
6200 ol_cv_pthread_create=yes
6202 cat > conftest.$ac_ext <<EOF
6203 #line 6204 "configure"
6204 #include "confdefs.h"
6206 #include <pthread.h>
6208 #define NULL (void*)0
6211 static void *task(p)
6214 return (void *) (p == NULL);
6217 int main(argc, argv)
6224 /* make sure pthread_create() isn't just a stub */
6225 #if HAVE_PTHREADS_D4
6226 status = pthread_create(&t, pthread_attr_default, task, NULL);
6228 status = pthread_create(&t, NULL, task, NULL);
6231 if( status ) return status;
6233 /* make sure pthread_detach() isn't just a stub */
6234 #if HAVE_PTHREADS_D4
6235 status = pthread_detach( &t );
6237 status = pthread_detach( t );
6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6246 ol_cv_pthread_create=yes
6248 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6251 ol_cv_pthread_create=no
6258 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6260 if test $ol_cv_pthread_create != no ; then
6261 ol_link_threads=posix
6265 # Pthread try link: -mt (ol_cv_pthread_mt)
6266 if test "$ol_link_threads" = no ; then
6268 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
6269 echo "configure:6270: checking for pthread link with -mt" >&5
6270 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6278 cat > conftest.$ac_ext <<EOF
6279 #line 6280 "configure"
6280 #include "confdefs.h"
6282 #include <pthread.h>
6284 #define NULL (void*)0
6291 #if HAVE_PTHREADS_D4
6292 pthread_create(&t, pthread_attr_default, NULL, NULL);
6293 pthread_detach( &t );
6295 pthread_create(&t, NULL, NULL, NULL);
6296 pthread_detach( t );
6298 #ifdef HAVE_LINUX_THREADS
6299 pthread_kill_other_threads_np();
6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6306 ol_cv_pthread_mt=yes
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6320 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
6322 if test $ol_cv_pthread_mt = yes ; then
6323 ol_link_pthreads="-mt"
6324 ol_link_threads=posix
6328 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6329 if test "$ol_link_threads" = no ; then
6331 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6332 echo "configure:6333: checking for pthread link with -kthread" >&5
6333 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
6334 echo $ac_n "(cached) $ac_c" 1>&6
6339 LIBS="-kthread $LIBS"
6341 cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6345 #include <pthread.h>
6347 #define NULL (void*)0
6354 #if HAVE_PTHREADS_D4
6355 pthread_create(&t, pthread_attr_default, NULL, NULL);
6356 pthread_detach( &t );
6358 pthread_create(&t, NULL, NULL, NULL);
6359 pthread_detach( t );
6361 #ifdef HAVE_LINUX_THREADS
6362 pthread_kill_other_threads_np();
6367 if { (eval echo configure:6368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6369 ol_cv_pthread_kthread=yes
6371 echo "configure: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6374 ol_cv_pthread_kthread=no
6383 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6385 if test $ol_cv_pthread_kthread = yes ; then
6386 ol_link_pthreads="-kthread"
6387 ol_link_threads=posix
6391 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6392 if test "$ol_link_threads" = no ; then
6394 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6395 echo "configure:6396: checking for pthread link with -pthread" >&5
6396 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6402 LIBS="-pthread $LIBS"
6404 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6408 #include <pthread.h>
6410 #define NULL (void*)0
6417 #if HAVE_PTHREADS_D4
6418 pthread_create(&t, pthread_attr_default, NULL, NULL);
6419 pthread_detach( &t );
6421 pthread_create(&t, NULL, NULL, NULL);
6422 pthread_detach( t );
6424 #ifdef HAVE_LINUX_THREADS
6425 pthread_kill_other_threads_np();
6430 if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6432 ol_cv_pthread_pthread=yes
6434 echo "configure: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6437 ol_cv_pthread_pthread=no
6446 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6448 if test $ol_cv_pthread_pthread = yes ; then
6449 ol_link_pthreads="-pthread"
6450 ol_link_threads=posix
6454 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6455 if test "$ol_link_threads" = no ; then
6457 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6458 echo "configure:6459: checking for pthread link with -pthreads" >&5
6459 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
6460 echo $ac_n "(cached) $ac_c" 1>&6
6465 LIBS="-pthreads $LIBS"
6467 cat > conftest.$ac_ext <<EOF
6468 #line 6469 "configure"
6469 #include "confdefs.h"
6471 #include <pthread.h>
6473 #define NULL (void*)0
6480 #if HAVE_PTHREADS_D4
6481 pthread_create(&t, pthread_attr_default, NULL, NULL);
6482 pthread_detach( &t );
6484 pthread_create(&t, NULL, NULL, NULL);
6485 pthread_detach( t );
6487 #ifdef HAVE_LINUX_THREADS
6488 pthread_kill_other_threads_np();
6493 if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6495 ol_cv_pthread_pthreads=yes
6497 echo "configure: failed program was:" >&5
6498 cat conftest.$ac_ext >&5
6500 ol_cv_pthread_pthreads=no
6509 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
6511 if test $ol_cv_pthread_pthreads = yes ; then
6512 ol_link_pthreads="-pthreads"
6513 ol_link_threads=posix
6517 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
6518 if test "$ol_link_threads" = no ; then
6520 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
6521 echo "configure:6522: checking for pthread link with -mthreads" >&5
6522 if eval "test \"`echo '$''{'ol_cv_pthread_mthreads'+set}'`\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6528 LIBS="-mthreads $LIBS"
6530 cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6534 #include <pthread.h>
6536 #define NULL (void*)0
6543 #if HAVE_PTHREADS_D4
6544 pthread_create(&t, pthread_attr_default, NULL, NULL);
6545 pthread_detach( &t );
6547 pthread_create(&t, NULL, NULL, NULL);
6548 pthread_detach( t );
6550 #ifdef HAVE_LINUX_THREADS
6551 pthread_kill_other_threads_np();
6556 if { (eval echo configure:6557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6558 ol_cv_pthread_mthreads=yes
6560 echo "configure: failed program was:" >&5
6561 cat conftest.$ac_ext >&5
6563 ol_cv_pthread_mthreads=no
6572 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
6574 if test $ol_cv_pthread_mthreads = yes ; then
6575 ol_link_pthreads="-mthreads"
6576 ol_link_threads=posix
6580 # Pthread try link: -thread (ol_cv_pthread_thread)
6581 if test "$ol_link_threads" = no ; then
6583 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
6584 echo "configure:6585: checking for pthread link with -thread" >&5
6585 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6
6591 LIBS="-thread $LIBS"
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6597 #include <pthread.h>
6599 #define NULL (void*)0
6606 #if HAVE_PTHREADS_D4
6607 pthread_create(&t, pthread_attr_default, NULL, NULL);
6608 pthread_detach( &t );
6610 pthread_create(&t, NULL, NULL, NULL);
6611 pthread_detach( t );
6613 #ifdef HAVE_LINUX_THREADS
6614 pthread_kill_other_threads_np();
6619 if { (eval echo configure:6620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6621 ol_cv_pthread_thread=yes
6623 echo "configure: failed program was:" >&5
6624 cat conftest.$ac_ext >&5
6626 ol_cv_pthread_thread=no
6635 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
6637 if test $ol_cv_pthread_thread = yes ; then
6638 ol_link_pthreads="-thread"
6639 ol_link_threads=posix
6644 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
6645 if test "$ol_link_threads" = no ; then
6646 # try -lpthread -lmach -lexc -lc_r
6647 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
6648 echo "configure:6649: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
6649 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6655 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
6657 cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6661 #include <pthread.h>
6663 #define NULL (void*)0
6670 #if HAVE_PTHREADS_D4
6671 pthread_create(&t, pthread_attr_default, NULL, NULL);
6672 pthread_detach( &t );
6674 pthread_create(&t, NULL, NULL, NULL);
6675 pthread_detach( t );
6677 #ifdef HAVE_LINUX_THREADS
6678 pthread_kill_other_threads_np();
6683 if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6685 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
6687 echo "configure: failed program was:" >&5
6688 cat conftest.$ac_ext >&5
6690 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
6699 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
6701 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
6702 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
6703 ol_link_threads=posix
6707 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
6708 if test "$ol_link_threads" = no ; then
6709 # try -lpthread -lmach -lexc
6710 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
6711 echo "configure:6712: checking for pthread link with -lpthread -lmach -lexc" >&5
6712 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
6713 echo $ac_n "(cached) $ac_c" 1>&6
6718 LIBS="-lpthread -lmach -lexc $LIBS"
6720 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure"
6722 #include "confdefs.h"
6724 #include <pthread.h>
6726 #define NULL (void*)0
6733 #if HAVE_PTHREADS_D4
6734 pthread_create(&t, pthread_attr_default, NULL, NULL);
6735 pthread_detach( &t );
6737 pthread_create(&t, NULL, NULL, NULL);
6738 pthread_detach( t );
6740 #ifdef HAVE_LINUX_THREADS
6741 pthread_kill_other_threads_np();
6746 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6748 ol_cv_pthread_lpthread_lmach_lexc=yes
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 ol_cv_pthread_lpthread_lmach_lexc=no
6762 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
6764 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
6765 ol_link_pthreads="-lpthread -lmach -lexc"
6766 ol_link_threads=posix
6771 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
6772 if test "$ol_link_threads" = no ; then
6773 # try -lpthread -Wl,-woff,85
6774 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
6775 echo "configure:6776: checking for pthread link with -lpthread -Wl,-woff,85" >&5
6776 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6782 LIBS="-lpthread -Wl,-woff,85 $LIBS"
6784 cat > conftest.$ac_ext <<EOF
6785 #line 6786 "configure"
6786 #include "confdefs.h"
6788 #include <pthread.h>
6790 #define NULL (void*)0
6797 #if HAVE_PTHREADS_D4
6798 pthread_create(&t, pthread_attr_default, NULL, NULL);
6799 pthread_detach( &t );
6801 pthread_create(&t, NULL, NULL, NULL);
6802 pthread_detach( t );
6804 #ifdef HAVE_LINUX_THREADS
6805 pthread_kill_other_threads_np();
6810 if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6812 ol_cv_pthread_lib_lpthread_woff=yes
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6817 ol_cv_pthread_lib_lpthread_woff=no
6826 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
6828 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
6829 ol_link_pthreads="-lpthread -Wl,-woff,85"
6830 ol_link_threads=posix
6835 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
6836 if test "$ol_link_threads" = no ; then
6838 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
6839 echo "configure:6840: checking for pthread link with -lpthread" >&5
6840 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
6841 echo $ac_n "(cached) $ac_c" 1>&6
6846 LIBS="-lpthread $LIBS"
6848 cat > conftest.$ac_ext <<EOF
6849 #line 6850 "configure"
6850 #include "confdefs.h"
6852 #include <pthread.h>
6854 #define NULL (void*)0
6861 #if HAVE_PTHREADS_D4
6862 pthread_create(&t, pthread_attr_default, NULL, NULL);
6863 pthread_detach( &t );
6865 pthread_create(&t, NULL, NULL, NULL);
6866 pthread_detach( t );
6868 #ifdef HAVE_LINUX_THREADS
6869 pthread_kill_other_threads_np();
6874 if { (eval echo configure:6875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6876 ol_cv_pthread_lpthread=yes
6878 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6881 ol_cv_pthread_lpthread=no
6890 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
6892 if test $ol_cv_pthread_lpthread = yes ; then
6893 ol_link_pthreads="-lpthread"
6894 ol_link_threads=posix
6898 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
6899 if test "$ol_link_threads" = no ; then
6901 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
6902 echo "configure:6903: checking for pthread link with -lc_r" >&5
6903 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
6904 echo $ac_n "(cached) $ac_c" 1>&6
6911 cat > conftest.$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6915 #include <pthread.h>
6917 #define NULL (void*)0
6924 #if HAVE_PTHREADS_D4
6925 pthread_create(&t, pthread_attr_default, NULL, NULL);
6926 pthread_detach( &t );
6928 pthread_create(&t, NULL, NULL, NULL);
6929 pthread_detach( t );
6931 #ifdef HAVE_LINUX_THREADS
6932 pthread_kill_other_threads_np();
6937 if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6939 ol_cv_pthread_lc_r=yes
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6944 ol_cv_pthread_lc_r=no
6953 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
6955 if test $ol_cv_pthread_lc_r = yes ; then
6956 ol_link_pthreads="-lc_r"
6957 ol_link_threads=posix
6962 # Pthread try link: -threads (ol_cv_pthread_threads)
6963 if test "$ol_link_threads" = no ; then
6965 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
6966 echo "configure:6967: checking for pthread link with -threads" >&5
6967 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
6968 echo $ac_n "(cached) $ac_c" 1>&6
6973 LIBS="-threads $LIBS"
6975 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6979 #include <pthread.h>
6981 #define NULL (void*)0
6988 #if HAVE_PTHREADS_D4
6989 pthread_create(&t, pthread_attr_default, NULL, NULL);
6990 pthread_detach( &t );
6992 pthread_create(&t, NULL, NULL, NULL);
6993 pthread_detach( t );
6995 #ifdef HAVE_LINUX_THREADS
6996 pthread_kill_other_threads_np();
7001 if { (eval echo configure:7002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7003 ol_cv_pthread_threads=yes
7005 echo "configure: failed program was:" >&5
7006 cat conftest.$ac_ext >&5
7008 ol_cv_pthread_threads=no
7017 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
7019 if test $ol_cv_pthread_threads = yes ; then
7020 ol_link_pthreads="-threads"
7021 ol_link_threads=posix
7026 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
7027 if test "$ol_link_threads" = no ; then
7028 # try -lpthreads -lmach -lexc -lc_r
7029 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
7030 echo "configure:7031: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
7031 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
7032 echo $ac_n "(cached) $ac_c" 1>&6
7037 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
7039 cat > conftest.$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7043 #include <pthread.h>
7045 #define NULL (void*)0
7052 #if HAVE_PTHREADS_D4
7053 pthread_create(&t, pthread_attr_default, NULL, NULL);
7054 pthread_detach( &t );
7056 pthread_create(&t, NULL, NULL, NULL);
7057 pthread_detach( t );
7059 #ifdef HAVE_LINUX_THREADS
7060 pthread_kill_other_threads_np();
7065 if { (eval echo configure:7066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7067 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
7069 echo "configure: failed program was:" >&5
7070 cat conftest.$ac_ext >&5
7072 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
7081 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
7083 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
7084 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
7085 ol_link_threads=posix
7089 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
7090 if test "$ol_link_threads" = no ; then
7091 # try -lpthreads -lmach -lexc
7092 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
7093 echo "configure:7094: checking for pthread link with -lpthreads -lmach -lexc" >&5
7094 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7100 LIBS="-lpthreads -lmach -lexc $LIBS"
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7106 #include <pthread.h>
7108 #define NULL (void*)0
7115 #if HAVE_PTHREADS_D4
7116 pthread_create(&t, pthread_attr_default, NULL, NULL);
7117 pthread_detach( &t );
7119 pthread_create(&t, NULL, NULL, NULL);
7120 pthread_detach( t );
7122 #ifdef HAVE_LINUX_THREADS
7123 pthread_kill_other_threads_np();
7128 if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7130 ol_cv_pthread_lpthreads_lmach_lexc=yes
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7135 ol_cv_pthread_lpthreads_lmach_lexc=no
7144 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
7146 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
7147 ol_link_pthreads="-lpthreads -lmach -lexc"
7148 ol_link_threads=posix
7152 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
7153 if test "$ol_link_threads" = no ; then
7154 # try -lpthreads -lexc
7155 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
7156 echo "configure:7157: checking for pthread link with -lpthreads -lexc" >&5
7157 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
7158 echo $ac_n "(cached) $ac_c" 1>&6
7163 LIBS="-lpthreads -lexc $LIBS"
7165 cat > conftest.$ac_ext <<EOF
7166 #line 7167 "configure"
7167 #include "confdefs.h"
7169 #include <pthread.h>
7171 #define NULL (void*)0
7178 #if HAVE_PTHREADS_D4
7179 pthread_create(&t, pthread_attr_default, NULL, NULL);
7180 pthread_detach( &t );
7182 pthread_create(&t, NULL, NULL, NULL);
7183 pthread_detach( t );
7185 #ifdef HAVE_LINUX_THREADS
7186 pthread_kill_other_threads_np();
7191 if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7193 ol_cv_pthread_lpthreads_lexc=yes
7195 echo "configure: failed program was:" >&5
7196 cat conftest.$ac_ext >&5
7198 ol_cv_pthread_lpthreads_lexc=no
7207 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
7209 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
7210 ol_link_pthreads="-lpthreads -lexc"
7211 ol_link_threads=posix
7216 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
7217 if test "$ol_link_threads" = no ; then
7219 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
7220 echo "configure:7221: checking for pthread link with -lpthreads" >&5
7221 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
7222 echo $ac_n "(cached) $ac_c" 1>&6
7227 LIBS="-lpthreads $LIBS"
7229 cat > conftest.$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7233 #include <pthread.h>
7235 #define NULL (void*)0
7242 #if HAVE_PTHREADS_D4
7243 pthread_create(&t, pthread_attr_default, NULL, NULL);
7244 pthread_detach( &t );
7246 pthread_create(&t, NULL, NULL, NULL);
7247 pthread_detach( t );
7249 #ifdef HAVE_LINUX_THREADS
7250 pthread_kill_other_threads_np();
7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7257 ol_cv_pthread_lib_lpthreads=yes
7259 echo "configure: failed program was:" >&5
7260 cat conftest.$ac_ext >&5
7262 ol_cv_pthread_lib_lpthreads=no
7271 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
7273 if test $ol_cv_pthread_lib_lpthreads = yes ; then
7274 ol_link_pthreads="-lpthreads"
7275 ol_link_threads=posix
7280 if test $ol_link_threads != no ; then
7281 cat >> confdefs.h <<\EOF
7282 #define HAVE_PTHREADS 1
7286 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
7288 save_CPPFLAGS="$CPPFLAGS"
7290 LIBS="$LTHREAD_LIBS $LIBS"
7292 for ac_func in sched_yield pthread_yield
7294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7295 echo "configure:7296: checking for $ac_func" >&5
7296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7299 cat > conftest.$ac_ext <<EOF
7300 #line 7301 "configure"
7301 #include "confdefs.h"
7302 /* System header to define __stub macros and hopefully few prototypes,
7303 which can conflict with char $ac_func(); below. */
7305 /* Override any gcc2 internal prototype to avoid an error. */
7306 /* We use char because int might match the return type of a gcc2
7307 builtin and then its argument prototype would still apply. */
7312 /* The GNU C library defines this for functions which it implements
7313 to always fail with ENOSYS. Some functions are actually named
7314 something starting with __ and the normal name is an alias. */
7315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7323 if { (eval echo configure:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7325 eval "ac_cv_func_$ac_func=yes"
7327 echo "configure: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7330 eval "ac_cv_func_$ac_func=no"
7335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7336 echo "$ac_t""yes" 1>&6
7337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7338 cat >> confdefs.h <<EOF
7339 #define $ac_tr_func 1
7343 echo "$ac_t""no" 1>&6
7348 if test $ac_cv_func_sched_yield = no -a \
7349 $ac_cv_func_pthread_yield = no ; then
7350 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
7351 echo "configure:7352: checking for sched_yield in -lrt" >&5
7352 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
7353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7356 ac_save_LIBS="$LIBS"
7358 cat > conftest.$ac_ext <<EOF
7359 #line 7360 "configure"
7360 #include "confdefs.h"
7361 /* Override any gcc2 internal prototype to avoid an error. */
7362 /* We use char because int might match the return type of a gcc2
7363 builtin and then its argument prototype would still apply. */
7370 if { (eval echo configure:7371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7372 eval "ac_cv_lib_$ac_lib_var=yes"
7374 echo "configure: failed program was:" >&5
7375 cat conftest.$ac_ext >&5
7377 eval "ac_cv_lib_$ac_lib_var=no"
7380 LIBS="$ac_save_LIBS"
7383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7384 echo "$ac_t""yes" 1>&6
7385 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
7386 cat >> confdefs.h <<\EOF
7387 #define HAVE_SCHED_YIELD 1
7390 ac_cv_func_sched_yield=yes
7392 echo "$ac_t""no" 1>&6
7393 ac_cv_func_sched_yield=no
7397 if test $ac_cv_func_sched_yield = no -a \
7398 $ac_cv_func_pthread_yield = no ; then
7399 for ac_func in thr_yield
7401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7402 echo "configure:7403: checking for $ac_func" >&5
7403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7404 echo $ac_n "(cached) $ac_c" 1>&6
7406 cat > conftest.$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7409 /* System header to define __stub macros and hopefully few prototypes,
7410 which can conflict with char $ac_func(); below. */
7412 /* Override any gcc2 internal prototype to avoid an error. */
7413 /* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7419 /* The GNU C library defines this for functions which it implements
7420 to always fail with ENOSYS. Some functions are actually named
7421 something starting with __ and the normal name is an alias. */
7422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7430 if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7432 eval "ac_cv_func_$ac_func=yes"
7434 echo "configure: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7437 eval "ac_cv_func_$ac_func=no"
7442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7443 echo "$ac_t""yes" 1>&6
7444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7445 cat >> confdefs.h <<EOF
7446 #define $ac_tr_func 1
7450 echo "$ac_t""no" 1>&6
7455 if test $ac_cv_func_sched_yield = no -a \
7456 $ac_cv_func_pthread_yield = no -a \
7457 "$ac_cv_func_thr_yield" = no ; then
7458 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
7461 for ac_func in pthread_kill
7463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7464 echo "configure:7465: checking for $ac_func" >&5
7465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7466 echo $ac_n "(cached) $ac_c" 1>&6
7468 cat > conftest.$ac_ext <<EOF
7469 #line 7470 "configure"
7470 #include "confdefs.h"
7471 /* System header to define __stub macros and hopefully few prototypes,
7472 which can conflict with char $ac_func(); below. */
7474 /* Override any gcc2 internal prototype to avoid an error. */
7475 /* We use char because int might match the return type of a gcc2
7476 builtin and then its argument prototype would still apply. */
7481 /* The GNU C library defines this for functions which it implements
7482 to always fail with ENOSYS. Some functions are actually named
7483 something starting with __ and the normal name is an alias. */
7484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7492 if { (eval echo configure:7493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7494 eval "ac_cv_func_$ac_func=yes"
7496 echo "configure: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7499 eval "ac_cv_func_$ac_func=no"
7504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7505 echo "$ac_t""yes" 1>&6
7506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7507 cat >> confdefs.h <<EOF
7508 #define $ac_tr_func 1
7512 echo "$ac_t""no" 1>&6
7517 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
7518 echo "configure:7519: checking for pthread_detach with <pthread.h>" >&5
7519 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
7520 echo $ac_n "(cached) $ac_c" 1>&6
7523 cat > conftest.$ac_ext <<EOF
7524 #line 7525 "configure"
7525 #include "confdefs.h"
7527 #include <pthread.h>
7529 #define NULL (void*)0
7533 pthread_detach(NULL);
7536 if { (eval echo configure:7537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7538 ol_cv_func_pthread_detach=yes
7540 echo "configure: failed program was:" >&5
7541 cat conftest.$ac_ext >&5
7543 ol_cv_func_pthread_detach=no
7549 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
7551 if test $ol_cv_func_pthread_detach = no ; then
7552 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
7555 cat >> confdefs.h <<\EOF
7556 #define HAVE_PTHREAD_DETACH 1
7561 pthread_setconcurrency \
7562 pthread_getconcurrency \
7563 thr_setconcurrency \
7564 thr_getconcurrency \
7567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7568 echo "configure:7569: checking for $ac_func" >&5
7569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7570 echo $ac_n "(cached) $ac_c" 1>&6
7572 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7575 /* System header to define __stub macros and hopefully few prototypes,
7576 which can conflict with char $ac_func(); below. */
7578 /* Override any gcc2 internal prototype to avoid an error. */
7579 /* We use char because int might match the return type of a gcc2
7580 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 \"`echo '$''{'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();
7640 /* The GNU C library defines this for functions which it implements
7641 to always fail with ENOSYS. Some functions are actually named
7642 something starting with __ and the normal name is an alias. */
7643 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
7646 pthread_kill_other_threads_np();
7651 if { (eval echo configure:7652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7653 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
7655 echo "configure: failed program was:" >&5
7656 cat conftest.$ac_ext >&5
7658 eval "ac_cv_func_pthread_kill_other_threads_np=no"
7663 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
7664 echo "$ac_t""yes" 1>&6
7667 echo "$ac_t""no" 1>&6
7670 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
7671 echo "configure:7672: checking for LinuxThreads implementation" >&5
7672 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7675 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
7678 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
7683 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
7684 echo "configure:7685: checking for LinuxThreads consistency" >&5
7685 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7689 if test $ol_cv_header_linux_threads = yes -a \
7690 $ol_cv_sys_linux_threads = yes; then
7691 ol_cv_linux_threads=yes
7692 elif test $ol_cv_header_linux_threads = no -a \
7693 $ol_cv_sys_linux_threads = no; then
7694 ol_cv_linux_threads=no
7696 ol_cv_linux_threads=error
7701 echo "$ac_t""$ol_cv_linux_threads" 1>&6
7704 if test $ol_cv_linux_threads = error; then
7705 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
7708 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
7709 echo "configure:7710: checking if pthread_create() works" >&5
7710 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
7711 echo $ac_n "(cached) $ac_c" 1>&6
7714 if test "$cross_compiling" = yes; then
7715 ol_cv_pthread_create_works=yes
7717 cat > conftest.$ac_ext <<EOF
7718 #line 7719 "configure"
7719 #include "confdefs.h"
7721 #include <pthread.h>
7723 #define NULL (void*)0
7726 static void *task(p)
7729 return (void *) (p == NULL);
7732 int main(argc, argv)
7737 #if HAVE_PTHREADS_D4
7738 exit(pthread_create(&t, pthread_attr_default, task, NULL));
7740 exit(pthread_create(&t, NULL, task, NULL));
7745 if { (eval echo configure:7746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7747 ol_cv_pthread_create_works=yes
7749 echo "configure: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7752 ol_cv_pthread_create_works=no
7759 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
7761 if test $ol_cv_pthread_create_works = no ; then
7762 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
7765 if test $ol_with_yielding_select = auto ; then
7766 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
7767 echo "configure:7768: checking if select yields when using pthreads" >&5
7768 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
7769 echo $ac_n "(cached) $ac_c" 1>&6
7772 if test "$cross_compiling" = yes; then
7773 ol_cv_pthread_select_yields=cross
7775 cat > conftest.$ac_ext <<EOF
7776 #line 7777 "configure"
7777 #include "confdefs.h"
7779 #include <sys/types.h>
7780 #include <sys/time.h>
7782 #include <pthread.h>
7784 #define NULL (void*) 0
7787 static int fildes[2];
7789 static void *task(p)
7801 FD_SET(fildes[0], &rfds);
7803 /* we're not interested in any fds */
7804 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
7811 exit(0); /* if we exit here, the select blocked the whole process */
7814 int main(argc, argv)
7820 /* create a pipe to select */
7821 if(pipe(&fildes[0])) {
7826 #ifdef HAVE_PTHREAD_SETCONCURRENCY
7827 (void) pthread_setconcurrency(2);
7829 #ifdef HAVE_THR_SETCONCURRENCY
7830 /* Set Solaris LWP concurrency to 2 */
7831 thr_setconcurrency(2);
7835 #if HAVE_PTHREADS_D4
7836 pthread_create(&t, pthread_attr_default, task, NULL);
7838 pthread_create(&t, NULL, task, NULL);
7841 #if HAVE_SCHED_YIELD
7842 sched_yield(); /* make sure task runs first */
7844 #ifdef HAVE_PTHREAD_YIELD
7845 pthread_yield(); /* make sure task runs first */
7852 if { (eval echo configure:7853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7854 ol_cv_pthread_select_yields=no
7856 echo "configure: failed program was:" >&5
7857 cat conftest.$ac_ext >&5
7859 ol_cv_pthread_select_yields=yes
7866 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
7868 if test $ol_cv_pthread_select_yields = cross ; then
7869 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
7872 if test $ol_cv_pthread_select_yields = yes ; then
7873 ol_with_yielding_select=yes
7877 CPPFLAGS="$save_CPPFLAGS"
7880 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
7884 if test $ol_with_threads = posix ; then
7885 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
7889 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7890 -o $ol_with_threads = mach ; then
7892 for ac_hdr in mach/cthreads.h
7894 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7895 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7896 echo "configure:7897: checking for $ac_hdr" >&5
7897 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7898 echo $ac_n "(cached) $ac_c" 1>&6
7900 cat > conftest.$ac_ext <<EOF
7901 #line 7902 "configure"
7902 #include "confdefs.h"
7905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7906 { (eval echo configure:7907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7908 if test -z "$ac_err"; then
7910 eval "ac_cv_header_$ac_safe=yes"
7913 echo "configure: failed program was:" >&5
7914 cat conftest.$ac_ext >&5
7916 eval "ac_cv_header_$ac_safe=no"
7920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7921 echo "$ac_t""yes" 1>&6
7922 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7923 cat >> confdefs.h <<EOF
7924 #define $ac_tr_hdr 1
7928 echo "$ac_t""no" 1>&6
7932 if test $ac_cv_header_mach_cthreads_h = yes ; then
7933 ol_with_threads=found
7935 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
7936 echo "configure:7937: checking for cthread_fork" >&5
7937 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
7938 echo $ac_n "(cached) $ac_c" 1>&6
7940 cat > conftest.$ac_ext <<EOF
7941 #line 7942 "configure"
7942 #include "confdefs.h"
7943 /* System header to define __stub macros and hopefully few prototypes,
7944 which can conflict with char cthread_fork(); below. */
7946 /* Override any gcc2 internal prototype to avoid an error. */
7947 /* We use char because int might match the return type of a gcc2
7948 builtin and then its argument prototype would still apply. */
7949 char cthread_fork();
7953 /* The GNU C library defines this for functions which it implements
7954 to always fail with ENOSYS. Some functions are actually named
7955 something starting with __ and the normal name is an alias. */
7956 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
7964 if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7966 eval "ac_cv_func_cthread_fork=yes"
7968 echo "configure: failed program was:" >&5
7969 cat conftest.$ac_ext >&5
7971 eval "ac_cv_func_cthread_fork=no"
7976 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
7977 echo "$ac_t""yes" 1>&6
7980 echo "$ac_t""no" 1>&6
7984 if test $ol_link_threads = no ; then
7985 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
7986 echo "configure:7987: checking for cthread_fork with -all_load" >&5
7987 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7992 LIBS="-all_load $LIBS"
7993 cat > conftest.$ac_ext <<EOF
7994 #line 7995 "configure"
7995 #include "confdefs.h"
7996 #include <mach/cthreads.h>
7999 cthread_fork((void *)0, (void *)0);
8003 if { (eval echo configure:8004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8005 ol_cv_cthread_all_load=yes
8007 echo "configure: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8010 ol_cv_cthread_all_load=no
8017 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
8019 if test $ol_cv_cthread_all_load = yes ; then
8020 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
8021 ol_link_threads=mach
8025 if test $ol_link_threads != no ; then
8026 : check for cthread specific functionality here
8027 cat >> confdefs.h <<\EOF
8028 #define HAVE_MACH_CTHREADS 1
8032 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
8036 if test $ol_with_threads = mach ; then
8037 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
8041 if test $ol_with_threads = auto -o $ol_with_threads = yes \
8042 -o $ol_with_threads = lwp ; then
8044 for ac_hdr in thread.h synch.h
8046 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8047 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8048 echo "configure:8049: checking for $ac_hdr" >&5
8049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8052 cat > conftest.$ac_ext <<EOF
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8058 { (eval echo configure:8059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8060 if test -z "$ac_err"; then
8062 eval "ac_cv_header_$ac_safe=yes"
8065 echo "configure: failed program was:" >&5
8066 cat conftest.$ac_ext >&5
8068 eval "ac_cv_header_$ac_safe=no"
8072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8073 echo "$ac_t""yes" 1>&6
8074 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8075 cat >> confdefs.h <<EOF
8076 #define $ac_tr_hdr 1
8080 echo "$ac_t""no" 1>&6
8084 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
8085 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
8086 echo "configure:8087: checking for thr_create in -lthread" >&5
8087 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
8088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8089 echo $ac_n "(cached) $ac_c" 1>&6
8091 ac_save_LIBS="$LIBS"
8092 LIBS="-lthread $LIBS"
8093 cat > conftest.$ac_ext <<EOF
8094 #line 8095 "configure"
8095 #include "confdefs.h"
8096 /* Override any gcc2 internal prototype to avoid an error. */
8097 /* We use char because int might match the return type of a gcc2
8098 builtin and then its argument prototype would still apply. */
8105 if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8107 eval "ac_cv_lib_$ac_lib_var=yes"
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8112 eval "ac_cv_lib_$ac_lib_var=no"
8115 LIBS="$ac_save_LIBS"
8118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8119 echo "$ac_t""yes" 1>&6
8122 echo "$ac_t""no" 1>&6
8127 if test $have_thr = yes ; then
8128 cat >> confdefs.h <<\EOF
8132 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
8135 if test $ol_with_yielding_select = auto ; then
8136 ol_with_yielding_select=yes
8140 thr_setconcurrency \
8141 thr_getconcurrency \
8144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8145 echo "configure:8146: checking for $ac_func" >&5
8146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8147 echo $ac_n "(cached) $ac_c" 1>&6
8149 cat > conftest.$ac_ext <<EOF
8150 #line 8151 "configure"
8151 #include "confdefs.h"
8152 /* System header to define __stub macros and hopefully few prototypes,
8153 which can conflict with char $ac_func(); below. */
8155 /* Override any gcc2 internal prototype to avoid an error. */
8156 /* We use char because int might match the return type of a gcc2
8157 builtin and then its argument prototype would still apply. */
8162 /* The GNU C library defines this for functions which it implements
8163 to always fail with ENOSYS. Some functions are actually named
8164 something starting with __ and the normal name is an alias. */
8165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8173 if { (eval echo configure:8174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8175 eval "ac_cv_func_$ac_func=yes"
8177 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8180 eval "ac_cv_func_$ac_func=no"
8185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8186 echo "$ac_t""yes" 1>&6
8187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8188 cat >> confdefs.h <<EOF
8189 #define $ac_tr_func 1
8193 echo "$ac_t""no" 1>&6
8200 for ac_hdr in lwp/lwp.h
8202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8204 echo "configure:8205: checking for $ac_hdr" >&5
8205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8208 cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8214 { (eval echo configure:8215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8216 if test -z "$ac_err"; then
8218 eval "ac_cv_header_$ac_safe=yes"
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8224 eval "ac_cv_header_$ac_safe=no"
8228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8229 echo "$ac_t""yes" 1>&6
8230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8231 cat >> confdefs.h <<EOF
8232 #define $ac_tr_hdr 1
8236 echo "$ac_t""no" 1>&6
8240 if test $ac_cv_header_lwp_lwp_h = yes ; then
8241 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
8242 echo "configure:8243: checking for lwp_create in -llwp" >&5
8243 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
8244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8245 echo $ac_n "(cached) $ac_c" 1>&6
8247 ac_save_LIBS="$LIBS"
8249 cat > conftest.$ac_ext <<EOF
8250 #line 8251 "configure"
8251 #include "confdefs.h"
8252 /* Override any gcc2 internal prototype to avoid an error. */
8253 /* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8261 if { (eval echo configure:8262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8263 eval "ac_cv_lib_$ac_lib_var=yes"
8265 echo "configure: failed program was:" >&5
8266 cat conftest.$ac_ext >&5
8268 eval "ac_cv_lib_$ac_lib_var=no"
8271 LIBS="$ac_save_LIBS"
8274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8275 echo "$ac_t""yes" 1>&6
8278 echo "$ac_t""no" 1>&6
8283 if test $have_lwp = yes ; then
8284 cat >> confdefs.h <<\EOF
8288 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
8291 if test $ol_with_yielding_select = auto ; then
8292 ol_with_yielding_select=no
8298 if test $ol_with_yielding_select = yes ; then
8299 cat >> confdefs.h <<\EOF
8300 #define HAVE_YIELDING_SELECT 1
8305 if test $ol_with_threads = manual ; then
8308 echo "configure: warning: thread defines and link options must be set manually" 1>&2
8310 for ac_hdr in pthread.h sched.h
8312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8314 echo "configure:8315: checking for $ac_hdr" >&5
8315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8316 echo $ac_n "(cached) $ac_c" 1>&6
8318 cat > conftest.$ac_ext <<EOF
8319 #line 8320 "configure"
8320 #include "confdefs.h"
8323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8324 { (eval echo configure:8325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8326 if test -z "$ac_err"; then
8328 eval "ac_cv_header_$ac_safe=yes"
8331 echo "configure: failed program was:" >&5
8332 cat conftest.$ac_ext >&5
8334 eval "ac_cv_header_$ac_safe=no"
8338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8339 echo "$ac_t""yes" 1>&6
8340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8341 cat >> confdefs.h <<EOF
8342 #define $ac_tr_hdr 1
8346 echo "$ac_t""no" 1>&6
8350 for ac_func in sched_yield pthread_yield
8352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8353 echo "configure:8354: checking for $ac_func" >&5
8354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 /* System header to define __stub macros and hopefully few prototypes,
8361 which can conflict with char $ac_func(); below. */
8363 /* Override any gcc2 internal prototype to avoid an error. */
8364 /* We use char because int might match the return type of a gcc2
8365 builtin and then its argument prototype would still apply. */
8370 /* The GNU C library defines this for functions which it implements
8371 to always fail with ENOSYS. Some functions are actually named
8372 something starting with __ and the normal name is an alias. */
8373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8381 if { (eval echo configure:8382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8383 eval "ac_cv_func_$ac_func=yes"
8385 echo "configure: failed program was:" >&5
8386 cat conftest.$ac_ext >&5
8388 eval "ac_cv_func_$ac_func=no"
8393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8394 echo "$ac_t""yes" 1>&6
8395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8396 cat >> confdefs.h <<EOF
8397 #define $ac_tr_func 1
8401 echo "$ac_t""no" 1>&6
8406 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
8407 echo "configure:8408: checking for LinuxThreads pthread.h" >&5
8408 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
8409 echo $ac_n "(cached) $ac_c" 1>&6
8411 cat > conftest.$ac_ext <<EOF
8412 #line 8413 "configure"
8413 #include "confdefs.h"
8414 #include <pthread.h>
8416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8417 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
8419 ol_cv_header_linux_threads=yes
8422 ol_cv_header_linux_threads=no
8429 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
8430 if test $ol_cv_header_linux_threads = yes; then
8431 cat >> confdefs.h <<\EOF
8432 #define HAVE_LINUX_THREADS 1
8438 for ac_hdr in mach/cthreads.h
8440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8442 echo "configure:8443: checking for $ac_hdr" >&5
8443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8444 echo $ac_n "(cached) $ac_c" 1>&6
8446 cat > conftest.$ac_ext <<EOF
8447 #line 8448 "configure"
8448 #include "confdefs.h"
8451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8452 { (eval echo configure:8453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8454 if test -z "$ac_err"; then
8456 eval "ac_cv_header_$ac_safe=yes"
8459 echo "configure: failed program was:" >&5
8460 cat conftest.$ac_ext >&5
8462 eval "ac_cv_header_$ac_safe=no"
8466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8467 echo "$ac_t""yes" 1>&6
8468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8469 cat >> confdefs.h <<EOF
8470 #define $ac_tr_hdr 1
8474 echo "$ac_t""no" 1>&6
8478 for ac_hdr in lwp/lwp.h
8480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8482 echo "configure:8483: checking for $ac_hdr" >&5
8483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8484 echo $ac_n "(cached) $ac_c" 1>&6
8486 cat > conftest.$ac_ext <<EOF
8487 #line 8488 "configure"
8488 #include "confdefs.h"
8491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8492 { (eval echo configure:8493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8494 if test -z "$ac_err"; then
8496 eval "ac_cv_header_$ac_safe=yes"
8499 echo "configure: failed program was:" >&5
8500 cat conftest.$ac_ext >&5
8502 eval "ac_cv_header_$ac_safe=no"
8506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8507 echo "$ac_t""yes" 1>&6
8508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8509 cat >> confdefs.h <<EOF
8510 #define $ac_tr_hdr 1
8514 echo "$ac_t""no" 1>&6
8518 for ac_hdr in thread.h synch.h
8520 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8521 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8522 echo "configure:8523: checking for $ac_hdr" >&5
8523 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8524 echo $ac_n "(cached) $ac_c" 1>&6
8526 cat > conftest.$ac_ext <<EOF
8527 #line 8528 "configure"
8528 #include "confdefs.h"
8531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8532 { (eval echo configure:8533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8534 if test -z "$ac_err"; then
8536 eval "ac_cv_header_$ac_safe=yes"
8539 echo "configure: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8542 eval "ac_cv_header_$ac_safe=no"
8546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8547 echo "$ac_t""yes" 1>&6
8548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8549 cat >> confdefs.h <<EOF
8550 #define $ac_tr_hdr 1
8554 echo "$ac_t""no" 1>&6
8560 if test $ol_link_threads != no ; then
8561 cat >> confdefs.h <<\EOF
8565 cat >> confdefs.h <<\EOF
8566 #define _REENTRANT 1
8569 cat >> confdefs.h <<\EOF
8570 #define THREAD_SAFE 1
8573 cat >> confdefs.h <<\EOF
8574 #define _THREAD_SAFE 1
8577 cat >> confdefs.h <<\EOF
8578 #define THREADSAFE 1
8581 cat >> confdefs.h <<\EOF
8582 #define _THREADSAFE 1
8585 cat >> confdefs.h <<\EOF
8586 #define _SGI_MP_SOURCE 1
8590 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
8591 echo "configure:8592: checking for thread specific errno" >&5
8592 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
8593 echo $ac_n "(cached) $ac_c" 1>&6
8596 cat > conftest.$ac_ext <<EOF
8597 #line 8598 "configure"
8598 #include "confdefs.h"
8604 if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8606 ol_cv_errno_thread_specific=yes
8608 echo "configure: failed program was:" >&5
8609 cat conftest.$ac_ext >&5
8611 ol_cv_errno_thread_specific=no
8617 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
8619 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
8620 echo "configure:8621: checking for thread specific h_errno" >&5
8621 if eval "test \"`echo '$''{'ol_cv_h_errno_thread_specific'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8625 cat > conftest.$ac_ext <<EOF
8626 #line 8627 "configure"
8627 #include "confdefs.h"
8633 if { (eval echo configure:8634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8635 ol_cv_h_errno_thread_specific=yes
8637 echo "configure: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8640 ol_cv_h_errno_thread_specific=no
8646 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
8648 if test $ol_cv_errno_thread_specific != yes \
8649 -o $ol_cv_h_errno_thread_specific != yes ; then
8650 LIBS="$LTHREAD_LIBS $LIBS"
8656 if test $ol_link_threads = no ; then
8657 if test $ol_with_threads = yes ; then
8658 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
8661 if test $ol_with_threads = auto ; then
8662 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
8666 cat >> confdefs.h <<\EOF
8667 #define NO_THREADS 1
8673 if test $ol_link_threads != no ; then
8674 cat >> confdefs.h <<\EOF
8675 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
8682 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
8683 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
8684 echo "configure:8685: checking for DB2 library" >&5
8685 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
8689 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
8690 echo "configure:8691: checking for db_open in -ldb" >&5
8691 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
8692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8695 ac_save_LIBS="$LIBS"
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8709 if { (eval echo configure:8710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8711 eval "ac_cv_lib_$ac_lib_var=yes"
8713 echo "configure: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8716 eval "ac_cv_lib_$ac_lib_var=no"
8719 LIBS="$ac_save_LIBS"
8722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8723 echo "$ac_t""yes" 1>&6
8726 echo "$ac_t""no" 1>&6
8734 echo "$ac_t""$ol_cv_lib_db2" 1>&6
8738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8740 echo "configure:8741: checking for $ac_hdr" >&5
8741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8742 echo $ac_n "(cached) $ac_c" 1>&6
8744 cat > conftest.$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8750 { (eval echo configure:8751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8752 if test -z "$ac_err"; then
8754 eval "ac_cv_header_$ac_safe=yes"
8757 echo "configure: failed program was:" >&5
8758 cat conftest.$ac_ext >&5
8760 eval "ac_cv_header_$ac_safe=no"
8764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8765 echo "$ac_t""yes" 1>&6
8766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8767 cat >> confdefs.h <<EOF
8768 #define $ac_tr_hdr 1
8772 echo "$ac_t""no" 1>&6
8776 if test $ac_cv_header_db_h = yes ; then
8777 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
8778 echo "configure:8779: checking if db.h is DB2" >&5
8779 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8783 cat > conftest.$ac_ext <<EOF
8784 #line 8785 "configure"
8785 #include "confdefs.h"
8788 /* this check could be improved */
8789 # ifdef DB_VERSION_MAJOR
8790 # if DB_VERSION_MAJOR == 2
8796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8797 egrep "__db_version_2" >/dev/null 2>&1; then
8799 ol_cv_header_db2=yes
8808 echo "$ac_t""$ol_cv_header_db2" 1>&6
8815 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
8816 echo "configure:8817: checking for Berkeley DB2" >&5
8817 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
8818 echo $ac_n "(cached) $ac_c" 1>&6
8821 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
8822 ol_cv_berkeley_db2=no
8824 ol_cv_berkeley_db2=yes
8829 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
8830 if test $ol_cv_berkeley_db2 = yes ; then
8831 cat >> confdefs.h <<\EOF
8832 #define HAVE_BERKELEY_DB2 1
8838 if test $ol_cv_berkeley_db2 = yes ; then
8840 ol_with_ldbm_api=db2
8842 if test $ol_with_ldbm_type = hash ; then
8843 cat >> confdefs.h <<\EOF
8844 #define LDBM_USE_DBHASH 1
8848 cat >> confdefs.h <<\EOF
8849 #define LDBM_USE_DBBTREE 1
8854 if test $ol_cv_lib_db2 != yes ; then
8855 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
8861 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
8865 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
8866 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
8867 echo "configure:8868: checking for Berkeley DB library" >&5
8868 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
8869 echo $ac_n "(cached) $ac_c" 1>&6
8872 for ac_hdr in db1/db.h
8874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8876 echo "configure:8877: checking for $ac_hdr" >&5
8877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8878 echo $ac_n "(cached) $ac_c" 1>&6
8880 cat > conftest.$ac_ext <<EOF
8881 #line 8882 "configure"
8882 #include "confdefs.h"
8885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8886 { (eval echo configure:8887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8888 if test -z "$ac_err"; then
8890 eval "ac_cv_header_$ac_safe=yes"
8893 echo "configure: failed program was:" >&5
8894 cat conftest.$ac_ext >&5
8896 eval "ac_cv_header_$ac_safe=no"
8900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8901 echo "$ac_t""yes" 1>&6
8902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8903 cat >> confdefs.h <<EOF
8904 #define $ac_tr_hdr 1
8908 echo "$ac_t""no" 1>&6
8913 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
8914 echo "configure:8915: checking for dbopen" >&5
8915 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
8916 echo $ac_n "(cached) $ac_c" 1>&6
8918 cat > conftest.$ac_ext <<EOF
8919 #line 8920 "configure"
8920 #include "confdefs.h"
8921 /* System header to define __stub macros and hopefully few prototypes,
8922 which can conflict with char dbopen(); below. */
8924 /* Override any gcc2 internal prototype to avoid an error. */
8925 /* We use char because int might match the return type of a gcc2
8926 builtin and then its argument prototype would still apply. */
8931 /* The GNU C library defines this for functions which it implements
8932 to always fail with ENOSYS. Some functions are actually named
8933 something starting with __ and the normal name is an alias. */
8934 #if defined (__stub_dbopen) || defined (__stub___dbopen)
8942 if { (eval echo configure:8943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8944 eval "ac_cv_func_dbopen=yes"
8946 echo "configure: failed program was:" >&5
8947 cat conftest.$ac_ext >&5
8949 eval "ac_cv_func_dbopen=no"
8954 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
8955 echo "$ac_t""yes" 1>&6
8958 echo "$ac_t""no" 1>&6
8960 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
8961 echo "configure:8962: checking for dbopen in -ldb1" >&5
8962 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
8963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8966 ac_save_LIBS="$LIBS"
8968 cat > conftest.$ac_ext <<EOF
8969 #line 8970 "configure"
8970 #include "confdefs.h"
8971 /* Override any gcc2 internal prototype to avoid an error. */
8972 /* We use char because int might match the return type of a gcc2
8973 builtin and then its argument prototype would still apply. */
8980 if { (eval echo configure:8981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8982 eval "ac_cv_lib_$ac_lib_var=yes"
8984 echo "configure: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8987 eval "ac_cv_lib_$ac_lib_var=no"
8990 LIBS="$ac_save_LIBS"
8993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8994 echo "$ac_t""yes" 1>&6
8997 echo "$ac_t""no" 1>&6
8999 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9000 echo "configure:9001: checking for dbopen in -ldb" >&5
9001 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9003 echo $ac_n "(cached) $ac_c" 1>&6
9005 ac_save_LIBS="$LIBS"
9007 cat > conftest.$ac_ext <<EOF
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9010 /* Override any gcc2 internal prototype to avoid an error. */
9011 /* We use char because int might match the return type of a gcc2
9012 builtin and then its argument prototype would still apply. */
9019 if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9021 eval "ac_cv_lib_$ac_lib_var=yes"
9023 echo "configure: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9026 eval "ac_cv_lib_$ac_lib_var=no"
9029 LIBS="$ac_save_LIBS"
9032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9033 echo "$ac_t""yes" 1>&6
9036 echo "$ac_t""no" 1>&6
9050 echo "$ac_t""$ol_cv_lib_db" 1>&6
9053 for ac_hdr in db_185.h
9055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9057 echo "configure:9058: checking for $ac_hdr" >&5
9058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9059 echo $ac_n "(cached) $ac_c" 1>&6
9061 cat > conftest.$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9067 { (eval echo configure:9068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9069 if test -z "$ac_err"; then
9071 eval "ac_cv_header_$ac_safe=yes"
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9077 eval "ac_cv_header_$ac_safe=no"
9081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9082 echo "$ac_t""yes" 1>&6
9083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9084 cat >> confdefs.h <<EOF
9085 #define $ac_tr_hdr 1
9089 echo "$ac_t""no" 1>&6
9093 if test "$ol_cv_header_db2" = yes ; then
9095 ol_cv_header_db=$ac_cv_header_db_185_h
9097 ol_cv_header_db=$ac_cv_header_db_h
9102 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
9103 echo "configure:9104: checking for Berkeley DB" >&5
9104 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
9105 echo $ac_n "(cached) $ac_c" 1>&6
9108 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
9109 ol_cv_berkeley_db=no
9111 ol_cv_berkeley_db=yes
9116 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
9117 if test $ol_cv_berkeley_db = yes ; then
9118 cat >> confdefs.h <<\EOF
9119 #define HAVE_BERKELEY_DB 1
9125 if test $ol_cv_berkeley_db = yes ; then
9129 if test $ol_with_ldbm_type = hash ; then
9130 cat >> confdefs.h <<\EOF
9131 #define LDBM_USE_DBHASH 1
9135 cat >> confdefs.h <<\EOF
9136 #define LDBM_USE_DBBTREE 1
9141 if test $ol_cv_lib_db != yes ; then
9142 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
9147 if test $ol_with_ldbm_api = manual ; then
9150 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
9152 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
9154 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9155 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9156 echo "configure:9157: checking for $ac_hdr" >&5
9157 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9158 echo $ac_n "(cached) $ac_c" 1>&6
9160 cat > conftest.$ac_ext <<EOF
9161 #line 9162 "configure"
9162 #include "confdefs.h"
9165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9166 { (eval echo configure:9167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9168 if test -z "$ac_err"; then
9170 eval "ac_cv_header_$ac_safe=yes"
9173 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9176 eval "ac_cv_header_$ac_safe=no"
9180 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9181 echo "$ac_t""yes" 1>&6
9182 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9183 cat >> confdefs.h <<EOF
9184 #define $ac_tr_hdr 1
9188 echo "$ac_t""no" 1>&6
9194 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
9195 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
9196 ol_with_ldbm_api=none
9199 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
9200 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
9201 echo "configure:9202: checking for MDBM library" >&5
9202 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9206 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
9207 echo "configure:9208: checking for mdbm_set_chain" >&5
9208 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
9209 echo $ac_n "(cached) $ac_c" 1>&6
9211 cat > conftest.$ac_ext <<EOF
9212 #line 9213 "configure"
9213 #include "confdefs.h"
9214 /* System header to define __stub macros and hopefully few prototypes,
9215 which can conflict with char mdbm_set_chain(); below. */
9217 /* Override any gcc2 internal prototype to avoid an error. */
9218 /* We use char because int might match the return type of a gcc2
9219 builtin and then its argument prototype would still apply. */
9220 char mdbm_set_chain();
9224 /* The GNU C library defines this for functions which it implements
9225 to always fail with ENOSYS. Some functions are actually named
9226 something starting with __ and the normal name is an alias. */
9227 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
9235 if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9237 eval "ac_cv_func_mdbm_set_chain=yes"
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9242 eval "ac_cv_func_mdbm_set_chain=no"
9247 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
9248 echo "$ac_t""yes" 1>&6
9251 echo "$ac_t""no" 1>&6
9253 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
9254 echo "configure:9255: checking for mdbm_set_chain in -lmdbm" >&5
9255 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
9256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9257 echo $ac_n "(cached) $ac_c" 1>&6
9259 ac_save_LIBS="$LIBS"
9261 cat > conftest.$ac_ext <<EOF
9262 #line 9263 "configure"
9263 #include "confdefs.h"
9264 /* Override any gcc2 internal prototype to avoid an error. */
9265 /* We use char because int might match the return type of a gcc2
9266 builtin and then its argument prototype would still apply. */
9267 char mdbm_set_chain();
9273 if { (eval echo configure:9274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9275 eval "ac_cv_lib_$ac_lib_var=yes"
9277 echo "configure: failed program was:" >&5
9278 cat conftest.$ac_ext >&5
9280 eval "ac_cv_lib_$ac_lib_var=no"
9283 LIBS="$ac_save_LIBS"
9286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9287 echo "$ac_t""yes" 1>&6
9288 ol_cv_lib_mdbm=-lmdbm
9290 echo "$ac_t""no" 1>&6
9301 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
9304 for ac_hdr in mdbm.h
9306 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9308 echo "configure:9309: checking for $ac_hdr" >&5
9309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9310 echo $ac_n "(cached) $ac_c" 1>&6
9312 cat > conftest.$ac_ext <<EOF
9313 #line 9314 "configure"
9314 #include "confdefs.h"
9317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9318 { (eval echo configure:9319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9320 if test -z "$ac_err"; then
9322 eval "ac_cv_header_$ac_safe=yes"
9325 echo "configure: failed program was:" >&5
9326 cat conftest.$ac_ext >&5
9328 eval "ac_cv_header_$ac_safe=no"
9332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9333 echo "$ac_t""yes" 1>&6
9334 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9335 cat >> confdefs.h <<EOF
9336 #define $ac_tr_hdr 1
9340 echo "$ac_t""no" 1>&6
9344 echo $ac_n "checking for db""... $ac_c" 1>&6
9345 echo "configure:9346: checking for db" >&5
9346 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
9347 echo $ac_n "(cached) $ac_c" 1>&6
9350 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
9358 echo "$ac_t""$ol_cv_mdbm" 1>&6
9359 if test $ol_cv_mdbm = yes ; then
9360 cat >> confdefs.h <<\EOF
9367 if test $ol_cv_mdbm = yes ; then
9369 ol_with_ldbm_api=mdbm
9370 if test $ol_cv_lib_mdbm != yes ; then
9371 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
9376 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
9377 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
9378 echo "configure:9379: checking for GDBM library" >&5
9379 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
9380 echo $ac_n "(cached) $ac_c" 1>&6
9383 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
9384 echo "configure:9385: checking for gdbm_open" >&5
9385 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
9388 cat > conftest.$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 /* System header to define __stub macros and hopefully few prototypes,
9392 which can conflict with char gdbm_open(); below. */
9394 /* Override any gcc2 internal prototype to avoid an error. */
9395 /* We use char because int might match the return type of a gcc2
9396 builtin and then its argument prototype would still apply. */
9401 /* The GNU C library defines this for functions which it implements
9402 to always fail with ENOSYS. Some functions are actually named
9403 something starting with __ and the normal name is an alias. */
9404 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
9412 if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9414 eval "ac_cv_func_gdbm_open=yes"
9416 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9419 eval "ac_cv_func_gdbm_open=no"
9424 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
9425 echo "$ac_t""yes" 1>&6
9428 echo "$ac_t""no" 1>&6
9430 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
9431 echo "configure:9432: checking for gdbm_open in -lgdbm" >&5
9432 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
9433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9436 ac_save_LIBS="$LIBS"
9438 cat > conftest.$ac_ext <<EOF
9439 #line 9440 "configure"
9440 #include "confdefs.h"
9441 /* Override any gcc2 internal prototype to avoid an error. */
9442 /* We use char because int might match the return type of a gcc2
9443 builtin and then its argument prototype would still apply. */
9450 if { (eval echo configure:9451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9452 eval "ac_cv_lib_$ac_lib_var=yes"
9454 echo "configure: failed program was:" >&5
9455 cat conftest.$ac_ext >&5
9457 eval "ac_cv_lib_$ac_lib_var=no"
9460 LIBS="$ac_save_LIBS"
9463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9464 echo "$ac_t""yes" 1>&6
9465 ol_cv_lib_gdbm=-lgdbm
9467 echo "$ac_t""no" 1>&6
9478 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
9481 for ac_hdr in gdbm.h
9483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9485 echo "configure:9486: checking for $ac_hdr" >&5
9486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
9489 cat > conftest.$ac_ext <<EOF
9490 #line 9491 "configure"
9491 #include "confdefs.h"
9494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9495 { (eval echo configure:9496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9497 if test -z "$ac_err"; then
9499 eval "ac_cv_header_$ac_safe=yes"
9502 echo "configure: failed program was:" >&5
9503 cat conftest.$ac_ext >&5
9505 eval "ac_cv_header_$ac_safe=no"
9509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9510 echo "$ac_t""yes" 1>&6
9511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9512 cat >> confdefs.h <<EOF
9513 #define $ac_tr_hdr 1
9517 echo "$ac_t""no" 1>&6
9521 echo $ac_n "checking for db""... $ac_c" 1>&6
9522 echo "configure:9523: checking for db" >&5
9523 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9527 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
9535 echo "$ac_t""$ol_cv_gdbm" 1>&6
9536 if test $ol_cv_gdbm = yes ; then
9537 cat >> confdefs.h <<\EOF
9544 if test $ol_cv_gdbm = yes ; then
9546 ol_with_ldbm_api=gdbm
9548 if test $ol_cv_lib_gdbm != yes ; then
9549 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
9554 if test $ol_with_ldbm_api = auto ; then
9555 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
9556 elif test $ol_with_ldbm_api = ndbm ; then
9557 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
9558 echo "configure:9559: checking for NDBM library" >&5
9559 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
9560 echo $ac_n "(cached) $ac_c" 1>&6
9563 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9564 echo "configure:9565: checking for dbm_open" >&5
9565 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9568 cat > conftest.$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9571 /* System header to define __stub macros and hopefully few prototypes,
9572 which can conflict with char dbm_open(); below. */
9574 /* Override any gcc2 internal prototype to avoid an error. */
9575 /* We use char because int might match the return type of a gcc2
9576 builtin and then its argument prototype would still apply. */
9581 /* The GNU C library defines this for functions which it implements
9582 to always fail with ENOSYS. Some functions are actually named
9583 something starting with __ and the normal name is an alias. */
9584 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
9592 if { (eval echo configure:9593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9594 eval "ac_cv_func_dbm_open=yes"
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9599 eval "ac_cv_func_dbm_open=no"
9604 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
9605 echo "$ac_t""yes" 1>&6
9608 echo "$ac_t""no" 1>&6
9610 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
9611 echo "configure:9612: checking for dbm_open in -lndbm" >&5
9612 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
9613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9614 echo $ac_n "(cached) $ac_c" 1>&6
9616 ac_save_LIBS="$LIBS"
9618 cat > conftest.$ac_ext <<EOF
9619 #line 9620 "configure"
9620 #include "confdefs.h"
9621 /* Override any gcc2 internal prototype to avoid an error. */
9622 /* We use char because int might match the return type of a gcc2
9623 builtin and then its argument prototype would still apply. */
9630 if { (eval echo configure:9631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9632 eval "ac_cv_lib_$ac_lib_var=yes"
9634 echo "configure: failed program was:" >&5
9635 cat conftest.$ac_ext >&5
9637 eval "ac_cv_lib_$ac_lib_var=no"
9640 LIBS="$ac_save_LIBS"
9643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9644 echo "$ac_t""yes" 1>&6
9645 ol_cv_lib_ndbm=-lndbm
9647 echo "$ac_t""no" 1>&6
9649 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9650 echo "configure:9651: checking for dbm_open in -ldbm" >&5
9651 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9653 echo $ac_n "(cached) $ac_c" 1>&6
9655 ac_save_LIBS="$LIBS"
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9660 /* Override any gcc2 internal prototype to avoid an error. */
9661 /* We use char because int might match the return type of a gcc2
9662 builtin and then its argument prototype would still apply. */
9669 if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9671 eval "ac_cv_lib_$ac_lib_var=yes"
9673 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9676 eval "ac_cv_lib_$ac_lib_var=no"
9679 LIBS="$ac_save_LIBS"
9682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9683 echo "$ac_t""yes" 1>&6
9684 ol_cv_lib_ndbm=-ldbm
9686 echo "$ac_t""no" 1>&6
9699 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
9702 for ac_hdr in ndbm.h
9704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9706 echo "configure:9707: checking for $ac_hdr" >&5
9707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9708 echo $ac_n "(cached) $ac_c" 1>&6
9710 cat > conftest.$ac_ext <<EOF
9711 #line 9712 "configure"
9712 #include "confdefs.h"
9715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9716 { (eval echo configure:9717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9718 if test -z "$ac_err"; then
9720 eval "ac_cv_header_$ac_safe=yes"
9723 echo "configure: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9726 eval "ac_cv_header_$ac_safe=no"
9730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9731 echo "$ac_t""yes" 1>&6
9732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9733 cat >> confdefs.h <<EOF
9734 #define $ac_tr_hdr 1
9738 echo "$ac_t""no" 1>&6
9742 echo $ac_n "checking for db""... $ac_c" 1>&6
9743 echo "configure:9744: checking for db" >&5
9744 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
9745 echo $ac_n "(cached) $ac_c" 1>&6
9748 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
9756 echo "$ac_t""$ol_cv_ndbm" 1>&6
9757 if test $ol_cv_ndbm = yes ; then
9758 cat >> confdefs.h <<\EOF
9765 if test $ol_cv_ndbm = yes ; then
9767 ol_with_ldbm_api=ndbm
9769 if test $ol_cv_lib_ndbm != yes ; then
9770 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
9775 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
9776 echo "configure: warning: could not find suitable LDBM backend" 1>&2
9777 if test $ol_enable_ldbm = yes ; then
9778 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
9781 echo "configure: warning: disabling LDBM" 1>&2
9785 if test $ol_enable_wrappers != no ; then
9786 for ac_hdr in tcpd.h
9788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9790 echo "configure:9791: checking for $ac_hdr" >&5
9791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9794 cat > conftest.$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9800 { (eval echo configure:9801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9802 if test -z "$ac_err"; then
9804 eval "ac_cv_header_$ac_safe=yes"
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9810 eval "ac_cv_header_$ac_safe=no"
9814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9815 echo "$ac_t""yes" 1>&6
9816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9817 cat >> confdefs.h <<EOF
9818 #define $ac_tr_hdr 1
9822 echo "$ac_t""no" 1>&6
9827 if test $ac_cv_header_tcpd_h != yes ; then
9830 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
9831 echo "configure:9832: checking for main in -lwrap" >&5
9832 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
9833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9834 echo $ac_n "(cached) $ac_c" 1>&6
9836 ac_save_LIBS="$LIBS"
9838 cat > conftest.$ac_ext <<EOF
9839 #line 9840 "configure"
9840 #include "confdefs.h"
9846 if { (eval echo configure:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9848 eval "ac_cv_lib_$ac_lib_var=yes"
9850 echo "configure: failed program was:" >&5
9851 cat conftest.$ac_ext >&5
9853 eval "ac_cv_lib_$ac_lib_var=no"
9856 LIBS="$ac_save_LIBS"
9859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9860 echo "$ac_t""yes" 1>&6
9863 echo "$ac_t""no" 1>&6
9869 if test $have_wrappers = yes ; then
9870 cat >> confdefs.h <<\EOF
9874 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
9876 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9877 echo "configure:9878: checking for main in -lnsl" >&5
9878 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
9879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9880 echo $ac_n "(cached) $ac_c" 1>&6
9882 ac_save_LIBS="$LIBS"
9884 cat > conftest.$ac_ext <<EOF
9885 #line 9886 "configure"
9886 #include "confdefs.h"
9892 if { (eval echo configure:9893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9894 eval "ac_cv_lib_$ac_lib_var=yes"
9896 echo "configure: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9899 eval "ac_cv_lib_$ac_lib_var=no"
9902 LIBS="$ac_save_LIBS"
9905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9906 echo "$ac_t""yes" 1>&6
9907 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9909 cat >> confdefs.h <<EOF
9910 #define $ac_tr_lib 1
9916 echo "$ac_t""no" 1>&6
9920 echo "configure: warning: could not find -lwrap" 1>&2
9921 if test $ol_enable_wrappers = yes ; then
9922 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
9925 echo "configure: warning: disabling wrappers support" 1>&2
9926 ol_enable_wrappers=no
9930 if test $ol_enable_syslog != no ; then
9931 echo $ac_n "checking for openlog""... $ac_c" 1>&6
9932 echo "configure:9933: checking for openlog" >&5
9933 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9936 cat > conftest.$ac_ext <<EOF
9937 #line 9938 "configure"
9938 #include "confdefs.h"
9939 /* System header to define __stub macros and hopefully few prototypes,
9940 which can conflict with char openlog(); below. */
9942 /* Override any gcc2 internal prototype to avoid an error. */
9943 /* We use char because int might match the return type of a gcc2
9944 builtin and then its argument prototype would still apply. */
9949 /* The GNU C library defines this for functions which it implements
9950 to always fail with ENOSYS. Some functions are actually named
9951 something starting with __ and the normal name is an alias. */
9952 #if defined (__stub_openlog) || defined (__stub___openlog)
9960 if { (eval echo configure:9961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9962 eval "ac_cv_func_openlog=yes"
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9967 eval "ac_cv_func_openlog=no"
9972 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
9973 echo "$ac_t""yes" 1>&6
9976 echo "$ac_t""no" 1>&6
9979 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
9980 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
9982 ol_enable_syslog=$ac_cv_func_openlog
9985 if test $ol_enable_dmalloc != no ; then
9986 for ac_hdr in dmalloc.h
9988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9990 echo "configure:9991: checking for $ac_hdr" >&5
9991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9992 echo $ac_n "(cached) $ac_c" 1>&6
9994 cat > conftest.$ac_ext <<EOF
9995 #line 9996 "configure"
9996 #include "confdefs.h"
9999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10000 { (eval echo configure:10001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10002 if test -z "$ac_err"; then
10004 eval "ac_cv_header_$ac_safe=yes"
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10010 eval "ac_cv_header_$ac_safe=no"
10014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10015 echo "$ac_t""yes" 1>&6
10016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10017 cat >> confdefs.h <<EOF
10018 #define $ac_tr_hdr 1
10022 echo "$ac_t""no" 1>&6
10026 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
10027 echo "configure:10028: checking for dmalloc_shutdown in -ldmalloc" >&5
10028 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
10029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10030 echo $ac_n "(cached) $ac_c" 1>&6
10032 ac_save_LIBS="$LIBS"
10033 LIBS="-ldmalloc $LIBS"
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10040 char dmalloc_shutdown();
10046 if { (eval echo configure:10047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10048 eval "ac_cv_lib_$ac_lib_var=yes"
10050 echo "configure: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10053 eval "ac_cv_lib_$ac_lib_var=no"
10056 LIBS="$ac_save_LIBS"
10059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10060 echo "$ac_t""yes" 1>&6
10061 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10062 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10063 cat >> confdefs.h <<EOF
10064 #define $ac_tr_lib 1
10067 LIBS="-ldmalloc $LIBS"
10070 echo "$ac_t""no" 1>&6
10075 if test $ol_enable_tcl != no ; then
10076 for ac_hdr in tcl.h
10078 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10080 echo "configure:10081: checking for $ac_hdr" >&5
10081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10082 echo $ac_n "(cached) $ac_c" 1>&6
10084 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10090 { (eval echo configure:10091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10092 if test -z "$ac_err"; then
10094 eval "ac_cv_header_$ac_safe=yes"
10097 echo "configure: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10100 eval "ac_cv_header_$ac_safe=no"
10104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10105 echo "$ac_t""yes" 1>&6
10106 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10107 cat >> confdefs.h <<EOF
10108 #define $ac_tr_hdr 1
10112 echo "$ac_t""no" 1>&6
10117 if test $ac_cv_header_tcl_h != yes ; then
10120 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
10121 echo "configure:10122: checking for main in -ltcl" >&5
10122 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
10123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10124 echo $ac_n "(cached) $ac_c" 1>&6
10126 ac_save_LIBS="$LIBS"
10128 cat > conftest.$ac_ext <<EOF
10129 #line 10130 "configure"
10130 #include "confdefs.h"
10136 if { (eval echo configure:10137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10138 eval "ac_cv_lib_$ac_lib_var=yes"
10140 echo "configure: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10143 eval "ac_cv_lib_$ac_lib_var=no"
10146 LIBS="$ac_save_LIBS"
10149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10150 echo "$ac_t""yes" 1>&6
10151 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
10153 echo "$ac_t""no" 1>&6
10158 if test $have_tcl != yes; then
10159 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
10160 echo "configure:10161: checking for main in -ltcl7.6" >&5
10161 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
10162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10165 ac_save_LIBS="$LIBS"
10166 LIBS="-ltcl7.6 $LIBS"
10167 cat > conftest.$ac_ext <<EOF
10168 #line 10169 "configure"
10169 #include "confdefs.h"
10175 if { (eval echo configure:10176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10177 eval "ac_cv_lib_$ac_lib_var=yes"
10179 echo "configure: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10182 eval "ac_cv_lib_$ac_lib_var=no"
10185 LIBS="$ac_save_LIBS"
10188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10189 echo "$ac_t""yes" 1>&6
10190 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
10192 echo "$ac_t""no" 1>&6
10198 if test $have_tcl != yes; then
10199 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
10200 echo "configure:10201: checking for main in -ltcl8.0" >&5
10201 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
10202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10205 ac_save_LIBS="$LIBS"
10206 LIBS="-ltcl8.0 $LIBS"
10207 cat > conftest.$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10215 if { (eval echo configure:10216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10217 eval "ac_cv_lib_$ac_lib_var=yes"
10219 echo "configure: failed program was:" >&5
10220 cat conftest.$ac_ext >&5
10222 eval "ac_cv_lib_$ac_lib_var=no"
10225 LIBS="$ac_save_LIBS"
10228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10229 echo "$ac_t""yes" 1>&6
10230 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
10232 echo "$ac_t""no" 1>&6
10239 if test $have_tcl != yes ; then
10240 echo "configure: warning: could not find -ltcl" 1>&2
10241 if test $ol_enable_tcl = yes ; then
10242 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
10249 # ud needs termcap (should insert check here)
10251 for ac_hdr in termcap.h ncurses.h
10253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10255 echo "configure:10256: checking for $ac_hdr" >&5
10256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10257 echo $ac_n "(cached) $ac_c" 1>&6
10259 cat > conftest.$ac_ext <<EOF
10260 #line 10261 "configure"
10261 #include "confdefs.h"
10264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10265 { (eval echo configure:10266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10267 if test -z "$ac_err"; then
10269 eval "ac_cv_header_$ac_safe=yes"
10272 echo "configure: failed program was:" >&5
10273 cat conftest.$ac_ext >&5
10275 eval "ac_cv_header_$ac_safe=no"
10279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10280 echo "$ac_t""yes" 1>&6
10281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10282 cat >> confdefs.h <<EOF
10283 #define $ac_tr_hdr 1
10287 echo "$ac_t""no" 1>&6
10292 if test $ol_link_termcap = no ; then
10293 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
10294 echo "configure:10295: checking for tputs in -ltermcap" >&5
10295 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
10296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10297 echo $ac_n "(cached) $ac_c" 1>&6
10299 ac_save_LIBS="$LIBS"
10300 LIBS="-ltermcap $LIBS"
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10303 "configure"
10303 #include "confdefs.h"
10304 /* Override any gcc2 internal prototype to avoid an error. */
10305 /* We use char because int might match the return type of a gcc2
10306 builtin and then its argument prototype would still apply. */
10313 if { (eval echo configure:10314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10315 eval "ac_cv_lib_$ac_lib_var=yes"
10317 echo "configure: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10320 eval "ac_cv_lib_$ac_lib_var=no"
10323 LIBS="$ac_save_LIBS"
10326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10327 echo "$ac_t""yes" 1>&6
10330 echo "$ac_t""no" 1>&6
10334 if test $have_termcap = yes ; then
10335 cat >> confdefs.h <<\EOF
10336 #define HAVE_TERMCAP 1
10339 ol_link_termcap=yes
10340 TERMCAP_LIBS=-ltermcap
10344 if test $ol_link_termcap = no ; then
10345 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
10346 echo "configure:10347: checking for initscr in -lncurses" >&5
10347 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
10348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10349 echo $ac_n "(cached) $ac_c" 1>&6
10351 ac_save_LIBS="$LIBS"
10352 LIBS="-lncurses $LIBS"
10353 cat > conftest.$ac_ext <<EOF
10354 #line 10355 "configure"
10355 #include "confdefs.h"
10356 /* Override any gcc2 internal prototype to avoid an error. */
10357 /* We use char because int might match the return type of a gcc2
10358 builtin and then its argument prototype would still apply. */
10365 if { (eval echo configure:10366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10367 eval "ac_cv_lib_$ac_lib_var=yes"
10369 echo "configure: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10372 eval "ac_cv_lib_$ac_lib_var=no"
10375 LIBS="$ac_save_LIBS"
10378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10379 echo "$ac_t""yes" 1>&6
10382 echo "$ac_t""no" 1>&6
10386 if test $have_ncurses = yes ; then
10387 cat >> confdefs.h <<\EOF
10388 #define HAVE_NCURSES 1
10391 ol_link_termcap=yes
10392 TERMCAP_LIBS=-lncurses
10396 if test $ol_link_termcap = no ; then
10397 cat >> confdefs.h <<\EOF
10398 #define NO_TERMCAP 1
10405 if test $ol_with_cyrus_sasl != no ; then
10406 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
10407 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
10408 echo "configure:10409: checking for sasl.h" >&5
10409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10412 cat > conftest.$ac_ext <<EOF
10413 #line 10414 "configure"
10414 #include "confdefs.h"
10417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10418 { (eval echo configure:10419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10420 if test -z "$ac_err"; then
10422 eval "ac_cv_header_$ac_safe=yes"
10425 echo "configure: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10428 eval "ac_cv_header_$ac_safe=no"
10432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10433 echo "$ac_t""yes" 1>&6
10436 echo "$ac_t""no" 1>&6
10440 if test $ac_cv_header_sasl_h = yes ; then
10441 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
10442 echo "configure:10443: checking for sasl_client_init in -lsasl" >&5
10443 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-%__p_%'`
10444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10445 echo $ac_n "(cached) $ac_c" 1>&6
10447 ac_save_LIBS="$LIBS"
10448 LIBS="-lsasl $LIBS"
10449 cat > conftest.$ac_ext <<EOF
10450 #line 10451 "configure"
10451 #include "confdefs.h"
10452 /* Override any gcc2 internal prototype to avoid an error. */
10453 /* We use char because int might match the return type of a gcc2
10454 builtin and then its argument prototype would still apply. */
10455 char sasl_client_init();
10461 if { (eval echo configure:10462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10463 eval "ac_cv_lib_$ac_lib_var=yes"
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10468 eval "ac_cv_lib_$ac_lib_var=no"
10471 LIBS="$ac_save_LIBS"
10474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10475 echo "$ac_t""yes" 1>&6
10476 have_cyrus_sasl=yes
10478 echo "$ac_t""no" 1>&6
10483 if test $have_cyrus_sasl != no ; then
10485 cat >> confdefs.h <<\EOF
10486 #define HAVE_CYRUS_SASL 1
10493 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
10494 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
10499 if test $ol_with_fetch != no ; then
10501 LIBS="-lfetch -lcom_err $LIBS"
10502 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
10503 echo "configure:10504: checking fetch(3) library" >&5
10504 if eval "test \"`echo '$''{'ol_cv_lib_fetch'+set}'`\" = set"; then
10505 echo $ac_n "(cached) $ac_c" 1>&6
10508 cat > conftest.$ac_ext <<EOF
10509 #line 10510 "configure"
10510 #include "confdefs.h"
10512 #include <sys/param.h>
10516 struct url *u = fetchParseURL("file:///");
10519 if { (eval echo configure:10520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10521 ol_cv_lib_fetch=yes
10523 echo "configure: failed program was:" >&5
10524 cat conftest.$ac_ext >&5
10531 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
10533 if test $ol_cv_lib_fetch != no ; then
10534 ol_link_fetch="-lfetch -lcom_err"
10535 cat >> confdefs.h <<\EOF
10536 #define HAVE_FETCH 1
10542 if test $ol_cv_lib_fetch != no ; then
10543 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
10544 ol_link_fetch=freebsd
10546 elif test $ol_with_fetch != auto ; then
10547 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
10551 ol_link_readline=no
10552 if test $ol_with_readline != no ; then
10553 for ac_hdr in readline/readline.h readline/history.h
10555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10557 echo "configure:10558: checking for $ac_hdr" >&5
10558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10559 echo $ac_n "(cached) $ac_c" 1>&6
10561 cat > conftest.$ac_ext <<EOF
10562 #line 10563 "configure"
10563 #include "confdefs.h"
10566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10567 { (eval echo configure:10568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10569 if test -z "$ac_err"; then
10571 eval "ac_cv_header_$ac_safe=yes"
10574 echo "configure: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10577 eval "ac_cv_header_$ac_safe=no"
10581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10582 echo "$ac_t""yes" 1>&6
10583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10584 cat >> confdefs.h <<EOF
10585 #define $ac_tr_hdr 1
10589 echo "$ac_t""no" 1>&6
10594 if test $ac_cv_header_readline_readline_h = yes ; then
10596 LIBS="$TERMCAP_LIBS $LIBS"
10597 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
10598 echo "configure:10599: checking for readline in -lreadline" >&5
10599 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
10600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10601 echo $ac_n "(cached) $ac_c" 1>&6
10603 ac_save_LIBS="$LIBS"
10604 LIBS="-lreadline $LIBS"
10605 cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10608 /* Override any gcc2 internal prototype to avoid an error. */
10609 /* We use char because int might match the return type of a gcc2
10610 builtin and then its argument prototype would still apply. */
10617 if { (eval echo configure:10618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10619 eval "ac_cv_lib_$ac_lib_var=yes"
10621 echo "configure: failed program was:" >&5
10622 cat conftest.$ac_ext >&5
10624 eval "ac_cv_lib_$ac_lib_var=no"
10627 LIBS="$ac_save_LIBS"
10630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10631 echo "$ac_t""yes" 1>&6
10634 echo "$ac_t""no" 1>&6
10640 if test $have_readline = yes ; then
10641 ol_with_readline=found
10642 ol_link_readline=yes
10644 READLINE_LIBS="-lreadline"
10649 if test $ol_link_readline = yes ; then
10650 cat >> confdefs.h <<\EOF
10651 #define HAVE_READLINE 1
10657 # FreeBSD (and others) have crypt(3) in -lcrypt
10658 if test $ol_enable_crypt != no ; then
10659 echo $ac_n "checking for crypt""... $ac_c" 1>&6
10660 echo "configure:10661: checking for crypt" >&5
10661 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10664 cat > conftest.$ac_ext <<EOF
10665 #line 10666 "configure"
10666 #include "confdefs.h"
10667 /* System header to define __stub macros and hopefully few prototypes,
10668 which can conflict with char crypt(); below. */
10669 #include <assert.h>
10670 /* Override any gcc2 internal prototype to avoid an error. */
10671 /* We use char because int might match the return type of a gcc2
10672 builtin and then its argument prototype would still apply. */
10677 /* The GNU C library defines this for functions which it implements
10678 to always fail with ENOSYS. Some functions are actually named
10679 something starting with __ and the normal name is an alias. */
10680 #if defined (__stub_crypt) || defined (__stub___crypt)
10688 if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10690 eval "ac_cv_func_crypt=yes"
10692 echo "configure: failed program was:" >&5
10693 cat conftest.$ac_ext >&5
10695 eval "ac_cv_func_crypt=no"
10700 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
10701 echo "$ac_t""yes" 1>&6
10704 echo "$ac_t""no" 1>&6
10706 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10707 echo "configure:10708: checking for crypt in -lcrypt" >&5
10708 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10710 echo $ac_n "(cached) $ac_c" 1>&6
10712 ac_save_LIBS="$LIBS"
10713 LIBS="-lcrypt $LIBS"
10714 cat > conftest.$ac_ext <<EOF
10715 #line 10716 "configure"
10716 #include "confdefs.h"
10717 /* Override any gcc2 internal prototype to avoid an error. */
10718 /* We use char because int might match the return type of a gcc2
10719 builtin and then its argument prototype would still apply. */
10726 if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10728 eval "ac_cv_lib_$ac_lib_var=yes"
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10733 eval "ac_cv_lib_$ac_lib_var=no"
10736 LIBS="$ac_save_LIBS"
10739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10740 echo "$ac_t""yes" 1>&6
10741 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
10744 echo "$ac_t""no" 1>&6
10751 if test $have_crypt = yes ; then
10752 cat >> confdefs.h <<\EOF
10753 #define HAVE_CRYPT 1
10757 echo "configure: warning: could not find crypt" 1>&2
10758 if test $ol_enable_crypt = yes ; then
10759 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
10762 echo "configure: warning: disabling crypt support" 1>&2
10767 # FreeBSD (and others) have setproctitle(3) in -lutil
10768 if test $ol_enable_proctitle != no ; then
10769 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
10770 echo "configure:10771: checking for setproctitle" >&5
10771 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
10772 echo $ac_n "(cached) $ac_c" 1>&6
10774 cat > conftest.$ac_ext <<EOF
10775 #line 10776 "configure"
10776 #include "confdefs.h"
10777 /* System header to define __stub macros and hopefully few prototypes,
10778 which can conflict with char setproctitle(); below. */
10779 #include <assert.h>
10780 /* Override any gcc2 internal prototype to avoid an error. */
10781 /* We use char because int might match the return type of a gcc2
10782 builtin and then its argument prototype would still apply. */
10783 char setproctitle();
10787 /* The GNU C library defines this for functions which it implements
10788 to always fail with ENOSYS. Some functions are actually named
10789 something starting with __ and the normal name is an alias. */
10790 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
10798 if { (eval echo configure:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10800 eval "ac_cv_func_setproctitle=yes"
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10805 eval "ac_cv_func_setproctitle=no"
10810 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
10811 echo "$ac_t""yes" 1>&6
10812 have_setproctitle=yes
10814 echo "$ac_t""no" 1>&6
10816 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
10817 echo "configure:10818: checking for setproctitle in -lutil" >&5
10818 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
10819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10822 ac_save_LIBS="$LIBS"
10823 LIBS="-lutil $LIBS"
10824 cat > conftest.$ac_ext <<EOF
10825 #line 10826 "configure"
10826 #include "confdefs.h"
10827 /* Override any gcc2 internal prototype to avoid an error. */
10828 /* We use char because int might match the return type of a gcc2
10829 builtin and then its argument prototype would still apply. */
10830 char setproctitle();
10836 if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10838 eval "ac_cv_lib_$ac_lib_var=yes"
10840 echo "configure: failed program was:" >&5
10841 cat conftest.$ac_ext >&5
10843 eval "ac_cv_lib_$ac_lib_var=no"
10846 LIBS="$ac_save_LIBS"
10849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10850 echo "$ac_t""yes" 1>&6
10851 have_setproctitle=yes
10852 LUTIL_LIBS="$LUTIL_LIBS -lutil"
10854 echo "$ac_t""no" 1>&6
10855 have_setproctitle=no
10856 LIBOBJS="$LIBOBJS setproctitle.o"
10862 if test $have_setproctitle = yes ; then
10863 cat >> confdefs.h <<\EOF
10864 #define HAVE_SETPROCTITLE 1
10870 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10871 echo "configure:10872: checking for uid_t in sys/types.h" >&5
10872 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
10873 echo $ac_n "(cached) $ac_c" 1>&6
10875 cat > conftest.$ac_ext <<EOF
10876 #line 10877 "configure"
10877 #include "confdefs.h"
10878 #include <sys/types.h>
10880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10881 egrep "uid_t" >/dev/null 2>&1; then
10883 ac_cv_type_uid_t=yes
10886 ac_cv_type_uid_t=no
10892 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10893 if test $ac_cv_type_uid_t = no; then
10894 cat >> confdefs.h <<\EOF
10898 cat >> confdefs.h <<\EOF
10904 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
10905 echo "configure:10906: checking type of array argument to getgroups" >&5
10906 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
10907 echo $ac_n "(cached) $ac_c" 1>&6
10909 if test "$cross_compiling" = yes; then
10910 ac_cv_type_getgroups=cross
10912 cat > conftest.$ac_ext <<EOF
10913 #line 10914 "configure"
10914 #include "confdefs.h"
10916 /* Thanks to Mike Rendell for this test. */
10917 #include <sys/types.h>
10920 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10923 gid_t gidset[NGID];
10925 union { gid_t gval; long lval; } val;
10928 for (i = 0; i < NGID; i++)
10929 gidset[i] = val.gval;
10930 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10932 /* Exit non-zero if getgroups seems to require an array of ints. This
10933 happens when gid_t is short but getgroups modifies an array of ints. */
10934 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10938 if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10940 ac_cv_type_getgroups=gid_t
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10945 ac_cv_type_getgroups=int
10950 if test $ac_cv_type_getgroups = cross; then
10951 cat > conftest.$ac_ext <<EOF
10952 #line 10953 "configure"
10953 #include "confdefs.h"
10954 #include <unistd.h>
10956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10957 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10959 ac_cv_type_getgroups=gid_t
10962 ac_cv_type_getgroups=int
10969 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
10970 cat >> confdefs.h <<EOF
10971 #define GETGROUPS_T $ac_cv_type_getgroups
10974 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10975 echo "configure:10976: checking for ANSI C header files" >&5
10976 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10979 cat > conftest.$ac_ext <<EOF
10980 #line 10981 "configure"
10981 #include "confdefs.h"
10982 #include <stdlib.h>
10983 #include <stdarg.h>
10984 #include <string.h>
10987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10988 { (eval echo configure:10989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10990 if test -z "$ac_err"; then
10992 ac_cv_header_stdc=yes
10995 echo "configure: failed program was:" >&5
10996 cat conftest.$ac_ext >&5
10998 ac_cv_header_stdc=no
11002 if test $ac_cv_header_stdc = yes; then
11003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11004 cat > conftest.$ac_ext <<EOF
11005 #line 11006 "configure"
11006 #include "confdefs.h"
11007 #include <string.h>
11009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11010 egrep "memchr" >/dev/null 2>&1; then
11014 ac_cv_header_stdc=no
11020 if test $ac_cv_header_stdc = yes; then
11021 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11022 cat > conftest.$ac_ext <<EOF
11023 #line 11024 "configure"
11024 #include "confdefs.h"
11025 #include <stdlib.h>
11027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11028 egrep "free" >/dev/null 2>&1; then
11032 ac_cv_header_stdc=no
11038 if test $ac_cv_header_stdc = yes; then
11039 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11040 if test "$cross_compiling" = yes; then
11043 cat > conftest.$ac_ext <<EOF
11044 #line 11045 "configure"
11045 #include "confdefs.h"
11047 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11048 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11049 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11050 int main () { int i; for (i = 0; i < 256; i++)
11051 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11055 if { (eval echo configure:11056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11059 echo "configure: failed program was:" >&5
11060 cat conftest.$ac_ext >&5
11062 ac_cv_header_stdc=no
11070 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11071 if test $ac_cv_header_stdc = yes; then
11072 cat >> confdefs.h <<\EOF
11073 #define STDC_HEADERS 1
11078 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11079 echo "configure:11080: checking for mode_t" >&5
11080 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11081 echo $ac_n "(cached) $ac_c" 1>&6
11083 cat > conftest.$ac_ext <<EOF
11084 #line 11085 "configure"
11085 #include "confdefs.h"
11086 #include <sys/types.h>
11088 #include <stdlib.h>
11089 #include <stddef.h>
11092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11093 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11095 ac_cv_type_mode_t=yes
11098 ac_cv_type_mode_t=no
11103 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11104 if test $ac_cv_type_mode_t = no; then
11105 cat >> confdefs.h <<\EOF
11111 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11112 echo "configure:11113: checking for off_t" >&5
11113 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11114 echo $ac_n "(cached) $ac_c" 1>&6
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11118 "configure"
11118 #include "confdefs.h"
11119 #include <sys/types.h>
11121 #include <stdlib.h>
11122 #include <stddef.h>
11125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11126 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11128 ac_cv_type_off_t=yes
11131 ac_cv_type_off_t=no
11136 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11137 if test $ac_cv_type_off_t = no; then
11138 cat >> confdefs.h <<\EOF
11144 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11145 echo "configure:11146: checking for pid_t" >&5
11146 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11149 cat > conftest.$ac_ext <<EOF
11150 #line 11151 "configure"
11151 #include "confdefs.h"
11152 #include <sys/types.h>
11154 #include <stdlib.h>
11155 #include <stddef.h>
11158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11159 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11161 ac_cv_type_pid_t=yes
11164 ac_cv_type_pid_t=no
11169 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11170 if test $ac_cv_type_pid_t = no; then
11171 cat >> confdefs.h <<\EOF
11177 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
11178 echo "configure:11179: checking for ptrdiff_t" >&5
11179 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
11180 echo $ac_n "(cached) $ac_c" 1>&6
11182 cat > conftest.$ac_ext <<EOF
11183 #line 11184 "configure"
11184 #include "confdefs.h"
11185 #include <stddef.h>
11190 if { (eval echo configure:11191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11192 am_cv_type_ptrdiff_t=yes
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11197 am_cv_type_ptrdiff_t=no
11202 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
11203 if test $am_cv_type_ptrdiff_t = yes; then
11204 cat >> confdefs.h <<\EOF
11205 #define HAVE_PTRDIFF_T 1
11210 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
11211 echo "configure:11212: checking return type of signal handlers" >&5
11212 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
11213 echo $ac_n "(cached) $ac_c" 1>&6
11215 cat > conftest.$ac_ext <<EOF
11216 #line 11217 "configure"
11217 #include "confdefs.h"
11218 #include <sys/types.h>
11219 #include <signal.h>
11224 extern "C" void (*signal (int, void (*)(int)))(int);
11226 void (*signal ()) ();
11233 if { (eval echo configure:11234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11235 ac_cv_type_signal=void
11237 echo "configure: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11240 ac_cv_type_signal=int
11245 echo "$ac_t""$ac_cv_type_signal" 1>&6
11246 cat >> confdefs.h <<EOF
11247 #define RETSIGTYPE $ac_cv_type_signal
11251 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
11252 echo "configure:11253: checking for sig_atomic_t" >&5
11253 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
11254 echo $ac_n "(cached) $ac_c" 1>&6
11256 cat > conftest.$ac_ext <<EOF
11257 #line 11258 "configure"
11258 #include "confdefs.h"
11259 #include <signal.h>
11261 sig_atomic_t atomic;
11264 if { (eval echo configure:11265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11266 ol_cv_type_sig_atomic_t=yes
11268 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11271 ol_cv_type_sig_atomic_t=no
11276 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
11277 if test $ol_cv_type_sig_atomic_t = no; then
11278 cat >> confdefs.h <<\EOF
11279 #define sig_atomic_t int
11284 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11285 echo "configure:11286: checking for size_t" >&5
11286 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11287 echo $ac_n "(cached) $ac_c" 1>&6
11289 cat > conftest.$ac_ext <<EOF
11290 #line 11291 "configure"
11291 #include "confdefs.h"
11292 #include <sys/types.h>
11294 #include <stdlib.h>
11295 #include <stddef.h>
11298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11299 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11301 ac_cv_type_size_t=yes
11304 ac_cv_type_size_t=no
11309 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11310 if test $ac_cv_type_size_t = no; then
11311 cat >> confdefs.h <<\EOF
11312 #define size_t unsigned
11317 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11318 echo "configure:11319: checking for socklen_t" >&5
11319 if eval "test \"`echo '$''{'ol_cv_type_socklen_t'+set}'`\" = set"; then
11320 echo $ac_n "(cached) $ac_c" 1>&6
11322 cat > conftest.$ac_ext <<EOF
11323 #line 11324 "configure"
11324 #include "confdefs.h"
11326 #ifdef HAVE_SYS_TYPES_H
11327 #include <sys/types.h>
11329 #ifdef HAVE_SYS_SOCKET_H
11330 #include <sys/socket.h>
11337 if { (eval echo configure:11338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11339 ol_cv_type_socklen_t=yes
11341 echo "configure: failed program was:" >&5
11342 cat conftest.$ac_ext >&5
11344 ol_cv_type_socklen_t=no
11349 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
11350 if test $ol_cv_type_socklen_t = no; then
11351 cat >> confdefs.h <<\EOF
11352 #define socklen_t int
11357 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11358 echo "configure:11359: checking for st_blksize in struct stat" >&5
11359 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
11360 echo $ac_n "(cached) $ac_c" 1>&6
11362 cat > conftest.$ac_ext <<EOF
11363 #line 11364 "configure"
11364 #include "confdefs.h"
11365 #include <sys/types.h>
11366 #include <sys/stat.h>
11368 struct stat s; s.st_blksize;
11371 if { (eval echo configure:11372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11373 ac_cv_struct_st_blksize=yes
11375 echo "configure: failed program was:" >&5
11376 cat conftest.$ac_ext >&5
11378 ac_cv_struct_st_blksize=no
11383 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
11384 if test $ac_cv_struct_st_blksize = yes; then
11385 cat >> confdefs.h <<\EOF
11386 #define HAVE_ST_BLKSIZE 1
11391 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
11392 echo "configure:11393: checking whether time.h and sys/time.h may both be included" >&5
11393 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
11394 echo $ac_n "(cached) $ac_c" 1>&6
11396 cat > conftest.$ac_ext <<EOF
11397 #line 11398 "configure"
11398 #include "confdefs.h"
11399 #include <sys/types.h>
11400 #include <sys/time.h>
11406 if { (eval echo configure:11407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11408 ac_cv_header_time=yes
11410 echo "configure: failed program was:" >&5
11411 cat conftest.$ac_ext >&5
11413 ac_cv_header_time=no
11418 echo "$ac_t""$ac_cv_header_time" 1>&6
11419 if test $ac_cv_header_time = yes; then
11420 cat >> confdefs.h <<\EOF
11421 #define TIME_WITH_SYS_TIME 1
11426 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
11427 echo "configure:11428: checking whether struct tm is in sys/time.h or time.h" >&5
11428 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
11429 echo $ac_n "(cached) $ac_c" 1>&6
11431 cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11434 #include <sys/types.h>
11437 struct tm *tp; tp->tm_sec;
11440 if { (eval echo configure:11441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11442 ac_cv_struct_tm=time.h
11444 echo "configure: failed program was:" >&5
11445 cat conftest.$ac_ext >&5
11447 ac_cv_struct_tm=sys/time.h
11452 echo "$ac_t""$ac_cv_struct_tm" 1>&6
11453 if test $ac_cv_struct_tm = sys/time.h; then
11454 cat >> confdefs.h <<\EOF
11455 #define TM_IN_SYS_TIME 1
11460 # test for pw_gecos in struct passwd
11461 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
11462 echo "configure:11463: checking struct passwd for pw_gecos" >&5
11463 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
11464 echo $ac_n "(cached) $ac_c" 1>&6
11467 cat > conftest.$ac_ext <<EOF
11468 #line 11469 "configure"
11469 #include "confdefs.h"
11474 pwd.pw_gecos = pwd.pw_name;
11478 if { (eval echo configure:11479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11480 ol_cv_struct_passwd_pw_gecos=yes
11482 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11485 ol_cv_struct_passwd_pw_gecos=no
11490 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
11491 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
11492 cat >> confdefs.h <<\EOF
11493 #define HAVE_PW_GECOS 1
11498 # test for pw_passwd in struct passwd
11499 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
11500 echo "configure:11501: checking struct passwd for pw_passwd" >&5
11501 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_passwd'+set}'`\" = set"; then
11502 echo $ac_n "(cached) $ac_c" 1>&6
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11512 pwd.pw_passwd = pwd.pw_name;
11516 if { (eval echo configure:11517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11518 ol_cv_struct_passwd_pw_passwd=yes
11520 echo "configure: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11523 ol_cv_struct_passwd_pw_passwd=no
11528 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
11529 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
11530 cat >> confdefs.h <<\EOF
11531 #define HAVE_PW_PASSWD 1
11537 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
11538 echo "configure:11539: checking if toupper() requires islower()" >&5
11539 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
11540 echo $ac_n "(cached) $ac_c" 1>&6
11543 if test "$cross_compiling" = yes; then
11544 ol_cv_c_upper_lower=safe
11546 cat > conftest.$ac_ext <<EOF
11547 #line 11548 "configure"
11548 #include "confdefs.h"
11553 if ('C' == toupper('C'))
11559 if { (eval echo configure:11560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11561 ol_cv_c_upper_lower=no
11563 echo "configure: failed program was:" >&5
11564 cat conftest.$ac_ext >&5
11566 ol_cv_c_upper_lower=yes
11573 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
11574 if test $ol_cv_c_upper_lower != no ; then
11575 cat >> confdefs.h <<\EOF
11576 #define C_UPPER_LOWER 1
11581 echo $ac_n "checking for working const""... $ac_c" 1>&6
11582 echo "configure:11583: checking for working const" >&5
11583 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11586 cat > conftest.$ac_ext <<EOF
11587 #line 11588 "configure"
11588 #include "confdefs.h"
11592 /* Ultrix mips cc rejects this. */
11593 typedef int charset[2]; const charset x;
11594 /* SunOS 4.1.1 cc rejects this. */
11595 char const *const *ccp;
11597 /* NEC SVR4.0.2 mips cc rejects this. */
11598 struct point {int x, y;};
11599 static struct point const zero = {0,0};
11600 /* AIX XL C 1.02.0.0 rejects this.
11601 It does not let you subtract one const X* pointer from another in an arm
11602 of an if-expression whose if-part is not a constant expression */
11603 const char *g = "string";
11604 ccp = &g + (g ? g-g : 0);
11605 /* HPUX 7.0 cc rejects these. */
11608 ccp = (char const *const *) p;
11609 { /* SCO 3.2v4 cc rejects this. */
11611 char const *s = 0 ? (char *) 0 : (char const *) 0;
11615 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11616 int x[] = {25, 17};
11617 const int *foo = &x[0];
11620 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11621 typedef const int *iptr;
11625 { /* AIX XL C 1.02.0.0 rejects this saying
11626 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11627 struct s { int j; const int *ap[3]; };
11628 struct s *b; b->j = 5;
11630 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11631 const int foo = 10;
11636 if { (eval echo configure:11637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11640 echo "configure: failed program was:" >&5
11641 cat conftest.$ac_ext >&5
11648 echo "$ac_t""$ac_cv_c_const" 1>&6
11649 if test $ac_cv_c_const = no; then
11650 cat >> confdefs.h <<\EOF
11656 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
11657 echo "configure:11658: checking if compiler understands volatile" >&5
11658 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
11659 echo $ac_n "(cached) $ac_c" 1>&6
11661 cat > conftest.$ac_ext <<EOF
11662 #line 11663 "configure"
11663 #include "confdefs.h"
11666 volatile int a; int * volatile b = x ? &y : &z;
11667 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
11671 if { (eval echo configure:11672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11673 ol_cv_c_volatile=yes
11675 echo "configure: failed program was:" >&5
11676 cat conftest.$ac_ext >&5
11678 ol_cv_c_volatile=no
11683 echo "$ac_t""$ol_cv_c_volatile" 1>&6
11684 if test $ol_cv_c_volatile = yes; then
11687 cat >> confdefs.h <<\EOF
11694 if test $cross_compiling = yes ; then
11695 cat >> confdefs.h <<\EOF
11696 #define CROSS_COMPILING 1
11700 cat >> confdefs.h <<\EOF
11701 #define LBER_INT_T long
11704 cat >> confdefs.h <<\EOF
11705 #define LBER_TAG_T long
11708 cat >> confdefs.h <<\EOF
11709 #define LBER_SOCKET_T int
11714 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11715 echo "configure:11716: checking whether byte ordering is bigendian" >&5
11716 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11717 echo $ac_n "(cached) $ac_c" 1>&6
11719 ac_cv_c_bigendian=unknown
11720 # See if sys/param.h defines the BYTE_ORDER macro.
11721 cat > conftest.$ac_ext <<EOF
11722 #line 11723 "configure"
11723 #include "confdefs.h"
11724 #include <sys/types.h>
11725 #include <sys/param.h>
11728 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11729 bogus endian macros
11733 if { (eval echo configure:11734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11735 # It does; now see whether it defined to BIG_ENDIAN or not.
11736 cat > conftest.$ac_ext <<EOF
11737 #line 11738 "configure"
11738 #include "confdefs.h"
11739 #include <sys/types.h>
11740 #include <sys/param.h>
11743 #if BYTE_ORDER != BIG_ENDIAN
11748 if { (eval echo configure:11749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11750 ac_cv_c_bigendian=yes
11752 echo "configure: failed program was:" >&5
11753 cat conftest.$ac_ext >&5
11755 ac_cv_c_bigendian=no
11759 echo "configure: failed program was:" >&5
11760 cat conftest.$ac_ext >&5
11763 if test $ac_cv_c_bigendian = unknown; then
11764 if test "$cross_compiling" = yes; then
11765 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11767 cat > conftest.$ac_ext <<EOF
11768 #line 11769 "configure"
11769 #include "confdefs.h"
11771 /* Are we little or big endian? From Harbison&Steele. */
11775 char c[sizeof (long)];
11778 exit (u.c[sizeof (long) - 1] == 1);
11781 if { (eval echo configure:11782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11783 ac_cv_c_bigendian=no
11785 echo "configure: failed program was:" >&5
11786 cat conftest.$ac_ext >&5
11788 ac_cv_c_bigendian=yes
11796 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11797 if test $ac_cv_c_bigendian = yes; then
11798 cat >> confdefs.h <<\EOF
11799 #define WORDS_BIGENDIAN 1
11804 echo $ac_n "checking size of short""... $ac_c" 1>&6
11805 echo "configure:11806: checking size of short" >&5
11806 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11807 echo $ac_n "(cached) $ac_c" 1>&6
11809 if test "$cross_compiling" = yes; then
11810 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11812 cat > conftest.$ac_ext <<EOF
11813 #line 11814 "configure"
11814 #include "confdefs.h"
11818 FILE *f=fopen("conftestval", "w");
11820 fprintf(f, "%d\n", sizeof(short));
11824 if { (eval echo configure:11825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11826 ac_cv_sizeof_short=`cat conftestval`
11828 echo "configure: failed program was:" >&5
11829 cat conftest.$ac_ext >&5
11831 ac_cv_sizeof_short=0
11837 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11838 cat >> confdefs.h <<EOF
11839 #define SIZEOF_SHORT $ac_cv_sizeof_short
11843 echo $ac_n "checking size of int""... $ac_c" 1>&6
11844 echo "configure:11845: checking size of int" >&5
11845 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11846 echo $ac_n "(cached) $ac_c" 1>&6
11848 if test "$cross_compiling" = yes; then
11849 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11851 cat > conftest.$ac_ext <<EOF
11852 #line 11853 "configure"
11853 #include "confdefs.h"
11857 FILE *f=fopen("conftestval", "w");
11859 fprintf(f, "%d\n", sizeof(int));
11863 if { (eval echo configure:11864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11865 ac_cv_sizeof_int=`cat conftestval`
11867 echo "configure: failed program was:" >&5
11868 cat conftest.$ac_ext >&5
11876 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11877 cat >> confdefs.h <<EOF
11878 #define SIZEOF_INT $ac_cv_sizeof_int
11882 echo $ac_n "checking size of long""... $ac_c" 1>&6
11883 echo "configure:11884: checking size of long" >&5
11884 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11885 echo $ac_n "(cached) $ac_c" 1>&6
11887 if test "$cross_compiling" = yes; then
11888 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11890 cat > conftest.$ac_ext <<EOF
11891 #line 11892 "configure"
11892 #include "confdefs.h"
11896 FILE *f=fopen("conftestval", "w");
11898 fprintf(f, "%d\n", sizeof(long));
11902 if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11904 ac_cv_sizeof_long=`cat conftestval`
11906 echo "configure: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11909 ac_cv_sizeof_long=0
11915 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11916 cat >> confdefs.h <<EOF
11917 #define SIZEOF_LONG $ac_cv_sizeof_long
11922 if test "$ac_cv_sizeof_int" -lt 4 ; then
11923 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
11925 cat >> confdefs.h <<\EOF
11926 #define LBER_INT_T long
11929 cat >> confdefs.h <<\EOF
11930 #define LBER_TAG_T long
11933 cat >> confdefs.h <<\EOF
11934 #define LBER_SOCKET_T int
11938 cat >> confdefs.h <<\EOF
11939 #define LBER_INT_T int
11942 cat >> confdefs.h <<\EOF
11943 #define LBER_TAG_T long
11946 cat >> confdefs.h <<\EOF
11947 #define LBER_SOCKET_T int
11953 cat >> confdefs.h <<\EOF
11954 #define LBER_LEN_T long
11958 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
11959 echo "configure:11960: checking for 8-bit clean memcmp" >&5
11960 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
11961 echo $ac_n "(cached) $ac_c" 1>&6
11963 if test "$cross_compiling" = yes; then
11964 ac_cv_func_memcmp_clean=no
11966 cat > conftest.$ac_ext <<EOF
11967 #line 11968 "configure"
11968 #include "confdefs.h"
11972 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11973 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
11977 if { (eval echo configure:11978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11979 ac_cv_func_memcmp_clean=yes
11981 echo "configure: failed program was:" >&5
11982 cat conftest.$ac_ext >&5
11984 ac_cv_func_memcmp_clean=no
11991 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
11992 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
11994 echo $ac_n "checking for strftime""... $ac_c" 1>&6
11995 echo "configure:11996: checking for strftime" >&5
11996 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
11997 echo $ac_n "(cached) $ac_c" 1>&6
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12002 /* System header to define __stub macros and hopefully few prototypes,
12003 which can conflict with char strftime(); below. */
12004 #include <assert.h>
12005 /* Override any gcc2 internal prototype to avoid an error. */
12006 /* We use char because int might match the return type of a gcc2
12007 builtin and then its argument prototype would still apply. */
12012 /* The GNU C library defines this for functions which it implements
12013 to always fail with ENOSYS. Some functions are actually named
12014 something starting with __ and the normal name is an alias. */
12015 #if defined (__stub_strftime) || defined (__stub___strftime)
12023 if { (eval echo configure:12024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12025 eval "ac_cv_func_strftime=yes"
12027 echo "configure: failed program was:" >&5
12028 cat conftest.$ac_ext >&5
12030 eval "ac_cv_func_strftime=no"
12035 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
12036 echo "$ac_t""yes" 1>&6
12037 cat >> confdefs.h <<\EOF
12038 #define HAVE_STRFTIME 1
12042 echo "$ac_t""no" 1>&6
12043 # strftime is in -lintl on SCO UNIX.
12044 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
12045 echo "configure:12046: checking for strftime in -lintl" >&5
12046 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
12047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12048 echo $ac_n "(cached) $ac_c" 1>&6
12050 ac_save_LIBS="$LIBS"
12051 LIBS="-lintl $LIBS"
12052 cat > conftest.$ac_ext <<EOF
12053 #line 12054 "configure"
12054 #include "confdefs.h"
12055 /* Override any gcc2 internal prototype to avoid an error. */
12056 /* We use char because int might match the return type of a gcc2
12057 builtin and then its argument prototype would still apply. */
12064 if { (eval echo configure:12065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12066 eval "ac_cv_lib_$ac_lib_var=yes"
12068 echo "configure: failed program was:" >&5
12069 cat conftest.$ac_ext >&5
12071 eval "ac_cv_lib_$ac_lib_var=no"
12074 LIBS="$ac_save_LIBS"
12077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12078 echo "$ac_t""yes" 1>&6
12079 cat >> confdefs.h <<\EOF
12080 #define HAVE_STRFTIME 1
12083 LIBS="-lintl $LIBS"
12085 echo "$ac_t""no" 1>&6
12091 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
12092 echo "configure:12093: checking for inet_aton()" >&5
12093 if eval "test \"`echo '$''{'ol_cv_func_inet_aton'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
12096 cat > conftest.$ac_ext <<EOF
12097 #line 12098 "configure"
12098 #include "confdefs.h"
12100 #ifdef HAVE_SYS_TYPES_H
12101 # include <sys/types.h>
12103 #ifdef HAVE_SYS_SOCKET_H
12104 # include <sys/socket.h>
12105 # ifdef HAVE_SYS_SELECT_H
12106 # include <sys/select.h>
12108 # include <netinet/in.h>
12109 # ifdef HAVE_ARPA_INET_H
12110 # include <arpa/inet.h>
12116 int rc = inet_aton( "255.255.255.255", &in );
12119 if { (eval echo configure:12120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12121 ol_cv_func_inet_aton=yes
12123 echo "configure: failed program was:" >&5
12124 cat conftest.$ac_ext >&5
12126 ol_cv_func_inet_aton=no
12131 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
12132 if test $ol_cv_func_inet_aton != no; then
12133 cat >> confdefs.h <<\EOF
12134 #define HAVE_INET_ATON 1
12140 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12141 echo "configure:12142: checking for vprintf" >&5
12142 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12143 echo $ac_n "(cached) $ac_c" 1>&6
12145 cat > conftest.$ac_ext <<EOF
12146 #line 12147 "configure"
12147 #include "confdefs.h"
12148 /* System header to define __stub macros and hopefully few prototypes,
12149 which can conflict with char vprintf(); below. */
12150 #include <assert.h>
12151 /* Override any gcc2 internal prototype to avoid an error. */
12152 /* We use char because int might match the return type of a gcc2
12153 builtin and then its argument prototype would still apply. */
12158 /* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
12161 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12169 if { (eval echo configure:12170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12171 eval "ac_cv_func_vprintf=yes"
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12176 eval "ac_cv_func_vprintf=no"
12181 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12182 echo "$ac_t""yes" 1>&6
12183 cat >> confdefs.h <<\EOF
12184 #define HAVE_VPRINTF 1
12188 echo "$ac_t""no" 1>&6
12191 if test "$ac_cv_func_vprintf" != yes; then
12192 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12193 echo "configure:12194: checking for _doprnt" >&5
12194 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12195 echo $ac_n "(cached) $ac_c" 1>&6
12197 cat > conftest.$ac_ext <<EOF
12198 #line 12199 "configure"
12199 #include "confdefs.h"
12200 /* System header to define __stub macros and hopefully few prototypes,
12201 which can conflict with char _doprnt(); below. */
12202 #include <assert.h>
12203 /* Override any gcc2 internal prototype to avoid an error. */
12204 /* We use char because int might match the return type of a gcc2
12205 builtin and then its argument prototype would still apply. */
12210 /* The GNU C library defines this for functions which it implements
12211 to always fail with ENOSYS. Some functions are actually named
12212 something starting with __ and the normal name is an alias. */
12213 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12221 if { (eval echo configure:12222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12223 eval "ac_cv_func__doprnt=yes"
12225 echo "configure: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12228 eval "ac_cv_func__doprnt=no"
12233 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12234 echo "$ac_t""yes" 1>&6
12235 cat >> confdefs.h <<\EOF
12236 #define HAVE_DOPRNT 1
12240 echo "$ac_t""no" 1>&6
12246 if test $ac_cv_func_vprintf = yes ; then
12247 for ac_func in vsnprintf vsprintf
12249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12250 echo "configure:12251: checking for $ac_func" >&5
12251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12252 echo $ac_n "(cached) $ac_c" 1>&6
12254 cat > conftest.$ac_ext <<EOF
12255 #line 12256 "configure"
12256 #include "confdefs.h"
12257 /* System header to define __stub macros and hopefully few prototypes,
12258 which can conflict with char $ac_func(); below. */
12259 #include <assert.h>
12260 /* Override any gcc2 internal prototype to avoid an error. */
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12267 /* The GNU C library defines this for functions which it implements
12268 to always fail with ENOSYS. Some functions are actually named
12269 something starting with __ and the normal name is an alias. */
12270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12278 if { (eval echo configure:12279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12280 eval "ac_cv_func_$ac_func=yes"
12282 echo "configure: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12285 eval "ac_cv_func_$ac_func=no"
12290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12291 echo "$ac_t""yes" 1>&6
12292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12293 cat >> confdefs.h <<EOF
12294 #define $ac_tr_func 1
12298 echo "$ac_t""no" 1>&6
12352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12353 echo "configure:12354: checking for $ac_func" >&5
12354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12355 echo $ac_n "(cached) $ac_c" 1>&6
12357 cat > conftest.$ac_ext <<EOF
12358 #line 12359 "configure"
12359 #include "confdefs.h"
12360 /* System header to define __stub macros and hopefully few prototypes,
12361 which can conflict with char $ac_func(); below. */
12362 #include <assert.h>
12363 /* Override any gcc2 internal prototype to avoid an error. */
12364 /* We use char because int might match the return type of a gcc2
12365 builtin and then its argument prototype would still apply. */
12370 /* The GNU C library defines this for functions which it implements
12371 to always fail with ENOSYS. Some functions are actually named
12372 something starting with __ and the normal name is an alias. */
12373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12381 if { (eval echo configure:12382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12383 eval "ac_cv_func_$ac_func=yes"
12385 echo "configure: failed program was:" >&5
12386 cat conftest.$ac_ext >&5
12388 eval "ac_cv_func_$ac_func=no"
12393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12394 echo "$ac_t""yes" 1>&6
12395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12396 cat >> confdefs.h <<EOF
12397 #define $ac_tr_func 1
12401 echo "$ac_t""no" 1>&6
12406 for ac_func in getopt tempnam
12408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12409 echo "configure:12410: checking for $ac_func" >&5
12410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12411 echo $ac_n "(cached) $ac_c" 1>&6
12413 cat > conftest.$ac_ext <<EOF
12414 #line 12415 "configure"
12415 #include "confdefs.h"
12416 /* System header to define __stub macros and hopefully few prototypes,
12417 which can conflict with char $ac_func(); below. */
12418 #include <assert.h>
12419 /* Override any gcc2 internal prototype to avoid an error. */
12420 /* We use char because int might match the return type of a gcc2
12421 builtin and then its argument prototype would still apply. */
12426 /* The GNU C library defines this for functions which it implements
12427 to always fail with ENOSYS. Some functions are actually named
12428 something starting with __ and the normal name is an alias. */
12429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12437 if { (eval echo configure:12438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12439 eval "ac_cv_func_$ac_func=yes"
12441 echo "configure: failed program was:" >&5
12442 cat conftest.$ac_ext >&5
12444 eval "ac_cv_func_$ac_func=no"
12449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12450 echo "$ac_t""yes" 1>&6
12451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12452 cat >> confdefs.h <<EOF
12453 #define $ac_tr_func 1
12457 echo "$ac_t""no" 1>&6
12458 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
12464 # Check Configuration
12465 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
12466 echo "configure:12467: checking declaration of sys_errlist" >&5
12467 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
12468 echo $ac_n "(cached) $ac_c" 1>&6
12471 cat > conftest.$ac_ext <<EOF
12472 #line 12473 "configure"
12473 #include "confdefs.h"
12476 #include <sys/types.h>
12479 char *c = (char *) *sys_errlist
12482 if { (eval echo configure:12483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12484 ol_cv_dcl_sys_errlist=yes
12485 ol_cv_have_sys_errlist=yes
12487 echo "configure: failed program was:" >&5
12488 cat conftest.$ac_ext >&5
12490 ol_cv_dcl_sys_errlist=no
12495 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
12497 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
12498 if test $ol_cv_dcl_sys_errlist = no ; then
12499 cat >> confdefs.h <<\EOF
12500 #define DECL_SYS_ERRLIST 1
12504 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
12505 echo "configure:12506: checking existence of sys_errlist" >&5
12506 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
12507 echo $ac_n "(cached) $ac_c" 1>&6
12510 cat > conftest.$ac_ext <<EOF
12511 #line 12512 "configure"
12512 #include "confdefs.h"
12515 char *c = (char *) *sys_errlist
12518 if { (eval echo configure:12519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12520 ol_cv_have_sys_errlist=yes
12522 echo "configure: failed program was:" >&5
12523 cat conftest.$ac_ext >&5
12525 ol_cv_have_sys_errlist=no
12530 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
12532 if test $ol_cv_have_sys_errlist = yes ; then
12533 cat >> confdefs.h <<\EOF
12534 #define HAVE_SYS_ERRLIST 1
12541 if test "$ol_enable_debug" != no ; then
12542 cat >> confdefs.h <<\EOF
12543 #define LDAP_DEBUG 1
12547 if test "$ol_enable_syslog" = yes ; then
12548 cat >> confdefs.h <<\EOF
12549 #define LDAP_SYSLOG 1
12553 if test "$ol_enable_libui" = yes ; then
12554 cat >> confdefs.h <<\EOF
12555 #define LDAP_LIBUI 1
12559 if test "$ol_enable_cache" = no ; then
12560 cat >> confdefs.h <<\EOF
12561 #define LDAP_NOCACHE 1
12565 if test "$ol_enable_dns" != no ; then
12566 cat >> confdefs.h <<\EOF
12567 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
12571 if test "$ol_enable_proctitle" != no ; then
12572 cat >> confdefs.h <<\EOF
12573 #define LDAP_PROCTITLE 1
12577 if test "$ol_enable_referrals" != no ; then
12578 cat >> confdefs.h <<\EOF
12579 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
12583 if test "$ol_enable_cldap" != no ; then
12584 cat >> confdefs.h <<\EOF
12585 #define LDAP_CONNECTIONLESS 1
12590 if test "$ol_enable_crypt" != no ; then
12591 cat >> confdefs.h <<\EOF
12592 #define SLAPD_CRYPT 1
12596 if test "$ol_enable_cleartext" != no ; then
12597 cat >> confdefs.h <<\EOF
12598 #define SLAPD_CLEARTEXT 1
12602 if test "$ol_enable_multimaster" != no ; then
12603 cat >> confdefs.h <<\EOF
12604 #define SLAPD_MULTIMASTER 1
12608 if test "$ol_enable_phonetic" != no ; then
12609 cat >> confdefs.h <<\EOF
12610 #define SLAPD_PHONETIC 1
12614 if test "$ol_enable_rlookups" != no ; then
12615 cat >> confdefs.h <<\EOF
12616 #define SLAPD_RLOOKUPS 1
12621 if test "$ol_enable_modules" != no ; then
12622 cat >> confdefs.h <<\EOF
12623 #define SLAPD_MODULES 1
12627 MODULES_LIBS=-lltdl
12628 SLAPD_MODULES_LDFLAGS="-dlopen self"
12631 if test "$ol_link_bdb2" != no ; then
12632 cat >> confdefs.h <<\EOF
12633 #define SLAPD_BDB2 1
12638 if test "$ol_with_bdb2_module" != static ; then
12639 cat >> confdefs.h <<\EOF
12640 #define SLAPD_BDB2_DYNAMIC 1
12644 BUILD_BDB2_DYNAMIC=shared
12645 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
12649 if test "$ol_enable_ldap" != no ; then
12650 cat >> confdefs.h <<\EOF
12651 #define SLAPD_LDAP 1
12656 if test "$ol_with_ldap_module" != static ; then
12657 cat >> confdefs.h <<\EOF
12658 #define SLAPD_LDAP_DYNAMIC 1
12662 BUILD_LDAP_DYNAMIC=shared
12663 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
12667 if test "$ol_link_ldbm" != no ; then
12668 cat >> confdefs.h <<\EOF
12669 #define SLAPD_LDBM 1
12674 if test "$ol_with_ldbm_module" != static ; then
12675 cat >> confdefs.h <<\EOF
12676 #define SLAPD_LDBM_DYNAMIC 1
12680 BUILD_LDBM_DYNAMIC=shared
12681 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
12685 if test "$ol_enable_passwd" != no ; then
12686 cat >> confdefs.h <<\EOF
12687 #define SLAPD_PASSWD 1
12692 if test "$ol_with_passwd_module" != static ; then
12693 cat >> confdefs.h <<\EOF
12694 #define SLAPD_PASSWD_DYNAMIC 1
12698 BUILD_PASSWD_DYNAMIC=shared
12699 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
12703 if test "$ol_link_perl" != no ; then
12704 cat >> confdefs.h <<\EOF
12705 #define SLAPD_PERL 1
12710 if test "$ol_with_perl_module" != static ; then
12711 cat >> confdefs.h <<\EOF
12712 #define SLAPD_PERL_DYNAMIC 1
12716 BUILD_PERL_DYNAMIC=shared
12717 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
12721 if test "$ol_enable_shell" != no ; then
12722 cat >> confdefs.h <<\EOF
12723 #define SLAPD_SHELL 1
12728 if test "$ol_with_shell_module" != static ; then
12729 cat >> confdefs.h <<\EOF
12730 #define SLAPD_SHELL_DYNAMIC 1
12734 BUILD_SHELL_DYNAMIC=shared
12735 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
12739 if test "$ol_enable_tcl" != no ; then
12740 cat >> confdefs.h <<\EOF
12741 #define SLAPD_TCL 1
12746 if test "$ol_with_tcl_module" != static; then
12747 cat >> confdefs.h <<\EOF
12748 #define SLAPD_TCL_DYNAMIC 1
12752 BUILD_TCL_DYNAMIC=shared
12753 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
12757 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
12758 $BUILD_SLAPD = yes ; then
12762 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"
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/mod.mk \
12894 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
12895 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
12896 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
12897 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
12898 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
12899 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.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
12989 s%@LIBOBJS@%$LIBOBJS%g
12990 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
12991 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
12992 s%@BUILD_BDB2@%$BUILD_BDB2%g
12993 s%@BUILD_LDAP@%$BUILD_LDAP%g
12994 s%@BUILD_LDBM@%$BUILD_LDBM%g
12995 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
12996 s%@BUILD_PERL@%$BUILD_PERL%g
12997 s%@BUILD_QUIPU@%$BUILD_QUIPU%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_MODULES_LIST@%$SLAPD_MODULES_LIST%g
13019 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
13020 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
13021 s%@KRB_LIBS@%$KRB_LIBS%g
13022 s%@READLINE_LIBS@%$READLINE_LIBS%g
13023 s%@SASL_LIBS@%$SASL_LIBS%g
13024 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
13025 s%@TLS_LIBS@%$TLS_LIBS%g
13026 s%@MODULES_LIBS@%$MODULES_LIBS%g
13031 cat >> $CONFIG_STATUS <<\EOF
13033 # Split the substitutions into bite-sized pieces for seds with
13034 # small command number limits, like on Digital OSF/1 and HP-UX.
13035 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13036 ac_file=1 # Number of current file.
13037 ac_beg=1 # First line for current file.
13038 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13041 while $ac_more_lines; do
13042 if test $ac_beg -gt 1; then
13043 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13045 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13047 if test ! -s conftest.s$ac_file; then
13048 ac_more_lines=false
13049 rm -f conftest.s$ac_file
13051 if test -z "$ac_sed_cmds"; then
13052 ac_sed_cmds="sed -f conftest.s$ac_file"
13054 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13056 ac_file=`expr $ac_file + 1`
13058 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13061 if test -z "$ac_sed_cmds"; then
13066 cat >> $CONFIG_STATUS <<EOF
13068 CONFIG_FILES=\${CONFIG_FILES-"\
13069 Makefile:build/top.mk:Makefile.in:build/dir.mk \
13070 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
13071 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
13072 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
13073 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
13074 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
13075 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
13076 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
13077 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
13078 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
13079 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
13080 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
13081 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
13082 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
13083 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
13084 include/Makefile:build/top.mk:include/Makefile.in \
13085 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
13086 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
13087 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
13088 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
13089 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
13090 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
13091 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
13092 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
13093 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
13094 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
13095 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
13096 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
13097 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
13098 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
13099 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
13100 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
13101 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
13102 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
13103 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
13104 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
13105 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
13106 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
13107 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
13108 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
13109 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
13110 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
13113 cat >> $CONFIG_STATUS <<\EOF
13114 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13115 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13117 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13118 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13119 *) ac_file_in="${ac_file}.in" ;;
13122 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13124 # Remove last slash and all that follows it. Not all systems have dirname.
13125 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13126 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13127 # The file is in a subdirectory.
13128 test ! -d "$ac_dir" && mkdir "$ac_dir"
13129 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13130 # A "../" for each directory in $ac_dir_suffix.
13131 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13133 ac_dir_suffix= ac_dots=
13136 case "$ac_given_srcdir" in
13138 if test -z "$ac_dots"; then top_srcdir=.
13139 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13140 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13141 *) # Relative path.
13142 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13143 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13146 case "$ac_given_INSTALL" in
13147 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13148 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13151 echo creating "$ac_file"
13153 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13155 *Makefile*) ac_comsub="1i\\
13156 # $configure_input" ;;
13160 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13162 s%@configure_input@%$configure_input%g
13163 s%@srcdir@%$srcdir%g
13164 s%@top_srcdir@%$top_srcdir%g
13165 s%@INSTALL@%$INSTALL%g
13166 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13170 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13171 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13173 # ac_d sets the value in "#define NAME VALUE" lines.
13174 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13175 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13178 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13179 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13180 ac_uB='\([ ]\)%\1#\2define\3'
13183 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13184 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13185 ac_eB='$%\1#\2define\3'
13189 if test "${CONFIG_HEADERS+set}" != set; then
13191 cat >> $CONFIG_STATUS <<EOF
13192 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
13194 cat >> $CONFIG_STATUS <<\EOF
13196 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13197 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13199 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13200 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13201 *) ac_file_in="${ac_file}.in" ;;
13204 echo creating $ac_file
13206 rm -f conftest.frag conftest.in conftest.out
13207 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13208 cat $ac_file_inputs > conftest.in
13212 # Transform confdefs.h into a sed script conftest.vals that substitutes
13213 # the proper values into config.h.in to produce config.h. And first:
13214 # Protect against being on the right side of a sed subst in config.status.
13215 # Protect against being in an unquoted here document in config.status.
13216 rm -f conftest.vals
13217 cat > conftest.hdr <<\EOF
13220 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13224 sed -n -f conftest.hdr confdefs.h > conftest.vals
13227 # This sed command replaces #undef with comments. This is necessary, for
13228 # example, in the case of _POSIX_SOURCE, which is predefined and required
13229 # on some systems where configure will not decide to define it.
13230 cat >> conftest.vals <<\EOF
13231 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13234 # Break up conftest.vals because some shells have a limit on
13235 # the size of here documents, and old seds have small limits too.
13237 rm -f conftest.tail
13240 ac_lines=`grep -c . conftest.vals`
13241 # grep -c gives empty output for an empty file on some AIX systems.
13242 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13243 # Write a limited-size here document to conftest.frag.
13244 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13245 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13247 sed -f conftest.frag conftest.in > conftest.out
13249 mv conftest.out conftest.in
13250 ' >> $CONFIG_STATUS
13251 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13252 rm -f conftest.vals
13253 mv conftest.tail conftest.vals
13255 rm -f conftest.vals
13257 cat >> $CONFIG_STATUS <<\EOF
13258 rm -f conftest.frag conftest.h
13259 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13260 cat conftest.in >> conftest.h
13262 if cmp -s $ac_file conftest.h 2>/dev/null; then
13263 echo "$ac_file is unchanged"
13266 # Remove last slash and all that follows it. Not all systems have dirname.
13267 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13268 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13269 # The file is in a subdirectory.
13270 test ! -d "$ac_dir" && mkdir "$ac_dir"
13273 mv conftest.h $ac_file
13278 cat >> $CONFIG_STATUS <<EOF
13281 cat >> $CONFIG_STATUS <<\EOF
13284 echo Please \"make depend\" to build dependencies
13288 chmod +x $CONFIG_STATUS
13289 rm -fr confdefs* $ac_clean_files
13290 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1