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-kerberos with Kerberos support (auto)"
38 --with-readline with readline support (auto)"
40 --with-threads use threads (auto)"
42 --with-tls with TLS/SSL support (auto)"
44 --with-yielding-select with implicitly yielding select (auto)"
48 --enable-ldapd enable building ldapd (no)"
52 --enable-slapd enable building slapd (yes)"
54 --enable-aclgroups enable ACL group support (auto)"
56 --enable-cleartext enable cleartext passwords (yes)"
58 --enable-crypt enable crypt(3) passwords (auto)"
60 --enable-modules enable dynamic module support (no)"
62 --enable-phonetic enable phonetic/soundex (no)"
64 --enable-rlookups enable reverse lookups (auto)"
66 --enable-wrappers enable tcp wrapper support (no)"
68 --enable-bdb2 enable bdb2 backend (no)"
70 --enable-ldap enable ldap backend (no)"
72 --enable-ldbm enable ldbm backend (yes)"
74 --with-ldbm-api use LDBM API (auto)"
76 --with-ldbm-type use LDBM type (auto)"
78 --enable-passwd enable passwd backend (no)"
80 --enable-perl enable perl backend (no)"
82 --enable-shell enable shell backend (no)"
84 --enable-tcl enable tcl backend (no)"
88 --enable-slurpd enable building slurpd (auto)"
90 Library Generation & Linking Options"
92 --enable-static build static libraries [default=yes]
93 --enable-static=PKGS only build shared libraries if the current package
94 appears as an element in the PKGS list"
96 --enable-shared build shared libraries [default=yes]
97 --enable-shared=PKGS only build shared libraries if the current package
98 appears as an element in the PKGS list"
100 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
102 # Initialize some variables set by options.
103 # The variables have the same names as the options, with
104 # dashes changed to underlines.
106 cache_file=./config.cache
115 program_transform_name=s,x,x,
123 bindir='${exec_prefix}/bin'
124 sbindir='${exec_prefix}/sbin'
125 libexecdir='${exec_prefix}/libexec'
126 datadir='${prefix}/share'
127 sysconfdir='${prefix}/etc'
128 sharedstatedir='${prefix}/com'
129 localstatedir='${prefix}/var'
130 libdir='${exec_prefix}/lib'
131 includedir='${prefix}/include'
132 oldincludedir='/usr/include'
133 infodir='${prefix}/info'
134 mandir='${prefix}/man'
136 # Initialize some other variables.
139 SHELL=${CONFIG_SHELL-/bin/sh}
140 # Maximum number of lines to put in a shell here document.
147 # If the previous option needs an argument, assign it.
148 if test -n "$ac_prev"; then
149 eval "$ac_prev=\$ac_option"
155 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
159 # Accept the important Cygnus configure options, so we can diagnose typos.
163 -bindir | --bindir | --bindi | --bind | --bin | --bi)
165 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
166 bindir="$ac_optarg" ;;
168 -build | --build | --buil | --bui | --bu)
170 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
171 build="$ac_optarg" ;;
173 -cache-file | --cache-file | --cache-fil | --cache-fi \
174 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
175 ac_prev=cache_file ;;
176 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
177 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
178 cache_file="$ac_optarg" ;;
180 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
182 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
184 datadir="$ac_optarg" ;;
186 -disable-* | --disable-*)
187 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}=no" ;;
195 -enable-* | --enable-*)
196 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
197 # Reject names that are not valid shell variable names.
198 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
199 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
206 eval "enable_${ac_feature}='$ac_optarg'" ;;
208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
210 | --exec | --exe | --ex)
211 ac_prev=exec_prefix ;;
212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
214 | --exec=* | --exe=* | --ex=*)
215 exec_prefix="$ac_optarg" ;;
217 -gas | --gas | --ga | --g)
218 # Obsolete; use --with-gas.
221 -help | --help | --hel | --he)
222 # Omit some internal or obsolete options to make the list less imposing.
223 # This message is too long to be a string in the A/UX 3.1 sh.
225 Usage: configure [options] [host]
226 Options: [defaults in brackets after descriptions]
228 --cache-file=FILE cache test results in FILE
229 --help print this message
230 --no-create do not create output files
231 --quiet, --silent do not print \`checking...' messages
232 --version print the version of autoconf that created configure
233 Directory and file names:
234 --prefix=PREFIX install architecture-independent files in PREFIX
236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 --bindir=DIR user executables in DIR [EPREFIX/bin]
239 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
240 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
241 --datadir=DIR read-only architecture-independent data in DIR
243 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
244 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
247 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
248 --includedir=DIR C header files in DIR [PREFIX/include]
249 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
250 --infodir=DIR info documentation in DIR [PREFIX/info]
251 --mandir=DIR man documentation in DIR [PREFIX/man]
252 --srcdir=DIR find the sources in DIR [configure dir or ..]
253 --program-prefix=PREFIX prepend PREFIX to installed program names
254 --program-suffix=SUFFIX append SUFFIX to installed program names
255 --program-transform-name=PROGRAM
256 run sed PROGRAM on installed program names
260 --build=BUILD configure for building on BUILD [BUILD=HOST]
261 --host=HOST configure for HOST [guessed]
262 --target=TARGET configure for TARGET [TARGET=HOST]
263 Features and packages:
264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
266 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
267 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
268 --x-includes=DIR X include files are in DIR
269 --x-libraries=DIR X library files are in DIR
271 if test -n "$ac_help"; then
272 echo "--enable and --with options recognized:$ac_help"
276 -host | --host | --hos | --ho)
278 -host=* | --host=* | --hos=* | --ho=*)
281 -includedir | --includedir | --includedi | --included | --include \
282 | --includ | --inclu | --incl | --inc)
283 ac_prev=includedir ;;
284 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
285 | --includ=* | --inclu=* | --incl=* | --inc=*)
286 includedir="$ac_optarg" ;;
288 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
291 infodir="$ac_optarg" ;;
293 -libdir | --libdir | --libdi | --libd)
295 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 libdir="$ac_optarg" ;;
298 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
299 | --libexe | --libex | --libe)
300 ac_prev=libexecdir ;;
301 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
302 | --libexe=* | --libex=* | --libe=*)
303 libexecdir="$ac_optarg" ;;
305 -localstatedir | --localstatedir | --localstatedi | --localstated \
306 | --localstate | --localstat | --localsta | --localst \
307 | --locals | --local | --loca | --loc | --lo)
308 ac_prev=localstatedir ;;
309 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
310 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
311 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
312 localstatedir="$ac_optarg" ;;
314 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
317 mandir="$ac_optarg" ;;
320 # Obsolete; use --without-fp.
323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
328 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
331 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
332 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
333 | --oldin | --oldi | --old | --ol | --o)
334 ac_prev=oldincludedir ;;
335 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
336 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
337 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
338 oldincludedir="$ac_optarg" ;;
340 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 prefix="$ac_optarg" ;;
345 -program-prefix | --program-prefix | --program-prefi | --program-pref \
346 | --program-pre | --program-pr | --program-p)
347 ac_prev=program_prefix ;;
348 -program-prefix=* | --program-prefix=* | --program-prefi=* \
349 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
350 program_prefix="$ac_optarg" ;;
352 -program-suffix | --program-suffix | --program-suffi | --program-suff \
353 | --program-suf | --program-su | --program-s)
354 ac_prev=program_suffix ;;
355 -program-suffix=* | --program-suffix=* | --program-suffi=* \
356 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
357 program_suffix="$ac_optarg" ;;
359 -program-transform-name | --program-transform-name \
360 | --program-transform-nam | --program-transform-na \
361 | --program-transform-n | --program-transform- \
362 | --program-transform | --program-transfor \
363 | --program-transfo | --program-transf \
364 | --program-trans | --program-tran \
365 | --progr-tra | --program-tr | --program-t)
366 ac_prev=program_transform_name ;;
367 -program-transform-name=* | --program-transform-name=* \
368 | --program-transform-nam=* | --program-transform-na=* \
369 | --program-transform-n=* | --program-transform-=* \
370 | --program-transform=* | --program-transfor=* \
371 | --program-transfo=* | --program-transf=* \
372 | --program-trans=* | --program-tran=* \
373 | --progr-tra=* | --program-tr=* | --program-t=*)
374 program_transform_name="$ac_optarg" ;;
376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
377 | -silent | --silent | --silen | --sile | --sil)
380 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 sbindir="$ac_optarg" ;;
386 -sharedstatedir | --sharedstatedir | --sharedstatedi \
387 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
388 | --sharedst | --shareds | --shared | --share | --shar \
390 ac_prev=sharedstatedir ;;
391 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
392 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
393 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 sharedstatedir="$ac_optarg" ;;
397 -site | --site | --sit)
399 -site=* | --site=* | --sit=*)
402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 srcdir="$ac_optarg" ;;
407 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
408 | --syscon | --sysco | --sysc | --sys | --sy)
409 ac_prev=sysconfdir ;;
410 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
411 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
412 sysconfdir="$ac_optarg" ;;
414 -target | --target | --targe | --targ | --tar | --ta | --t)
416 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
417 target="$ac_optarg" ;;
419 -v | -verbose | --verbose | --verbos | --verbo | --verb)
422 -version | --version | --versio | --versi | --vers)
423 echo "configure generated by autoconf version 2.13"
427 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
437 eval "with_${ac_package}='$ac_optarg'" ;;
439 -without-* | --without-*)
440 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457 x_includes="$ac_optarg" ;;
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464 x_libraries="$ac_optarg" ;;
466 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
470 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
471 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 if test "x$nonopt" != xNONE; then
474 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 if test -n "$ac_prev"; then
483 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488 # File descriptor usage:
491 # 2 errors and warnings
492 # 3 some systems may open it to /dev/tty
493 # 4 used on the Kubota Titan
494 # 6 checking for... messages and results
495 # 5 compiler messages saved in config.log
496 if test "$silent" = yes; then
504 This file contains any messages produced by compilers while
505 running configure, to aid debugging if configure makes a mistake.
508 # Strip out --no-create and --no-recursion so they do not pile up.
509 # Also quote any args containing shell metacharacters.
514 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
515 | --no-cr | --no-c) ;;
516 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
517 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
519 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
520 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
525 # Only set these to C if already set. These must not be set unconditionally
526 # because not all systems understand e.g. LANG=C (notably SCO).
527 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
528 # Non-C LC_CTYPE values break the ctype check.
529 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
530 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
531 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
532 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
535 rm -rf conftest* confdefs.h
536 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
539 # A filename unique to this package, relative to the directory that
540 # configure is in, which we can look for to find out if srcdir is correct.
541 ac_unique_file=build/version
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
564 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566 # Prefer explicitly selected file to automatically selected ones.
567 if test -z "$CONFIG_SITE"; then
568 if test "x$prefix" != xNONE; then
569 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
571 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 for ac_site_file in $CONFIG_SITE; do
575 if test -r "$ac_site_file"; then
576 echo "loading site script $ac_site_file"
583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
584 ac_cpp='$CPP $CPPFLAGS'
585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
587 cross_compiling=$ac_cv_prog_cc_cross
591 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
592 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
593 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
600 ac_n= ac_c='\c' ac_t=
604 for ac_dir in build $srcdir/build; do
605 if test -f $ac_dir/install-sh; then
607 ac_install_sh="$ac_aux_dir/install-sh -c"
609 elif test -f $ac_dir/install.sh; then
611 ac_install_sh="$ac_aux_dir/install.sh -c"
615 if test -z "$ac_aux_dir"; then
616 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 OL_VERSION=`cat $ac_aux_dir/version`
623 if test -z "$OL_VERSION"; then
624 { echo "configure: error: could not determine version" 1>&2; exit 1; }
627 # Find a good install program. We prefer a C program (faster),
628 # so one script is as good as another. But avoid the broken or
629 # incompatible versions:
630 # SysV /etc/install, /usr/sbin/install
631 # SunOS /usr/etc/install
634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
637 # ./install, which can be erroneously created by make from ./install.sh.
638 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
639 echo "configure:640: checking for a BSD compatible install" >&5
640 if test -z "$INSTALL"; then
641 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
644 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
645 for ac_dir in $PATH; do
646 # Account for people who put trailing slashes in PATH elements.
648 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
650 # OSF1 and SCO ODT 3.0 have their own names for install.
651 # Don't use installbsd from OSF since it installs stuff as root
653 for ac_prog in ginstall scoinst install; do
654 if test -f $ac_dir/$ac_prog; then
655 if test $ac_prog = install &&
656 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
657 # AIX install. It has an incompatible calling convention.
660 ac_cv_path_install="$ac_dir/$ac_prog -c"
671 if test "${ac_cv_path_install+set}" = set; then
672 INSTALL="$ac_cv_path_install"
674 # As a last resort, use the slow shell script. We don't cache a
675 # path for INSTALL within a source directory, because that will
676 # break other packages using the cache if that directory is
677 # removed, or if the path is relative.
678 INSTALL="$ac_install_sh"
681 echo "$ac_t""$INSTALL" 1>&6
683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
684 # It thinks the first close brace ends the variable substitution.
685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
691 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
692 echo "configure:693: checking whether build environment is sane" >&5
695 echo timestamp > conftestfile
696 # Do `set' in a subshell so we don't clobber the current shell's
697 # arguments. Must try -L first in case configure is actually a
698 # symlink; some systems play weird games with the mod time of symlinks
699 # (eg FreeBSD returns the mod time of the symlink's containing
702 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
703 if test "$*" = "X"; then
705 set X `ls -t $srcdir/configure conftestfile`
707 if test "$*" != "X $srcdir/configure conftestfile" \
708 && test "$*" != "X conftestfile $srcdir/configure"; then
710 # If neither matched, then we have a broken ls. This can happen
711 # if, for instance, CONFIG_SHELL is bash and it inherits a
712 # broken ls alias from the environment. This has actually
713 # happened. Such a system could not be considered "sane".
714 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
715 alias in your environment" 1>&2; exit 1; }
718 test "$2" = conftestfile
724 { echo "configure: error: newly created file is older than distributed files!
725 Check your system clock" 1>&2; exit 1; }
728 echo "$ac_t""yes" 1>&6
729 if test "$program_transform_name" = s,x,x,; then
730 program_transform_name=
732 # Double any \ or $. echo might interpret backslashes.
733 cat <<\EOF_SED > conftestsed
734 s,\\,\\\\,g; s,\$,$$,g
736 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
739 test "$program_prefix" != NONE &&
740 program_transform_name="s,^,${program_prefix},; $program_transform_name"
741 # Use a double $ so make ignores it.
742 test "$program_suffix" != NONE &&
743 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
745 # sed with no file args requires a program.
746 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
748 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
749 echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
751 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftestmake <<\EOF
756 @echo 'ac_maketemp="${MAKE}"'
758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
759 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
760 if test -n "$ac_maketemp"; then
761 eval ac_cv_prog_make_${ac_make}_set=yes
763 eval ac_cv_prog_make_${ac_make}_set=no
767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
771 echo "$ac_t""no" 1>&6
772 SET_MAKE="MAKE=${MAKE-make}"
780 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
781 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
786 missing_dir=`cd $ac_aux_dir && pwd`
787 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
788 echo "configure:789: checking for working aclocal" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
794 echo "$ac_t""found" 1>&6
796 ACLOCAL="$missing_dir/missing aclocal"
797 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
801 echo "configure:802: checking for working autoconf" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
807 echo "$ac_t""found" 1>&6
809 AUTOCONF="$missing_dir/missing autoconf"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working automake""... $ac_c" 1>&6
814 echo "configure:815: checking for working automake" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (automake --version) < /dev/null > /dev/null 2>&1; then
820 echo "$ac_t""found" 1>&6
822 AUTOMAKE="$missing_dir/missing automake"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
827 echo "configure:828: checking for working autoheader" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
832 AUTOHEADER=autoheader
833 echo "$ac_t""found" 1>&6
835 AUTOHEADER="$missing_dir/missing autoheader"
836 echo "$ac_t""missing" 1>&6
839 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
840 echo "configure:841: checking for working makeinfo" >&5
841 # Run test in a subshell; some versions of sh will print an error if
842 # an executable is not found, even if stderr is redirected.
843 # Redirect stdin to placate older versions of autoconf. Sigh.
844 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
846 echo "$ac_t""found" 1>&6
848 MAKEINFO="$missing_dir/missing makeinfo"
849 echo "$ac_t""missing" 1>&6
854 cat >> confdefs.h <<EOF
855 #define OPENLDAP_PACKAGE "$PACKAGE"
858 cat >> confdefs.h <<EOF
859 #define OPENLDAP_VERSION "$VERSION"
865 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
866 echo "configure:867: checking configure arguments" >&5
871 cat >> confdefs.h <<\EOF
872 #define HAVE_MKVERSION 1
876 ldap_subdir="openldap"
878 # Check whether --with-subdir or --without-subdir was given.
879 if test "${with_subdir+set}" = set; then
880 withval="$with_subdir"
882 if test "$withval" = "no"; then
884 elif test "$withval" != "yes"; then
885 ldap_subdir="$withval"
891 # OpenLDAP --enable-debug
892 # Check whether --enable-debug or --disable-debug was given.
893 if test "${enable_debug+set}" = set; then
894 enableval="$enable_debug"
897 for ol_val in auto yes no ; do
898 if test "$enableval" = "$ol_val" ; then
902 if test "$ol_arg" = "invalid" ; then
903 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
905 ol_enable_debug="$ol_arg"
908 ol_enable_debug="yes"
911 # OpenLDAP --enable-syslog
912 # Check whether --enable-syslog or --disable-syslog was given.
913 if test "${enable_syslog+set}" = set; then
914 enableval="$enable_syslog"
917 for ol_val in auto yes no ; do
918 if test "$enableval" = "$ol_val" ; then
922 if test "$ol_arg" = "invalid" ; then
923 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
925 ol_enable_syslog="$ol_arg"
928 ol_enable_syslog="auto"
930 # end --enable-syslog
931 # OpenLDAP --enable-proctitle
932 # Check whether --enable-proctitle or --disable-proctitle was given.
933 if test "${enable_proctitle+set}" = set; then
934 enableval="$enable_proctitle"
937 for ol_val in auto yes no ; do
938 if test "$enableval" = "$ol_val" ; then
942 if test "$ol_arg" = "invalid" ; then
943 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
945 ol_enable_proctitle="$ol_arg"
948 ol_enable_proctitle="yes"
950 # end --enable-proctitle
951 # OpenLDAP --enable-cache
952 # Check whether --enable-cache or --disable-cache was given.
953 if test "${enable_cache+set}" = set; then
954 enableval="$enable_cache"
957 for ol_val in auto yes no ; do
958 if test "$enableval" = "$ol_val" ; then
962 if test "$ol_arg" = "invalid" ; then
963 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
965 ol_enable_cache="$ol_arg"
968 ol_enable_cache="yes"
971 # OpenLDAP --enable-dns
972 # Check whether --enable-dns or --disable-dns was given.
973 if test "${enable_dns+set}" = set; then
974 enableval="$enable_dns"
977 for ol_val in auto yes no ; do
978 if test "$enableval" = "$ol_val" ; then
982 if test "$ol_arg" = "invalid" ; then
983 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
985 ol_enable_dns="$ol_arg"
991 # OpenLDAP --enable-referrals
992 # Check whether --enable-referrals or --disable-referrals was given.
993 if test "${enable_referrals+set}" = set; then
994 enableval="$enable_referrals"
997 for ol_val in auto yes no ; do
998 if test "$enableval" = "$ol_val" ; then
1002 if test "$ol_arg" = "invalid" ; then
1003 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1005 ol_enable_referrals="$ol_arg"
1008 ol_enable_referrals="yes"
1010 # end --enable-referrals
1011 # OpenLDAP --enable-cldap
1012 # Check whether --enable-cldap or --disable-cldap was given.
1013 if test "${enable_cldap+set}" = set; then
1014 enableval="$enable_cldap"
1017 for ol_val in auto yes no ; do
1018 if test "$enableval" = "$ol_val" ; then
1022 if test "$ol_arg" = "invalid" ; then
1023 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1025 ol_enable_cldap="$ol_arg"
1028 ol_enable_cldap="no"
1030 # end --enable-cldap
1031 # OpenLDAP --enable-x_compile
1032 # Check whether --enable-x_compile or --disable-x_compile was given.
1033 if test "${enable_x_compile+set}" = set; then
1034 enableval="$enable_x_compile"
1037 for ol_val in yes no ; do
1038 if test "$enableval" = "$ol_val" ; then
1042 if test "$ol_arg" = "invalid" ; then
1043 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1045 ol_enable_x_compile="$ol_arg"
1048 ol_enable_x_compile="no"
1050 # end --enable-x_compile
1052 # OpenLDAP --enable-dmalloc
1053 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1054 if test "${enable_dmalloc+set}" = set; then
1055 enableval="$enable_dmalloc"
1058 for ol_val in auto yes no ; do
1059 if test "$enableval" = "$ol_val" ; then
1063 if test "$ol_arg" = "invalid" ; then
1064 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1066 ol_enable_dmalloc="$ol_arg"
1069 ol_enable_dmalloc="no"
1071 # end --enable-dmalloc
1073 # OpenLDAP --with-kerberos
1074 # Check whether --with-kerberos or --without-kerberos was given.
1075 if test "${with_kerberos+set}" = set; then
1076 withval="$with_kerberos"
1079 for ol_val in auto k5 k4 afs yes no ; do
1080 if test "$withval" = "$ol_val" ; then
1084 if test "$ol_arg" = "invalid" ; then
1085 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1087 ol_with_kerberos="$ol_arg"
1090 ol_with_kerberos="auto"
1092 # end --with-kerberos
1094 # OpenLDAP --with-readline
1095 # Check whether --with-readline or --without-readline was given.
1096 if test "${with_readline+set}" = set; then
1097 withval="$with_readline"
1100 for ol_val in auto yes no ; do
1101 if test "$withval" = "$ol_val" ; then
1105 if test "$ol_arg" = "invalid" ; then
1106 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1108 ol_with_readline="$ol_arg"
1111 ol_with_readline="auto"
1113 # end --with-readline
1115 # OpenLDAP --with-threads
1116 # Check whether --with-threads or --without-threads was given.
1117 if test "${with_threads+set}" = set; then
1118 withval="$with_threads"
1121 for ol_val in auto posix mach lwp yes no manual ; do
1122 if test "$withval" = "$ol_val" ; then
1126 if test "$ol_arg" = "invalid" ; then
1127 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1129 ol_with_threads="$ol_arg"
1132 ol_with_threads="auto"
1134 # end --with-threads
1136 # OpenLDAP --with-tls
1137 # Check whether --with-tls or --without-tls was given.
1138 if test "${with_tls+set}" = set; then
1142 for ol_val in auto ssleay openssl yes no ; do
1143 if test "$withval" = "$ol_val" ; then
1147 if test "$ol_arg" = "invalid" ; then
1148 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1150 ol_with_tls="$ol_arg"
1157 # OpenLDAP --with-yielding_select
1158 # Check whether --with-yielding_select or --without-yielding_select was given.
1159 if test "${with_yielding_select+set}" = set; then
1160 withval="$with_yielding_select"
1163 for ol_val in auto yes no manual ; do
1164 if test "$withval" = "$ol_val" ; then
1168 if test "$ol_arg" = "invalid" ; then
1169 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1171 ol_with_yielding_select="$ol_arg"
1174 ol_with_yielding_select="auto"
1176 # end --with-yielding_select
1180 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1181 if test "${with_xxldapdoptions+set}" = set; then
1182 withval="$with_xxldapdoptions"
1186 # OpenLDAP --enable-ldapd
1187 # Check whether --enable-ldapd or --disable-ldapd was given.
1188 if test "${enable_ldapd+set}" = set; then
1189 enableval="$enable_ldapd"
1192 for ol_val in auto yes no ; do
1193 if test "$enableval" = "$ol_val" ; then
1197 if test "$ol_arg" = "invalid" ; then
1198 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1200 ol_enable_ldapd="$ol_arg"
1203 ol_enable_ldapd="no"
1205 # end --enable-ldapd
1207 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1208 if test "${with_xxslapdoptions+set}" = set; then
1209 withval="$with_xxslapdoptions"
1213 # OpenLDAP --enable-slapd
1214 # Check whether --enable-slapd or --disable-slapd was given.
1215 if test "${enable_slapd+set}" = set; then
1216 enableval="$enable_slapd"
1219 for ol_val in auto yes no ; do
1220 if test "$enableval" = "$ol_val" ; then
1224 if test "$ol_arg" = "invalid" ; then
1225 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1227 ol_enable_slapd="$ol_arg"
1230 ol_enable_slapd="yes"
1232 # end --enable-slapd
1233 # OpenLDAP --enable-aclgroups
1234 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1235 if test "${enable_aclgroups+set}" = set; then
1236 enableval="$enable_aclgroups"
1239 for ol_val in auto yes no ; do
1240 if test "$enableval" = "$ol_val" ; then
1244 if test "$ol_arg" = "invalid" ; then
1245 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1247 ol_enable_aclgroups="$ol_arg"
1250 ol_enable_aclgroups="auto"
1252 # end --enable-aclgroups
1253 # OpenLDAP --enable-cleartext
1254 # Check whether --enable-cleartext or --disable-cleartext was given.
1255 if test "${enable_cleartext+set}" = set; then
1256 enableval="$enable_cleartext"
1259 for ol_val in auto yes no ; do
1260 if test "$enableval" = "$ol_val" ; then
1264 if test "$ol_arg" = "invalid" ; then
1265 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1267 ol_enable_cleartext="$ol_arg"
1270 ol_enable_cleartext="yes"
1272 # end --enable-cleartext
1273 # OpenLDAP --enable-crypt
1274 # Check whether --enable-crypt or --disable-crypt was given.
1275 if test "${enable_crypt+set}" = set; then
1276 enableval="$enable_crypt"
1279 for ol_val in auto yes no ; do
1280 if test "$enableval" = "$ol_val" ; then
1284 if test "$ol_arg" = "invalid" ; then
1285 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1287 ol_enable_crypt="$ol_arg"
1290 ol_enable_crypt="auto"
1292 # end --enable-crypt
1293 # OpenLDAP --enable-modules
1294 # Check whether --enable-modules or --disable-modules was given.
1295 if test "${enable_modules+set}" = set; then
1296 enableval="$enable_modules"
1299 for ol_val in auto yes no ; do
1300 if test "$enableval" = "$ol_val" ; then
1304 if test "$ol_arg" = "invalid" ; then
1305 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1307 ol_enable_modules="$ol_arg"
1310 ol_enable_modules="no"
1312 # end --enable-modules
1313 # OpenLDAP --enable-phonetic
1314 # Check whether --enable-phonetic or --disable-phonetic was given.
1315 if test "${enable_phonetic+set}" = set; then
1316 enableval="$enable_phonetic"
1319 for ol_val in auto yes no ; do
1320 if test "$enableval" = "$ol_val" ; then
1324 if test "$ol_arg" = "invalid" ; then
1325 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1327 ol_enable_phonetic="$ol_arg"
1330 ol_enable_phonetic="no"
1332 # end --enable-phonetic
1333 # OpenLDAP --enable-rlookups
1334 # Check whether --enable-rlookups or --disable-rlookups was given.
1335 if test "${enable_rlookups+set}" = set; then
1336 enableval="$enable_rlookups"
1339 for ol_val in auto yes no ; do
1340 if test "$enableval" = "$ol_val" ; then
1344 if test "$ol_arg" = "invalid" ; then
1345 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1347 ol_enable_rlookups="$ol_arg"
1350 ol_enable_rlookups="auto"
1352 # end --enable-rlookups
1353 # OpenLDAP --enable-wrappers
1354 # Check whether --enable-wrappers or --disable-wrappers was given.
1355 if test "${enable_wrappers+set}" = set; then
1356 enableval="$enable_wrappers"
1359 for ol_val in auto yes no ; do
1360 if test "$enableval" = "$ol_val" ; then
1364 if test "$ol_arg" = "invalid" ; then
1365 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1367 ol_enable_wrappers="$ol_arg"
1370 ol_enable_wrappers="no"
1372 # end --enable-wrappers
1374 # OpenLDAP --enable-bdb2
1375 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1376 if test "${enable_bdb2+set}" = set; then
1377 enableval="$enable_bdb2"
1380 for ol_val in auto yes no ; do
1381 if test "$enableval" = "$ol_val" ; then
1385 if test "$ol_arg" = "invalid" ; then
1386 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1388 ol_enable_bdb2="$ol_arg"
1394 # OpenLDAP --enable-ldap
1395 # Check whether --enable-ldap or --disable-ldap was given.
1396 if test "${enable_ldap+set}" = set; then
1397 enableval="$enable_ldap"
1400 for ol_val in auto yes no ; do
1401 if test "$enableval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1408 ol_enable_ldap="$ol_arg"
1414 # OpenLDAP --enable-ldbm
1415 # Check whether --enable-ldbm or --disable-ldbm was given.
1416 if test "${enable_ldbm+set}" = set; then
1417 enableval="$enable_ldbm"
1420 for ol_val in auto yes no ; do
1421 if test "$enableval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1428 ol_enable_ldbm="$ol_arg"
1431 ol_enable_ldbm="yes"
1434 # OpenLDAP --with-ldbm_api
1435 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1436 if test "${with_ldbm_api+set}" = set; then
1437 withval="$with_ldbm_api"
1440 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1441 if test "$withval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1448 ol_with_ldbm_api="$ol_arg"
1451 ol_with_ldbm_api="auto"
1453 # end --with-ldbm_api
1455 # OpenLDAP --with-ldbm_type
1456 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1457 if test "${with_ldbm_type+set}" = set; then
1458 withval="$with_ldbm_type"
1461 for ol_val in auto btree hash ; do
1462 if test "$withval" = "$ol_val" ; then
1466 if test "$ol_arg" = "invalid" ; then
1467 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1469 ol_with_ldbm_type="$ol_arg"
1472 ol_with_ldbm_type="auto"
1474 # end --with-ldbm_type
1477 # OpenLDAP --enable-passwd
1478 # Check whether --enable-passwd or --disable-passwd was given.
1479 if test "${enable_passwd+set}" = set; then
1480 enableval="$enable_passwd"
1483 for ol_val in auto yes no ; do
1484 if test "$enableval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1491 ol_enable_passwd="$ol_arg"
1494 ol_enable_passwd="no"
1496 # end --enable-passwd
1497 # OpenLDAP --enable-perl
1498 # Check whether --enable-perl or --disable-perl was given.
1499 if test "${enable_perl+set}" = set; then
1500 enableval="$enable_perl"
1503 for ol_val in auto yes no ; do
1504 if test "$enableval" = "$ol_val" ; then
1508 if test "$ol_arg" = "invalid" ; then
1509 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1511 ol_enable_perl="$ol_arg"
1517 # OpenLDAP --enable-shell
1518 # Check whether --enable-shell or --disable-shell was given.
1519 if test "${enable_shell+set}" = set; then
1520 enableval="$enable_shell"
1523 for ol_val in auto yes no ; do
1524 if test "$enableval" = "$ol_val" ; then
1528 if test "$ol_arg" = "invalid" ; then
1529 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1531 ol_enable_shell="$ol_arg"
1534 ol_enable_shell="no"
1536 # end --enable-shell
1537 # OpenLDAP --enable-tcl
1538 # Check whether --enable-tcl or --disable-tcl was given.
1539 if test "${enable_tcl+set}" = set; then
1540 enableval="$enable_tcl"
1543 for ol_val in auto yes no ; do
1544 if test "$enableval" = "$ol_val" ; then
1548 if test "$ol_arg" = "invalid" ; then
1549 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1551 ol_enable_tcl="$ol_arg"
1558 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1559 if test "${with_xxslurpdoptions+set}" = set; then
1560 withval="$with_xxslurpdoptions"
1564 # OpenLDAP --enable-slurpd
1565 # Check whether --enable-slurpd or --disable-slurpd was given.
1566 if test "${enable_slurpd+set}" = set; then
1567 enableval="$enable_slurpd"
1570 for ol_val in auto yes no ; do
1571 if test "$enableval" = "$ol_val" ; then
1575 if test "$ol_arg" = "invalid" ; then
1576 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1578 ol_enable_slurpd="$ol_arg"
1581 ol_enable_slurpd="auto"
1583 # end --enable-slurpd
1585 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1586 if test "${with_xxliboptions+set}" = set; then
1587 withval="$with_xxliboptions"
1591 # Check whether --enable-static or --disable-static was given.
1592 if test "${enable_static+set}" = set; then
1593 enableval="$enable_static"
1594 p=${PACKAGE-default}
1595 case "$enableval" in
1596 yes) enable_static=yes ;;
1597 no) enable_static=no ;;
1600 # Look at the argument we got. We use all the common list separators.
1601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1602 for pkg in $enableval; do
1603 if test "X$pkg" = "X$p"; then
1614 # Check whether --enable-shared or --disable-shared was given.
1615 if test "${enable_shared+set}" = set; then
1616 enableval="$enable_shared"
1617 p=${PACKAGE-default}
1618 case "$enableval" in
1619 yes) enable_shared=yes ;;
1620 no) enable_shared=no ;;
1623 # Look at the argument we got. We use all the common list separators.
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1625 for pkg in $enableval; do
1626 if test "X$pkg" = "X$p"; then
1639 if test $ol_enable_dns = yes ; then
1640 if test $ol_enable_referrals = no ; then
1641 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1643 if test $ol_enable_referrals = auto ; then
1644 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1645 ol_enable_referrals=yes
1649 if test $ol_enable_slapd = no ; then
1650 if test $ol_enable_bdb2 = yes ; then
1651 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
1653 if test $ol_enable_ldap = yes ; then
1654 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
1656 if test $ol_enable_ldbm = yes ; then
1657 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
1659 if test $ol_enable_passwd = yes ; then
1660 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
1662 if test $ol_enable_perl = yes ; then
1663 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
1665 if test $ol_enable_shell = yes ; then
1666 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
1668 if test $ol_enable_tcl = yes ; then
1669 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
1671 if test $ol_enable_aclgroups = yes ; then
1672 echo "configure: warning: slapd disabled, ignoring --enable-aclgroups argument" 1>&2
1674 if test $ol_enable_modules = yes ; then
1675 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
1677 if test $ol_enable_wrappers = yes ; then
1678 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
1680 if test $ol_enable_phonetic = yes ; then
1681 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
1683 if test $ol_enable_rlookups = yes ; then
1684 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
1686 if test $ol_with_ldbm_api != auto ; then
1687 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
1689 if test $ol_with_ldbm_type != auto ; then
1690 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
1692 if test $ol_enable_slurpd = yes ; then
1693 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1696 # force settings to no
1705 ol_enable_aclgroups=no
1706 ol_enable_modules=no
1707 ol_enable_phonetic=no
1708 ol_enable_rlookups=no
1709 ol_enable_wrappers=no
1712 ol_with_ldbm_type=no
1716 elif test $ol_enable_ldbm = no ; then
1718 if test $ol_with_ldbm_api != auto ; then
1719 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
1722 if test $ol_with_ldbm_type != auto ; then
1723 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
1726 if test $ol_enable_bdb2 = yes ; then
1727 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1730 if test $ol_enable_modules != yes -a \
1731 $ol_enable_ldap = no -a \
1732 $ol_enable_passwd = no -a \
1733 $ol_enable_perl = no -a \
1734 $ol_enable_shell = no -a \
1735 $ol_enable_tcl = no ; then
1736 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1740 ol_with_ldbm_type=no
1742 elif test $ol_enable_bdb2 = yes ; then
1744 if test $ol_with_ldbm_api != auto -a \
1745 $ol_with_ldbm_api != db2 ; then
1746 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1749 ol_with_ldbm_api=db2
1753 if test $ol_enable_bdb2 != no ; then
1754 if test $ol_with_ldbm_api != auto -a \
1755 $ol_with_ldbm_api != db2 ; then
1756 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1761 if test $ol_with_ldbm_api = gdbm -a \
1762 $ol_with_ldbm_type = btree ; then
1763 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1765 if test $ol_with_ldbm_api = mdbm -a \
1766 $ol_with_ldbm_type = btree ; then
1767 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1769 if test $ol_with_ldbm_api = ndbm -a \
1770 $ol_with_ldbm_type = btree ; then
1771 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1775 if test $ol_enable_slurpd = yes ; then
1776 if test $ol_with_threads = no ; then
1777 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1781 echo "$ac_t""done" 1>&6
1806 SLAPD_MODULES_LDFLAGS=
1807 SLAPD_MODULES_CPPFLAGS=
1810 SLAPD_PERL_CPPFLAGS=
1820 if test -z "${CC}"; then
1823 # Extract the first word of "$ac_prog", so it can be a program name with args.
1824 set dummy $ac_prog; ac_word=$2
1825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_word" >&5
1827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1835 for ac_dir in $ac_dummy; do
1836 test -z "$ac_dir" && ac_dir=.
1837 if test -f $ac_dir/$ac_word; then
1838 ac_cv_prog_CC="$ac_prog"
1846 if test -n "$CC"; then
1847 echo "$ac_t""$CC" 1>&6
1849 echo "$ac_t""no" 1>&6
1852 test -n "$CC" && break
1859 # Make sure we can run config.sub.
1860 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1861 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1864 echo $ac_n "checking host system type""... $ac_c" 1>&6
1865 echo "configure:1866: checking host system type" >&5
1868 case "$host_alias" in
1872 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1873 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1875 *) host_alias=$nonopt ;;
1879 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1880 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1881 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1882 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1883 echo "$ac_t""$host" 1>&6
1887 *-*-aix*) ol_host_os=aix ;;
1891 if test -z "$save_CC" -a "$CC" = cc -a "$ol_host_os" = aix ; then
1892 case "$ol_with_threads" in
1893 auto | yes | posix) ol_aix_threads=yes ;;
1897 if test ol_aix_threads = yes ; then
1899 for ac_prog in cc_r xlc_r
1901 # Extract the first word of "$ac_prog", so it can be a program name with args.
1902 set dummy $ac_prog; ac_word=$2
1903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_word" >&5
1905 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1913 for ac_dir in $ac_dummy; do
1914 test -z "$ac_dir" && ac_dir=.
1915 if test -f $ac_dir/$ac_word; then
1916 ac_cv_prog_CC="$ac_prog"
1924 if test -n "$CC"; then
1925 echo "$ac_t""$CC" 1>&6
1927 echo "$ac_t""no" 1>&6
1930 test -n "$CC" && break
1934 if test "$CC" ; then
1935 if test $ol_with_threads != auto ; then
1936 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
1938 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
1942 ol_with_threads=posix
1943 ol_cv_pthread_create=yes
1947 # Extract the first word of "ranlib", so it can be a program name with args.
1948 set dummy ranlib; ac_word=$2
1949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1950 echo "configure:1951: checking for $ac_word" >&5
1951 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 if test -n "$RANLIB"; then
1955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1959 for ac_dir in $ac_dummy; do
1960 test -z "$ac_dir" && ac_dir=.
1961 if test -f $ac_dir/$ac_word; then
1962 ac_cv_prog_RANLIB="ranlib"
1967 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1970 RANLIB="$ac_cv_prog_RANLIB"
1971 if test -n "$RANLIB"; then
1972 echo "$ac_t""$RANLIB" 1>&6
1974 echo "$ac_t""no" 1>&6
1977 # Extract the first word of "gcc", so it can be a program name with args.
1978 set dummy gcc; ac_word=$2
1979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1980 echo "configure:1981: checking for $ac_word" >&5
1981 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1989 for ac_dir in $ac_dummy; do
1990 test -z "$ac_dir" && ac_dir=.
1991 if test -f $ac_dir/$ac_word; then
2000 if test -n "$CC"; then
2001 echo "$ac_t""$CC" 1>&6
2003 echo "$ac_t""no" 1>&6
2006 if test -z "$CC"; then
2007 # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc; ac_word=$2
2009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2010 echo "configure:2011: checking for $ac_word" >&5
2011 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2020 for ac_dir in $ac_dummy; do
2021 test -z "$ac_dir" && ac_dir=.
2022 if test -f $ac_dir/$ac_word; then
2023 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2024 ac_prog_rejected=yes
2032 if test $ac_prog_rejected = yes; then
2033 # We found a bogon in the path, so make sure we never use it.
2034 set dummy $ac_cv_prog_CC
2036 if test $# -gt 0; then
2037 # We chose a different compiler from the bogus one.
2038 # However, it has the same basename, so the bogon will be chosen
2039 # first if we set CC to just the basename; use the full file name.
2041 set dummy "$ac_dir/$ac_word" "$@"
2049 if test -n "$CC"; then
2050 echo "$ac_t""$CC" 1>&6
2052 echo "$ac_t""no" 1>&6
2055 if test -z "$CC"; then
2056 case "`uname -s`" in
2058 # Extract the first word of "cl", so it can be a program name with args.
2059 set dummy cl; ac_word=$2
2060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2061 echo "configure:2062: checking for $ac_word" >&5
2062 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 if test -n "$CC"; then
2066 ac_cv_prog_CC="$CC" # Let the user override the test.
2068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2070 for ac_dir in $ac_dummy; do
2071 test -z "$ac_dir" && ac_dir=.
2072 if test -f $ac_dir/$ac_word; then
2081 if test -n "$CC"; then
2082 echo "$ac_t""$CC" 1>&6
2084 echo "$ac_t""no" 1>&6
2089 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2092 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2093 echo "configure:2094: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2096 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2099 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2100 cross_compiling=$ac_cv_prog_cc_cross
2102 cat > conftest.$ac_ext << EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2109 if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2110 ac_cv_prog_cc_works=yes
2111 # If we can't run a trivial program, we are probably using a cross compiler.
2112 if (./conftest; exit) 2>/dev/null; then
2113 ac_cv_prog_cc_cross=no
2115 ac_cv_prog_cc_cross=yes
2118 echo "configure: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2120 ac_cv_prog_cc_works=no
2124 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2125 ac_cpp='$CPP $CPPFLAGS'
2126 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2127 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2128 cross_compiling=$ac_cv_prog_cc_cross
2130 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2131 if test $ac_cv_prog_cc_works = no; then
2132 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2134 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2135 echo "configure:2136: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2136 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2137 cross_compiling=$ac_cv_prog_cc_cross
2139 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2140 echo "configure:2141: checking whether we are using GNU C" >&5
2141 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.c <<EOF
2149 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2156 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2158 if test $ac_cv_prog_gcc = yes; then
2164 ac_test_CFLAGS="${CFLAGS+set}"
2165 ac_save_CFLAGS="$CFLAGS"
2167 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2168 echo "configure:2169: checking whether ${CC-cc} accepts -g" >&5
2169 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 echo 'void f(){}' > conftest.c
2173 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2182 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2183 if test "$ac_test_CFLAGS" = set; then
2184 CFLAGS="$ac_save_CFLAGS"
2185 elif test $ac_cv_prog_cc_g = yes; then
2186 if test "$GCC" = yes; then
2192 if test "$GCC" = yes; then
2199 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2200 if test "${with_gnu_ld+set}" = set; then
2201 withval="$with_gnu_ld"
2202 test "$withval" = no || with_gnu_ld=yes
2209 if test "$ac_cv_prog_gcc" = yes; then
2210 # Check if gcc -print-prog-name=ld gives a path.
2211 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2212 echo "configure:2213: checking for ld used by GCC" >&5
2213 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2215 # Accept absolute paths.
2217 test -z "$LD" && LD="$ac_prog"
2220 # If it fails, then pretend we aren't using GCC.
2224 # If it is relative, then search for the first ld in PATH.
2228 elif test "$with_gnu_ld" = yes; then
2229 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2230 echo "configure:2231: checking for GNU ld" >&5
2232 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2233 echo "configure:2234: checking for non-GNU ld" >&5
2235 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 if test -z "$LD"; then
2239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2240 for ac_dir in $PATH; do
2241 test -z "$ac_dir" && ac_dir=.
2242 if test -f "$ac_dir/$ac_prog"; then
2243 ac_cv_path_LD="$ac_dir/$ac_prog"
2244 # Check to see if the program is GNU ld. I'd rather use --version,
2245 # but apparently some GNU ld's only accept -v.
2246 # Break only if it was the GNU/non-GNU ld that we prefer.
2247 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2248 test "$with_gnu_ld" != no && break
2250 test "$with_gnu_ld" != yes && break
2256 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2261 if test -n "$LD"; then
2262 echo "$ac_t""$LD" 1>&6
2264 echo "$ac_t""no" 1>&6
2266 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2268 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2269 echo "configure:2270: checking if the linker ($LD) is GNU ld" >&5
2270 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2274 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2275 ac_cv_prog_gnu_ld=yes
2277 ac_cv_prog_gnu_ld=no
2281 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2284 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2285 echo "configure:2286: checking for BSD-compatible nm" >&5
2286 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2291 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2295 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2296 test -z "$ac_dir" && ac_dir=.
2297 if test -f $ac_dir/nm; then
2298 # Check to see if the nm accepts a BSD-compat flag.
2299 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2300 # nm: unknown option "B" ignored
2301 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2302 ac_cv_path_NM="$ac_dir/nm -B"
2303 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2304 ac_cv_path_NM="$ac_dir/nm -p"
2306 ac_cv_path_NM="$ac_dir/nm"
2312 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2318 echo "$ac_t""$NM" 1>&6
2321 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2322 echo "configure:2323: checking whether ln -s works" >&5
2323 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2327 if ln -s X conftestdata 2>/dev/null
2330 ac_cv_prog_LN_S="ln -s"
2335 LN_S="$ac_cv_prog_LN_S"
2336 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2337 echo "$ac_t""yes" 1>&6
2339 echo "$ac_t""no" 1>&6
2342 # Always use our own libtool.
2343 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2345 # Check for any special flags to pass to ltconfig.
2347 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2348 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2349 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2350 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2351 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2353 # Some flags need to be propagated to the compiler or linker for good
2357 # Find out which ABI we are using.
2358 echo '#line 2359 "configure"' > conftest.$ac_ext
2359 if { (eval echo configure:2360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2360 case "`/usr/bin/file conftest.o`" in
2376 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2377 CFLAGS="$CFLAGS -belf"
2381 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2382 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2383 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2384 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2385 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2386 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2389 for ac_prog in mawk gawk nawk awk
2391 # Extract the first word of "$ac_prog", so it can be a program name with args.
2392 set dummy $ac_prog; ac_word=$2
2393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_word" >&5
2395 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 if test -n "$AWK"; then
2399 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2403 for ac_dir in $ac_dummy; do
2404 test -z "$ac_dir" && ac_dir=.
2405 if test -f $ac_dir/$ac_word; then
2406 ac_cv_prog_AWK="$ac_prog"
2413 AWK="$ac_cv_prog_AWK"
2414 if test -n "$AWK"; then
2415 echo "$ac_t""$AWK" 1>&6
2417 echo "$ac_t""no" 1>&6
2420 test -n "$AWK" && break
2423 # test for ln hardlink support
2424 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2425 echo "configure:2426: checking whether ln works" >&5
2426 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 rm -f conftest.src conftest.dst
2430 echo "conftest" > conftest.src
2431 if ln conftest.src conftest.dst 2>/dev/null
2433 ol_cv_prog_LN_H="ln"
2435 ol_cv_prog_LN_H="cp"
2437 rm -f conftest.src conftest.dst
2440 LN_H="$ol_cv_prog_LN_H"
2441 if test "$ol_cv_prog_LN_H" = "ln"; then
2442 echo "$ac_t""yes" 1>&6
2444 echo "$ac_t""no" 1>&6
2447 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2448 echo "configure:2449: checking whether ln -s works" >&5
2449 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2453 if ln -s X conftestdata 2>/dev/null
2456 ac_cv_prog_LN_S="ln -s"
2461 LN_S="$ac_cv_prog_LN_S"
2462 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2463 echo "$ac_t""yes" 1>&6
2465 echo "$ac_t""no" 1>&6
2469 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2473 # Extract the first word of "sendmail", so it can be a program name with args.
2474 set dummy sendmail; ac_word=$2
2475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2476 echo "configure:2477: checking for $ac_word" >&5
2477 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2482 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2485 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2489 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2490 for ac_dir in $ac_dummy; do
2491 test -z "$ac_dir" && ac_dir=.
2492 if test -f $ac_dir/$ac_word; then
2493 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2498 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2502 SENDMAIL="$ac_cv_path_SENDMAIL"
2503 if test -n "$SENDMAIL"; then
2504 echo "$ac_t""$SENDMAIL" 1>&6
2506 echo "$ac_t""no" 1>&6
2509 # Extract the first word of "vi", so it can be a program name with args.
2510 set dummy vi; ac_word=$2
2511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2512 echo "configure:2513: checking for $ac_word" >&5
2513 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2518 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2521 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2525 ac_dummy="$PATH:/usr/ucb"
2526 for ac_dir in $ac_dummy; do
2527 test -z "$ac_dir" && ac_dir=.
2528 if test -f $ac_dir/$ac_word; then
2529 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2534 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2538 EDITOR="$ac_cv_path_EDITOR"
2539 if test -n "$EDITOR"; then
2540 echo "$ac_t""$EDITOR" 1>&6
2542 echo "$ac_t""no" 1>&6
2545 # Extract the first word of "finger", so it can be a program name with args.
2546 set dummy finger; ac_word=$2
2547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2548 echo "configure:2549: checking for $ac_word" >&5
2549 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2554 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2557 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2561 ac_dummy="$PATH:/usr/ucb"
2562 for ac_dir in $ac_dummy; do
2563 test -z "$ac_dir" && ac_dir=.
2564 if test -f $ac_dir/$ac_word; then
2565 ac_cv_path_FINGER="$ac_dir/$ac_word"
2570 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2574 FINGER="$ac_cv_path_FINGER"
2575 if test -n "$FINGER"; then
2576 echo "$ac_t""$FINGER" 1>&6
2578 echo "$ac_t""no" 1>&6
2583 if test $ol_enable_modules != no ; then
2584 # Extract the first word of "glib-config", so it can be a program name with args.
2585 set dummy glib-config; ac_word=$2
2586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_word" >&5
2588 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 case "$GLIBCONFIG" in
2593 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2596 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2601 for ac_dir in $ac_dummy; do
2602 test -z "$ac_dir" && ac_dir=.
2603 if test -f $ac_dir/$ac_word; then
2604 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2612 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2613 if test -n "$GLIBCONFIG"; then
2614 echo "$ac_t""$GLIBCONFIG" 1>&6
2616 echo "$ac_t""no" 1>&6
2620 if test "no$GLIBCONFIG" = "no" ; then
2621 if test $ol_enable_modules = yes ; then
2622 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2626 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2627 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2628 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2635 if test $ol_enable_perl != no ; then
2636 # Extract the first word of "perl", so it can be a program name with args.
2637 set dummy perl; ac_word=$2
2638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2639 echo "configure:2640: checking for $ac_word" >&5
2640 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2645 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2648 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2653 for ac_dir in $ac_dummy; do
2654 test -z "$ac_dir" && ac_dir=.
2655 if test -f $ac_dir/$ac_word; then
2656 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2661 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2665 PERLBIN="$ac_cv_path_PERLBIN"
2666 if test -n "$PERLBIN"; then
2667 echo "$ac_t""$PERLBIN" 1>&6
2669 echo "$ac_t""no" 1>&6
2673 if test "no$PERLBIN" = "no" ; then
2674 if test $ol_enable_perl = yes ; then
2675 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2679 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2680 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2686 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2687 echo "configure:2688: checking how to run the C preprocessor" >&5
2688 # On Suns, sometimes $CPP names a directory.
2689 if test -n "$CPP" && test -d "$CPP"; then
2692 if test -z "$CPP"; then
2693 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 # This must be in double quotes, not single quotes, because CPP may get
2697 # substituted into the Makefile and "${CC-cc}" will confuse make.
2699 # On the NeXT, cc -E runs the code through the compiler's parser,
2700 # not just through cpp.
2701 cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2708 { (eval echo configure:2709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2710 if test -z "$ac_err"; then
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2717 CPP="${CC-cc} -E -traditional-cpp"
2718 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2725 { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2727 if test -z "$ac_err"; then
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2734 CPP="${CC-cc} -nologo -E"
2735 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2742 { (eval echo configure:2743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2744 if test -z "$ac_err"; then
2748 echo "configure: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2758 ac_cv_prog_CPP="$CPP"
2760 CPP="$ac_cv_prog_CPP"
2762 ac_cv_prog_CPP="$CPP"
2764 echo "$ac_t""$CPP" 1>&6
2767 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2768 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2770 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2771 echo "configure: warning: programs compiled here do run here..." 1>&2
2772 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2774 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2775 echo "configure: warning: programs compiled here do not run here..." 1>&2
2776 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2779 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2780 echo "configure:2781: checking for AIX" >&5
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2790 egrep "yes" >/dev/null 2>&1; then
2792 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2793 #define _ALL_SOURCE 1
2798 echo "$ac_t""no" 1>&6
2803 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2804 echo "configure:2805: checking for POSIXized ISC" >&5
2805 if test -d /etc/conf/kconfig.d &&
2806 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2808 echo "$ac_t""yes" 1>&6
2809 ISC=yes # If later tests want to check for ISC.
2810 cat >> confdefs.h <<\EOF
2811 #define _POSIX_SOURCE 1
2814 if test "$GCC" = yes; then
2820 echo "$ac_t""no" 1>&6
2824 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2825 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2826 echo "configure:2827: checking for minix/config.h" >&5
2827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 cat > conftest.$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2833 #include <minix/config.h>
2835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2836 { (eval echo configure:2837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2838 if test -z "$ac_err"; then
2840 eval "ac_cv_header_$ac_safe=yes"
2843 echo "configure: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2846 eval "ac_cv_header_$ac_safe=no"
2850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2851 echo "$ac_t""yes" 1>&6
2854 echo "$ac_t""no" 1>&6
2858 if test "$MINIX" = yes; then
2859 cat >> confdefs.h <<\EOF
2860 #define _POSIX_SOURCE 1
2863 cat >> confdefs.h <<\EOF
2864 #define _POSIX_1_SOURCE 2
2867 cat >> confdefs.h <<\EOF
2874 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2875 echo "configure:2876: checking for be_app in -lbe" >&5
2876 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 ac_save_LIBS="$LIBS"
2881 LIBS="-lbe -lroot -lnet $LIBS"
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2885 /* Override any gcc2 internal prototype to avoid an error. */
2886 /* We use char because int might match the return type of a gcc2
2887 builtin and then its argument prototype would still apply. */
2894 if { (eval echo configure:2895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2896 eval "ac_cv_lib_$ac_lib_var=yes"
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2901 eval "ac_cv_lib_$ac_lib_var=no"
2904 LIBS="$ac_save_LIBS"
2907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2908 echo "$ac_t""yes" 1>&6
2909 LIBS="$LIBS -lbe -lroot -lnet"
2911 echo "$ac_t""no" 1>&6
2916 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2917 echo "configure:2918: checking for Cygwin environment" >&5
2918 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2921 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2928 #define __CYGWIN__ __CYGWIN32__
2933 if { (eval echo configure:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2937 echo "configure: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2946 echo "$ac_t""$ac_cv_cygwin" 1>&6
2948 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2949 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2950 echo "configure:2951: checking for mingw32 environment" >&5
2951 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2954 cat > conftest.$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2962 if { (eval echo configure:2963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2966 echo "configure: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2975 echo "$ac_t""$ac_cv_mingw32" 1>&6
2977 test "$ac_cv_mingw32" = yes && MINGW32=yes
2980 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2981 echo "configure:2982: checking for executable suffix" >&5
2982 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2989 echo 'int main () { return 0; }' > conftest.$ac_ext
2991 if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2992 for file in conftest.*; do
2994 *.c | *.o | *.obj) ;;
2995 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2999 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3002 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3007 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3008 echo "$ac_t""${ac_cv_exeext}" 1>&6
3011 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3012 echo "configure:3013: checking for object suffix" >&5
3013 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3017 echo 'int i = 1;' > conftest.$ac_ext
3018 if { (eval echo configure:3019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3019 for ac_file in conftest.*; do
3022 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3026 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3031 echo "$ac_t""$ac_cv_objext" 1>&6
3032 OBJEXT=$ac_cv_objext
3033 ac_objext=$ac_cv_objext
3036 cat >> confdefs.h <<EOF
3037 #define EXEEXT "${EXEEXT}"
3044 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3045 echo "configure:3046: checking for ${CC-cc} option to accept ANSI C" >&5
3046 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 am_cv_prog_cc_stdc=no
3051 # Don't try gcc -ansi; that turns off useful extensions and
3052 # breaks some systems' header files.
3053 # AIX -qlanglvl=ansi
3054 # Ultrix and OSF/1 -std1
3055 # HP-UX -Aa -D_HPUX_SOURCE
3056 # SVR4 -Xc -D__EXTENSIONS__
3057 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3059 CC="$ac_save_CC $ac_arg"
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3065 #include <sys/types.h>
3066 #include <sys/stat.h>
3067 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3068 struct buf { int x; };
3069 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3070 static char *e (p, i)
3076 static char *f (char * (*g) (char **, int), char **p, ...)
3081 s = g (p, va_arg (v,int));
3085 int test (int i, double x);
3086 struct s1 {int (*f) (int a);};
3087 struct s2 {int (*f) (double a);};
3088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3094 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3098 if { (eval echo configure:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3100 am_cv_prog_cc_stdc="$ac_arg"; break
3102 echo "configure: failed program was:" >&5
3103 cat conftest.$ac_ext >&5
3111 if test -z "$am_cv_prog_cc_stdc"; then
3112 echo "$ac_t""none needed" 1>&6
3114 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3116 case "x$am_cv_prog_cc_stdc" in
3118 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3121 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3122 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
3126 # test for make depend flag
3129 if test -z "${MKDEP}"; then
3131 if test -z "${MKDEP_FLAGS}"; then
3132 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3133 echo "configure:3134: checking for ${OL_MKDEP} depend flag" >&5
3134 if eval "test \"`echo '$''{'ol_cv_mkdep'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3139 for flag in "-M" "-xM"; do
3140 cat > conftest.c <<EOF
3143 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3144 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3146 if test ! -f conftest."${ac_object}" ; then
3148 OL_MKDEP_FLAGS="$flag"
3157 echo "$ac_t""$ol_cv_mkdep" 1>&6
3160 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3165 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3170 if test "${ol_cv_mkdep}" = no ; then
3171 # this will soon become an error
3172 echo "configure: warning: do not know how to generate dependencies" 1>&2
3177 echo $ac_n "checking for socket""... $ac_c" 1>&6
3178 echo "configure:3179: checking for socket" >&5
3179 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 /* System header to define __stub macros and hopefully few prototypes,
3186 which can conflict with char socket(); below. */
3188 /* Override any gcc2 internal prototype to avoid an error. */
3189 /* We use char because int might match the return type of a gcc2
3190 builtin and then its argument prototype would still apply. */
3195 /* The GNU C library defines this for functions which it implements
3196 to always fail with ENOSYS. Some functions are actually named
3197 something starting with __ and the normal name is an alias. */
3198 #if defined (__stub_socket) || defined (__stub___socket)
3206 if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3208 eval "ac_cv_func_socket=yes"
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3213 eval "ac_cv_func_socket=no"
3218 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3219 echo "$ac_t""yes" 1>&6
3222 echo "$ac_t""no" 1>&6
3224 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3225 echo "configure:3226: checking for main in -lsocket" >&5
3226 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 ac_save_LIBS="$LIBS"
3231 LIBS="-lsocket $LIBS"
3232 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3240 if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3242 eval "ac_cv_lib_$ac_lib_var=yes"
3244 echo "configure: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3247 eval "ac_cv_lib_$ac_lib_var=no"
3250 LIBS="$ac_save_LIBS"
3253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3254 echo "$ac_t""yes" 1>&6
3255 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3256 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3257 cat >> confdefs.h <<EOF
3258 #define $ac_tr_lib 1
3261 LIBS="-lsocket $LIBS"
3264 echo "$ac_t""no" 1>&6
3267 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3268 echo "configure:3269: checking for main in -lnet" >&5
3269 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 ac_save_LIBS="$LIBS"
3275 cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3283 if { (eval echo configure:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3285 eval "ac_cv_lib_$ac_lib_var=yes"
3287 echo "configure: failed program was:" >&5
3288 cat conftest.$ac_ext >&5
3290 eval "ac_cv_lib_$ac_lib_var=no"
3293 LIBS="$ac_save_LIBS"
3296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3297 echo "$ac_t""yes" 1>&6
3298 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3299 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3300 cat >> confdefs.h <<EOF
3301 #define $ac_tr_lib 1
3307 echo "$ac_t""no" 1>&6
3310 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3311 echo "configure:3312: checking for socket in -lnet" >&5
3312 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3316 ac_save_LIBS="$LIBS"
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 /* Override any gcc2 internal prototype to avoid an error. */
3322 /* We use char because int might match the return type of a gcc2
3323 builtin and then its argument prototype would still apply. */
3330 if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3332 eval "ac_cv_lib_$ac_lib_var=yes"
3334 echo "configure: failed program was:" >&5
3335 cat conftest.$ac_ext >&5
3337 eval "ac_cv_lib_$ac_lib_var=no"
3340 LIBS="$ac_save_LIBS"
3343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3344 echo "$ac_t""yes" 1>&6
3345 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3346 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3347 cat >> confdefs.h <<EOF
3348 #define $ac_tr_lib 1
3354 echo "$ac_t""no" 1>&6
3357 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3358 echo "configure:3359: checking for main in -lnsl_s" >&5
3359 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 ac_save_LIBS="$LIBS"
3364 LIBS="-lnsl_s $LIBS"
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3375 eval "ac_cv_lib_$ac_lib_var=yes"
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 eval "ac_cv_lib_$ac_lib_var=no"
3383 LIBS="$ac_save_LIBS"
3386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3387 echo "$ac_t""yes" 1>&6
3388 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3389 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3390 cat >> confdefs.h <<EOF
3391 #define $ac_tr_lib 1
3394 LIBS="-lnsl_s $LIBS"
3397 echo "$ac_t""no" 1>&6
3400 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3401 echo "configure:3402: checking for main in -lnsl" >&5
3402 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 ac_save_LIBS="$LIBS"
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3416 if { (eval echo configure:3417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3418 eval "ac_cv_lib_$ac_lib_var=yes"
3420 echo "configure: failed program was:" >&5
3421 cat conftest.$ac_ext >&5
3423 eval "ac_cv_lib_$ac_lib_var=no"
3426 LIBS="$ac_save_LIBS"
3429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3430 echo "$ac_t""yes" 1>&6
3431 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3432 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3433 cat >> confdefs.h <<EOF
3434 #define $ac_tr_lib 1
3440 echo "$ac_t""no" 1>&6
3443 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3444 echo "configure:3445: checking for socket in -linet" >&5
3445 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 ac_save_LIBS="$LIBS"
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 /* Override any gcc2 internal prototype to avoid an error. */
3455 /* We use char because int might match the return type of a gcc2
3456 builtin and then its argument prototype would still apply. */
3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3465 eval "ac_cv_lib_$ac_lib_var=yes"
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3470 eval "ac_cv_lib_$ac_lib_var=no"
3473 LIBS="$ac_save_LIBS"
3476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3477 echo "$ac_t""yes" 1>&6
3478 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3479 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3480 cat >> confdefs.h <<EOF
3481 #define $ac_tr_lib 1
3487 echo "$ac_t""no" 1>&6
3490 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3491 echo "configure:3492: checking for main in -lgen" >&5
3492 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 ac_save_LIBS="$LIBS"
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3506 if { (eval echo configure:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508 eval "ac_cv_lib_$ac_lib_var=yes"
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3513 eval "ac_cv_lib_$ac_lib_var=no"
3516 LIBS="$ac_save_LIBS"
3519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3520 echo "$ac_t""yes" 1>&6
3521 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3522 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3523 cat >> confdefs.h <<EOF
3524 #define $ac_tr_lib 1
3530 echo "$ac_t""no" 1>&6
3537 for ac_func in res_search
3539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3540 echo "configure:3541: checking for $ac_func" >&5
3541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3544 cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 /* System header to define __stub macros and hopefully few prototypes,
3548 which can conflict with char $ac_func(); below. */
3550 /* Override any gcc2 internal prototype to avoid an error. */
3551 /* We use char because int might match the return type of a gcc2
3552 builtin and then its argument prototype would still apply. */
3557 /* The GNU C library defines this for functions which it implements
3558 to always fail with ENOSYS. Some functions are actually named
3559 something starting with __ and the normal name is an alias. */
3560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3568 if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3570 eval "ac_cv_func_$ac_func=yes"
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3575 eval "ac_cv_func_$ac_func=no"
3580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3581 echo "$ac_t""yes" 1>&6
3582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3583 cat >> confdefs.h <<EOF
3584 #define $ac_tr_func 1
3588 echo "$ac_t""no" 1>&6
3592 if test $ac_cv_func_res_search = "no" ; then
3593 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3594 echo "configure:3595: checking for res_search in -lbind" >&5
3595 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3599 ac_save_LIBS="$LIBS"
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3604 /* Override any gcc2 internal prototype to avoid an error. */
3605 /* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3613 if { (eval echo configure:3614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3615 eval "ac_cv_lib_$ac_lib_var=yes"
3617 echo "configure: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3620 eval "ac_cv_lib_$ac_lib_var=no"
3623 LIBS="$ac_save_LIBS"
3626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3627 echo "$ac_t""yes" 1>&6
3628 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3629 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3630 cat >> confdefs.h <<EOF
3631 #define $ac_tr_lib 1
3637 echo "$ac_t""no" 1>&6
3640 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3641 cat >> confdefs.h <<\EOF
3642 #define HAVE_RES_SEARCH 1
3646 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3647 echo "configure:3648: checking for res_search in -lresolv" >&5
3648 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 ac_save_LIBS="$LIBS"
3653 LIBS="-lresolv $LIBS"
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 /* Override any gcc2 internal prototype to avoid an error. */
3658 /* We use char because int might match the return type of a gcc2
3659 builtin and then its argument prototype would still apply. */
3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3668 eval "ac_cv_lib_$ac_lib_var=yes"
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3673 eval "ac_cv_lib_$ac_lib_var=no"
3676 LIBS="$ac_save_LIBS"
3679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3680 echo "$ac_t""yes" 1>&6
3681 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3682 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3683 cat >> confdefs.h <<EOF
3684 #define $ac_tr_lib 1
3687 LIBS="-lresolv $LIBS"
3690 echo "$ac_t""no" 1>&6
3693 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3694 cat >> confdefs.h <<\EOF
3695 #define HAVE_RES_SEARCH 1
3702 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3703 echo "configure:3704: checking for sigset in -lV3" >&5
3704 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 ac_save_LIBS="$LIBS"
3710 cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3722 if { (eval echo configure:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3724 eval "ac_cv_lib_$ac_lib_var=yes"
3726 echo "configure: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3729 eval "ac_cv_lib_$ac_lib_var=no"
3732 LIBS="$ac_save_LIBS"
3735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3736 echo "$ac_t""yes" 1>&6
3737 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3738 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3739 cat >> confdefs.h <<EOF
3740 #define $ac_tr_lib 1
3746 echo "$ac_t""no" 1>&6
3750 for ac_hdr in regex.h
3752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3754 echo "configure:3755: checking for $ac_hdr" >&5
3755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3764 { (eval echo configure:3765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3766 if test -z "$ac_err"; then
3768 eval "ac_cv_header_$ac_safe=yes"
3771 echo "configure: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3774 eval "ac_cv_header_$ac_safe=no"
3778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3779 echo "$ac_t""yes" 1>&6
3780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3781 cat >> confdefs.h <<EOF
3782 #define $ac_tr_hdr 1
3786 echo "$ac_t""no" 1>&6
3790 if test "$ac_cv_header_regex_h" != yes ; then
3791 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
3793 echo $ac_n "checking for regfree""... $ac_c" 1>&6
3794 echo "configure:3795: checking for regfree" >&5
3795 if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3801 /* System header to define __stub macros and hopefully few prototypes,
3802 which can conflict with char regfree(); below. */
3804 /* Override any gcc2 internal prototype to avoid an error. */
3805 /* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3811 /* The GNU C library defines this for functions which it implements
3812 to always fail with ENOSYS. Some functions are actually named
3813 something starting with __ and the normal name is an alias. */
3814 #if defined (__stub_regfree) || defined (__stub___regfree)
3822 if { (eval echo configure:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3824 eval "ac_cv_func_regfree=yes"
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3829 eval "ac_cv_func_regfree=no"
3834 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
3835 echo "$ac_t""yes" 1>&6
3838 echo "$ac_t""no" 1>&6
3839 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
3843 echo $ac_n "checking for select""... $ac_c" 1>&6
3844 echo "configure:3845: checking for select" >&5
3845 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3851 /* System header to define __stub macros and hopefully few prototypes,
3852 which can conflict with char select(); below. */
3854 /* Override any gcc2 internal prototype to avoid an error. */
3855 /* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3861 /* The GNU C library defines this for functions which it implements
3862 to always fail with ENOSYS. Some functions are actually named
3863 something starting with __ and the normal name is an alias. */
3864 #if defined (__stub_select) || defined (__stub___select)
3872 if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3874 eval "ac_cv_func_select=yes"
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3879 eval "ac_cv_func_select=no"
3884 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3885 echo "$ac_t""yes" 1>&6
3888 echo "$ac_t""no" 1>&6
3889 { echo "configure: error: select() required." 1>&2; exit 1; }
3893 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3894 echo "configure:3895: checking types of arguments for select()" >&5
3895 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3898 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3899 echo $ac_n "(cached) $ac_c" 1>&6
3901 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3904 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3905 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3906 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910 #ifdef HAVE_SYS_TYPES_H
3911 #include <sys/types.h>
3913 #ifdef HAVE_SYS_TIME_H
3914 #include <sys/time.h>
3916 #ifdef HAVE_SYS_SELECT_H
3917 #include <sys/select.h>
3919 #ifdef HAVE_SYS_SOCKET_H
3920 #include <sys/socket.h>
3922 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);
3927 if { (eval echo configure:3928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3929 ac_not_found=no ; break 3
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3946 if test "$ac_not_found" = yes; then
3947 ac_cv_func_select_arg1=int
3948 ac_cv_func_select_arg234='int *'
3949 ac_cv_func_select_arg5='struct timeval *'
3951 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3952 cat >> confdefs.h <<EOF
3953 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3956 cat >> confdefs.h <<EOF
3957 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3960 cat >> confdefs.h <<EOF
3961 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3968 if test $ol_enable_ldapd != no ; then
3969 echo "configure: warning: ldapd support deprecated. Manual intervention required." 1>&2
3971 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3972 echo "configure:3973: checking for main in -lxtpp" >&5
3973 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3977 ac_save_LIBS="$LIBS"
3978 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3979 cat > conftest.$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3987 if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3989 eval "ac_cv_lib_$ac_lib_var=yes"
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3994 eval "ac_cv_lib_$ac_lib_var=no"
3997 LIBS="$ac_save_LIBS"
4000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4001 echo "$ac_t""yes" 1>&6
4004 cat >> confdefs.h <<\EOF
4008 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
4011 echo "$ac_t""no" 1>&6
4015 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
4016 echo "configure:4017: checking for main in -ldsap" >&5
4017 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
4018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4021 ac_save_LIBS="$LIBS"
4022 LIBS="-ldsap -lisode $LIBS"
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4031 if { (eval echo configure:4032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4033 eval "ac_cv_lib_$ac_lib_var=yes"
4035 echo "configure: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4038 eval "ac_cv_lib_$ac_lib_var=no"
4041 LIBS="$ac_save_LIBS"
4044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4045 echo "$ac_t""yes" 1>&6
4048 cat >> confdefs.h <<\EOF
4052 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
4055 echo "$ac_t""no" 1>&6
4059 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
4060 echo "configure:4061: checking for main in -lisode" >&5
4061 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
4062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4065 ac_save_LIBS="$LIBS"
4066 LIBS="-lisode $LIBS"
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4077 eval "ac_cv_lib_$ac_lib_var=yes"
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4082 eval "ac_cv_lib_$ac_lib_var=no"
4085 LIBS="$ac_save_LIBS"
4088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4089 echo "$ac_t""yes" 1>&6
4092 cat >> confdefs.h <<\EOF
4093 #define HAVE_ISODE 1
4096 LDAPD_LIBS="$LDAPD_LIBS -lisode"
4099 echo "$ac_t""no" 1>&6
4105 if test $ol_link_isode != no; then
4106 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
4107 echo "configure:4108: checking for main in -lpp" >&5
4108 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
4109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4112 ac_save_LIBS="$LIBS"
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4122 if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4124 eval "ac_cv_lib_$ac_lib_var=yes"
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4129 eval "ac_cv_lib_$ac_lib_var=no"
4132 LIBS="$ac_save_LIBS"
4135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4136 echo "$ac_t""yes" 1>&6
4138 cat >> confdefs.h <<\EOF
4142 LDAPD_LIBS="-lpp $LDAPD_LIBS"
4145 echo "$ac_t""no" 1>&6
4150 # Extract the first word of "pepsy", so it can be a program name with args.
4151 set dummy pepsy; ac_word=$2
4152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4153 echo "configure:4154: checking for $ac_word" >&5
4154 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4159 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
4162 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
4165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4167 for ac_dir in $ac_dummy; do
4168 test -z "$ac_dir" && ac_dir=.
4169 if test -f $ac_dir/$ac_word; then
4170 ac_cv_path_PEPSY="$ac_dir/$ac_word"
4178 PEPSY="$ac_cv_path_PEPSY"
4179 if test -n "$PEPSY"; then
4180 echo "$ac_t""$PEPSY" 1>&6
4182 echo "$ac_t""no" 1>&6
4189 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
4190 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
4192 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4193 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4194 echo "configure:4195: checking for $ac_hdr" >&5
4195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4204 { (eval echo configure:4205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4206 if test -z "$ac_err"; then
4208 eval "ac_cv_header_$ac_safe=yes"
4211 echo "configure: failed program was:" >&5
4212 cat conftest.$ac_ext >&5
4214 eval "ac_cv_header_$ac_safe=no"
4218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4219 echo "$ac_t""yes" 1>&6
4220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4221 cat >> confdefs.h <<EOF
4222 #define $ac_tr_hdr 1
4226 echo "$ac_t""no" 1>&6
4231 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4232 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4233 echo "configure:4234: checking for main in -lkrb4" >&5
4234 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4238 ac_save_LIBS="$LIBS"
4239 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4250 eval "ac_cv_lib_$ac_lib_var=yes"
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4255 eval "ac_cv_lib_$ac_lib_var=no"
4258 LIBS="$ac_save_LIBS"
4261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4265 echo "$ac_t""no" 1>&6
4270 if test $have_k5 = yes ; then
4271 ol_with_kerberos=found
4272 ol_link_kerberos=yes
4274 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4276 LIBS="$KRB_LIBS $LIBS"
4278 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4279 echo "configure:4280: checking for des_debug in Kerberos libraries" >&5
4280 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4285 LIBS="$KRB_LIBS $LIBS"
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4290 #include <kerberosIV/krb.h>
4291 #include <kerberosIV/des.h>
4292 extern int des_debug;
4300 if { (eval echo configure:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4302 ol_cv_var_des_debug=yes
4304 echo "configure: failed program was:" >&5
4305 cat conftest.$ac_ext >&5
4307 ol_cv_var_des_debug=no
4314 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4316 if test $ol_cv_var_des_debug = yes ; then
4317 cat >> confdefs.h <<\EOF
4318 #define HAVE_DES_DEBUG 1
4328 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4329 for ac_hdr in krb.h des.h
4331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4333 echo "configure:4334: checking for $ac_hdr" >&5
4334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4343 { (eval echo configure:4344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4345 if test -z "$ac_err"; then
4347 eval "ac_cv_header_$ac_safe=yes"
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4353 eval "ac_cv_header_$ac_safe=no"
4357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4358 echo "$ac_t""yes" 1>&6
4359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4360 cat >> confdefs.h <<EOF
4361 #define $ac_tr_hdr 1
4365 echo "$ac_t""no" 1>&6
4370 if test $ac_cv_header_krb_h = yes ; then
4371 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4372 echo "configure:4373: checking for main in -lkrb" >&5
4373 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4377 ac_save_LIBS="$LIBS"
4378 LIBS="-lkrb -ldes $LIBS"
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4389 eval "ac_cv_lib_$ac_lib_var=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 eval "ac_cv_lib_$ac_lib_var=no"
4397 LIBS="$ac_save_LIBS"
4400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4404 echo "$ac_t""no" 1>&6
4409 if test $have_k4 = yes ; then
4410 ol_with_kerberos=found
4411 ol_link_kerberos=yes
4413 KRB_LIBS="-lkrb -ldes"
4418 if test $ol_link_kerberos = yes ; then
4419 cat >> confdefs.h <<\EOF
4420 #define HAVE_KERBEROS 1
4426 if test $ol_with_tls != no ; then
4430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4432 echo "configure:4433: checking for $ac_hdr" >&5
4433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4442 { (eval echo configure:4443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4444 if test -z "$ac_err"; then
4446 eval "ac_cv_header_$ac_safe=yes"
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4452 eval "ac_cv_header_$ac_safe=no"
4456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4457 echo "$ac_t""yes" 1>&6
4458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4459 cat >> confdefs.h <<EOF
4460 #define $ac_tr_hdr 1
4464 echo "$ac_t""no" 1>&6
4469 if test $ac_cv_header_ssl_h = yes ; then
4470 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4471 echo "configure:4472: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4472 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4476 ac_save_LIBS="$LIBS"
4477 LIBS="-lssl -lcrypto $LIBS"
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4481 /* Override any gcc2 internal prototype to avoid an error. */
4482 /* We use char because int might match the return type of a gcc2
4483 builtin and then its argument prototype would still apply. */
4484 char SSLeay_add_ssl_algorithms();
4487 SSLeay_add_ssl_algorithms()
4490 if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4492 eval "ac_cv_lib_$ac_lib_var=yes"
4494 echo "configure: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4497 eval "ac_cv_lib_$ac_lib_var=no"
4500 LIBS="$ac_save_LIBS"
4503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4504 echo "$ac_t""yes" 1>&6
4508 echo "$ac_t""no" 1>&6
4513 if test $have_ssleay = no ; then
4514 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4515 echo "configure:4516: checking for ssl3_accept in -lssl" >&5
4516 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 ac_save_LIBS="$LIBS"
4521 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 /* Override any gcc2 internal prototype to avoid an error. */
4526 /* We use char because int might match the return type of a gcc2
4527 builtin and then its argument prototype would still apply. */
4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4536 eval "ac_cv_lib_$ac_lib_var=yes"
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4541 eval "ac_cv_lib_$ac_lib_var=no"
4544 LIBS="$ac_save_LIBS"
4547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4548 echo "$ac_t""yes" 1>&6
4552 echo "$ac_t""no" 1>&6
4558 if test $have_ssleay = yes ; then
4562 cat >> confdefs.h <<\EOF
4563 #define HAVE_SSLEAY 1
4567 if test $need_rsaref = yes; then
4568 cat >> confdefs.h <<\EOF
4569 #define HAVE_RSAREF 1
4573 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4575 TLS_LIBS="-lssl -lcrypto"
4581 if test $ol_link_tls = yes ; then
4582 cat >> confdefs.h <<\EOF
4590 gethostbyname_r gethostbyaddr_r \
4593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4594 echo "configure:4595: checking for $ac_func" >&5
4595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4596 echo $ac_n "(cached) $ac_c" 1>&6
4598 cat > conftest.$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4601 /* System header to define __stub macros and hopefully few prototypes,
4602 which can conflict with char $ac_func(); below. */
4604 /* Override any gcc2 internal prototype to avoid an error. */
4605 /* We use char because int might match the return type of a gcc2
4606 builtin and then its argument prototype would still apply. */
4611 /* The GNU C library defines this for functions which it implements
4612 to always fail with ENOSYS. Some functions are actually named
4613 something starting with __ and the normal name is an alias. */
4614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4624 eval "ac_cv_func_$ac_func=yes"
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 eval "ac_cv_func_$ac_func=no"
4634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4637 cat >> confdefs.h <<EOF
4638 #define $ac_tr_func 1
4642 echo "$ac_t""no" 1>&6
4647 if test "$ac_cv_func_ctime_r" = no ; then
4648 ol_cv_func_ctime_r_nargs=0
4650 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4651 echo "configure:4652: checking number of arguments of ctime_r" >&5
4652 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4653 echo $ac_n "(cached) $ac_c" 1>&6
4655 cat > conftest.$ac_ext <<EOF
4656 #line 4657 "configure"
4657 #include "confdefs.h"
4660 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4663 if { (eval echo configure:4664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4665 ol_cv_func_ctime_r_nargs=3
4667 echo "configure: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4670 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4675 time_t ti; char *buffer; ctime_r(&ti,buffer);
4678 if { (eval echo configure:4679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4680 ol_cv_func_ctime_r_nargs=2
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4685 ol_cv_func_ctime_r_nargs=0
4692 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4693 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4694 cat >> confdefs.h <<EOF
4695 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4702 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4703 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4704 echo "configure:4705: checking number of arguments of gethostbyname_r" >&5
4705 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4708 cat > conftest.$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4711 #include <sys/types.h>
4712 #include <sys/socket.h>
4713 #include <netinet/in.h>
4715 #define BUFSIZE (sizeof(struct hostent)+10)
4717 struct hostent hent; char buffer[BUFSIZE];
4718 int bufsize=BUFSIZE;int h_errno;
4719 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4720 buffer, bufsize, &h_errno);
4723 if { (eval echo configure:4724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4725 ol_cv_func_gethostbyname_r_nargs=5
4727 echo "configure: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4730 cat > conftest.$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4733 #include <sys/types.h>
4734 #include <sys/socket.h>
4735 #include <netinet/in.h>
4737 #define BUFSIZE (sizeof(struct hostent)+10)
4739 struct hostent hent;struct hostent *rhent;
4740 char buffer[BUFSIZE];
4741 int bufsize=BUFSIZE;int h_errno;
4742 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4746 if { (eval echo configure:4747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4748 ol_cv_func_gethostbyname_r_nargs=6
4750 echo "configure: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4753 ol_cv_func_gethostbyname_r_nargs=0
4760 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4761 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4762 cat >> confdefs.h <<EOF
4763 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4769 ol_cv_func_gethostbyname_r_nargs=0
4772 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4773 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4774 echo "configure:4775: checking number of arguments of gethostbyaddr_r" >&5
4775 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4781 #include <sys/types.h>
4782 #include <sys/socket.h>
4783 #include <netinet/in.h>
4785 #define BUFSIZE (sizeof(struct hostent)+10)
4787 struct hostent hent; char buffer[BUFSIZE];
4789 size_t alen=sizeof(struct in_addr);
4790 int bufsize=BUFSIZE;int h_errno;
4791 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4792 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4795 if { (eval echo configure:4796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4797 ol_cv_func_gethostbyaddr_r_nargs=7
4799 echo "configure: failed program was:" >&5
4800 cat conftest.$ac_ext >&5
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4805 #include <sys/types.h>
4806 #include <sys/socket.h>
4807 #include <netinet/in.h>
4809 #define BUFSIZE (sizeof(struct hostent)+10)
4811 struct hostent hent;
4812 struct hostent *rhent; char buffer[BUFSIZE];
4814 size_t alen=sizeof(struct in_addr);
4815 int bufsize=BUFSIZE;int h_errno;
4816 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4817 alen, AF_INET, &hent, buffer, bufsize,
4821 if { (eval echo configure:4822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4823 ol_cv_func_gethostbyaddr_r_nargs=8
4825 echo "configure: failed program was:" >&5
4826 cat conftest.$ac_ext >&5
4828 ol_cv_func_gethostbyaddr_r_nargs=0
4835 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4836 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4837 cat >> confdefs.h <<EOF
4838 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4844 ol_cv_func_gethostbyaddr_r_nargs=0
4847 if test "$ac_cv_func_ctime_r" = yes \
4848 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4849 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4850 -a "$ac_cv_func_gethostbyname_r" = yes \
4851 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4852 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4853 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4854 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4855 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4858 cat >> confdefs.h <<\EOF
4859 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4865 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4866 -o $ol_with_threads = posix ; then
4868 for ac_hdr in pthread.h sched.h
4870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4872 echo "configure:4873: checking for $ac_hdr" >&5
4873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
4876 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882 { (eval echo configure:4883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4884 if test -z "$ac_err"; then
4886 eval "ac_cv_header_$ac_safe=yes"
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4892 eval "ac_cv_header_$ac_safe=no"
4896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4897 echo "$ac_t""yes" 1>&6
4898 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4899 cat >> confdefs.h <<EOF
4900 #define $ac_tr_hdr 1
4904 echo "$ac_t""no" 1>&6
4909 if test $ac_cv_header_pthread_h = yes ; then
4910 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4911 echo "configure:4912: checking POSIX thread version" >&5
4912 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4916 cat > conftest.$ac_ext <<EOF
4917 #line 4918 "configure"
4918 #include "confdefs.h"
4920 # include <pthread.h>
4921 /* this check could be improved */
4922 # ifdef PTHREAD_ONCE_INIT
4923 pthread_version_final
4927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4928 egrep "pthread_version_final" >/dev/null 2>&1; then
4930 ol_pthread_final=yes
4938 cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4942 # include <pthread.h>
4943 /* this check could be improved */
4944 # ifdef pthread_once_init
4945 pthread_version_draft4
4949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4950 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4952 ol_pthread_draft4=yes
4955 ol_pthread_draft4=no
4960 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4961 ol_cv_pthread_version=final
4962 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4963 ol_cv_pthread_version=draft4
4965 ol_cv_pthread_version=unknown
4970 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4973 if test $ol_cv_pthread_version = final ; then
4974 cat >> confdefs.h <<\EOF
4975 #define HAVE_PTHREADS_FINAL 1
4978 elif test $ol_cv_pthread_version = draft4 ; then
4979 cat >> confdefs.h <<\EOF
4980 #define HAVE_PTHREADS_D4 1
4984 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4987 # consider threads found
4988 ol_with_threads=found
4991 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4992 echo "configure:4993: checking for LinuxThreads pthread.h" >&5
4993 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4996 cat > conftest.$ac_ext <<EOF
4997 #line 4998 "configure"
4998 #include "confdefs.h"
4999 #include <pthread.h>
5001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5002 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
5004 ol_cv_header_linux_threads=yes
5007 ol_cv_header_linux_threads=no
5014 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
5015 if test $ol_cv_header_linux_threads = yes; then
5016 cat >> confdefs.h <<\EOF
5017 #define HAVE_LINUX_THREADS 1
5024 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
5025 echo "configure:5026: checking for pthread_create in default libraries" >&5
5026 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
5027 echo $ac_n "(cached) $ac_c" 1>&6
5030 if test "$cross_compiling" = yes; then
5031 ol_cv_pthread_create=yes
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5037 #include <pthread.h>
5039 #define NULL (void*)0
5042 static void *task(p)
5045 return (void *) (p == NULL);
5048 int main(argc, argv)
5055 /* make sure pthread_create() isn't just a stub */
5056 #if HAVE_PTHREADS_D4
5057 status = pthread_create(&t, pthread_attr_default, task, NULL);
5059 status = pthread_create(&t, NULL, task, NULL);
5062 if( status ) return status;
5064 /* make sure pthread_detach() isn't just a stub */
5065 #if HAVE_PTHREADS_D4
5066 status = pthread_detach( &t );
5068 status = pthread_detach( t );
5071 if( status ) return status;
5077 if { (eval echo configure:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5079 ol_cv_pthread_create=yes
5081 echo "configure: failed program was:" >&5
5082 cat conftest.$ac_ext >&5
5084 ol_cv_pthread_create=no
5091 echo "$ac_t""$ol_cv_pthread_create" 1>&6
5093 if test $ol_cv_pthread_create != no ; then
5094 ol_link_threads=posix
5098 # Pthread try link: -mt (ol_cv_pthread_mt)
5099 if test "$ol_link_threads" = no ; then
5101 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
5102 echo "configure:5103: checking for pthread link with -mt" >&5
5103 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6
5111 cat > conftest.$ac_ext <<EOF
5112 #line 5113 "configure"
5113 #include "confdefs.h"
5115 #include <pthread.h>
5117 #define NULL (void*)0
5124 #if HAVE_PTHREADS_D4
5125 pthread_create(&t, pthread_attr_default, NULL, NULL);
5126 pthread_detach( &t );
5128 pthread_create(&t, NULL, NULL, NULL);
5129 pthread_detach( t );
5131 #ifdef HAVE_LINUX_THREADS
5132 pthread_kill_other_threads_np();
5137 if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5139 ol_cv_pthread_mt=yes
5141 echo "configure: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5153 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
5155 if test $ol_cv_pthread_mt = yes ; then
5156 ol_link_pthreads="-mt"
5157 ol_link_threads=posix
5161 # Pthread try link: -kthread (ol_cv_pthread_kthread)
5162 if test "$ol_link_threads" = no ; then
5164 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
5165 echo "configure:5166: checking for pthread link with -kthread" >&5
5166 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6
5172 LIBS="-kthread $LIBS"
5174 cat > conftest.$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5178 #include <pthread.h>
5180 #define NULL (void*)0
5187 #if HAVE_PTHREADS_D4
5188 pthread_create(&t, pthread_attr_default, NULL, NULL);
5189 pthread_detach( &t );
5191 pthread_create(&t, NULL, NULL, NULL);
5192 pthread_detach( t );
5194 #ifdef HAVE_LINUX_THREADS
5195 pthread_kill_other_threads_np();
5200 if { (eval echo configure:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5202 ol_cv_pthread_kthread=yes
5204 echo "configure: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5207 ol_cv_pthread_kthread=no
5216 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5218 if test $ol_cv_pthread_kthread = yes ; then
5219 ol_link_pthreads="-kthread"
5220 ol_link_threads=posix
5224 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5225 if test "$ol_link_threads" = no ; then
5227 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5228 echo "configure:5229: checking for pthread link with -pthread" >&5
5229 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5235 LIBS="-pthread $LIBS"
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5241 #include <pthread.h>
5243 #define NULL (void*)0
5250 #if HAVE_PTHREADS_D4
5251 pthread_create(&t, pthread_attr_default, NULL, NULL);
5252 pthread_detach( &t );
5254 pthread_create(&t, NULL, NULL, NULL);
5255 pthread_detach( t );
5257 #ifdef HAVE_LINUX_THREADS
5258 pthread_kill_other_threads_np();
5263 if { (eval echo configure:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5265 ol_cv_pthread_pthread=yes
5267 echo "configure: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5270 ol_cv_pthread_pthread=no
5279 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5281 if test $ol_cv_pthread_pthread = yes ; then
5282 ol_link_pthreads="-pthread"
5283 ol_link_threads=posix
5287 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5288 if test "$ol_link_threads" = no ; then
5290 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5291 echo "configure:5292: checking for pthread link with -pthreads" >&5
5292 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5298 LIBS="-pthreads $LIBS"
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5304 #include <pthread.h>
5306 #define NULL (void*)0
5313 #if HAVE_PTHREADS_D4
5314 pthread_create(&t, pthread_attr_default, NULL, NULL);
5315 pthread_detach( &t );
5317 pthread_create(&t, NULL, NULL, NULL);
5318 pthread_detach( t );
5320 #ifdef HAVE_LINUX_THREADS
5321 pthread_kill_other_threads_np();
5326 if { (eval echo configure:5327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5328 ol_cv_pthread_pthreads=yes
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5333 ol_cv_pthread_pthreads=no
5342 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5344 if test $ol_cv_pthread_pthreads = yes ; then
5345 ol_link_pthreads="-pthreads"
5346 ol_link_threads=posix
5350 # Pthread try link: -thread (ol_cv_pthread_thread)
5351 if test "$ol_link_threads" = no ; then
5353 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5354 echo "configure:5355: checking for pthread link with -thread" >&5
5355 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5356 echo $ac_n "(cached) $ac_c" 1>&6
5361 LIBS="-thread $LIBS"
5363 cat > conftest.$ac_ext <<EOF
5364 #line 5365 "configure"
5365 #include "confdefs.h"
5367 #include <pthread.h>
5369 #define NULL (void*)0
5376 #if HAVE_PTHREADS_D4
5377 pthread_create(&t, pthread_attr_default, NULL, NULL);
5378 pthread_detach( &t );
5380 pthread_create(&t, NULL, NULL, NULL);
5381 pthread_detach( t );
5383 #ifdef HAVE_LINUX_THREADS
5384 pthread_kill_other_threads_np();
5389 if { (eval echo configure:5390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391 ol_cv_pthread_thread=yes
5393 echo "configure: failed program was:" >&5
5394 cat conftest.$ac_ext >&5
5396 ol_cv_pthread_thread=no
5405 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5407 if test $ol_cv_pthread_thread = yes ; then
5408 ol_link_pthreads="-thread"
5409 ol_link_threads=posix
5414 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5415 if test "$ol_link_threads" = no ; then
5416 # try -lpthread -lmach -lexc -lc_r
5417 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5418 echo "configure:5419: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5419 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5425 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5427 cat > conftest.$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5431 #include <pthread.h>
5433 #define NULL (void*)0
5440 #if HAVE_PTHREADS_D4
5441 pthread_create(&t, pthread_attr_default, NULL, NULL);
5442 pthread_detach( &t );
5444 pthread_create(&t, NULL, NULL, NULL);
5445 pthread_detach( t );
5447 #ifdef HAVE_LINUX_THREADS
5448 pthread_kill_other_threads_np();
5453 if { (eval echo configure:5454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5455 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5457 echo "configure: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5460 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5469 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5471 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5472 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5473 ol_link_threads=posix
5477 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5478 if test "$ol_link_threads" = no ; then
5479 # try -lpthread -lmach -lexc
5480 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5481 echo "configure:5482: checking for pthread link with -lpthread -lmach -lexc" >&5
5482 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5488 LIBS="-lpthread -lmach -lexc $LIBS"
5490 cat > conftest.$ac_ext <<EOF
5491 #line 5492 "configure"
5492 #include "confdefs.h"
5494 #include <pthread.h>
5496 #define NULL (void*)0
5503 #if HAVE_PTHREADS_D4
5504 pthread_create(&t, pthread_attr_default, NULL, NULL);
5505 pthread_detach( &t );
5507 pthread_create(&t, NULL, NULL, NULL);
5508 pthread_detach( t );
5510 #ifdef HAVE_LINUX_THREADS
5511 pthread_kill_other_threads_np();
5516 if { (eval echo configure:5517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5518 ol_cv_pthread_lpthread_lmach_lexc=yes
5520 echo "configure: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5523 ol_cv_pthread_lpthread_lmach_lexc=no
5532 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5534 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5535 ol_link_pthreads="-lpthread -lmach -lexc"
5536 ol_link_threads=posix
5541 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5542 if test "$ol_link_threads" = no ; then
5543 # try -lpthread -Wl,-woff,85
5544 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5545 echo "configure:5546: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5546 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5547 echo $ac_n "(cached) $ac_c" 1>&6
5552 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5554 cat > conftest.$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5558 #include <pthread.h>
5560 #define NULL (void*)0
5567 #if HAVE_PTHREADS_D4
5568 pthread_create(&t, pthread_attr_default, NULL, NULL);
5569 pthread_detach( &t );
5571 pthread_create(&t, NULL, NULL, NULL);
5572 pthread_detach( t );
5574 #ifdef HAVE_LINUX_THREADS
5575 pthread_kill_other_threads_np();
5580 if { (eval echo configure:5581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5582 ol_cv_pthread_lib_lpthread_woff=yes
5584 echo "configure: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5587 ol_cv_pthread_lib_lpthread_woff=no
5596 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5598 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5599 ol_link_pthreads="-lpthread -Wl,-woff,85"
5600 ol_link_threads=posix
5605 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5606 if test "$ol_link_threads" = no ; then
5608 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5609 echo "configure:5610: checking for pthread link with -lpthread" >&5
5610 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5616 LIBS="-lpthread $LIBS"
5618 cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5622 #include <pthread.h>
5624 #define NULL (void*)0
5631 #if HAVE_PTHREADS_D4
5632 pthread_create(&t, pthread_attr_default, NULL, NULL);
5633 pthread_detach( &t );
5635 pthread_create(&t, NULL, NULL, NULL);
5636 pthread_detach( t );
5638 #ifdef HAVE_LINUX_THREADS
5639 pthread_kill_other_threads_np();
5644 if { (eval echo configure:5645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5646 ol_cv_pthread_lpthread=yes
5648 echo "configure: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5651 ol_cv_pthread_lpthread=no
5660 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5662 if test $ol_cv_pthread_lpthread = yes ; then
5663 ol_link_pthreads="-lpthread"
5664 ol_link_threads=posix
5668 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5669 if test "$ol_link_threads" = no ; then
5671 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5672 echo "configure:5673: checking for pthread link with -lc_r" >&5
5673 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5674 echo $ac_n "(cached) $ac_c" 1>&6
5681 cat > conftest.$ac_ext <<EOF
5682 #line 5683 "configure"
5683 #include "confdefs.h"
5685 #include <pthread.h>
5687 #define NULL (void*)0
5694 #if HAVE_PTHREADS_D4
5695 pthread_create(&t, pthread_attr_default, NULL, NULL);
5696 pthread_detach( &t );
5698 pthread_create(&t, NULL, NULL, NULL);
5699 pthread_detach( t );
5701 #ifdef HAVE_LINUX_THREADS
5702 pthread_kill_other_threads_np();
5707 if { (eval echo configure:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5709 ol_cv_pthread_lc_r=yes
5711 echo "configure: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5714 ol_cv_pthread_lc_r=no
5723 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5725 if test $ol_cv_pthread_lc_r = yes ; then
5726 ol_link_pthreads="-lc_r"
5727 ol_link_threads=posix
5732 # Pthread try link: -threads (ol_cv_pthread_threads)
5733 if test "$ol_link_threads" = no ; then
5735 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5736 echo "configure:5737: checking for pthread link with -threads" >&5
5737 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5738 echo $ac_n "(cached) $ac_c" 1>&6
5743 LIBS="-threads $LIBS"
5745 cat > conftest.$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5749 #include <pthread.h>
5751 #define NULL (void*)0
5758 #if HAVE_PTHREADS_D4
5759 pthread_create(&t, pthread_attr_default, NULL, NULL);
5760 pthread_detach( &t );
5762 pthread_create(&t, NULL, NULL, NULL);
5763 pthread_detach( t );
5765 #ifdef HAVE_LINUX_THREADS
5766 pthread_kill_other_threads_np();
5771 if { (eval echo configure:5772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5773 ol_cv_pthread_threads=yes
5775 echo "configure: failed program was:" >&5
5776 cat conftest.$ac_ext >&5
5778 ol_cv_pthread_threads=no
5787 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5789 if test $ol_cv_pthread_threads = yes ; then
5790 ol_link_pthreads="-threads"
5791 ol_link_threads=posix
5796 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5797 if test "$ol_link_threads" = no ; then
5798 # try -lpthreads -lmach -lexc -lc_r
5799 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5800 echo "configure:5801: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5801 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5802 echo $ac_n "(cached) $ac_c" 1>&6
5807 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5813 #include <pthread.h>
5815 #define NULL (void*)0
5822 #if HAVE_PTHREADS_D4
5823 pthread_create(&t, pthread_attr_default, NULL, NULL);
5824 pthread_detach( &t );
5826 pthread_create(&t, NULL, NULL, NULL);
5827 pthread_detach( t );
5829 #ifdef HAVE_LINUX_THREADS
5830 pthread_kill_other_threads_np();
5835 if { (eval echo configure:5836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5837 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5839 echo "configure: failed program was:" >&5
5840 cat conftest.$ac_ext >&5
5842 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5851 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5853 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5854 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5855 ol_link_threads=posix
5859 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5860 if test "$ol_link_threads" = no ; then
5861 # try -lpthreads -lmach -lexc
5862 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5863 echo "configure:5864: checking for pthread link with -lpthreads -lmach -lexc" >&5
5864 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5870 LIBS="-lpthreads -lmach -lexc $LIBS"
5872 cat > conftest.$ac_ext <<EOF
5873 #line 5874 "configure"
5874 #include "confdefs.h"
5876 #include <pthread.h>
5878 #define NULL (void*)0
5885 #if HAVE_PTHREADS_D4
5886 pthread_create(&t, pthread_attr_default, NULL, NULL);
5887 pthread_detach( &t );
5889 pthread_create(&t, NULL, NULL, NULL);
5890 pthread_detach( t );
5892 #ifdef HAVE_LINUX_THREADS
5893 pthread_kill_other_threads_np();
5898 if { (eval echo configure:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5900 ol_cv_pthread_lpthreads_lmach_lexc=yes
5902 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5905 ol_cv_pthread_lpthreads_lmach_lexc=no
5914 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5916 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5917 ol_link_pthreads="-lpthreads -lmach -lexc"
5918 ol_link_threads=posix
5922 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5923 if test "$ol_link_threads" = no ; then
5924 # try -lpthreads -lexc
5925 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5926 echo "configure:5927: checking for pthread link with -lpthreads -lexc" >&5
5927 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5928 echo $ac_n "(cached) $ac_c" 1>&6
5933 LIBS="-lpthreads -lexc $LIBS"
5935 cat > conftest.$ac_ext <<EOF
5936 #line 5937 "configure"
5937 #include "confdefs.h"
5939 #include <pthread.h>
5941 #define NULL (void*)0
5948 #if HAVE_PTHREADS_D4
5949 pthread_create(&t, pthread_attr_default, NULL, NULL);
5950 pthread_detach( &t );
5952 pthread_create(&t, NULL, NULL, NULL);
5953 pthread_detach( t );
5955 #ifdef HAVE_LINUX_THREADS
5956 pthread_kill_other_threads_np();
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5963 ol_cv_pthread_lpthreads_lexc=yes
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5968 ol_cv_pthread_lpthreads_lexc=no
5977 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5979 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5980 ol_link_pthreads="-lpthreads -lexc"
5981 ol_link_threads=posix
5986 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5987 if test "$ol_link_threads" = no ; then
5989 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5990 echo "configure:5991: checking for pthread link with -lpthreads" >&5
5991 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5997 LIBS="-lpthreads $LIBS"
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6003 #include <pthread.h>
6005 #define NULL (void*)0
6012 #if HAVE_PTHREADS_D4
6013 pthread_create(&t, pthread_attr_default, NULL, NULL);
6014 pthread_detach( &t );
6016 pthread_create(&t, NULL, NULL, NULL);
6017 pthread_detach( t );
6019 #ifdef HAVE_LINUX_THREADS
6020 pthread_kill_other_threads_np();
6025 if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6027 ol_cv_pthread_lib_lpthreads=yes
6029 echo "configure: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6032 ol_cv_pthread_lib_lpthreads=no
6041 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
6043 if test $ol_cv_pthread_lib_lpthreads = yes ; then
6044 ol_link_pthreads="-lpthreads"
6045 ol_link_threads=posix
6050 if test $ol_link_threads != no ; then
6051 cat >> confdefs.h <<\EOF
6052 #define HAVE_PTHREADS 1
6056 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
6058 save_CPPFLAGS="$CPPFLAGS"
6060 LIBS="$LTHREAD_LIBS $LIBS"
6062 for ac_func in sched_yield pthread_yield
6064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6065 echo "configure:6066: checking for $ac_func" >&5
6066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 /* System header to define __stub macros and hopefully few prototypes,
6073 which can conflict with char $ac_func(); below. */
6075 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6082 /* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6095 eval "ac_cv_func_$ac_func=yes"
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6100 eval "ac_cv_func_$ac_func=no"
6105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6108 cat >> confdefs.h <<EOF
6109 #define $ac_tr_func 1
6113 echo "$ac_t""no" 1>&6
6118 if test $ac_cv_func_sched_yield = no -a \
6119 $ac_cv_func_pthread_yield = no ; then
6120 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6121 echo "configure:6122: checking for sched_yield in -lrt" >&5
6122 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6124 echo $ac_n "(cached) $ac_c" 1>&6
6126 ac_save_LIBS="$LIBS"
6128 cat > conftest.$ac_ext <<EOF
6129 #line 6130 "configure"
6130 #include "confdefs.h"
6131 /* Override any gcc2 internal prototype to avoid an error. */
6132 /* We use char because int might match the return type of a gcc2
6133 builtin and then its argument prototype would still apply. */
6140 if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6142 eval "ac_cv_lib_$ac_lib_var=yes"
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6147 eval "ac_cv_lib_$ac_lib_var=no"
6150 LIBS="$ac_save_LIBS"
6153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6154 echo "$ac_t""yes" 1>&6
6155 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
6156 cat >> confdefs.h <<\EOF
6157 #define HAVE_SCHED_YIELD 1
6160 ac_cv_func_sched_yield=yes
6162 echo "$ac_t""no" 1>&6
6163 ac_cv_func_sched_yield=no
6167 if test $ac_cv_func_sched_yield = no -a \
6168 $ac_cv_func_pthread_yield = no ; then
6169 for ac_func in thr_yield
6171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6172 echo "configure:6173: checking for $ac_func" >&5
6173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6
6176 cat > conftest.$ac_ext <<EOF
6177 #line 6178 "configure"
6178 #include "confdefs.h"
6179 /* System header to define __stub macros and hopefully few prototypes,
6180 which can conflict with char $ac_func(); below. */
6182 /* Override any gcc2 internal prototype to avoid an error. */
6183 /* We use char because int might match the return type of a gcc2
6184 builtin and then its argument prototype would still apply. */
6189 /* The GNU C library defines this for functions which it implements
6190 to always fail with ENOSYS. Some functions are actually named
6191 something starting with __ and the normal name is an alias. */
6192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6200 if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6202 eval "ac_cv_func_$ac_func=yes"
6204 echo "configure: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6207 eval "ac_cv_func_$ac_func=no"
6212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6213 echo "$ac_t""yes" 1>&6
6214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6215 cat >> confdefs.h <<EOF
6216 #define $ac_tr_func 1
6220 echo "$ac_t""no" 1>&6
6225 if test $ac_cv_func_sched_yield = no -a \
6226 $ac_cv_func_pthread_yield = no -a \
6227 "$ac_cv_func_thr_yield" = no ; then
6228 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6231 for ac_func in pthread_kill
6233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6234 echo "configure:6235: checking for $ac_func" >&5
6235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6236 echo $ac_n "(cached) $ac_c" 1>&6
6238 cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure"
6240 #include "confdefs.h"
6241 /* System header to define __stub macros and hopefully few prototypes,
6242 which can conflict with char $ac_func(); below. */
6244 /* Override any gcc2 internal prototype to avoid an error. */
6245 /* We use char because int might match the return type of a gcc2
6246 builtin and then its argument prototype would still apply. */
6251 /* The GNU C library defines this for functions which it implements
6252 to always fail with ENOSYS. Some functions are actually named
6253 something starting with __ and the normal name is an alias. */
6254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6262 if { (eval echo configure:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6264 eval "ac_cv_func_$ac_func=yes"
6266 echo "configure: failed program was:" >&5
6267 cat conftest.$ac_ext >&5
6269 eval "ac_cv_func_$ac_func=no"
6274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6275 echo "$ac_t""yes" 1>&6
6276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6277 cat >> confdefs.h <<EOF
6278 #define $ac_tr_func 1
6282 echo "$ac_t""no" 1>&6
6287 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6288 echo "configure:6289: checking for pthread_detach with <pthread.h>" >&5
6289 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6293 cat > conftest.$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6297 #include <pthread.h>
6299 #define NULL (void*)0
6303 pthread_detach(NULL);
6306 if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6308 ol_cv_func_pthread_detach=yes
6310 echo "configure: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6313 ol_cv_func_pthread_detach=no
6319 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6321 if test $ol_cv_func_pthread_detach = no ; then
6322 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6325 cat >> confdefs.h <<\EOF
6326 #define HAVE_PTHREAD_DETACH 1
6331 pthread_setconcurrency \
6332 pthread_getconcurrency \
6333 thr_setconcurrency \
6334 thr_getconcurrency \
6337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6338 echo "configure:6339: checking for $ac_func" >&5
6339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6340 echo $ac_n "(cached) $ac_c" 1>&6
6342 cat > conftest.$ac_ext <<EOF
6343 #line 6344 "configure"
6344 #include "confdefs.h"
6345 /* System header to define __stub macros and hopefully few prototypes,
6346 which can conflict with char $ac_func(); below. */
6348 /* Override any gcc2 internal prototype to avoid an error. */
6349 /* We use char because int might match the return type of a gcc2
6350 builtin and then its argument prototype would still apply. */
6355 /* The GNU C library defines this for functions which it implements
6356 to always fail with ENOSYS. Some functions are actually named
6357 something starting with __ and the normal name is an alias. */
6358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6366 if { (eval echo configure:6367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6368 eval "ac_cv_func_$ac_func=yes"
6370 echo "configure: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6373 eval "ac_cv_func_$ac_func=no"
6378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6379 echo "$ac_t""yes" 1>&6
6380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6381 cat >> confdefs.h <<EOF
6382 #define $ac_tr_func 1
6386 echo "$ac_t""no" 1>&6
6392 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6393 echo "configure:6394: checking for pthread_kill_other_threads_np" >&5
6394 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6397 cat > conftest.$ac_ext <<EOF
6398 #line 6399 "configure"
6399 #include "confdefs.h"
6400 /* System header to define __stub macros and hopefully few prototypes,
6401 which can conflict with char pthread_kill_other_threads_np(); below. */
6403 /* Override any gcc2 internal prototype to avoid an error. */
6404 /* We use char because int might match the return type of a gcc2
6405 builtin and then its argument prototype would still apply. */
6406 char pthread_kill_other_threads_np();
6410 /* The GNU C library defines this for functions which it implements
6411 to always fail with ENOSYS. Some functions are actually named
6412 something starting with __ and the normal name is an alias. */
6413 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6416 pthread_kill_other_threads_np();
6421 if { (eval echo configure:6422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6423 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6425 echo "configure: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6428 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6433 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6434 echo "$ac_t""yes" 1>&6
6437 echo "$ac_t""no" 1>&6
6440 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6441 echo "configure:6442: checking for LinuxThreads implementation" >&5
6442 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6445 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6448 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6453 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6454 echo "configure:6455: checking for LinuxThreads consistency" >&5
6455 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6456 echo $ac_n "(cached) $ac_c" 1>&6
6459 if test $ol_cv_header_linux_threads = yes -a \
6460 $ol_cv_sys_linux_threads = yes; then
6461 ol_cv_linux_threads=yes
6462 elif test $ol_cv_header_linux_threads = no -a \
6463 $ol_cv_sys_linux_threads = no; then
6464 ol_cv_linux_threads=no
6466 ol_cv_linux_threads=error
6471 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6474 if test $ol_cv_linux_threads = error; then
6475 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6478 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6479 echo "configure:6480: checking if pthread_create() works" >&5
6480 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6484 if test "$cross_compiling" = yes; then
6485 ol_cv_pthread_create_works=yes
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6491 #include <pthread.h>
6493 #define NULL (void*)0
6496 static void *task(p)
6499 return (void *) (p == NULL);
6502 int main(argc, argv)
6507 #if HAVE_PTHREADS_D4
6508 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6510 exit(pthread_create(&t, NULL, task, NULL));
6515 if { (eval echo configure:6516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6517 ol_cv_pthread_create_works=yes
6519 echo "configure: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6522 ol_cv_pthread_create_works=no
6529 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6531 if test $ol_cv_pthread_create_works = no ; then
6532 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6535 if test $ol_with_yielding_select = auto ; then
6536 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6537 echo "configure:6538: checking if select yields when using pthreads" >&5
6538 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6542 if test "$cross_compiling" = yes; then
6544 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6546 cat > conftest.$ac_ext <<EOF
6547 #line 6548 "configure"
6548 #include "confdefs.h"
6550 #include <sys/types.h>
6551 #include <sys/time.h>
6553 #include <pthread.h>
6555 #define NULL (void*) 0
6558 static int fildes[2];
6560 static void *task(p)
6572 FD_SET(fildes[0], &rfds);
6574 /* we're not interested in any fds */
6575 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6582 exit(0); /* if we exit here, the select blocked the whole process */
6585 int main(argc, argv)
6591 /* create a pipe to select */
6592 if(pipe(&fildes[0])) {
6597 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6598 (void) pthread_setconcurrency(2);
6600 #ifdef HAVE_THR_SETCONCURRENCY
6601 /* Set Solaris LWP concurrency to 2 */
6602 thr_setconcurrency(2);
6606 #if HAVE_PTHREADS_D4
6607 pthread_create(&t, pthread_attr_default, task, NULL);
6609 pthread_create(&t, NULL, task, NULL);
6612 #if HAVE_SCHED_YIELD
6613 sched_yield(); /* make sure task runs first */
6615 #ifdef HAVE_PTHREAD_YIELD
6616 pthread_yield(); /* make sure task runs first */
6623 if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6625 ol_cv_pthread_select_yields=no
6627 echo "configure: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6630 ol_cv_pthread_select_yields=yes
6637 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6639 if test $ol_cv_pthread_select_yields = yes ; then
6640 ol_with_yielding_select=yes
6644 CPPFLAGS="$save_CPPFLAGS"
6647 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6651 if test $ol_with_threads = posix ; then
6652 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6656 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6657 -o $ol_with_threads = mach ; then
6659 for ac_hdr in mach/cthreads.h
6661 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6662 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6663 echo "configure:6664: checking for $ac_hdr" >&5
6664 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6673 { (eval echo configure:6674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6675 if test -z "$ac_err"; then
6677 eval "ac_cv_header_$ac_safe=yes"
6680 echo "configure: failed program was:" >&5
6681 cat conftest.$ac_ext >&5
6683 eval "ac_cv_header_$ac_safe=no"
6687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6688 echo "$ac_t""yes" 1>&6
6689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6690 cat >> confdefs.h <<EOF
6691 #define $ac_tr_hdr 1
6695 echo "$ac_t""no" 1>&6
6699 if test $ac_cv_header_mach_cthreads_h = yes ; then
6700 ol_with_threads=found
6702 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6703 echo "configure:6704: checking for cthread_fork" >&5
6704 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6705 echo $ac_n "(cached) $ac_c" 1>&6
6707 cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6710 /* System header to define __stub macros and hopefully few prototypes,
6711 which can conflict with char cthread_fork(); below. */
6713 /* Override any gcc2 internal prototype to avoid an error. */
6714 /* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6716 char cthread_fork();
6720 /* The GNU C library defines this for functions which it implements
6721 to always fail with ENOSYS. Some functions are actually named
6722 something starting with __ and the normal name is an alias. */
6723 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6731 if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733 eval "ac_cv_func_cthread_fork=yes"
6735 echo "configure: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6738 eval "ac_cv_func_cthread_fork=no"
6743 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6744 echo "$ac_t""yes" 1>&6
6747 echo "$ac_t""no" 1>&6
6751 if test $ol_link_threads = no ; then
6752 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6753 echo "configure:6754: checking for cthread_fork with -all_load" >&5
6754 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6759 LIBS="-all_load $LIBS"
6760 cat > conftest.$ac_ext <<EOF
6761 #line 6762 "configure"
6762 #include "confdefs.h"
6763 #include <mach/cthreads.h>
6766 cthread_fork((void *)0, (void *)0);
6770 if { (eval echo configure:6771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6772 ol_cv_cthread_all_load=yes
6774 echo "configure: failed program was:" >&5
6775 cat conftest.$ac_ext >&5
6777 ol_cv_cthread_all_load=no
6784 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6786 if test $ol_cv_cthread_all_load = yes ; then
6787 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6788 ol_link_threads=mach
6792 if test $ol_link_threads != no ; then
6793 : check for cthread specific functionality here
6794 cat >> confdefs.h <<\EOF
6795 #define HAVE_MACH_CTHREADS 1
6799 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6803 if test $ol_with_threads = mach ; then
6804 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6808 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6809 -o $ol_with_threads = lwp ; then
6811 for ac_hdr in thread.h synch.h
6813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6815 echo "configure:6816: checking for $ac_hdr" >&5
6816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6825 { (eval echo configure:6826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6827 if test -z "$ac_err"; then
6829 eval "ac_cv_header_$ac_safe=yes"
6832 echo "configure: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6835 eval "ac_cv_header_$ac_safe=no"
6839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6840 echo "$ac_t""yes" 1>&6
6841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6842 cat >> confdefs.h <<EOF
6843 #define $ac_tr_hdr 1
6847 echo "$ac_t""no" 1>&6
6851 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6852 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6853 echo "configure:6854: checking for thr_create in -lthread" >&5
6854 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6858 ac_save_LIBS="$LIBS"
6859 LIBS="-lthread $LIBS"
6860 cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6863 /* Override any gcc2 internal prototype to avoid an error. */
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6872 if { (eval echo configure:6873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6874 eval "ac_cv_lib_$ac_lib_var=yes"
6876 echo "configure: failed program was:" >&5
6877 cat conftest.$ac_ext >&5
6879 eval "ac_cv_lib_$ac_lib_var=no"
6882 LIBS="$ac_save_LIBS"
6885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6886 echo "$ac_t""yes" 1>&6
6889 echo "$ac_t""no" 1>&6
6894 if test $have_thr = yes ; then
6895 cat >> confdefs.h <<\EOF
6899 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6902 if test $ol_with_yielding_select = auto ; then
6903 ol_with_yielding_select=yes
6907 thr_setconcurrency \
6908 thr_getconcurrency \
6911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6912 echo "configure:6913: checking for $ac_func" >&5
6913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6914 echo $ac_n "(cached) $ac_c" 1>&6
6916 cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6919 /* System header to define __stub macros and hopefully few prototypes,
6920 which can conflict with char $ac_func(); below. */
6922 /* Override any gcc2 internal prototype to avoid an error. */
6923 /* We use char because int might match the return type of a gcc2
6924 builtin and then its argument prototype would still apply. */
6929 /* The GNU C library defines this for functions which it implements
6930 to always fail with ENOSYS. Some functions are actually named
6931 something starting with __ and the normal name is an alias. */
6932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6942 eval "ac_cv_func_$ac_func=yes"
6944 echo "configure: failed program was:" >&5
6945 cat conftest.$ac_ext >&5
6947 eval "ac_cv_func_$ac_func=no"
6952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6953 echo "$ac_t""yes" 1>&6
6954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6955 cat >> confdefs.h <<EOF
6956 #define $ac_tr_func 1
6960 echo "$ac_t""no" 1>&6
6967 for ac_hdr in lwp/lwp.h
6969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6971 echo "configure:6972: checking for $ac_hdr" >&5
6972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6973 echo $ac_n "(cached) $ac_c" 1>&6
6975 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6981 { (eval echo configure:6982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6983 if test -z "$ac_err"; then
6985 eval "ac_cv_header_$ac_safe=yes"
6988 echo "configure: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6991 eval "ac_cv_header_$ac_safe=no"
6995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
6997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6998 cat >> confdefs.h <<EOF
6999 #define $ac_tr_hdr 1
7003 echo "$ac_t""no" 1>&6
7007 if test $ac_cv_header_lwp_lwp_h = yes ; then
7008 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
7009 echo "configure:7010: checking for lwp_create in -llwp" >&5
7010 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
7011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7012 echo $ac_n "(cached) $ac_c" 1>&6
7014 ac_save_LIBS="$LIBS"
7016 cat > conftest.$ac_ext <<EOF
7017 #line 7018 "configure"
7018 #include "confdefs.h"
7019 /* Override any gcc2 internal prototype to avoid an error. */
7020 /* We use char because int might match the return type of a gcc2
7021 builtin and then its argument prototype would still apply. */
7028 if { (eval echo configure:7029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7030 eval "ac_cv_lib_$ac_lib_var=yes"
7032 echo "configure: failed program was:" >&5
7033 cat conftest.$ac_ext >&5
7035 eval "ac_cv_lib_$ac_lib_var=no"
7038 LIBS="$ac_save_LIBS"
7041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7042 echo "$ac_t""yes" 1>&6
7045 echo "$ac_t""no" 1>&6
7050 if test $have_lwp = yes ; then
7051 cat >> confdefs.h <<\EOF
7055 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
7058 if test $ol_with_yielding_select = auto ; then
7059 ol_with_yielding_select=no
7065 if test $ol_with_yielding_select = yes ; then
7066 cat >> confdefs.h <<\EOF
7067 #define HAVE_YIELDING_SELECT 1
7072 if test $ol_with_threads = manual ; then
7075 echo "configure: warning: thread defines and link options must be set manually" 1>&2
7077 for ac_hdr in pthread.h sched.h
7079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7081 echo "configure:7082: checking for $ac_hdr" >&5
7082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7083 echo $ac_n "(cached) $ac_c" 1>&6
7085 cat > conftest.$ac_ext <<EOF
7086 #line 7087 "configure"
7087 #include "confdefs.h"
7090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7091 { (eval echo configure:7092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7093 if test -z "$ac_err"; then
7095 eval "ac_cv_header_$ac_safe=yes"
7098 echo "configure: failed program was:" >&5
7099 cat conftest.$ac_ext >&5
7101 eval "ac_cv_header_$ac_safe=no"
7105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7106 echo "$ac_t""yes" 1>&6
7107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7108 cat >> confdefs.h <<EOF
7109 #define $ac_tr_hdr 1
7113 echo "$ac_t""no" 1>&6
7117 for ac_func in sched_yield pthread_yield
7119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7120 echo "configure:7121: checking for $ac_func" >&5
7121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7122 echo $ac_n "(cached) $ac_c" 1>&6
7124 cat > conftest.$ac_ext <<EOF
7125 #line 7126 "configure"
7126 #include "confdefs.h"
7127 /* System header to define __stub macros and hopefully few prototypes,
7128 which can conflict with char $ac_func(); below. */
7130 /* Override any gcc2 internal prototype to avoid an error. */
7131 /* We use char because int might match the return type of a gcc2
7132 builtin and then its argument prototype would still apply. */
7137 /* The GNU C library defines this for functions which it implements
7138 to always fail with ENOSYS. Some functions are actually named
7139 something starting with __ and the normal name is an alias. */
7140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7148 if { (eval echo configure:7149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7150 eval "ac_cv_func_$ac_func=yes"
7152 echo "configure: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7155 eval "ac_cv_func_$ac_func=no"
7160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7161 echo "$ac_t""yes" 1>&6
7162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7163 cat >> confdefs.h <<EOF
7164 #define $ac_tr_func 1
7168 echo "$ac_t""no" 1>&6
7173 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7174 echo "configure:7175: checking for LinuxThreads pthread.h" >&5
7175 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7178 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 #include <pthread.h>
7183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7184 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7186 ol_cv_header_linux_threads=yes
7189 ol_cv_header_linux_threads=no
7196 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7197 if test $ol_cv_header_linux_threads = yes; then
7198 cat >> confdefs.h <<\EOF
7199 #define HAVE_LINUX_THREADS 1
7205 for ac_hdr in mach/cthreads.h
7207 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7209 echo "configure:7210: checking for $ac_hdr" >&5
7210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7211 echo $ac_n "(cached) $ac_c" 1>&6
7213 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7219 { (eval echo configure:7220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7221 if test -z "$ac_err"; then
7223 eval "ac_cv_header_$ac_safe=yes"
7226 echo "configure: failed program was:" >&5
7227 cat conftest.$ac_ext >&5
7229 eval "ac_cv_header_$ac_safe=no"
7233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7234 echo "$ac_t""yes" 1>&6
7235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7236 cat >> confdefs.h <<EOF
7237 #define $ac_tr_hdr 1
7241 echo "$ac_t""no" 1>&6
7245 for ac_hdr in lwp/lwp.h
7247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7249 echo "configure:7250: checking for $ac_hdr" >&5
7250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7251 echo $ac_n "(cached) $ac_c" 1>&6
7253 cat > conftest.$ac_ext <<EOF
7254 #line 7255 "configure"
7255 #include "confdefs.h"
7258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7259 { (eval echo configure:7260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7261 if test -z "$ac_err"; then
7263 eval "ac_cv_header_$ac_safe=yes"
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7269 eval "ac_cv_header_$ac_safe=no"
7273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7274 echo "$ac_t""yes" 1>&6
7275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7276 cat >> confdefs.h <<EOF
7277 #define $ac_tr_hdr 1
7281 echo "$ac_t""no" 1>&6
7285 for ac_hdr in thread.h synch.h
7287 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7289 echo "configure:7290: checking for $ac_hdr" >&5
7290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7293 cat > conftest.$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7299 { (eval echo configure:7300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7301 if test -z "$ac_err"; then
7303 eval "ac_cv_header_$ac_safe=yes"
7306 echo "configure: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7309 eval "ac_cv_header_$ac_safe=no"
7313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7314 echo "$ac_t""yes" 1>&6
7315 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7316 cat >> confdefs.h <<EOF
7317 #define $ac_tr_hdr 1
7321 echo "$ac_t""no" 1>&6
7327 if test $ol_link_threads != no ; then
7328 cat >> confdefs.h <<\EOF
7332 cat >> confdefs.h <<\EOF
7333 #define _REENTRANT 1
7336 cat >> confdefs.h <<\EOF
7337 #define THREAD_SAFE 1
7340 cat >> confdefs.h <<\EOF
7341 #define _THREAD_SAFE 1
7344 cat >> confdefs.h <<\EOF
7345 #define THREADSAFE 1
7348 cat >> confdefs.h <<\EOF
7349 #define _THREADSAFE 1
7353 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7354 echo "configure:7355: checking for thread specific errno" >&5
7355 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7356 echo $ac_n "(cached) $ac_c" 1>&6
7359 cat > conftest.$ac_ext <<EOF
7360 #line 7361 "configure"
7361 #include "confdefs.h"
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7369 ol_cv_errno_thread_specific=yes
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7374 ol_cv_errno_thread_specific=no
7380 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7382 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
7383 echo "configure:7384: checking for thread specific h_errno" >&5
7384 if eval "test \"`echo '$''{'ol_cv_h_errno_thread_specific'+set}'`\" = set"; then
7385 echo $ac_n "(cached) $ac_c" 1>&6
7388 cat > conftest.$ac_ext <<EOF
7389 #line 7390 "configure"
7390 #include "confdefs.h"
7396 if { (eval echo configure:7397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7398 ol_cv_h_errno_thread_specific=yes
7400 echo "configure: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7403 ol_cv_h_errno_thread_specific=no
7409 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
7411 if test $ol_cv_errno_thread_specific != yes \
7412 -o $ol_cv_h_errno_thread_specific != yes ; then
7413 LIBS="$LTHREAD_LIBS $LIBS"
7419 if test $ol_link_threads = no ; then
7420 if test $ol_with_threads = yes ; then
7421 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7424 if test $ol_with_threads = auto ; then
7425 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7429 cat >> confdefs.h <<\EOF
7430 #define NO_THREADS 1
7436 if test $ol_link_threads != no ; then
7437 cat >> confdefs.h <<\EOF
7438 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7445 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7446 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7447 echo "configure:7448: checking for DB2 library" >&5
7448 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7452 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7453 echo "configure:7454: checking for db_open in -ldb" >&5
7454 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7456 echo $ac_n "(cached) $ac_c" 1>&6
7458 ac_save_LIBS="$LIBS"
7460 cat > conftest.$ac_ext <<EOF
7461 #line 7462 "configure"
7462 #include "confdefs.h"
7463 /* Override any gcc2 internal prototype to avoid an error. */
7464 /* We use char because int might match the return type of a gcc2
7465 builtin and then its argument prototype would still apply. */
7472 if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7474 eval "ac_cv_lib_$ac_lib_var=yes"
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7479 eval "ac_cv_lib_$ac_lib_var=no"
7482 LIBS="$ac_save_LIBS"
7485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7486 echo "$ac_t""yes" 1>&6
7489 echo "$ac_t""no" 1>&6
7497 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7503 echo "configure:7504: checking for $ac_hdr" >&5
7504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7505 echo $ac_n "(cached) $ac_c" 1>&6
7507 cat > conftest.$ac_ext <<EOF
7508 #line 7509 "configure"
7509 #include "confdefs.h"
7512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7513 { (eval echo configure:7514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7515 if test -z "$ac_err"; then
7517 eval "ac_cv_header_$ac_safe=yes"
7520 echo "configure: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7523 eval "ac_cv_header_$ac_safe=no"
7527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7528 echo "$ac_t""yes" 1>&6
7529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7530 cat >> confdefs.h <<EOF
7531 #define $ac_tr_hdr 1
7535 echo "$ac_t""no" 1>&6
7539 if test $ac_cv_header_db_h = yes ; then
7540 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7541 echo "configure:7542: checking if db.h is DB2" >&5
7542 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6
7546 cat > conftest.$ac_ext <<EOF
7547 #line 7548 "configure"
7548 #include "confdefs.h"
7551 /* this check could be improved */
7552 # ifdef DB_VERSION_MAJOR
7553 # if DB_VERSION_MAJOR == 2
7559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7560 egrep "__db_version_2" >/dev/null 2>&1; then
7562 ol_cv_header_db2=yes
7571 echo "$ac_t""$ol_cv_header_db2" 1>&6
7578 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7579 echo "configure:7580: checking for Berkeley DB2" >&5
7580 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7581 echo $ac_n "(cached) $ac_c" 1>&6
7584 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7585 ol_cv_berkeley_db2=no
7587 ol_cv_berkeley_db2=yes
7592 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7593 if test $ol_cv_berkeley_db2 = yes ; then
7594 cat >> confdefs.h <<\EOF
7595 #define HAVE_BERKELEY_DB2 1
7601 if test $ol_cv_berkeley_db2 = yes ; then
7603 ol_with_ldbm_api=db2
7605 if test $ol_with_ldbm_type = hash ; then
7606 cat >> confdefs.h <<\EOF
7607 #define LDBM_USE_DBHASH 1
7611 cat >> confdefs.h <<\EOF
7612 #define LDBM_USE_DBBTREE 1
7617 if test $ol_cv_lib_db2 != yes ; then
7618 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7624 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7628 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7629 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7630 echo "configure:7631: checking for Berkeley DB library" >&5
7631 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7632 echo $ac_n "(cached) $ac_c" 1>&6
7635 for ac_hdr in db1/db.h
7637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7639 echo "configure:7640: checking for $ac_hdr" >&5
7640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7643 cat > conftest.$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7649 { (eval echo configure:7650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7651 if test -z "$ac_err"; then
7653 eval "ac_cv_header_$ac_safe=yes"
7656 echo "configure: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7659 eval "ac_cv_header_$ac_safe=no"
7663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7664 echo "$ac_t""yes" 1>&6
7665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7666 cat >> confdefs.h <<EOF
7667 #define $ac_tr_hdr 1
7671 echo "$ac_t""no" 1>&6
7676 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7677 echo "configure:7678: checking for dbopen" >&5
7678 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7681 cat > conftest.$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7684 /* System header to define __stub macros and hopefully few prototypes,
7685 which can conflict with char dbopen(); below. */
7687 /* Override any gcc2 internal prototype to avoid an error. */
7688 /* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7694 /* The GNU C library defines this for functions which it implements
7695 to always fail with ENOSYS. Some functions are actually named
7696 something starting with __ and the normal name is an alias. */
7697 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7705 if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7707 eval "ac_cv_func_dbopen=yes"
7709 echo "configure: failed program was:" >&5
7710 cat conftest.$ac_ext >&5
7712 eval "ac_cv_func_dbopen=no"
7717 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7718 echo "$ac_t""yes" 1>&6
7721 echo "$ac_t""no" 1>&6
7723 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
7724 echo "configure:7725: checking for dbopen in -ldb1" >&5
7725 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
7726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7727 echo $ac_n "(cached) $ac_c" 1>&6
7729 ac_save_LIBS="$LIBS"
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 /* Override any gcc2 internal prototype to avoid an error. */
7735 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7743 if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7745 eval "ac_cv_lib_$ac_lib_var=yes"
7747 echo "configure: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7750 eval "ac_cv_lib_$ac_lib_var=no"
7753 LIBS="$ac_save_LIBS"
7756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7757 echo "$ac_t""yes" 1>&6
7760 echo "$ac_t""no" 1>&6
7762 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7763 echo "configure:7764: checking for dbopen in -ldb" >&5
7764 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7768 ac_save_LIBS="$LIBS"
7770 cat > conftest.$ac_ext <<EOF
7771 #line 7772 "configure"
7772 #include "confdefs.h"
7773 /* Override any gcc2 internal prototype to avoid an error. */
7774 /* We use char because int might match the return type of a gcc2
7775 builtin and then its argument prototype would still apply. */
7782 if { (eval echo configure:7783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7784 eval "ac_cv_lib_$ac_lib_var=yes"
7786 echo "configure: failed program was:" >&5
7787 cat conftest.$ac_ext >&5
7789 eval "ac_cv_lib_$ac_lib_var=no"
7792 LIBS="$ac_save_LIBS"
7795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7796 echo "$ac_t""yes" 1>&6
7799 echo "$ac_t""no" 1>&6
7813 echo "$ac_t""$ol_cv_lib_db" 1>&6
7816 for ac_hdr in db_185.h
7818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7820 echo "configure:7821: checking for $ac_hdr" >&5
7821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7822 echo $ac_n "(cached) $ac_c" 1>&6
7824 cat > conftest.$ac_ext <<EOF
7825 #line 7826 "configure"
7826 #include "confdefs.h"
7829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7830 { (eval echo configure:7831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7832 if test -z "$ac_err"; then
7834 eval "ac_cv_header_$ac_safe=yes"
7837 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7840 eval "ac_cv_header_$ac_safe=no"
7844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7845 echo "$ac_t""yes" 1>&6
7846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7847 cat >> confdefs.h <<EOF
7848 #define $ac_tr_hdr 1
7852 echo "$ac_t""no" 1>&6
7856 if test "$ol_cv_header_db2" = yes ; then
7858 ol_cv_header_db=$ac_cv_header_db_185_h
7860 ol_cv_header_db=$ac_cv_header_db_h
7865 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7866 echo "configure:7867: checking for Berkeley DB" >&5
7867 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7868 echo $ac_n "(cached) $ac_c" 1>&6
7871 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7872 ol_cv_berkeley_db=no
7874 ol_cv_berkeley_db=yes
7879 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7880 if test $ol_cv_berkeley_db = yes ; then
7881 cat >> confdefs.h <<\EOF
7882 #define HAVE_BERKELEY_DB 1
7888 if test $ol_cv_berkeley_db = yes ; then
7892 if test $ol_with_ldbm_type = hash ; then
7893 cat >> confdefs.h <<\EOF
7894 #define LDBM_USE_DBHASH 1
7898 cat >> confdefs.h <<\EOF
7899 #define LDBM_USE_DBBTREE 1
7904 if test $ol_cv_lib_db != yes ; then
7905 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7910 if test $ol_with_ldbm_api = manual ; then
7913 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7915 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7919 echo "configure:7920: checking for $ac_hdr" >&5
7920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7921 echo $ac_n "(cached) $ac_c" 1>&6
7923 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7929 { (eval echo configure:7930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7931 if test -z "$ac_err"; then
7933 eval "ac_cv_header_$ac_safe=yes"
7936 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7939 eval "ac_cv_header_$ac_safe=no"
7943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7944 echo "$ac_t""yes" 1>&6
7945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7946 cat >> confdefs.h <<EOF
7947 #define $ac_tr_hdr 1
7951 echo "$ac_t""no" 1>&6
7957 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7958 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7959 ol_with_ldbm_api=none
7962 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7963 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7964 echo "configure:7965: checking for MDBM library" >&5
7965 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7966 echo $ac_n "(cached) $ac_c" 1>&6
7969 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7970 echo "configure:7971: checking for mdbm_set_chain" >&5
7971 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7972 echo $ac_n "(cached) $ac_c" 1>&6
7974 cat > conftest.$ac_ext <<EOF
7975 #line 7976 "configure"
7976 #include "confdefs.h"
7977 /* System header to define __stub macros and hopefully few prototypes,
7978 which can conflict with char mdbm_set_chain(); below. */
7980 /* Override any gcc2 internal prototype to avoid an error. */
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983 char mdbm_set_chain();
7987 /* The GNU C library defines this for functions which it implements
7988 to always fail with ENOSYS. Some functions are actually named
7989 something starting with __ and the normal name is an alias. */
7990 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7998 if { (eval echo configure:7999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8000 eval "ac_cv_func_mdbm_set_chain=yes"
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8005 eval "ac_cv_func_mdbm_set_chain=no"
8010 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
8011 echo "$ac_t""yes" 1>&6
8014 echo "$ac_t""no" 1>&6
8016 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
8017 echo "configure:8018: checking for mdbm_set_chain in -lmdbm" >&5
8018 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
8019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8020 echo $ac_n "(cached) $ac_c" 1>&6
8022 ac_save_LIBS="$LIBS"
8024 cat > conftest.$ac_ext <<EOF
8025 #line 8026 "configure"
8026 #include "confdefs.h"
8027 /* Override any gcc2 internal prototype to avoid an error. */
8028 /* We use char because int might match the return type of a gcc2
8029 builtin and then its argument prototype would still apply. */
8030 char mdbm_set_chain();
8036 if { (eval echo configure:8037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8038 eval "ac_cv_lib_$ac_lib_var=yes"
8040 echo "configure: failed program was:" >&5
8041 cat conftest.$ac_ext >&5
8043 eval "ac_cv_lib_$ac_lib_var=no"
8046 LIBS="$ac_save_LIBS"
8049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8050 echo "$ac_t""yes" 1>&6
8051 ol_cv_lib_mdbm=-lmdbm
8053 echo "$ac_t""no" 1>&6
8064 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
8067 for ac_hdr in mdbm.h
8069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8071 echo "configure:8072: checking for $ac_hdr" >&5
8072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8073 echo $ac_n "(cached) $ac_c" 1>&6
8075 cat > conftest.$ac_ext <<EOF
8076 #line 8077 "configure"
8077 #include "confdefs.h"
8080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8081 { (eval echo configure:8082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8083 if test -z "$ac_err"; then
8085 eval "ac_cv_header_$ac_safe=yes"
8088 echo "configure: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8091 eval "ac_cv_header_$ac_safe=no"
8095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8096 echo "$ac_t""yes" 1>&6
8097 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8098 cat >> confdefs.h <<EOF
8099 #define $ac_tr_hdr 1
8103 echo "$ac_t""no" 1>&6
8107 echo $ac_n "checking for db""... $ac_c" 1>&6
8108 echo "configure:8109: checking for db" >&5
8109 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
8110 echo $ac_n "(cached) $ac_c" 1>&6
8113 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
8121 echo "$ac_t""$ol_cv_mdbm" 1>&6
8122 if test $ol_cv_mdbm = yes ; then
8123 cat >> confdefs.h <<\EOF
8130 if test $ol_cv_mdbm = yes ; then
8132 ol_with_ldbm_api=mdbm
8133 if test $ol_cv_lib_mdbm != yes ; then
8134 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
8139 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
8140 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
8141 echo "configure:8142: checking for GDBM library" >&5
8142 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8146 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
8147 echo "configure:8148: checking for gdbm_open" >&5
8148 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
8149 echo $ac_n "(cached) $ac_c" 1>&6
8151 cat > conftest.$ac_ext <<EOF
8152 #line 8153 "configure"
8153 #include "confdefs.h"
8154 /* System header to define __stub macros and hopefully few prototypes,
8155 which can conflict with char gdbm_open(); below. */
8157 /* Override any gcc2 internal prototype to avoid an error. */
8158 /* We use char because int might match the return type of a gcc2
8159 builtin and then its argument prototype would still apply. */
8164 /* The GNU C library defines this for functions which it implements
8165 to always fail with ENOSYS. Some functions are actually named
8166 something starting with __ and the normal name is an alias. */
8167 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
8175 if { (eval echo configure:8176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8177 eval "ac_cv_func_gdbm_open=yes"
8179 echo "configure: failed program was:" >&5
8180 cat conftest.$ac_ext >&5
8182 eval "ac_cv_func_gdbm_open=no"
8187 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
8188 echo "$ac_t""yes" 1>&6
8191 echo "$ac_t""no" 1>&6
8193 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
8194 echo "configure:8195: checking for gdbm_open in -lgdbm" >&5
8195 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
8196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8199 ac_save_LIBS="$LIBS"
8201 cat > conftest.$ac_ext <<EOF
8202 #line 8203 "configure"
8203 #include "confdefs.h"
8204 /* Override any gcc2 internal prototype to avoid an error. */
8205 /* We use char because int might match the return type of a gcc2
8206 builtin and then its argument prototype would still apply. */
8213 if { (eval echo configure:8214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8215 eval "ac_cv_lib_$ac_lib_var=yes"
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8220 eval "ac_cv_lib_$ac_lib_var=no"
8223 LIBS="$ac_save_LIBS"
8226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8227 echo "$ac_t""yes" 1>&6
8228 ol_cv_lib_gdbm=-lgdbm
8230 echo "$ac_t""no" 1>&6
8241 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8244 for ac_hdr in gdbm.h
8246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8248 echo "configure:8249: checking for $ac_hdr" >&5
8249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8250 echo $ac_n "(cached) $ac_c" 1>&6
8252 cat > conftest.$ac_ext <<EOF
8253 #line 8254 "configure"
8254 #include "confdefs.h"
8257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8258 { (eval echo configure:8259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8260 if test -z "$ac_err"; then
8262 eval "ac_cv_header_$ac_safe=yes"
8265 echo "configure: failed program was:" >&5
8266 cat conftest.$ac_ext >&5
8268 eval "ac_cv_header_$ac_safe=no"
8272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8273 echo "$ac_t""yes" 1>&6
8274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8275 cat >> confdefs.h <<EOF
8276 #define $ac_tr_hdr 1
8280 echo "$ac_t""no" 1>&6
8284 echo $ac_n "checking for db""... $ac_c" 1>&6
8285 echo "configure:8286: checking for db" >&5
8286 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8287 echo $ac_n "(cached) $ac_c" 1>&6
8290 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8298 echo "$ac_t""$ol_cv_gdbm" 1>&6
8299 if test $ol_cv_gdbm = yes ; then
8300 cat >> confdefs.h <<\EOF
8307 if test $ol_cv_gdbm = yes ; then
8309 ol_with_ldbm_api=gdbm
8311 if test $ol_cv_lib_gdbm != yes ; then
8312 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8317 if test $ol_with_ldbm_api = auto ; then
8318 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8319 elif test $ol_with_ldbm_api = ndbm ; then
8320 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8321 echo "configure:8322: checking for NDBM library" >&5
8322 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8323 echo $ac_n "(cached) $ac_c" 1>&6
8326 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8327 echo "configure:8328: checking for dbm_open" >&5
8328 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8329 echo $ac_n "(cached) $ac_c" 1>&6
8331 cat > conftest.$ac_ext <<EOF
8332 #line 8333 "configure"
8333 #include "confdefs.h"
8334 /* System header to define __stub macros and hopefully few prototypes,
8335 which can conflict with char dbm_open(); below. */
8337 /* Override any gcc2 internal prototype to avoid an error. */
8338 /* We use char because int might match the return type of a gcc2
8339 builtin and then its argument prototype would still apply. */
8344 /* The GNU C library defines this for functions which it implements
8345 to always fail with ENOSYS. Some functions are actually named
8346 something starting with __ and the normal name is an alias. */
8347 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8355 if { (eval echo configure:8356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8357 eval "ac_cv_func_dbm_open=yes"
8359 echo "configure: failed program was:" >&5
8360 cat conftest.$ac_ext >&5
8362 eval "ac_cv_func_dbm_open=no"
8367 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8368 echo "$ac_t""yes" 1>&6
8371 echo "$ac_t""no" 1>&6
8373 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8374 echo "configure:8375: checking for dbm_open in -lndbm" >&5
8375 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8377 echo $ac_n "(cached) $ac_c" 1>&6
8379 ac_save_LIBS="$LIBS"
8381 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8384 /* Override any gcc2 internal prototype to avoid an error. */
8385 /* We use char because int might match the return type of a gcc2
8386 builtin and then its argument prototype would still apply. */
8393 if { (eval echo configure:8394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8395 eval "ac_cv_lib_$ac_lib_var=yes"
8397 echo "configure: failed program was:" >&5
8398 cat conftest.$ac_ext >&5
8400 eval "ac_cv_lib_$ac_lib_var=no"
8403 LIBS="$ac_save_LIBS"
8406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8407 echo "$ac_t""yes" 1>&6
8408 ol_cv_lib_ndbm=-lndbm
8410 echo "$ac_t""no" 1>&6
8412 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8413 echo "configure:8414: checking for dbm_open in -ldbm" >&5
8414 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8418 ac_save_LIBS="$LIBS"
8420 cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8423 /* Override any gcc2 internal prototype to avoid an error. */
8424 /* We use char because int might match the return type of a gcc2
8425 builtin and then its argument prototype would still apply. */
8432 if { (eval echo configure:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8434 eval "ac_cv_lib_$ac_lib_var=yes"
8436 echo "configure: failed program was:" >&5
8437 cat conftest.$ac_ext >&5
8439 eval "ac_cv_lib_$ac_lib_var=no"
8442 LIBS="$ac_save_LIBS"
8445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8446 echo "$ac_t""yes" 1>&6
8447 ol_cv_lib_ndbm=-ldbm
8449 echo "$ac_t""no" 1>&6
8462 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8465 for ac_hdr in ndbm.h
8467 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8469 echo "configure:8470: checking for $ac_hdr" >&5
8470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8471 echo $ac_n "(cached) $ac_c" 1>&6
8473 cat > conftest.$ac_ext <<EOF
8474 #line 8475 "configure"
8475 #include "confdefs.h"
8478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8479 { (eval echo configure:8480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8481 if test -z "$ac_err"; then
8483 eval "ac_cv_header_$ac_safe=yes"
8486 echo "configure: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8489 eval "ac_cv_header_$ac_safe=no"
8493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8494 echo "$ac_t""yes" 1>&6
8495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8496 cat >> confdefs.h <<EOF
8497 #define $ac_tr_hdr 1
8501 echo "$ac_t""no" 1>&6
8505 echo $ac_n "checking for db""... $ac_c" 1>&6
8506 echo "configure:8507: checking for db" >&5
8507 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8508 echo $ac_n "(cached) $ac_c" 1>&6
8511 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8519 echo "$ac_t""$ol_cv_ndbm" 1>&6
8520 if test $ol_cv_ndbm = yes ; then
8521 cat >> confdefs.h <<\EOF
8528 if test $ol_cv_ndbm = yes ; then
8530 ol_with_ldbm_api=ndbm
8532 if test $ol_cv_lib_ndbm != yes ; then
8533 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8538 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8539 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8540 if test $ol_enable_ldbm = yes ; then
8541 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8544 echo "configure: warning: disabling LDBM" 1>&2
8548 if test $ol_enable_wrappers != no ; then
8549 for ac_hdr in tcpd.h
8551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8553 echo "configure:8554: checking for $ac_hdr" >&5
8554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8555 echo $ac_n "(cached) $ac_c" 1>&6
8557 cat > conftest.$ac_ext <<EOF
8558 #line 8559 "configure"
8559 #include "confdefs.h"
8562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8563 { (eval echo configure:8564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8565 if test -z "$ac_err"; then
8567 eval "ac_cv_header_$ac_safe=yes"
8570 echo "configure: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8573 eval "ac_cv_header_$ac_safe=no"
8577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8578 echo "$ac_t""yes" 1>&6
8579 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8580 cat >> confdefs.h <<EOF
8581 #define $ac_tr_hdr 1
8585 echo "$ac_t""no" 1>&6
8590 if test $ac_cv_header_tcpd_h != yes ; then
8593 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8594 echo "configure:8595: checking for main in -lwrap" >&5
8595 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8599 ac_save_LIBS="$LIBS"
8601 cat > conftest.$ac_ext <<EOF
8602 #line 8603 "configure"
8603 #include "confdefs.h"
8609 if { (eval echo configure:8610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8611 eval "ac_cv_lib_$ac_lib_var=yes"
8613 echo "configure: failed program was:" >&5
8614 cat conftest.$ac_ext >&5
8616 eval "ac_cv_lib_$ac_lib_var=no"
8619 LIBS="$ac_save_LIBS"
8622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8623 echo "$ac_t""yes" 1>&6
8626 echo "$ac_t""no" 1>&6
8632 if test $have_wrappers = yes ; then
8633 cat >> confdefs.h <<\EOF
8637 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8639 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8640 echo "configure:8641: checking for main in -lnsl" >&5
8641 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
8645 ac_save_LIBS="$LIBS"
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8655 if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8657 eval "ac_cv_lib_$ac_lib_var=yes"
8659 echo "configure: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8662 eval "ac_cv_lib_$ac_lib_var=no"
8665 LIBS="$ac_save_LIBS"
8668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8669 echo "$ac_t""yes" 1>&6
8670 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8671 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8672 cat >> confdefs.h <<EOF
8673 #define $ac_tr_lib 1
8679 echo "$ac_t""no" 1>&6
8683 echo "configure: warning: could not find -lwrap" 1>&2
8684 if test $ol_enable_wrappers = yes ; then
8685 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8688 echo "configure: warning: disabling wrappers support" 1>&2
8689 ol_enable_wrappers=no
8693 if test $ol_enable_syslog != no ; then
8694 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8695 echo "configure:8696: checking for openlog" >&5
8696 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8697 echo $ac_n "(cached) $ac_c" 1>&6
8699 cat > conftest.$ac_ext <<EOF
8700 #line 8701 "configure"
8701 #include "confdefs.h"
8702 /* System header to define __stub macros and hopefully few prototypes,
8703 which can conflict with char openlog(); below. */
8705 /* Override any gcc2 internal prototype to avoid an error. */
8706 /* We use char because int might match the return type of a gcc2
8707 builtin and then its argument prototype would still apply. */
8712 /* The GNU C library defines this for functions which it implements
8713 to always fail with ENOSYS. Some functions are actually named
8714 something starting with __ and the normal name is an alias. */
8715 #if defined (__stub_openlog) || defined (__stub___openlog)
8723 if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8725 eval "ac_cv_func_openlog=yes"
8727 echo "configure: failed program was:" >&5
8728 cat conftest.$ac_ext >&5
8730 eval "ac_cv_func_openlog=no"
8735 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8736 echo "$ac_t""yes" 1>&6
8739 echo "$ac_t""no" 1>&6
8742 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8743 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8745 ol_enable_syslog=$ac_cv_func_openlog
8748 if test $ol_enable_dmalloc != no ; then
8749 for ac_hdr in dmalloc.h
8751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8753 echo "configure:8754: checking for $ac_hdr" >&5
8754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8755 echo $ac_n "(cached) $ac_c" 1>&6
8757 cat > conftest.$ac_ext <<EOF
8758 #line 8759 "configure"
8759 #include "confdefs.h"
8762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8763 { (eval echo configure:8764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8765 if test -z "$ac_err"; then
8767 eval "ac_cv_header_$ac_safe=yes"
8770 echo "configure: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8773 eval "ac_cv_header_$ac_safe=no"
8777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8778 echo "$ac_t""yes" 1>&6
8779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8780 cat >> confdefs.h <<EOF
8781 #define $ac_tr_hdr 1
8785 echo "$ac_t""no" 1>&6
8789 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8790 echo "configure:8791: checking for dmalloc_shutdown in -ldmalloc" >&5
8791 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8793 echo $ac_n "(cached) $ac_c" 1>&6
8795 ac_save_LIBS="$LIBS"
8796 LIBS="-ldmalloc $LIBS"
8797 cat > conftest.$ac_ext <<EOF
8798 #line 8799 "configure"
8799 #include "confdefs.h"
8800 /* Override any gcc2 internal prototype to avoid an error. */
8801 /* We use char because int might match the return type of a gcc2
8802 builtin and then its argument prototype would still apply. */
8803 char dmalloc_shutdown();
8809 if { (eval echo configure:8810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8811 eval "ac_cv_lib_$ac_lib_var=yes"
8813 echo "configure: failed program was:" >&5
8814 cat conftest.$ac_ext >&5
8816 eval "ac_cv_lib_$ac_lib_var=no"
8819 LIBS="$ac_save_LIBS"
8822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8823 echo "$ac_t""yes" 1>&6
8824 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8825 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8826 cat >> confdefs.h <<EOF
8827 #define $ac_tr_lib 1
8830 LIBS="-ldmalloc $LIBS"
8833 echo "$ac_t""no" 1>&6
8838 if test $ol_enable_tcl != no ; then
8841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8843 echo "configure:8844: checking for $ac_hdr" >&5
8844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8845 echo $ac_n "(cached) $ac_c" 1>&6
8847 cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8853 { (eval echo configure:8854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8855 if test -z "$ac_err"; then
8857 eval "ac_cv_header_$ac_safe=yes"
8860 echo "configure: failed program was:" >&5
8861 cat conftest.$ac_ext >&5
8863 eval "ac_cv_header_$ac_safe=no"
8867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8868 echo "$ac_t""yes" 1>&6
8869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8870 cat >> confdefs.h <<EOF
8871 #define $ac_tr_hdr 1
8875 echo "$ac_t""no" 1>&6
8880 if test $ac_cv_header_tcl_h != yes ; then
8883 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8884 echo "configure:8885: checking for main in -ltcl" >&5
8885 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
8886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8887 echo $ac_n "(cached) $ac_c" 1>&6
8889 ac_save_LIBS="$LIBS"
8891 cat > conftest.$ac_ext <<EOF
8892 #line 8893 "configure"
8893 #include "confdefs.h"
8899 if { (eval echo configure:8900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8901 eval "ac_cv_lib_$ac_lib_var=yes"
8903 echo "configure: failed program was:" >&5
8904 cat conftest.$ac_ext >&5
8906 eval "ac_cv_lib_$ac_lib_var=no"
8909 LIBS="$ac_save_LIBS"
8912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8913 echo "$ac_t""yes" 1>&6
8914 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8916 echo "$ac_t""no" 1>&6
8921 if test $have_tcl != yes; then
8922 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8923 echo "configure:8924: checking for main in -ltcl7.6" >&5
8924 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8926 echo $ac_n "(cached) $ac_c" 1>&6
8928 ac_save_LIBS="$LIBS"
8929 LIBS="-ltcl7.6 $LIBS"
8930 cat > conftest.$ac_ext <<EOF
8931 #line 8932 "configure"
8932 #include "confdefs.h"
8938 if { (eval echo configure:8939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8940 eval "ac_cv_lib_$ac_lib_var=yes"
8942 echo "configure: failed program was:" >&5
8943 cat conftest.$ac_ext >&5
8945 eval "ac_cv_lib_$ac_lib_var=no"
8948 LIBS="$ac_save_LIBS"
8951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8952 echo "$ac_t""yes" 1>&6
8953 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8955 echo "$ac_t""no" 1>&6
8961 if test $have_tcl != yes; then
8962 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8963 echo "configure:8964: checking for main in -ltcl8.0" >&5
8964 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8966 echo $ac_n "(cached) $ac_c" 1>&6
8968 ac_save_LIBS="$LIBS"
8969 LIBS="-ltcl8.0 $LIBS"
8970 cat > conftest.$ac_ext <<EOF
8971 #line 8972 "configure"
8972 #include "confdefs.h"
8978 if { (eval echo configure:8979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8980 eval "ac_cv_lib_$ac_lib_var=yes"
8982 echo "configure: failed program was:" >&5
8983 cat conftest.$ac_ext >&5
8985 eval "ac_cv_lib_$ac_lib_var=no"
8988 LIBS="$ac_save_LIBS"
8991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8992 echo "$ac_t""yes" 1>&6
8993 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8995 echo "$ac_t""no" 1>&6
9002 if test $have_tcl != yes ; then
9003 echo "configure: warning: could not find -ltcl" 1>&2
9004 if test $ol_enable_tcl = yes ; then
9005 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
9012 # ud needs termcap (should insert check here)
9014 for ac_hdr in termcap.h ncurses.h
9016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9018 echo "configure:9019: checking for $ac_hdr" >&5
9019 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9020 echo $ac_n "(cached) $ac_c" 1>&6
9022 cat > conftest.$ac_ext <<EOF
9023 #line 9024 "configure"
9024 #include "confdefs.h"
9027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9028 { (eval echo configure:9029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9030 if test -z "$ac_err"; then
9032 eval "ac_cv_header_$ac_safe=yes"
9035 echo "configure: failed program was:" >&5
9036 cat conftest.$ac_ext >&5
9038 eval "ac_cv_header_$ac_safe=no"
9042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9043 echo "$ac_t""yes" 1>&6
9044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9045 cat >> confdefs.h <<EOF
9046 #define $ac_tr_hdr 1
9050 echo "$ac_t""no" 1>&6
9055 if test $ol_link_termcap = no ; then
9056 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
9057 echo "configure:9058: checking for tputs in -ltermcap" >&5
9058 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
9059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9060 echo $ac_n "(cached) $ac_c" 1>&6
9062 ac_save_LIBS="$LIBS"
9063 LIBS="-ltermcap $LIBS"
9064 cat > conftest.$ac_ext <<EOF
9065 #line 9066 "configure"
9066 #include "confdefs.h"
9067 /* Override any gcc2 internal prototype to avoid an error. */
9068 /* We use char because int might match the return type of a gcc2
9069 builtin and then its argument prototype would still apply. */
9076 if { (eval echo configure:9077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9078 eval "ac_cv_lib_$ac_lib_var=yes"
9080 echo "configure: failed program was:" >&5
9081 cat conftest.$ac_ext >&5
9083 eval "ac_cv_lib_$ac_lib_var=no"
9086 LIBS="$ac_save_LIBS"
9089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9090 echo "$ac_t""yes" 1>&6
9093 echo "$ac_t""no" 1>&6
9097 if test $have_termcap = yes ; then
9098 cat >> confdefs.h <<\EOF
9099 #define HAVE_TERMCAP 1
9103 TERMCAP_LIBS=-ltermcap
9107 if test $ol_link_termcap = no ; then
9108 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
9109 echo "configure:9110: checking for initscr in -lncurses" >&5
9110 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
9111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9112 echo $ac_n "(cached) $ac_c" 1>&6
9114 ac_save_LIBS="$LIBS"
9115 LIBS="-lncurses $LIBS"
9116 cat > conftest.$ac_ext <<EOF
9117 #line 9118 "configure"
9118 #include "confdefs.h"
9119 /* Override any gcc2 internal prototype to avoid an error. */
9120 /* We use char because int might match the return type of a gcc2
9121 builtin and then its argument prototype would still apply. */
9128 if { (eval echo configure:9129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9130 eval "ac_cv_lib_$ac_lib_var=yes"
9132 echo "configure: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9135 eval "ac_cv_lib_$ac_lib_var=no"
9138 LIBS="$ac_save_LIBS"
9141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9142 echo "$ac_t""yes" 1>&6
9145 echo "$ac_t""no" 1>&6
9149 if test $have_ncurses = yes ; then
9150 cat >> confdefs.h <<\EOF
9151 #define HAVE_NCURSES 1
9155 TERMCAP_LIBS=-lncurses
9159 if test $ol_link_termcap = no ; then
9160 cat >> confdefs.h <<\EOF
9161 #define NO_TERMCAP 1
9168 if test $ol_with_readline != no ; then
9169 for ac_hdr in readline/readline.h readline/history.h
9171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9173 echo "configure:9174: checking for $ac_hdr" >&5
9174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9177 cat > conftest.$ac_ext <<EOF
9178 #line 9179 "configure"
9179 #include "confdefs.h"
9182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9183 { (eval echo configure:9184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9185 if test -z "$ac_err"; then
9187 eval "ac_cv_header_$ac_safe=yes"
9190 echo "configure: failed program was:" >&5
9191 cat conftest.$ac_ext >&5
9193 eval "ac_cv_header_$ac_safe=no"
9197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9198 echo "$ac_t""yes" 1>&6
9199 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9200 cat >> confdefs.h <<EOF
9201 #define $ac_tr_hdr 1
9205 echo "$ac_t""no" 1>&6
9210 if test $ac_cv_header_readline_readline_h = yes ; then
9212 LIBS="$TERMCAP_LIBS $LIBS"
9213 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
9214 echo "configure:9215: checking for readline in -lreadline" >&5
9215 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
9216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9217 echo $ac_n "(cached) $ac_c" 1>&6
9219 ac_save_LIBS="$LIBS"
9220 LIBS="-lreadline $LIBS"
9221 cat > conftest.$ac_ext <<EOF
9222 #line 9223 "configure"
9223 #include "confdefs.h"
9224 /* Override any gcc2 internal prototype to avoid an error. */
9225 /* We use char because int might match the return type of a gcc2
9226 builtin and then its argument prototype would still apply. */
9233 if { (eval echo configure:9234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9235 eval "ac_cv_lib_$ac_lib_var=yes"
9237 echo "configure: failed program was:" >&5
9238 cat conftest.$ac_ext >&5
9240 eval "ac_cv_lib_$ac_lib_var=no"
9243 LIBS="$ac_save_LIBS"
9246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9247 echo "$ac_t""yes" 1>&6
9250 echo "$ac_t""no" 1>&6
9256 if test $have_readline = yes ; then
9257 ol_with_readline=found
9258 ol_link_readline=yes
9260 READLINE_LIBS="-lreadline"
9265 if test $ol_link_readline = yes ; then
9266 cat >> confdefs.h <<\EOF
9267 #define HAVE_READLINE 1
9273 # FreeBSD (and others) have crypt(3) in -lcrypt
9274 if test $ol_enable_crypt != no ; then
9275 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9276 echo "configure:9277: checking for crypt" >&5
9277 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9278 echo $ac_n "(cached) $ac_c" 1>&6
9280 cat > conftest.$ac_ext <<EOF
9281 #line 9282 "configure"
9282 #include "confdefs.h"
9283 /* System header to define __stub macros and hopefully few prototypes,
9284 which can conflict with char crypt(); below. */
9286 /* Override any gcc2 internal prototype to avoid an error. */
9287 /* We use char because int might match the return type of a gcc2
9288 builtin and then its argument prototype would still apply. */
9293 /* The GNU C library defines this for functions which it implements
9294 to always fail with ENOSYS. Some functions are actually named
9295 something starting with __ and the normal name is an alias. */
9296 #if defined (__stub_crypt) || defined (__stub___crypt)
9304 if { (eval echo configure:9305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9306 eval "ac_cv_func_crypt=yes"
9308 echo "configure: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9311 eval "ac_cv_func_crypt=no"
9316 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9317 echo "$ac_t""yes" 1>&6
9320 echo "$ac_t""no" 1>&6
9322 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9323 echo "configure:9324: checking for crypt in -lcrypt" >&5
9324 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9326 echo $ac_n "(cached) $ac_c" 1>&6
9328 ac_save_LIBS="$LIBS"
9329 LIBS="-lcrypt $LIBS"
9330 cat > conftest.$ac_ext <<EOF
9331 #line 9332 "configure"
9332 #include "confdefs.h"
9333 /* Override any gcc2 internal prototype to avoid an error. */
9334 /* We use char because int might match the return type of a gcc2
9335 builtin and then its argument prototype would still apply. */
9342 if { (eval echo configure:9343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9344 eval "ac_cv_lib_$ac_lib_var=yes"
9346 echo "configure: failed program was:" >&5
9347 cat conftest.$ac_ext >&5
9349 eval "ac_cv_lib_$ac_lib_var=no"
9352 LIBS="$ac_save_LIBS"
9355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9356 echo "$ac_t""yes" 1>&6
9357 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9360 echo "$ac_t""no" 1>&6
9367 if test $have_crypt = yes ; then
9368 cat >> confdefs.h <<\EOF
9369 #define HAVE_CRYPT 1
9373 echo "configure: warning: could not find crypt" 1>&2
9374 if test $ol_enable_crypt = yes ; then
9375 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9378 echo "configure: warning: disabling crypt support" 1>&2
9383 # FreeBSD (and others) have setproctitle(3) in -lutil
9384 if test $ol_enable_proctitle != no ; then
9385 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9386 echo "configure:9387: checking for setproctitle" >&5
9387 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9388 echo $ac_n "(cached) $ac_c" 1>&6
9390 cat > conftest.$ac_ext <<EOF
9391 #line 9392 "configure"
9392 #include "confdefs.h"
9393 /* System header to define __stub macros and hopefully few prototypes,
9394 which can conflict with char setproctitle(); below. */
9396 /* Override any gcc2 internal prototype to avoid an error. */
9397 /* We use char because int might match the return type of a gcc2
9398 builtin and then its argument prototype would still apply. */
9399 char setproctitle();
9403 /* The GNU C library defines this for functions which it implements
9404 to always fail with ENOSYS. Some functions are actually named
9405 something starting with __ and the normal name is an alias. */
9406 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9414 if { (eval echo configure:9415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9416 eval "ac_cv_func_setproctitle=yes"
9418 echo "configure: failed program was:" >&5
9419 cat conftest.$ac_ext >&5
9421 eval "ac_cv_func_setproctitle=no"
9426 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9427 echo "$ac_t""yes" 1>&6
9428 have_setproctitle=yes
9430 echo "$ac_t""no" 1>&6
9432 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9433 echo "configure:9434: checking for setproctitle in -lutil" >&5
9434 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9438 ac_save_LIBS="$LIBS"
9440 cat > conftest.$ac_ext <<EOF
9441 #line 9442 "configure"
9442 #include "confdefs.h"
9443 /* Override any gcc2 internal prototype to avoid an error. */
9444 /* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9446 char setproctitle();
9452 if { (eval echo configure:9453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9454 eval "ac_cv_lib_$ac_lib_var=yes"
9456 echo "configure: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9459 eval "ac_cv_lib_$ac_lib_var=no"
9462 LIBS="$ac_save_LIBS"
9465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9466 echo "$ac_t""yes" 1>&6
9467 have_setproctitle=yes
9468 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9470 echo "$ac_t""no" 1>&6
9471 have_setproctitle=no
9472 LIBOBJS="$LIBOBJS setproctitle.o"
9478 if test $have_setproctitle = yes ; then
9479 cat >> confdefs.h <<\EOF
9480 #define HAVE_SETPROCTITLE 1
9487 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9488 echo "configure:9489: checking for EBCDIC" >&5
9489 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9490 echo $ac_n "(cached) $ac_c" 1>&6
9493 cat > conftest.$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9498 #include <__ASCII__/generate_error.h>
9502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9503 { (eval echo configure:9504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9505 if test -z "$ac_err"; then
9507 ol_cv_cpp_ebcdic=yes
9510 echo "configure: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9518 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9519 if test $ol_cv_cpp_ebcdic = yes ; then
9520 cat >> confdefs.h <<\EOF
9521 #define HAVE_EBCDIC 1
9526 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9527 echo "configure:9528: checking for ANSI C header files" >&5
9528 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9531 cat > conftest.$ac_ext <<EOF
9532 #line 9533 "configure"
9533 #include "confdefs.h"
9539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9540 { (eval echo configure:9541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9542 if test -z "$ac_err"; then
9544 ol_cv_header_stdc=yes
9547 echo "configure: failed program was:" >&5
9548 cat conftest.$ac_ext >&5
9550 ol_cv_header_stdc=no
9554 if test $ol_cv_header_stdc = yes; then
9555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9556 cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9562 egrep "memchr" >/dev/null 2>&1; then
9566 ol_cv_header_stdc=no
9572 if test $ol_cv_header_stdc = yes; then
9573 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9574 cat > conftest.$ac_ext <<EOF
9575 #line 9576 "configure"
9576 #include "confdefs.h"
9579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9580 egrep "free" >/dev/null 2>&1; then
9584 ol_cv_header_stdc=no
9590 if test $ol_cv_header_stdc = yes; then
9591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9592 if test "$cross_compiling" = yes; then
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9600 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9601 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9603 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9604 || ('j' <= (c) && (c) <= 'r') \
9605 || ('s' <= (c) && (c) <= 'z'))
9606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9609 int main () { int i; for (i = 0; i < 256; i++)
9610 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9614 if { (eval echo configure:9615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9618 echo "configure: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9621 ol_cv_header_stdc=no
9629 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9630 if test $ol_cv_header_stdc = yes; then
9631 cat >> confdefs.h <<\EOF
9632 #define STDC_HEADERS 1
9636 ac_cv_header_stdc=disable
9639 if test $ol_cv_header_stdc != yes; then
9640 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9644 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9647 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9648 echo "configure:9649: checking for $ac_hdr that defines DIR" >&5
9649 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9650 echo $ac_n "(cached) $ac_c" 1>&6
9652 cat > conftest.$ac_ext <<EOF
9653 #line 9654 "configure"
9654 #include "confdefs.h"
9655 #include <sys/types.h>
9661 if { (eval echo configure:9662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9663 eval "ac_cv_header_dirent_$ac_safe=yes"
9665 echo "configure: failed program was:" >&5
9666 cat conftest.$ac_ext >&5
9668 eval "ac_cv_header_dirent_$ac_safe=no"
9672 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9673 echo "$ac_t""yes" 1>&6
9674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9675 cat >> confdefs.h <<EOF
9676 #define $ac_tr_hdr 1
9678 ac_header_dirent=$ac_hdr; break
9680 echo "$ac_t""no" 1>&6
9683 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9684 if test $ac_header_dirent = dirent.h; then
9685 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9686 echo "configure:9687: checking for opendir in -ldir" >&5
9687 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9689 echo $ac_n "(cached) $ac_c" 1>&6
9691 ac_save_LIBS="$LIBS"
9693 cat > conftest.$ac_ext <<EOF
9694 #line 9695 "configure"
9695 #include "confdefs.h"
9696 /* Override any gcc2 internal prototype to avoid an error. */
9697 /* We use char because int might match the return type of a gcc2
9698 builtin and then its argument prototype would still apply. */
9705 if { (eval echo configure:9706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9707 eval "ac_cv_lib_$ac_lib_var=yes"
9709 echo "configure: failed program was:" >&5
9710 cat conftest.$ac_ext >&5
9712 eval "ac_cv_lib_$ac_lib_var=no"
9715 LIBS="$ac_save_LIBS"
9718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9719 echo "$ac_t""yes" 1>&6
9722 echo "$ac_t""no" 1>&6
9726 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9727 echo "configure:9728: checking for opendir in -lx" >&5
9728 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9730 echo $ac_n "(cached) $ac_c" 1>&6
9732 ac_save_LIBS="$LIBS"
9734 cat > conftest.$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9737 /* Override any gcc2 internal prototype to avoid an error. */
9738 /* We use char because int might match the return type of a gcc2
9739 builtin and then its argument prototype would still apply. */
9746 if { (eval echo configure:9747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9748 eval "ac_cv_lib_$ac_lib_var=yes"
9750 echo "configure: failed program was:" >&5
9751 cat conftest.$ac_ext >&5
9753 eval "ac_cv_lib_$ac_lib_var=no"
9756 LIBS="$ac_save_LIBS"
9759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9760 echo "$ac_t""yes" 1>&6
9763 echo "$ac_t""no" 1>&6
9768 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9769 echo "configure:9770: checking for sys/wait.h that is POSIX.1 compatible" >&5
9770 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9771 echo $ac_n "(cached) $ac_c" 1>&6
9773 cat > conftest.$ac_ext <<EOF
9774 #line 9775 "configure"
9775 #include "confdefs.h"
9776 #include <sys/types.h>
9777 #include <sys/wait.h>
9779 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9782 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9787 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9790 if { (eval echo configure:9791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9792 ac_cv_header_sys_wait_h=yes
9794 echo "configure: failed program was:" >&5
9795 cat conftest.$ac_ext >&5
9797 ac_cv_header_sys_wait_h=no
9802 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9803 if test $ac_cv_header_sys_wait_h = yes; then
9804 cat >> confdefs.h <<\EOF
9805 #define HAVE_SYS_WAIT_H 1
9810 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9811 echo "configure:9812: checking POSIX termios" >&5
9812 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9813 echo $ac_n "(cached) $ac_c" 1>&6
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 #include <sys/types.h>
9820 #include <termios.h>
9822 /* SunOS 4.0.3 has termios.h but not the library calls. */
9826 if { (eval echo configure:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9828 am_cv_sys_posix_termios=yes
9830 echo "configure: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9833 am_cv_sys_posix_termios=no
9838 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9841 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9842 echo "configure:9843: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9843 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9846 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9848 gwinsz_in_termios_h=no
9849 if test $am_cv_sys_posix_termios = yes; then
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853 #include <sys/types.h>
9854 # include <termios.h>
9860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9861 egrep "yes" >/dev/null 2>&1; then
9863 gwinsz_in_termios_h=yes
9869 if test $gwinsz_in_termios_h = no; then
9870 cat > conftest.$ac_ext <<EOF
9871 #line 9872 "configure"
9872 #include "confdefs.h"
9873 #include <sys/types.h>
9874 # include <sys/ioctl.h>
9880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9881 egrep "yes" >/dev/null 2>&1; then
9883 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9891 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9892 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9893 cat >> confdefs.h <<\EOF
9894 #define GWINSZ_IN_SYS_IOCTL 1
9899 if test $am_cv_sys_posix_termios = yes ; then
9900 cat >> confdefs.h <<\EOF
9901 #define HAVE_POSIX_TERMIOS 1
9946 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9947 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9948 echo "configure:9949: checking for $ac_hdr" >&5
9949 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9950 echo $ac_n "(cached) $ac_c" 1>&6
9952 cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9958 { (eval echo configure:9959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9960 if test -z "$ac_err"; then
9962 eval "ac_cv_header_$ac_safe=yes"
9965 echo "configure: failed program was:" >&5
9966 cat conftest.$ac_ext >&5
9968 eval "ac_cv_header_$ac_safe=no"
9972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9973 echo "$ac_t""yes" 1>&6
9974 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9975 cat >> confdefs.h <<EOF
9976 #define $ac_tr_hdr 1
9980 echo "$ac_t""no" 1>&6
9985 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9986 echo "configure:9987: checking for uid_t in sys/types.h" >&5
9987 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9988 echo $ac_n "(cached) $ac_c" 1>&6
9990 cat > conftest.$ac_ext <<EOF
9991 #line 9992 "configure"
9992 #include "confdefs.h"
9993 #include <sys/types.h>
9995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9996 egrep "uid_t" >/dev/null 2>&1; then
9998 ac_cv_type_uid_t=yes
10001 ac_cv_type_uid_t=no
10007 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10008 if test $ac_cv_type_uid_t = no; then
10009 cat >> confdefs.h <<\EOF
10013 cat >> confdefs.h <<\EOF
10019 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
10020 echo "configure:10021: checking type of array argument to getgroups" >&5
10021 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10024 if test "$cross_compiling" = yes; then
10025 ac_cv_type_getgroups=cross
10027 cat > conftest.$ac_ext <<EOF
10028 #line 10029 "configure"
10029 #include "confdefs.h"
10031 /* Thanks to Mike Rendell for this test. */
10032 #include <sys/types.h>
10035 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10038 gid_t gidset[NGID];
10040 union { gid_t gval; long lval; } val;
10043 for (i = 0; i < NGID; i++)
10044 gidset[i] = val.gval;
10045 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10047 /* Exit non-zero if getgroups seems to require an array of ints. This
10048 happens when gid_t is short but getgroups modifies an array of ints. */
10049 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10053 if { (eval echo configure:10054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10055 ac_cv_type_getgroups=gid_t
10057 echo "configure: failed program was:" >&5
10058 cat conftest.$ac_ext >&5
10060 ac_cv_type_getgroups=int
10065 if test $ac_cv_type_getgroups = cross; then
10066 cat > conftest.$ac_ext <<EOF
10067 #line 10068 "configure"
10068 #include "confdefs.h"
10069 #include <unistd.h>
10071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10072 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10074 ac_cv_type_getgroups=gid_t
10077 ac_cv_type_getgroups=int
10084 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
10085 cat >> confdefs.h <<EOF
10086 #define GETGROUPS_T $ac_cv_type_getgroups
10089 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10090 echo "configure:10091: checking for ANSI C header files" >&5
10091 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10092 echo $ac_n "(cached) $ac_c" 1>&6
10094 cat > conftest.$ac_ext <<EOF
10095 #line 10096 "configure"
10096 #include "confdefs.h"
10097 #include <stdlib.h>
10098 #include <stdarg.h>
10099 #include <string.h>
10102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10103 { (eval echo configure:10104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10105 if test -z "$ac_err"; then
10107 ac_cv_header_stdc=yes
10110 echo "configure: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10113 ac_cv_header_stdc=no
10117 if test $ac_cv_header_stdc = yes; then
10118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10119 cat > conftest.$ac_ext <<EOF
10120 #line 10121 "configure"
10121 #include "confdefs.h"
10122 #include <string.h>
10124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10125 egrep "memchr" >/dev/null 2>&1; then
10129 ac_cv_header_stdc=no
10135 if test $ac_cv_header_stdc = yes; then
10136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10137 cat > conftest.$ac_ext <<EOF
10138 #line 10139 "configure"
10139 #include "confdefs.h"
10140 #include <stdlib.h>
10142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10143 egrep "free" >/dev/null 2>&1; then
10147 ac_cv_header_stdc=no
10153 if test $ac_cv_header_stdc = yes; then
10154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10155 if test "$cross_compiling" = yes; then
10158 cat > conftest.$ac_ext <<EOF
10159 #line 10160 "configure"
10160 #include "confdefs.h"
10162 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10163 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10164 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10165 int main () { int i; for (i = 0; i < 256; i++)
10166 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10170 if { (eval echo configure:10171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10174 echo "configure: failed program was:" >&5
10175 cat conftest.$ac_ext >&5
10177 ac_cv_header_stdc=no
10185 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10186 if test $ac_cv_header_stdc = yes; then
10187 cat >> confdefs.h <<\EOF
10188 #define STDC_HEADERS 1
10193 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10194 echo "configure:10195: checking for mode_t" >&5
10195 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
10196 echo $ac_n "(cached) $ac_c" 1>&6
10198 cat > conftest.$ac_ext <<EOF
10199 #line 10200 "configure"
10200 #include "confdefs.h"
10201 #include <sys/types.h>
10203 #include <stdlib.h>
10204 #include <stddef.h>
10207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10208 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10210 ac_cv_type_mode_t=yes
10213 ac_cv_type_mode_t=no
10218 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
10219 if test $ac_cv_type_mode_t = no; then
10220 cat >> confdefs.h <<\EOF
10226 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10227 echo "configure:10228: checking for off_t" >&5
10228 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
10229 echo $ac_n "(cached) $ac_c" 1>&6
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10234 #include <sys/types.h>
10236 #include <stdlib.h>
10237 #include <stddef.h>
10240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10241 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10243 ac_cv_type_off_t=yes
10246 ac_cv_type_off_t=no
10251 echo "$ac_t""$ac_cv_type_off_t" 1>&6
10252 if test $ac_cv_type_off_t = no; then
10253 cat >> confdefs.h <<\EOF
10259 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10260 echo "configure:10261: checking for pid_t" >&5
10261 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
10262 echo $ac_n "(cached) $ac_c" 1>&6
10264 cat > conftest.$ac_ext <<EOF
10265 #line 10266 "configure"
10266 #include "confdefs.h"
10267 #include <sys/types.h>
10269 #include <stdlib.h>
10270 #include <stddef.h>
10273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10274 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10276 ac_cv_type_pid_t=yes
10279 ac_cv_type_pid_t=no
10284 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10285 if test $ac_cv_type_pid_t = no; then
10286 cat >> confdefs.h <<\EOF
10292 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10293 echo "configure:10294: checking for ptrdiff_t" >&5
10294 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10295 echo $ac_n "(cached) $ac_c" 1>&6
10297 cat > conftest.$ac_ext <<EOF
10298 #line 10299 "configure"
10299 #include "confdefs.h"
10300 #include <stddef.h>
10305 if { (eval echo configure:10306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10307 am_cv_type_ptrdiff_t=yes
10309 echo "configure: failed program was:" >&5
10310 cat conftest.$ac_ext >&5
10312 am_cv_type_ptrdiff_t=no
10317 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10318 if test $am_cv_type_ptrdiff_t = yes; then
10319 cat >> confdefs.h <<\EOF
10320 #define HAVE_PTRDIFF_T 1
10325 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10326 echo "configure:10327: checking return type of signal handlers" >&5
10327 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10328 echo $ac_n "(cached) $ac_c" 1>&6
10330 cat > conftest.$ac_ext <<EOF
10331 #line 10332 "configure"
10332 #include "confdefs.h"
10333 #include <sys/types.h>
10334 #include <signal.h>
10339 extern "C" void (*signal (int, void (*)(int)))(int);
10341 void (*signal ()) ();
10348 if { (eval echo configure:10349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10350 ac_cv_type_signal=void
10352 echo "configure: failed program was:" >&5
10353 cat conftest.$ac_ext >&5
10355 ac_cv_type_signal=int
10360 echo "$ac_t""$ac_cv_type_signal" 1>&6
10361 cat >> confdefs.h <<EOF
10362 #define RETSIGTYPE $ac_cv_type_signal
10366 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10367 echo "configure:10368: checking for sig_atomic_t" >&5
10368 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10369 echo $ac_n "(cached) $ac_c" 1>&6
10371 cat > conftest.$ac_ext <<EOF
10372 #line 10373 "configure"
10373 #include "confdefs.h"
10374 #include <signal.h>
10376 sig_atomic_t atomic;
10379 if { (eval echo configure:10380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10381 ol_cv_type_sig_atomic_t=yes
10383 echo "configure: failed program was:" >&5
10384 cat conftest.$ac_ext >&5
10386 ol_cv_type_sig_atomic_t=no
10391 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10392 if test $ol_cv_type_sig_atomic_t = no; then
10393 cat >> confdefs.h <<\EOF
10394 #define sig_atomic_t int
10399 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10400 echo "configure:10401: checking for size_t" >&5
10401 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10402 echo $ac_n "(cached) $ac_c" 1>&6
10404 cat > conftest.$ac_ext <<EOF
10405 #line 10406 "configure"
10406 #include "confdefs.h"
10407 #include <sys/types.h>
10409 #include <stdlib.h>
10410 #include <stddef.h>
10413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10414 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10416 ac_cv_type_size_t=yes
10419 ac_cv_type_size_t=no
10424 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10425 if test $ac_cv_type_size_t = no; then
10426 cat >> confdefs.h <<\EOF
10427 #define size_t unsigned
10432 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10433 echo "configure:10434: checking for st_blksize in struct stat" >&5
10434 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
10437 cat > conftest.$ac_ext <<EOF
10438 #line 10439 "configure"
10439 #include "confdefs.h"
10440 #include <sys/types.h>
10441 #include <sys/stat.h>
10443 struct stat s; s.st_blksize;
10446 if { (eval echo configure:10447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10448 ac_cv_struct_st_blksize=yes
10450 echo "configure: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10453 ac_cv_struct_st_blksize=no
10458 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10459 if test $ac_cv_struct_st_blksize = yes; then
10460 cat >> confdefs.h <<\EOF
10461 #define HAVE_ST_BLKSIZE 1
10466 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10467 echo "configure:10468: checking whether time.h and sys/time.h may both be included" >&5
10468 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10469 echo $ac_n "(cached) $ac_c" 1>&6
10471 cat > conftest.$ac_ext <<EOF
10472 #line 10473 "configure"
10473 #include "confdefs.h"
10474 #include <sys/types.h>
10475 #include <sys/time.h>
10481 if { (eval echo configure:10482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10483 ac_cv_header_time=yes
10485 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10488 ac_cv_header_time=no
10493 echo "$ac_t""$ac_cv_header_time" 1>&6
10494 if test $ac_cv_header_time = yes; then
10495 cat >> confdefs.h <<\EOF
10496 #define TIME_WITH_SYS_TIME 1
10501 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10502 echo "configure:10503: checking whether struct tm is in sys/time.h or time.h" >&5
10503 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10504 echo $ac_n "(cached) $ac_c" 1>&6
10506 cat > conftest.$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10509 #include <sys/types.h>
10512 struct tm *tp; tp->tm_sec;
10515 if { (eval echo configure:10516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10517 ac_cv_struct_tm=time.h
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10522 ac_cv_struct_tm=sys/time.h
10527 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10528 if test $ac_cv_struct_tm = sys/time.h; then
10529 cat >> confdefs.h <<\EOF
10530 #define TM_IN_SYS_TIME 1
10535 # test for pw_gecos in struct passwd
10536 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10537 echo "configure:10538: checking struct passwd for pw_gecos" >&5
10538 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10539 echo $ac_n "(cached) $ac_c" 1>&6
10542 cat > conftest.$ac_ext <<EOF
10543 #line 10544 "configure"
10544 #include "confdefs.h"
10549 pwd.pw_gecos = pwd.pw_name;
10553 if { (eval echo configure:10554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10555 ol_cv_struct_passwd_pw_gecos=yes
10557 echo "configure: failed program was:" >&5
10558 cat conftest.$ac_ext >&5
10560 ol_cv_struct_passwd_pw_gecos=no
10565 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10566 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10567 cat >> confdefs.h <<\EOF
10568 #define HAVE_PW_GECOS 1
10575 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10576 echo "configure:10577: checking if toupper() requires islower()" >&5
10577 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10578 echo $ac_n "(cached) $ac_c" 1>&6
10581 if test "$cross_compiling" = yes; then
10582 ol_cv_c_upper_lower=safe
10584 cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10591 if ('C' == toupper('C'))
10597 if { (eval echo configure:10598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10599 ol_cv_c_upper_lower=no
10601 echo "configure: failed program was:" >&5
10602 cat conftest.$ac_ext >&5
10604 ol_cv_c_upper_lower=yes
10611 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10612 if test $ol_cv_c_upper_lower != no ; then
10613 cat >> confdefs.h <<\EOF
10614 #define C_UPPER_LOWER 1
10619 echo $ac_n "checking for working const""... $ac_c" 1>&6
10620 echo "configure:10621: checking for working const" >&5
10621 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10624 cat > conftest.$ac_ext <<EOF
10625 #line 10626 "configure"
10626 #include "confdefs.h"
10630 /* Ultrix mips cc rejects this. */
10631 typedef int charset[2]; const charset x;
10632 /* SunOS 4.1.1 cc rejects this. */
10633 char const *const *ccp;
10635 /* NEC SVR4.0.2 mips cc rejects this. */
10636 struct point {int x, y;};
10637 static struct point const zero = {0,0};
10638 /* AIX XL C 1.02.0.0 rejects this.
10639 It does not let you subtract one const X* pointer from another in an arm
10640 of an if-expression whose if-part is not a constant expression */
10641 const char *g = "string";
10642 ccp = &g + (g ? g-g : 0);
10643 /* HPUX 7.0 cc rejects these. */
10646 ccp = (char const *const *) p;
10647 { /* SCO 3.2v4 cc rejects this. */
10649 char const *s = 0 ? (char *) 0 : (char const *) 0;
10653 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10654 int x[] = {25, 17};
10655 const int *foo = &x[0];
10658 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10659 typedef const int *iptr;
10663 { /* AIX XL C 1.02.0.0 rejects this saying
10664 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10665 struct s { int j; const int *ap[3]; };
10666 struct s *b; b->j = 5;
10668 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10669 const int foo = 10;
10674 if { (eval echo configure:10675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10678 echo "configure: failed program was:" >&5
10679 cat conftest.$ac_ext >&5
10686 echo "$ac_t""$ac_cv_c_const" 1>&6
10687 if test $ac_cv_c_const = no; then
10688 cat >> confdefs.h <<\EOF
10694 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10695 echo "configure:10696: checking if compiler understands volatile" >&5
10696 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10697 echo $ac_n "(cached) $ac_c" 1>&6
10699 cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10704 volatile int a; int * volatile b = x ? &y : &z;
10705 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10709 if { (eval echo configure:10710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10711 ol_cv_c_volatile=yes
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10716 ol_cv_c_volatile=no
10721 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10722 if test $ol_cv_c_volatile = yes; then
10725 cat >> confdefs.h <<\EOF
10732 if test $cross_compiling = yes ; then
10733 cat >> confdefs.h <<\EOF
10734 #define CROSS_COMPILING 1
10738 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10739 echo "configure:10740: checking whether byte ordering is bigendian" >&5
10740 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10741 echo $ac_n "(cached) $ac_c" 1>&6
10743 ac_cv_c_bigendian=unknown
10744 # See if sys/param.h defines the BYTE_ORDER macro.
10745 cat > conftest.$ac_ext <<EOF
10746 #line 10747 "configure"
10747 #include "confdefs.h"
10748 #include <sys/types.h>
10749 #include <sys/param.h>
10752 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10753 bogus endian macros
10757 if { (eval echo configure:10758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10759 # It does; now see whether it defined to BIG_ENDIAN or not.
10760 cat > conftest.$ac_ext <<EOF
10761 #line 10762 "configure"
10762 #include "confdefs.h"
10763 #include <sys/types.h>
10764 #include <sys/param.h>
10767 #if BYTE_ORDER != BIG_ENDIAN
10772 if { (eval echo configure:10773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10774 ac_cv_c_bigendian=yes
10776 echo "configure: failed program was:" >&5
10777 cat conftest.$ac_ext >&5
10779 ac_cv_c_bigendian=no
10783 echo "configure: failed program was:" >&5
10784 cat conftest.$ac_ext >&5
10787 if test $ac_cv_c_bigendian = unknown; then
10788 if test "$cross_compiling" = yes; then
10789 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10791 cat > conftest.$ac_ext <<EOF
10792 #line 10793 "configure"
10793 #include "confdefs.h"
10795 /* Are we little or big endian? From Harbison&Steele. */
10799 char c[sizeof (long)];
10802 exit (u.c[sizeof (long) - 1] == 1);
10805 if { (eval echo configure:10806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10807 ac_cv_c_bigendian=no
10809 echo "configure: failed program was:" >&5
10810 cat conftest.$ac_ext >&5
10812 ac_cv_c_bigendian=yes
10820 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10821 if test $ac_cv_c_bigendian = yes; then
10822 cat >> confdefs.h <<\EOF
10823 #define WORDS_BIGENDIAN 1
10828 echo $ac_n "checking size of short""... $ac_c" 1>&6
10829 echo "configure:10830: checking size of short" >&5
10830 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10831 echo $ac_n "(cached) $ac_c" 1>&6
10833 if test "$cross_compiling" = yes; then
10834 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10836 cat > conftest.$ac_ext <<EOF
10837 #line 10838 "configure"
10838 #include "confdefs.h"
10842 FILE *f=fopen("conftestval", "w");
10844 fprintf(f, "%d\n", sizeof(short));
10848 if { (eval echo configure:10849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10850 ac_cv_sizeof_short=`cat conftestval`
10852 echo "configure: failed program was:" >&5
10853 cat conftest.$ac_ext >&5
10855 ac_cv_sizeof_short=0
10861 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10862 cat >> confdefs.h <<EOF
10863 #define SIZEOF_SHORT $ac_cv_sizeof_short
10867 echo $ac_n "checking size of int""... $ac_c" 1>&6
10868 echo "configure:10869: checking size of int" >&5
10869 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10870 echo $ac_n "(cached) $ac_c" 1>&6
10872 if test "$cross_compiling" = yes; then
10873 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10875 cat > conftest.$ac_ext <<EOF
10876 #line 10877 "configure"
10877 #include "confdefs.h"
10881 FILE *f=fopen("conftestval", "w");
10883 fprintf(f, "%d\n", sizeof(int));
10887 if { (eval echo configure:10888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10889 ac_cv_sizeof_int=`cat conftestval`
10891 echo "configure: failed program was:" >&5
10892 cat conftest.$ac_ext >&5
10900 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10901 cat >> confdefs.h <<EOF
10902 #define SIZEOF_INT $ac_cv_sizeof_int
10906 echo $ac_n "checking size of long""... $ac_c" 1>&6
10907 echo "configure:10908: checking size of long" >&5
10908 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10909 echo $ac_n "(cached) $ac_c" 1>&6
10911 if test "$cross_compiling" = yes; then
10912 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10914 cat > conftest.$ac_ext <<EOF
10915 #line 10916 "configure"
10916 #include "confdefs.h"
10920 FILE *f=fopen("conftestval", "w");
10922 fprintf(f, "%d\n", sizeof(long));
10926 if { (eval echo configure:10927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10928 ac_cv_sizeof_long=`cat conftestval`
10930 echo "configure: failed program was:" >&5
10931 cat conftest.$ac_ext >&5
10933 ac_cv_sizeof_long=0
10939 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10940 cat >> confdefs.h <<EOF
10941 #define SIZEOF_LONG $ac_cv_sizeof_long
10946 if test "$ac_cv_sizeof_int" -lt 4 ; then
10947 { echo "configure: error: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2; exit 1; }
10951 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10952 echo "configure:10953: checking for 8-bit clean memcmp" >&5
10953 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10954 echo $ac_n "(cached) $ac_c" 1>&6
10956 if test "$cross_compiling" = yes; then
10957 ac_cv_func_memcmp_clean=no
10959 cat > conftest.$ac_ext <<EOF
10960 #line 10961 "configure"
10961 #include "confdefs.h"
10965 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10966 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10970 if { (eval echo configure:10971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10972 ac_cv_func_memcmp_clean=yes
10974 echo "configure: failed program was:" >&5
10975 cat conftest.$ac_ext >&5
10977 ac_cv_func_memcmp_clean=no
10984 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10985 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10987 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10988 echo "configure:10989: checking for strftime" >&5
10989 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10992 cat > conftest.$ac_ext <<EOF
10993 #line 10994 "configure"
10994 #include "confdefs.h"
10995 /* System header to define __stub macros and hopefully few prototypes,
10996 which can conflict with char strftime(); below. */
10997 #include <assert.h>
10998 /* Override any gcc2 internal prototype to avoid an error. */
10999 /* We use char because int might match the return type of a gcc2
11000 builtin and then its argument prototype would still apply. */
11005 /* The GNU C library defines this for functions which it implements
11006 to always fail with ENOSYS. Some functions are actually named
11007 something starting with __ and the normal name is an alias. */
11008 #if defined (__stub_strftime) || defined (__stub___strftime)
11016 if { (eval echo configure:11017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11018 eval "ac_cv_func_strftime=yes"
11020 echo "configure: failed program was:" >&5
11021 cat conftest.$ac_ext >&5
11023 eval "ac_cv_func_strftime=no"
11028 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
11029 echo "$ac_t""yes" 1>&6
11030 cat >> confdefs.h <<\EOF
11031 #define HAVE_STRFTIME 1
11035 echo "$ac_t""no" 1>&6
11036 # strftime is in -lintl on SCO UNIX.
11037 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
11038 echo "configure:11039: checking for strftime in -lintl" >&5
11039 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
11040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11041 echo $ac_n "(cached) $ac_c" 1>&6
11043 ac_save_LIBS="$LIBS"
11044 LIBS="-lintl $LIBS"
11045 cat > conftest.$ac_ext <<EOF
11046 #line 11047 "configure"
11047 #include "confdefs.h"
11048 /* Override any gcc2 internal prototype to avoid an error. */
11049 /* We use char because int might match the return type of a gcc2
11050 builtin and then its argument prototype would still apply. */
11057 if { (eval echo configure:11058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11059 eval "ac_cv_lib_$ac_lib_var=yes"
11061 echo "configure: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11064 eval "ac_cv_lib_$ac_lib_var=no"
11067 LIBS="$ac_save_LIBS"
11070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11071 echo "$ac_t""yes" 1>&6
11072 cat >> confdefs.h <<\EOF
11073 #define HAVE_STRFTIME 1
11076 LIBS="-lintl $LIBS"
11078 echo "$ac_t""no" 1>&6
11084 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
11085 echo "configure:11086: checking for vprintf" >&5
11086 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
11087 echo $ac_n "(cached) $ac_c" 1>&6
11089 cat > conftest.$ac_ext <<EOF
11090 #line 11091 "configure"
11091 #include "confdefs.h"
11092 /* System header to define __stub macros and hopefully few prototypes,
11093 which can conflict with char vprintf(); below. */
11094 #include <assert.h>
11095 /* Override any gcc2 internal prototype to avoid an error. */
11096 /* We use char because int might match the return type of a gcc2
11097 builtin and then its argument prototype would still apply. */
11102 /* The GNU C library defines this for functions which it implements
11103 to always fail with ENOSYS. Some functions are actually named
11104 something starting with __ and the normal name is an alias. */
11105 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11113 if { (eval echo configure:11114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11115 eval "ac_cv_func_vprintf=yes"
11117 echo "configure: failed program was:" >&5
11118 cat conftest.$ac_ext >&5
11120 eval "ac_cv_func_vprintf=no"
11125 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11126 echo "$ac_t""yes" 1>&6
11127 cat >> confdefs.h <<\EOF
11128 #define HAVE_VPRINTF 1
11132 echo "$ac_t""no" 1>&6
11135 if test "$ac_cv_func_vprintf" != yes; then
11136 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11137 echo "configure:11138: checking for _doprnt" >&5
11138 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
11139 echo $ac_n "(cached) $ac_c" 1>&6
11141 cat > conftest.$ac_ext <<EOF
11142 #line 11143 "configure"
11143 #include "confdefs.h"
11144 /* System header to define __stub macros and hopefully few prototypes,
11145 which can conflict with char _doprnt(); below. */
11146 #include <assert.h>
11147 /* Override any gcc2 internal prototype to avoid an error. */
11148 /* We use char because int might match the return type of a gcc2
11149 builtin and then its argument prototype would still apply. */
11154 /* The GNU C library defines this for functions which it implements
11155 to always fail with ENOSYS. Some functions are actually named
11156 something starting with __ and the normal name is an alias. */
11157 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11165 if { (eval echo configure:11166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11167 eval "ac_cv_func__doprnt=yes"
11169 echo "configure: failed program was:" >&5
11170 cat conftest.$ac_ext >&5
11172 eval "ac_cv_func__doprnt=no"
11177 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11178 echo "$ac_t""yes" 1>&6
11179 cat >> confdefs.h <<\EOF
11180 #define HAVE_DOPRNT 1
11184 echo "$ac_t""no" 1>&6
11190 if test $ac_cv_func_vprintf = yes ; then
11191 for ac_func in vsnprintf vsprintf
11193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11194 echo "configure:11195: checking for $ac_func" >&5
11195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11201 /* System header to define __stub macros and hopefully few prototypes,
11202 which can conflict with char $ac_func(); below. */
11203 #include <assert.h>
11204 /* Override any gcc2 internal prototype to avoid an error. */
11205 /* We use char because int might match the return type of a gcc2
11206 builtin and then its argument prototype would still apply. */
11211 /* The GNU C library defines this for functions which it implements
11212 to always fail with ENOSYS. Some functions are actually named
11213 something starting with __ and the normal name is an alias. */
11214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11222 if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11224 eval "ac_cv_func_$ac_func=yes"
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11229 eval "ac_cv_func_$ac_func=no"
11234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11235 echo "$ac_t""yes" 1>&6
11236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11237 cat >> confdefs.h <<EOF
11238 #define $ac_tr_func 1
11242 echo "$ac_t""no" 1>&6
11290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11291 echo "configure:11292: checking for $ac_func" >&5
11292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11295 cat > conftest.$ac_ext <<EOF
11296 #line 11297 "configure"
11297 #include "confdefs.h"
11298 /* System header to define __stub macros and hopefully few prototypes,
11299 which can conflict with char $ac_func(); below. */
11300 #include <assert.h>
11301 /* Override any gcc2 internal prototype to avoid an error. */
11302 /* We use char because int might match the return type of a gcc2
11303 builtin and then its argument prototype would still apply. */
11308 /* The GNU C library defines this for functions which it implements
11309 to always fail with ENOSYS. Some functions are actually named
11310 something starting with __ and the normal name is an alias. */
11311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11319 if { (eval echo configure:11320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11321 eval "ac_cv_func_$ac_func=yes"
11323 echo "configure: failed program was:" >&5
11324 cat conftest.$ac_ext >&5
11326 eval "ac_cv_func_$ac_func=no"
11331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11332 echo "$ac_t""yes" 1>&6
11333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11334 cat >> confdefs.h <<EOF
11335 #define $ac_tr_func 1
11339 echo "$ac_t""no" 1>&6
11344 for ac_func in getopt tempnam
11346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11347 echo "configure:11348: checking for $ac_func" >&5
11348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11349 echo $ac_n "(cached) $ac_c" 1>&6
11351 cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 /* System header to define __stub macros and hopefully few prototypes,
11355 which can conflict with char $ac_func(); below. */
11356 #include <assert.h>
11357 /* Override any gcc2 internal prototype to avoid an error. */
11358 /* We use char because int might match the return type of a gcc2
11359 builtin and then its argument prototype would still apply. */
11364 /* The GNU C library defines this for functions which it implements
11365 to always fail with ENOSYS. Some functions are actually named
11366 something starting with __ and the normal name is an alias. */
11367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11375 if { (eval echo configure:11376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11377 eval "ac_cv_func_$ac_func=yes"
11379 echo "configure: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11382 eval "ac_cv_func_$ac_func=no"
11387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11388 echo "$ac_t""yes" 1>&6
11389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11390 cat >> confdefs.h <<EOF
11391 #define $ac_tr_func 1
11395 echo "$ac_t""no" 1>&6
11396 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11402 # Check Configuration
11404 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11405 echo "configure:11406: checking declaration of sys_errlist" >&5
11406 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11407 echo $ac_n "(cached) $ac_c" 1>&6
11410 cat > conftest.$ac_ext <<EOF
11411 #line 11412 "configure"
11412 #include "confdefs.h"
11415 #include <sys/types.h>
11418 char *c = (char *) *sys_errlist
11421 if { (eval echo configure:11422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11423 ol_cv_dcl_sys_errlist=yes
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11428 ol_cv_dcl_sys_errlist=no
11433 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11434 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11435 if test $ol_cv_dcl_sys_errlist = no ; then
11436 cat >> confdefs.h <<\EOF
11437 #define DECL_SYS_ERRLIST 1
11440 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11441 echo "configure:11442: checking existence of sys_errlist" >&5
11442 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11443 echo $ac_n "(cached) $ac_c" 1>&6
11446 cat > conftest.$ac_ext <<EOF
11447 #line 11448 "configure"
11448 #include "confdefs.h"
11451 char *c = (char *) *sys_errlist
11454 if { (eval echo configure:11455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11456 ol_cv_have_sys_errlist=yes
11458 echo "configure: failed program was:" >&5
11459 cat conftest.$ac_ext >&5
11461 ol_cv_have_sys_errlist=no
11466 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11467 if test $ol_cv_have_sys_errlist = yes ; then
11468 cat >> confdefs.h <<\EOF
11469 #define HAVE_SYS_ERRLIST 1
11477 if test "$ol_enable_debug" != no ; then
11478 cat >> confdefs.h <<\EOF
11479 #define LDAP_DEBUG 1
11483 if test "$ol_enable_syslog" = yes ; then
11484 cat >> confdefs.h <<\EOF
11485 #define LDAP_SYSLOG 1
11489 if test "$ol_enable_libui" = yes ; then
11490 cat >> confdefs.h <<\EOF
11491 #define LDAP_LIBUI 1
11495 if test "$ol_enable_cache" = no ; then
11496 cat >> confdefs.h <<\EOF
11497 #define LDAP_NOCACHE 1
11501 if test "$ol_enable_dns" != no ; then
11502 cat >> confdefs.h <<\EOF
11503 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11507 if test "$ol_enable_proctitle" != no ; then
11508 cat >> confdefs.h <<\EOF
11509 #define LDAP_PROCTITLE 1
11513 if test "$ol_enable_referrals" != no ; then
11514 cat >> confdefs.h <<\EOF
11515 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11519 if test "$ol_enable_cldap" != no ; then
11520 cat >> confdefs.h <<\EOF
11521 #define LDAP_CONNECTIONLESS 1
11526 if test "$ol_enable_aclgroups" != no ; then
11527 cat >> confdefs.h <<\EOF
11528 #define SLAPD_ACLGROUPS 1
11532 if test "$ol_enable_crypt" != no ; then
11533 cat >> confdefs.h <<\EOF
11534 #define SLAPD_CRYPT 1
11538 if test "$ol_enable_cleartext" != no ; then
11539 cat >> confdefs.h <<\EOF
11540 #define SLAPD_CLEARTEXT 1
11544 if test "$ol_enable_phonetic" != no ; then
11545 cat >> confdefs.h <<\EOF
11546 #define SLAPD_PHONETIC 1
11550 if test "$ol_enable_rlookups" != no ; then
11551 cat >> confdefs.h <<\EOF
11552 #define SLAPD_RLOOKUPS 1
11557 if test "$ol_link_modules" != no ; then
11558 cat >> confdefs.h <<\EOF
11559 #define SLAPD_MODULES 1
11565 if test "$ol_link_bdb2" != no ; then
11566 cat >> confdefs.h <<\EOF
11567 #define SLAPD_BDB2 1
11574 if test "$ol_enable_ldap" != no ; then
11575 cat >> confdefs.h <<\EOF
11576 #define SLAPD_LDAP 1
11583 if test "$ol_link_ldbm" != no ; then
11584 cat >> confdefs.h <<\EOF
11585 #define SLAPD_LDBM 1
11592 if test "$ol_enable_passwd" != no ; then
11593 cat >> confdefs.h <<\EOF
11594 #define SLAPD_PASSWD 1
11601 if test "$ol_link_perl" != no ; then
11602 cat >> confdefs.h <<\EOF
11603 #define SLAPD_PERL 1
11610 if test "$ol_enable_shell" != no ; then
11611 cat >> confdefs.h <<\EOF
11612 #define SLAPD_SHELL 1
11619 if test "$ol_enable_tcl" != no ; then
11620 cat >> confdefs.h <<\EOF
11621 #define SLAPD_TCL 1
11628 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11629 $BUILD_SLAPD = yes ; then
11633 if test "$ol_link_isode" != no ; then
11671 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11673 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11674 # Let make expand exec_prefix.
11675 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11677 # Any assignment to VPATH causes Sun make to only execute
11678 # the first set of double-colon rules, so remove it if not needed.
11679 # If there is a colon in the path, we need to keep it.
11680 if test "x$srcdir" = x.; then
11681 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11684 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11686 DEFS=-DHAVE_CONFIG_H
11688 # Without the "./", some shells look in PATH for config.status.
11689 : ${CONFIG_STATUS=./config.status}
11691 echo creating $CONFIG_STATUS
11692 rm -f $CONFIG_STATUS
11693 cat > $CONFIG_STATUS <<EOF
11695 # Generated automatically by configure.
11696 # Run this file to recreate the current configuration.
11697 # This directory was configured as follows,
11698 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11700 # $0 $ac_configure_args
11702 # Compiler output produced by configure, useful for debugging
11703 # configure, is in ./config.log if it exists.
11705 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11708 case "\$ac_option" in
11709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11710 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11711 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11712 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11713 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11715 -help | --help | --hel | --he | --h)
11716 echo "\$ac_cs_usage"; exit 0 ;;
11717 *) echo "\$ac_cs_usage"; exit 1 ;;
11721 ac_given_srcdir=$srcdir
11722 ac_given_INSTALL="$INSTALL"
11724 trap 'rm -fr `echo "\
11725 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11726 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11727 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11728 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11729 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11730 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11731 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11732 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11733 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11734 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11735 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11736 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11737 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11738 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11739 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11740 include/Makefile:build/top.mk:include/Makefile.in \
11741 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11742 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11743 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11744 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11745 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11746 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11747 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11748 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11749 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11750 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11751 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11752 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11753 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11754 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11755 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11756 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11757 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11758 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11759 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11760 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11761 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11762 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11763 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11764 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11765 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11766 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11767 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11769 cat >> $CONFIG_STATUS <<EOF
11771 # Protect against being on the right side of a sed subst in config.status.
11772 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11773 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11777 s%@CFLAGS@%$CFLAGS%g
11778 s%@CPPFLAGS@%$CPPFLAGS%g
11779 s%@CXXFLAGS@%$CXXFLAGS%g
11780 s%@FFLAGS@%$FFLAGS%g
11782 s%@LDFLAGS@%$LDFLAGS%g
11784 s%@exec_prefix@%$exec_prefix%g
11785 s%@prefix@%$prefix%g
11786 s%@program_transform_name@%$program_transform_name%g
11787 s%@bindir@%$bindir%g
11788 s%@sbindir@%$sbindir%g
11789 s%@libexecdir@%$libexecdir%g
11790 s%@datadir@%$datadir%g
11791 s%@sysconfdir@%$sysconfdir%g
11792 s%@sharedstatedir@%$sharedstatedir%g
11793 s%@localstatedir@%$localstatedir%g
11794 s%@libdir@%$libdir%g
11795 s%@includedir@%$includedir%g
11796 s%@oldincludedir@%$oldincludedir%g
11797 s%@infodir@%$infodir%g
11798 s%@mandir@%$mandir%g
11799 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11800 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11801 s%@INSTALL_DATA@%$INSTALL_DATA%g
11802 s%@PACKAGE@%$PACKAGE%g
11803 s%@VERSION@%$VERSION%g
11804 s%@ACLOCAL@%$ACLOCAL%g
11805 s%@AUTOCONF@%$AUTOCONF%g
11806 s%@AUTOMAKE@%$AUTOMAKE%g
11807 s%@AUTOHEADER@%$AUTOHEADER%g
11808 s%@MAKEINFO@%$MAKEINFO%g
11809 s%@SET_MAKE@%$SET_MAKE%g
11810 s%@top_builddir@%$top_builddir%g
11811 s%@ldap_subdir@%$ldap_subdir%g
11814 s%@host_alias@%$host_alias%g
11815 s%@host_cpu@%$host_cpu%g
11816 s%@host_vendor@%$host_vendor%g
11817 s%@host_os@%$host_os%g
11818 s%@RANLIB@%$RANLIB%g
11822 s%@LIBTOOL@%$LIBTOOL%g
11825 s%@SENDMAIL@%$SENDMAIL%g
11826 s%@EDITOR@%$EDITOR%g
11827 s%@FINGER@%$FINGER%g
11828 s%@GLIBCONFIG@%$GLIBCONFIG%g
11829 s%@PERLBIN@%$PERLBIN%g
11831 s%@EXEEXT@%$EXEEXT%g
11832 s%@OBJEXT@%$OBJEXT%g
11833 s%@OL_MKDEP@%$OL_MKDEP%g
11834 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
11836 s%@LIBOBJS@%$LIBOBJS%g
11837 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11838 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11839 s%@BUILD_BDB2@%$BUILD_BDB2%g
11840 s%@BUILD_LDAP@%$BUILD_LDAP%g
11841 s%@BUILD_LDBM@%$BUILD_LDBM%g
11842 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11843 s%@BUILD_PERL@%$BUILD_PERL%g
11844 s%@BUILD_SHELL@%$BUILD_SHELL%g
11845 s%@BUILD_TCL@%$BUILD_TCL%g
11846 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11847 s%@LDAP_LIBS@%$LDAP_LIBS%g
11848 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11849 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11850 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11851 s%@LDBM_LIBS@%$LDBM_LIBS%g
11852 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11853 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11854 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
11855 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
11856 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11857 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11858 s%@KRB_LIBS@%$KRB_LIBS%g
11859 s%@READLINE_LIBS@%$READLINE_LIBS%g
11860 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11861 s%@TLS_LIBS@%$TLS_LIBS%g
11866 cat >> $CONFIG_STATUS <<\EOF
11868 # Split the substitutions into bite-sized pieces for seds with
11869 # small command number limits, like on Digital OSF/1 and HP-UX.
11870 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11871 ac_file=1 # Number of current file.
11872 ac_beg=1 # First line for current file.
11873 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11876 while $ac_more_lines; do
11877 if test $ac_beg -gt 1; then
11878 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11880 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11882 if test ! -s conftest.s$ac_file; then
11883 ac_more_lines=false
11884 rm -f conftest.s$ac_file
11886 if test -z "$ac_sed_cmds"; then
11887 ac_sed_cmds="sed -f conftest.s$ac_file"
11889 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11891 ac_file=`expr $ac_file + 1`
11893 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11896 if test -z "$ac_sed_cmds"; then
11901 cat >> $CONFIG_STATUS <<EOF
11903 CONFIG_FILES=\${CONFIG_FILES-"\
11904 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11905 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11906 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11907 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11908 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11909 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11910 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11911 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11912 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11913 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11914 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11915 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11916 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11917 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11918 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11919 include/Makefile:build/top.mk:include/Makefile.in \
11920 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11921 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11922 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11923 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11924 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11925 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11926 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11927 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11928 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11929 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11930 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11931 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11932 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11933 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11934 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11935 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11936 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11937 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11938 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11939 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11940 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11941 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11942 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11943 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11944 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11945 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11948 cat >> $CONFIG_STATUS <<\EOF
11949 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11950 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11952 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11953 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11954 *) ac_file_in="${ac_file}.in" ;;
11957 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11959 # Remove last slash and all that follows it. Not all systems have dirname.
11960 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11961 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11962 # The file is in a subdirectory.
11963 test ! -d "$ac_dir" && mkdir "$ac_dir"
11964 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11965 # A "../" for each directory in $ac_dir_suffix.
11966 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11968 ac_dir_suffix= ac_dots=
11971 case "$ac_given_srcdir" in
11973 if test -z "$ac_dots"; then top_srcdir=.
11974 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11975 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11976 *) # Relative path.
11977 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11978 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11981 case "$ac_given_INSTALL" in
11982 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11983 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11986 echo creating "$ac_file"
11988 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11990 *Makefile*) ac_comsub="1i\\
11991 # $configure_input" ;;
11995 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11997 s%@configure_input@%$configure_input%g
11998 s%@srcdir@%$srcdir%g
11999 s%@top_srcdir@%$top_srcdir%g
12000 s%@INSTALL@%$INSTALL%g
12001 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12005 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12006 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12008 # ac_d sets the value in "#define NAME VALUE" lines.
12009 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12010 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12013 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12014 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12015 ac_uB='\([ ]\)%\1#\2define\3'
12018 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12019 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12020 ac_eB='$%\1#\2define\3'
12024 if test "${CONFIG_HEADERS+set}" != set; then
12026 cat >> $CONFIG_STATUS <<EOF
12027 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
12029 cat >> $CONFIG_STATUS <<\EOF
12031 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12034 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12035 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12036 *) ac_file_in="${ac_file}.in" ;;
12039 echo creating $ac_file
12041 rm -f conftest.frag conftest.in conftest.out
12042 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12043 cat $ac_file_inputs > conftest.in
12047 # Transform confdefs.h into a sed script conftest.vals that substitutes
12048 # the proper values into config.h.in to produce config.h. And first:
12049 # Protect against being on the right side of a sed subst in config.status.
12050 # Protect against being in an unquoted here document in config.status.
12051 rm -f conftest.vals
12052 cat > conftest.hdr <<\EOF
12055 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12059 sed -n -f conftest.hdr confdefs.h > conftest.vals
12062 # This sed command replaces #undef with comments. This is necessary, for
12063 # example, in the case of _POSIX_SOURCE, which is predefined and required
12064 # on some systems where configure will not decide to define it.
12065 cat >> conftest.vals <<\EOF
12066 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12069 # Break up conftest.vals because some shells have a limit on
12070 # the size of here documents, and old seds have small limits too.
12072 rm -f conftest.tail
12075 ac_lines=`grep -c . conftest.vals`
12076 # grep -c gives empty output for an empty file on some AIX systems.
12077 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12078 # Write a limited-size here document to conftest.frag.
12079 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12080 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12082 sed -f conftest.frag conftest.in > conftest.out
12084 mv conftest.out conftest.in
12085 ' >> $CONFIG_STATUS
12086 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12087 rm -f conftest.vals
12088 mv conftest.tail conftest.vals
12090 rm -f conftest.vals
12092 cat >> $CONFIG_STATUS <<\EOF
12093 rm -f conftest.frag conftest.h
12094 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12095 cat conftest.in >> conftest.h
12097 if cmp -s $ac_file conftest.h 2>/dev/null; then
12098 echo "$ac_file is unchanged"
12101 # Remove last slash and all that follows it. Not all systems have dirname.
12102 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12103 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12104 # The file is in a subdirectory.
12105 test ! -d "$ac_dir" && mkdir "$ac_dir"
12108 mv conftest.h $ac_file
12113 cat >> $CONFIG_STATUS <<EOF
12116 cat >> $CONFIG_STATUS <<\EOF
12119 echo Please \"make depend\" to build dependencies
12123 chmod +x $CONFIG_STATUS
12124 rm -fr confdefs* $ac_clean_files
12125 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1