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-proctitle enable proctitle support (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable V2 DNS extension (no)"
26 --enable-referrals enable V2 Referrals extension (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --enable-dmalloc enable debug malloc support (no)"
34 --with-kerberos use Kerberos (auto)"
36 --with-threads use threads (auto)"
38 --with-yielding-select with implicitly yielding select (auto)"
42 --enable-ldapd enable building ldapd (no)"
46 --enable-slapd enable building slapd (yes)"
48 --enable-aclgroups enable ACL group support (auto)"
50 --enable-cleartext enable cleartext passwords (yes)"
52 --enable-crypt enable crypt(3) passwords (auto)"
54 --enable-wrappers enable tcp wrapper support (no)"
56 --enable-phonetic enable phonetic/soundex (no)"
58 --enable-rlookups enable reverse lookups (auto)"
60 --enable-bdb2 enable bdb2 backend (no)"
62 --enable-ldbm enable ldbm backend (yes)"
64 --with-ldbm-api use LDBM API (auto)"
66 --with-ldbm-type use LDBM type (auto)"
68 --enable-passwd enable passwd backend (no)"
70 --enable-perl enable perl backend (no)"
72 --enable-shell enable shell backend (no)"
76 --enable-slurpd enable building slurpd (auto)"
78 Library Generation & Linking Options"
80 --enable-static build static libraries [default=yes]
81 --enable-static=PKGS only build shared libraries if the current package
82 appears as an element in the PKGS list"
84 --enable-shared build shared libraries [default=yes]
85 --enable-shared=PKGS only build shared libraries if the current package
86 appears as an element in the PKGS list"
88 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
94 cache_file=./config.cache
103 program_transform_name=s,x,x,
111 bindir='${exec_prefix}/bin'
112 sbindir='${exec_prefix}/sbin'
113 libexecdir='${exec_prefix}/libexec'
114 datadir='${prefix}/share'
115 sysconfdir='${prefix}/etc'
116 sharedstatedir='${prefix}/com'
117 localstatedir='${prefix}/var'
118 libdir='${exec_prefix}/lib'
119 includedir='${prefix}/include'
120 oldincludedir='/usr/include'
121 infodir='${prefix}/info'
122 mandir='${prefix}/man'
124 # Initialize some other variables.
127 SHELL=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
135 # If the previous option needs an argument, assign it.
136 if test -n "$ac_prev"; then
137 eval "$ac_prev=\$ac_option"
143 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
147 # Accept the important Cygnus configure options, so we can diagnose typos.
151 -bindir | --bindir | --bindi | --bind | --bin | --bi)
153 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
154 bindir="$ac_optarg" ;;
156 -build | --build | --buil | --bui | --bu)
158 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
159 build="$ac_optarg" ;;
161 -cache-file | --cache-file | --cache-fil | --cache-fi \
162 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
163 ac_prev=cache_file ;;
164 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
165 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
166 cache_file="$ac_optarg" ;;
168 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
170 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
172 datadir="$ac_optarg" ;;
174 -disable-* | --disable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}=no" ;;
183 -enable-* | --enable-*)
184 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
194 eval "enable_${ac_feature}='$ac_optarg'" ;;
196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
198 | --exec | --exe | --ex)
199 ac_prev=exec_prefix ;;
200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
202 | --exec=* | --exe=* | --ex=*)
203 exec_prefix="$ac_optarg" ;;
205 -gas | --gas | --ga | --g)
206 # Obsolete; use --with-gas.
209 -help | --help | --hel | --he)
210 # Omit some internal or obsolete options to make the list less imposing.
211 # This message is too long to be a string in the A/UX 3.1 sh.
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
216 --cache-file=FILE cache test results in FILE
217 --help print this message
218 --no-create do not create output files
219 --quiet, --silent do not print \`checking...' messages
220 --version print the version of autoconf that created configure
221 Directory and file names:
222 --prefix=PREFIX install architecture-independent files in PREFIX
224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
226 --bindir=DIR user executables in DIR [EPREFIX/bin]
227 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
228 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
229 --datadir=DIR read-only architecture-independent data in DIR
231 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
232 --sharedstatedir=DIR modifiable architecture-independent data in DIR
234 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
235 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
236 --includedir=DIR C header files in DIR [PREFIX/include]
237 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
238 --infodir=DIR info documentation in DIR [PREFIX/info]
239 --mandir=DIR man documentation in DIR [PREFIX/man]
240 --srcdir=DIR find the sources in DIR [configure dir or ..]
241 --program-prefix=PREFIX prepend PREFIX to installed program names
242 --program-suffix=SUFFIX append SUFFIX to installed program names
243 --program-transform-name=PROGRAM
244 run sed PROGRAM on installed program names
248 --build=BUILD configure for building on BUILD [BUILD=HOST]
249 --host=HOST configure for HOST [guessed]
250 --target=TARGET configure for TARGET [TARGET=HOST]
251 Features and packages:
252 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
253 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
254 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
255 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
256 --x-includes=DIR X include files are in DIR
257 --x-libraries=DIR X library files are in DIR
259 if test -n "$ac_help"; then
260 echo "--enable and --with options recognized:$ac_help"
264 -host | --host | --hos | --ho)
266 -host=* | --host=* | --hos=* | --ho=*)
269 -includedir | --includedir | --includedi | --included | --include \
270 | --includ | --inclu | --incl | --inc)
271 ac_prev=includedir ;;
272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273 | --includ=* | --inclu=* | --incl=* | --inc=*)
274 includedir="$ac_optarg" ;;
276 -infodir | --infodir | --infodi | --infod | --info | --inf)
278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279 infodir="$ac_optarg" ;;
281 -libdir | --libdir | --libdi | --libd)
283 -libdir=* | --libdir=* | --libdi=* | --libd=*)
284 libdir="$ac_optarg" ;;
286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287 | --libexe | --libex | --libe)
288 ac_prev=libexecdir ;;
289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290 | --libexe=* | --libex=* | --libe=*)
291 libexecdir="$ac_optarg" ;;
293 -localstatedir | --localstatedir | --localstatedi | --localstated \
294 | --localstate | --localstat | --localsta | --localst \
295 | --locals | --local | --loca | --loc | --lo)
296 ac_prev=localstatedir ;;
297 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300 localstatedir="$ac_optarg" ;;
302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305 mandir="$ac_optarg" ;;
308 # Obsolete; use --without-fp.
311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321 | --oldin | --oldi | --old | --ol | --o)
322 ac_prev=oldincludedir ;;
323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326 oldincludedir="$ac_optarg" ;;
328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331 prefix="$ac_optarg" ;;
333 -program-prefix | --program-prefix | --program-prefi | --program-pref \
334 | --program-pre | --program-pr | --program-p)
335 ac_prev=program_prefix ;;
336 -program-prefix=* | --program-prefix=* | --program-prefi=* \
337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338 program_prefix="$ac_optarg" ;;
340 -program-suffix | --program-suffix | --program-suffi | --program-suff \
341 | --program-suf | --program-su | --program-s)
342 ac_prev=program_suffix ;;
343 -program-suffix=* | --program-suffix=* | --program-suffi=* \
344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345 program_suffix="$ac_optarg" ;;
347 -program-transform-name | --program-transform-name \
348 | --program-transform-nam | --program-transform-na \
349 | --program-transform-n | --program-transform- \
350 | --program-transform | --program-transfor \
351 | --program-transfo | --program-transf \
352 | --program-trans | --program-tran \
353 | --progr-tra | --program-tr | --program-t)
354 ac_prev=program_transform_name ;;
355 -program-transform-name=* | --program-transform-name=* \
356 | --program-transform-nam=* | --program-transform-na=* \
357 | --program-transform-n=* | --program-transform-=* \
358 | --program-transform=* | --program-transfor=* \
359 | --program-transfo=* | --program-transf=* \
360 | --program-trans=* | --program-tran=* \
361 | --progr-tra=* | --program-tr=* | --program-t=*)
362 program_transform_name="$ac_optarg" ;;
364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365 | -silent | --silent | --silen | --sile | --sil)
368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
372 sbindir="$ac_optarg" ;;
374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376 | --sharedst | --shareds | --shared | --share | --shar \
378 ac_prev=sharedstatedir ;;
379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
383 sharedstatedir="$ac_optarg" ;;
385 -site | --site | --sit)
387 -site=* | --site=* | --sit=*)
390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393 srcdir="$ac_optarg" ;;
395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396 | --syscon | --sysco | --sysc | --sys | --sy)
397 ac_prev=sysconfdir ;;
398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400 sysconfdir="$ac_optarg" ;;
402 -target | --target | --targe | --targ | --tar | --ta | --t)
404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405 target="$ac_optarg" ;;
407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
410 -version | --version | --versio | --versi | --vers)
411 echo "configure generated by autoconf version 2.13"
415 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}='$ac_optarg'" ;;
427 -without-* | --without-*)
428 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}=no" ;;
437 # Obsolete; use --with-x.
440 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
441 | --x-incl | --x-inc | --x-in | --x-i)
442 ac_prev=x_includes ;;
443 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
444 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
445 x_includes="$ac_optarg" ;;
447 -x-libraries | --x-libraries | --x-librarie | --x-librari \
448 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
449 ac_prev=x_libraries ;;
450 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
451 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
452 x_libraries="$ac_optarg" ;;
454 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
458 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459 echo "configure: warning: $ac_option: invalid host type" 1>&2
461 if test "x$nonopt" != xNONE; then
462 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
470 if test -n "$ac_prev"; then
471 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
476 # File descriptor usage:
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
502 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503 | --no-cr | --no-c) ;;
504 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
505 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
508 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
513 # Only set these to C if already set. These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
518 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
520 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file=include/ldap.h
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533 ac_srcdir_defaulted=yes
534 # Try the directory containing this script, then its parent.
536 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
539 if test ! -r $srcdir/$ac_unique_file; then
543 ac_srcdir_defaulted=no
545 if test ! -r $srcdir/$ac_unique_file; then
546 if test "$ac_srcdir_defaulted" = yes; then
547 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
549 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$CONFIG_SITE"; then
556 if test "x$prefix" != xNONE; then
557 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
559 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562 for ac_site_file in $CONFIG_SITE; do
563 if test -r "$ac_site_file"; then
564 echo "loading site script $ac_site_file"
569 if test -r "$cache_file"; then
570 echo "loading cache $cache_file"
573 echo "creating cache $cache_file"
578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
579 ac_cpp='$CPP $CPPFLAGS'
580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
582 cross_compiling=$ac_cv_prog_cc_cross
586 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
587 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
595 ac_n= ac_c='\c' ac_t=
599 for ac_dir in build $srcdir/build; do
600 if test -f $ac_dir/install-sh; then
602 ac_install_sh="$ac_aux_dir/install-sh -c"
604 elif test -f $ac_dir/install.sh; then
606 ac_install_sh="$ac_aux_dir/install.sh -c"
610 if test -z "$ac_aux_dir"; then
611 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
613 ac_config_guess=$ac_aux_dir/config.guess
614 ac_config_sub=$ac_aux_dir/config.sub
615 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
616 # Find a good install program. We prefer a C program (faster),
617 # so one script is as good as another. But avoid the broken or
618 # incompatible versions:
619 # SysV /etc/install, /usr/sbin/install
620 # SunOS /usr/etc/install
623 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
624 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
625 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
626 # ./install, which can be erroneously created by make from ./install.sh.
627 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
628 echo "configure:629: checking for a BSD compatible install" >&5
629 if test -z "$INSTALL"; then
630 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
631 echo $ac_n "(cached) $ac_c" 1>&6
633 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
634 for ac_dir in $PATH; do
635 # Account for people who put trailing slashes in PATH elements.
637 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
639 # OSF1 and SCO ODT 3.0 have their own names for install.
640 # Don't use installbsd from OSF since it installs stuff as root
642 for ac_prog in ginstall scoinst install; do
643 if test -f $ac_dir/$ac_prog; then
644 if test $ac_prog = install &&
645 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
646 # AIX install. It has an incompatible calling convention.
649 ac_cv_path_install="$ac_dir/$ac_prog -c"
660 if test "${ac_cv_path_install+set}" = set; then
661 INSTALL="$ac_cv_path_install"
663 # As a last resort, use the slow shell script. We don't cache a
664 # path for INSTALL within a source directory, because that will
665 # break other packages using the cache if that directory is
666 # removed, or if the path is relative.
667 INSTALL="$ac_install_sh"
670 echo "$ac_t""$INSTALL" 1>&6
672 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
673 # It thinks the first close brace ends the variable substitution.
674 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
676 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
678 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
680 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
681 echo "configure:682: checking whether build environment is sane" >&5
684 echo timestamp > conftestfile
685 # Do `set' in a subshell so we don't clobber the current shell's
686 # arguments. Must try -L first in case configure is actually a
687 # symlink; some systems play weird games with the mod time of symlinks
688 # (eg FreeBSD returns the mod time of the symlink's containing
691 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
692 if test "$*" = "X"; then
694 set X `ls -t $srcdir/configure conftestfile`
696 if test "$*" != "X $srcdir/configure conftestfile" \
697 && test "$*" != "X conftestfile $srcdir/configure"; then
699 # If neither matched, then we have a broken ls. This can happen
700 # if, for instance, CONFIG_SHELL is bash and it inherits a
701 # broken ls alias from the environment. This has actually
702 # happened. Such a system could not be considered "sane".
703 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
704 alias in your environment" 1>&2; exit 1; }
707 test "$2" = conftestfile
713 { echo "configure: error: newly created file is older than distributed files!
714 Check your system clock" 1>&2; exit 1; }
717 echo "$ac_t""yes" 1>&6
718 if test "$program_transform_name" = s,x,x,; then
719 program_transform_name=
721 # Double any \ or $. echo might interpret backslashes.
722 cat <<\EOF_SED > conftestsed
723 s,\\,\\\\,g; s,\$,$$,g
725 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
728 test "$program_prefix" != NONE &&
729 program_transform_name="s,^,${program_prefix},; $program_transform_name"
730 # Use a double $ so make ignores it.
731 test "$program_suffix" != NONE &&
732 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
734 # sed with no file args requires a program.
735 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
737 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
738 echo "configure:739: checking whether ${MAKE-make} sets \${MAKE}" >&5
739 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
740 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
743 cat > conftestmake <<\EOF
745 @echo 'ac_maketemp="${MAKE}"'
747 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
748 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
749 if test -n "$ac_maketemp"; then
750 eval ac_cv_prog_make_${ac_make}_set=yes
752 eval ac_cv_prog_make_${ac_make}_set=no
756 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
757 echo "$ac_t""yes" 1>&6
760 echo "$ac_t""no" 1>&6
761 SET_MAKE="MAKE=${MAKE-make}"
769 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
770 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
775 missing_dir=`cd $ac_aux_dir && pwd`
776 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
777 echo "configure:778: checking for working aclocal" >&5
778 # Run test in a subshell; some versions of sh will print an error if
779 # an executable is not found, even if stderr is redirected.
780 # Redirect stdin to placate older versions of autoconf. Sigh.
781 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
783 echo "$ac_t""found" 1>&6
785 ACLOCAL="$missing_dir/missing aclocal"
786 echo "$ac_t""missing" 1>&6
789 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
790 echo "configure:791: checking for working autoconf" >&5
791 # Run test in a subshell; some versions of sh will print an error if
792 # an executable is not found, even if stderr is redirected.
793 # Redirect stdin to placate older versions of autoconf. Sigh.
794 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
796 echo "$ac_t""found" 1>&6
798 AUTOCONF="$missing_dir/missing autoconf"
799 echo "$ac_t""missing" 1>&6
802 echo $ac_n "checking for working automake""... $ac_c" 1>&6
803 echo "configure:804: checking for working automake" >&5
804 # Run test in a subshell; some versions of sh will print an error if
805 # an executable is not found, even if stderr is redirected.
806 # Redirect stdin to placate older versions of autoconf. Sigh.
807 if (automake --version) < /dev/null > /dev/null 2>&1; then
809 echo "$ac_t""found" 1>&6
811 AUTOMAKE="$missing_dir/missing automake"
812 echo "$ac_t""missing" 1>&6
815 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
816 echo "configure:817: checking for working autoheader" >&5
817 # Run test in a subshell; some versions of sh will print an error if
818 # an executable is not found, even if stderr is redirected.
819 # Redirect stdin to placate older versions of autoconf. Sigh.
820 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
821 AUTOHEADER=autoheader
822 echo "$ac_t""found" 1>&6
824 AUTOHEADER="$missing_dir/missing autoheader"
825 echo "$ac_t""missing" 1>&6
828 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
829 echo "configure:830: checking for working makeinfo" >&5
830 # Run test in a subshell; some versions of sh will print an error if
831 # an executable is not found, even if stderr is redirected.
832 # Redirect stdin to placate older versions of autoconf. Sigh.
833 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
835 echo "$ac_t""found" 1>&6
837 MAKEINFO="$missing_dir/missing makeinfo"
838 echo "$ac_t""missing" 1>&6
844 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
845 echo "configure:846: checking configure arguments" >&5
850 ldap_subdir="openldap"
852 # Check whether --with-subdir or --without-subdir was given.
853 if test "${with_subdir+set}" = set; then
854 withval="$with_subdir"
856 if test "$withval" = "no"; then
858 elif test "$withval" != "yes"; then
859 ldap_subdir="$withval"
865 # OpenLDAP --enable-debug
866 # Check whether --enable-debug or --disable-debug was given.
867 if test "${enable_debug+set}" = set; then
868 enableval="$enable_debug"
871 for ol_val in auto yes no ; do
872 if test "$enableval" = "$ol_val" ; then
876 if test "$ol_arg" = "invalid" ; then
877 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
879 ol_enable_debug="$ol_arg"
882 ol_enable_debug="yes"
886 # OpenLDAP --enable-proctitle
887 # Check whether --enable-proctitle or --disable-proctitle was given.
888 if test "${enable_proctitle+set}" = set; then
889 enableval="$enable_proctitle"
892 for ol_val in auto yes no ; do
893 if test "$enableval" = "$ol_val" ; then
897 if test "$ol_arg" = "invalid" ; then
898 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
900 ol_enable_proctitle="$ol_arg"
903 ol_enable_proctitle="yes"
905 # end --enable-proctitle
906 # OpenLDAP --enable-cache
907 # Check whether --enable-cache or --disable-cache was given.
908 if test "${enable_cache+set}" = set; then
909 enableval="$enable_cache"
912 for ol_val in auto yes no ; do
913 if test "$enableval" = "$ol_val" ; then
917 if test "$ol_arg" = "invalid" ; then
918 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
920 ol_enable_cache="$ol_arg"
923 ol_enable_cache="yes"
926 # OpenLDAP --enable-dns
927 # Check whether --enable-dns or --disable-dns was given.
928 if test "${enable_dns+set}" = set; then
929 enableval="$enable_dns"
932 for ol_val in auto yes no ; do
933 if test "$enableval" = "$ol_val" ; then
937 if test "$ol_arg" = "invalid" ; then
938 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
940 ol_enable_dns="$ol_arg"
946 # OpenLDAP --enable-referrals
947 # Check whether --enable-referrals or --disable-referrals was given.
948 if test "${enable_referrals+set}" = set; then
949 enableval="$enable_referrals"
952 for ol_val in auto yes no ; do
953 if test "$enableval" = "$ol_val" ; then
957 if test "$ol_arg" = "invalid" ; then
958 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
960 ol_enable_referrals="$ol_arg"
963 ol_enable_referrals="yes"
965 # end --enable-referrals
966 # OpenLDAP --enable-cldap
967 # Check whether --enable-cldap or --disable-cldap was given.
968 if test "${enable_cldap+set}" = set; then
969 enableval="$enable_cldap"
972 for ol_val in auto yes no ; do
973 if test "$enableval" = "$ol_val" ; then
977 if test "$ol_arg" = "invalid" ; then
978 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
980 ol_enable_cldap="$ol_arg"
986 # OpenLDAP --enable-x_compile
987 # Check whether --enable-x_compile or --disable-x_compile was given.
988 if test "${enable_x_compile+set}" = set; then
989 enableval="$enable_x_compile"
992 for ol_val in yes no ; do
993 if test "$enableval" = "$ol_val" ; then
997 if test "$ol_arg" = "invalid" ; then
998 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1000 ol_enable_x_compile="$ol_arg"
1003 ol_enable_x_compile="no"
1005 # end --enable-x_compile
1008 # OpenLDAP --enable-dmalloc
1009 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1010 if test "${enable_dmalloc+set}" = set; then
1011 enableval="$enable_dmalloc"
1014 for ol_val in auto yes no ; do
1015 if test "$enableval" = "$ol_val" ; then
1019 if test "$ol_arg" = "invalid" ; then
1020 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1022 ol_enable_dmalloc="$ol_arg"
1025 ol_enable_dmalloc="no"
1027 # end --enable-dmalloc
1029 # OpenLDAP --with-kerberos
1030 # Check whether --with-kerberos or --without-kerberos was given.
1031 if test "${with_kerberos+set}" = set; then
1032 withval="$with_kerberos"
1035 for ol_val in auto k5 k4 afs yes no ; do
1036 if test "$withval" = "$ol_val" ; then
1040 if test "$ol_arg" = "invalid" ; then
1041 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1043 ol_with_kerberos="$ol_arg"
1046 ol_with_kerberos="auto"
1048 # end --with-kerberos
1050 # OpenLDAP --with-threads
1051 # Check whether --with-threads or --without-threads was given.
1052 if test "${with_threads+set}" = set; then
1053 withval="$with_threads"
1056 for ol_val in auto posix mach lwp yes no manual ; do
1057 if test "$withval" = "$ol_val" ; then
1061 if test "$ol_arg" = "invalid" ; then
1062 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1064 ol_with_threads="$ol_arg"
1067 ol_with_threads="auto"
1069 # end --with-threads
1071 # OpenLDAP --with-yielding_select
1072 # Check whether --with-yielding_select or --without-yielding_select was given.
1073 if test "${with_yielding_select+set}" = set; then
1074 withval="$with_yielding_select"
1077 for ol_val in auto yes no manual ; do
1078 if test "$withval" = "$ol_val" ; then
1082 if test "$ol_arg" = "invalid" ; then
1083 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1085 ol_with_yielding_select="$ol_arg"
1088 ol_with_yielding_select="auto"
1090 # end --with-yielding_select
1094 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1095 if test "${with_xxldapdoptions+set}" = set; then
1096 withval="$with_xxldapdoptions"
1100 # OpenLDAP --enable-ldapd
1101 # Check whether --enable-ldapd or --disable-ldapd was given.
1102 if test "${enable_ldapd+set}" = set; then
1103 enableval="$enable_ldapd"
1106 for ol_val in auto yes no ; do
1107 if test "$enableval" = "$ol_val" ; then
1111 if test "$ol_arg" = "invalid" ; then
1112 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1114 ol_enable_ldapd="$ol_arg"
1117 ol_enable_ldapd="no"
1119 # end --enable-ldapd
1121 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1122 if test "${with_xxslapdoptions+set}" = set; then
1123 withval="$with_xxslapdoptions"
1127 # OpenLDAP --enable-slapd
1128 # Check whether --enable-slapd or --disable-slapd was given.
1129 if test "${enable_slapd+set}" = set; then
1130 enableval="$enable_slapd"
1133 for ol_val in auto yes no ; do
1134 if test "$enableval" = "$ol_val" ; then
1138 if test "$ol_arg" = "invalid" ; then
1139 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1141 ol_enable_slapd="$ol_arg"
1144 ol_enable_slapd="yes"
1146 # end --enable-slapd
1147 # OpenLDAP --enable-aclgroups
1148 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1149 if test "${enable_aclgroups+set}" = set; then
1150 enableval="$enable_aclgroups"
1153 for ol_val in auto yes no ; do
1154 if test "$enableval" = "$ol_val" ; then
1158 if test "$ol_arg" = "invalid" ; then
1159 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1161 ol_enable_aclgroups="$ol_arg"
1164 ol_enable_aclgroups="auto"
1166 # end --enable-aclgroups
1167 # OpenLDAP --enable-cleartext
1168 # Check whether --enable-cleartext or --disable-cleartext was given.
1169 if test "${enable_cleartext+set}" = set; then
1170 enableval="$enable_cleartext"
1173 for ol_val in auto yes no ; do
1174 if test "$enableval" = "$ol_val" ; then
1178 if test "$ol_arg" = "invalid" ; then
1179 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1181 ol_enable_cleartext="$ol_arg"
1184 ol_enable_cleartext="yes"
1186 # end --enable-cleartext
1187 # OpenLDAP --enable-crypt
1188 # Check whether --enable-crypt or --disable-crypt was given.
1189 if test "${enable_crypt+set}" = set; then
1190 enableval="$enable_crypt"
1193 for ol_val in auto yes no ; do
1194 if test "$enableval" = "$ol_val" ; then
1198 if test "$ol_arg" = "invalid" ; then
1199 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1201 ol_enable_crypt="$ol_arg"
1204 ol_enable_crypt="auto"
1206 # end --enable-crypt
1207 # OpenLDAP --enable-wrappers
1208 # Check whether --enable-wrappers or --disable-wrappers was given.
1209 if test "${enable_wrappers+set}" = set; then
1210 enableval="$enable_wrappers"
1213 for ol_val in auto yes no ; do
1214 if test "$enableval" = "$ol_val" ; then
1218 if test "$ol_arg" = "invalid" ; then
1219 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1221 ol_enable_wrappers="$ol_arg"
1224 ol_enable_wrappers="no"
1226 # end --enable-wrappers
1227 # OpenLDAP --enable-phonetic
1228 # Check whether --enable-phonetic or --disable-phonetic was given.
1229 if test "${enable_phonetic+set}" = set; then
1230 enableval="$enable_phonetic"
1233 for ol_val in auto yes no ; do
1234 if test "$enableval" = "$ol_val" ; then
1238 if test "$ol_arg" = "invalid" ; then
1239 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1241 ol_enable_phonetic="$ol_arg"
1244 ol_enable_phonetic="no"
1246 # end --enable-phonetic
1247 # OpenLDAP --enable-rlookups
1248 # Check whether --enable-rlookups or --disable-rlookups was given.
1249 if test "${enable_rlookups+set}" = set; then
1250 enableval="$enable_rlookups"
1253 for ol_val in auto yes no ; do
1254 if test "$enableval" = "$ol_val" ; then
1258 if test "$ol_arg" = "invalid" ; then
1259 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1261 ol_enable_rlookups="$ol_arg"
1264 ol_enable_rlookups="auto"
1266 # end --enable-rlookups
1268 # OpenLDAP --enable-bdb2
1269 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1270 if test "${enable_bdb2+set}" = set; then
1271 enableval="$enable_bdb2"
1274 for ol_val in auto yes no ; do
1275 if test "$enableval" = "$ol_val" ; then
1279 if test "$ol_arg" = "invalid" ; then
1280 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1282 ol_enable_bdb2="$ol_arg"
1288 # OpenLDAP --enable-ldbm
1289 # Check whether --enable-ldbm or --disable-ldbm was given.
1290 if test "${enable_ldbm+set}" = set; then
1291 enableval="$enable_ldbm"
1294 for ol_val in auto yes no ; do
1295 if test "$enableval" = "$ol_val" ; then
1299 if test "$ol_arg" = "invalid" ; then
1300 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1302 ol_enable_ldbm="$ol_arg"
1305 ol_enable_ldbm="yes"
1308 # OpenLDAP --with-ldbm_api
1309 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1310 if test "${with_ldbm_api+set}" = set; then
1311 withval="$with_ldbm_api"
1314 for ol_val in auto db2 db gdbm ndbm manual ; do
1315 if test "$withval" = "$ol_val" ; then
1319 if test "$ol_arg" = "invalid" ; then
1320 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1322 ol_with_ldbm_api="$ol_arg"
1325 ol_with_ldbm_api="auto"
1327 # end --with-ldbm_api
1329 # OpenLDAP --with-ldbm_type
1330 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1331 if test "${with_ldbm_type+set}" = set; then
1332 withval="$with_ldbm_type"
1335 for ol_val in auto btree hash ; do
1336 if test "$withval" = "$ol_val" ; then
1340 if test "$ol_arg" = "invalid" ; then
1341 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1343 ol_with_ldbm_type="$ol_arg"
1346 ol_with_ldbm_type="auto"
1348 # end --with-ldbm_type
1351 # OpenLDAP --enable-passwd
1352 # Check whether --enable-passwd or --disable-passwd was given.
1353 if test "${enable_passwd+set}" = set; then
1354 enableval="$enable_passwd"
1357 for ol_val in auto yes no ; do
1358 if test "$enableval" = "$ol_val" ; then
1362 if test "$ol_arg" = "invalid" ; then
1363 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1365 ol_enable_passwd="$ol_arg"
1368 ol_enable_passwd="no"
1370 # end --enable-passwd
1371 # OpenLDAP --enable-perl
1372 # Check whether --enable-perl or --disable-perl was given.
1373 if test "${enable_perl+set}" = set; then
1374 enableval="$enable_perl"
1377 for ol_val in auto yes no ; do
1378 if test "$enableval" = "$ol_val" ; then
1382 if test "$ol_arg" = "invalid" ; then
1383 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1385 ol_enable_perl="$ol_arg"
1391 # OpenLDAP --enable-shell
1392 # Check whether --enable-shell or --disable-shell was given.
1393 if test "${enable_shell+set}" = set; then
1394 enableval="$enable_shell"
1397 for ol_val in auto yes no ; do
1398 if test "$enableval" = "$ol_val" ; then
1402 if test "$ol_arg" = "invalid" ; then
1403 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1405 ol_enable_shell="$ol_arg"
1408 ol_enable_shell="no"
1410 # end --enable-shell
1412 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1413 if test "${with_xxslurpdoptions+set}" = set; then
1414 withval="$with_xxslurpdoptions"
1418 # OpenLDAP --enable-slurpd
1419 # Check whether --enable-slurpd or --disable-slurpd was given.
1420 if test "${enable_slurpd+set}" = set; then
1421 enableval="$enable_slurpd"
1424 for ol_val in auto yes no ; do
1425 if test "$enableval" = "$ol_val" ; then
1429 if test "$ol_arg" = "invalid" ; then
1430 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1432 ol_enable_slurpd="$ol_arg"
1435 ol_enable_slurpd="auto"
1437 # end --enable-slurpd
1439 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1440 if test "${with_xxliboptions+set}" = set; then
1441 withval="$with_xxliboptions"
1445 # Check whether --enable-static or --disable-static was given.
1446 if test "${enable_static+set}" = set; then
1447 enableval="$enable_static"
1448 p=${PACKAGE-default}
1449 case "$enableval" in
1450 yes) enable_static=yes ;;
1451 no) enable_static=no ;;
1454 # Look at the argument we got. We use all the common list separators.
1455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1456 for pkg in $enableval; do
1457 if test "X$pkg" = "X$p"; then
1468 # Check whether --enable-shared or --disable-shared was given.
1469 if test "${enable_shared+set}" = set; then
1470 enableval="$enable_shared"
1471 p=${PACKAGE-default}
1472 case "$enableval" in
1473 yes) enable_shared=yes ;;
1474 no) enable_shared=no ;;
1477 # Look at the argument we got. We use all the common list separators.
1478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1479 for pkg in $enableval; do
1480 if test "X$pkg" = "X$p"; then
1493 if test $ol_enable_dns = yes ; then
1494 if test $ol_enable_referrals = no ; then
1495 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1497 if test $ol_enable_referrals = auto ; then
1498 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1499 ol_enable_referrals=yes
1503 if test $ol_enable_slapd = no ; then
1504 if test $ol_enable_bdb2 = yes ; then
1505 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1507 if test $ol_enable_ldbm = yes ; then
1508 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1510 if test $ol_enable_passwd = yes ; then
1511 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1513 if test $ol_enable_perl = yes ; then
1514 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1516 if test $ol_enable_shell = yes ; then
1517 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1519 if test $ol_enable_aclgroups = yes ; then
1520 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1522 if test $ol_enable_wrappers = yes ; then
1523 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1525 if test $ol_enable_phonetic = yes ; then
1526 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1528 if test $ol_enable_rlookups = yes ; then
1529 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1531 if test $ol_with_ldbm_api != auto ; then
1532 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1534 if test $ol_with_ldbm_type != auto ; then
1535 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1537 if test $ol_enable_slurpd = yes ; then
1538 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1541 # force settings to no
1547 ol_enable_aclgroups=no
1548 ol_enable_wrappers=no
1549 ol_enable_phonetic=no
1550 ol_enable_rlookups=no
1552 ol_with_ldbm_type=no
1555 elif test $ol_enable_ldbm = no ; then
1557 if test $ol_with_ldbm_api != auto ; then
1558 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1561 if test $ol_with_ldbm_type != auto ; then
1562 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1565 if test $ol_enable_ldbm = yes ; then
1566 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1569 if test $ol_enable_passwd = no -a \
1570 $ol_enable_perl = no -a \
1571 $ol_enable_shell = no ; then
1572 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1576 ol_with_ldbm_type=no
1578 elif test $ol_enable_bdb2 = yes ; then
1580 if test $ol_with_ldbm_api != auto -a \
1581 $ol_with_ldbm_api != db2 ; then
1582 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1585 ol_with_ldbm_api=db2
1589 if test $ol_enable_bdb2 != no ; then
1590 if test $ol_with_ldbm_api != auto -a \
1591 $ol_with_ldbm_api != db2 ; then
1592 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1597 if test $ol_with_ldbm_api = gdbm -a \
1598 $ol_with_ldbm_type = btree ; then
1599 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1601 if test $ol_with_ldbm_api = ndbm -a \
1602 $ol_with_ldbm_type = btree ; then
1603 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1607 if test $ol_enable_slurpd = yes ; then
1608 if test $ol_with_threads = no ; then
1609 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1613 echo "$ac_t""done" 1>&6
1616 # Make sure we can run config.sub.
1617 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1618 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1621 echo $ac_n "checking host system type""... $ac_c" 1>&6
1622 echo "configure:1623: checking host system type" >&5
1625 case "$host_alias" in
1629 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1630 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1632 *) host_alias=$nonopt ;;
1636 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1637 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$ac_t""$host" 1>&6
1665 SLAPD_PERL_CPPFLAGS=
1671 # Find a good install program. We prefer a C program (faster),
1672 # so one script is as good as another. But avoid the broken or
1673 # incompatible versions:
1674 # SysV /etc/install, /usr/sbin/install
1675 # SunOS /usr/etc/install
1676 # IRIX /sbin/install
1678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1681 # ./install, which can be erroneously created by make from ./install.sh.
1682 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1683 echo "configure:1684: checking for a BSD compatible install" >&5
1684 if test -z "$INSTALL"; then
1685 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1688 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1689 for ac_dir in $PATH; do
1690 # Account for people who put trailing slashes in PATH elements.
1692 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1694 # OSF1 and SCO ODT 3.0 have their own names for install.
1695 # Don't use installbsd from OSF since it installs stuff as root
1697 for ac_prog in ginstall scoinst install; do
1698 if test -f $ac_dir/$ac_prog; then
1699 if test $ac_prog = install &&
1700 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1701 # AIX install. It has an incompatible calling convention.
1704 ac_cv_path_install="$ac_dir/$ac_prog -c"
1715 if test "${ac_cv_path_install+set}" = set; then
1716 INSTALL="$ac_cv_path_install"
1718 # As a last resort, use the slow shell script. We don't cache a
1719 # path for INSTALL within a source directory, because that will
1720 # break other packages using the cache if that directory is
1721 # removed, or if the path is relative.
1722 INSTALL="$ac_install_sh"
1725 echo "$ac_t""$INSTALL" 1>&6
1727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1728 # It thinks the first close brace ends the variable substitution.
1729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1735 # Extract the first word of "ranlib", so it can be a program name with args.
1736 set dummy ranlib; ac_word=$2
1737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1738 echo "configure:1739: checking for $ac_word" >&5
1739 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1742 if test -n "$RANLIB"; then
1743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1747 for ac_dir in $ac_dummy; do
1748 test -z "$ac_dir" && ac_dir=.
1749 if test -f $ac_dir/$ac_word; then
1750 ac_cv_prog_RANLIB="ranlib"
1755 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1758 RANLIB="$ac_cv_prog_RANLIB"
1759 if test -n "$RANLIB"; then
1760 echo "$ac_t""$RANLIB" 1>&6
1762 echo "$ac_t""no" 1>&6
1765 # Extract the first word of "gcc", so it can be a program name with args.
1766 set dummy gcc; ac_word=$2
1767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1768 echo "configure:1769: checking for $ac_word" >&5
1769 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1772 if test -n "$CC"; then
1773 ac_cv_prog_CC="$CC" # Let the user override the test.
1775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1777 for ac_dir in $ac_dummy; do
1778 test -z "$ac_dir" && ac_dir=.
1779 if test -f $ac_dir/$ac_word; then
1788 if test -n "$CC"; then
1789 echo "$ac_t""$CC" 1>&6
1791 echo "$ac_t""no" 1>&6
1794 if test -z "$CC"; then
1795 # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1798 echo "configure:1799: checking for $ac_word" >&5
1799 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1808 for ac_dir in $ac_dummy; do
1809 test -z "$ac_dir" && ac_dir=.
1810 if test -f $ac_dir/$ac_word; then
1811 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1812 ac_prog_rejected=yes
1820 if test $ac_prog_rejected = yes; then
1821 # We found a bogon in the path, so make sure we never use it.
1822 set dummy $ac_cv_prog_CC
1824 if test $# -gt 0; then
1825 # We chose a different compiler from the bogus one.
1826 # However, it has the same basename, so the bogon will be chosen
1827 # first if we set CC to just the basename; use the full file name.
1829 set dummy "$ac_dir/$ac_word" "$@"
1837 if test -n "$CC"; then
1838 echo "$ac_t""$CC" 1>&6
1840 echo "$ac_t""no" 1>&6
1843 if test -z "$CC"; then
1844 case "`uname -s`" in
1846 # Extract the first word of "cl", so it can be a program name with args.
1847 set dummy cl; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC="$CC" # Let the user override the test.
1856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1858 for ac_dir in $ac_dummy; do
1859 test -z "$ac_dir" && ac_dir=.
1860 if test -f $ac_dir/$ac_word; then
1869 if test -n "$CC"; then
1870 echo "$ac_t""$CC" 1>&6
1872 echo "$ac_t""no" 1>&6
1877 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1880 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1881 echo "configure:1882: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1884 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1885 ac_cpp='$CPP $CPPFLAGS'
1886 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1887 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1888 cross_compiling=$ac_cv_prog_cc_cross
1890 cat > conftest.$ac_ext << EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1897 if { (eval echo configure:1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1898 ac_cv_prog_cc_works=yes
1899 # If we can't run a trivial program, we are probably using a cross compiler.
1900 if (./conftest; exit) 2>/dev/null; then
1901 ac_cv_prog_cc_cross=no
1903 ac_cv_prog_cc_cross=yes
1906 echo "configure: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1908 ac_cv_prog_cc_works=no
1912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1913 ac_cpp='$CPP $CPPFLAGS'
1914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1916 cross_compiling=$ac_cv_prog_cc_cross
1918 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1919 if test $ac_cv_prog_cc_works = no; then
1920 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1922 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1923 echo "configure:1924: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1924 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1925 cross_compiling=$ac_cv_prog_cc_cross
1927 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1928 echo "configure:1929: checking whether we are using GNU C" >&5
1929 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 cat > conftest.c <<EOF
1937 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1944 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1946 if test $ac_cv_prog_gcc = yes; then
1952 ac_test_CFLAGS="${CFLAGS+set}"
1953 ac_save_CFLAGS="$CFLAGS"
1955 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1956 echo "configure:1957: checking whether ${CC-cc} accepts -g" >&5
1957 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 echo 'void f(){}' > conftest.c
1961 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1970 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1971 if test "$ac_test_CFLAGS" = set; then
1972 CFLAGS="$ac_save_CFLAGS"
1973 elif test $ac_cv_prog_cc_g = yes; then
1974 if test "$GCC" = yes; then
1980 if test "$GCC" = yes; then
1987 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1988 if test "${with_gnu_ld+set}" = set; then
1989 withval="$with_gnu_ld"
1990 test "$withval" = no || with_gnu_ld=yes
1997 if test "$ac_cv_prog_gcc" = yes; then
1998 # Check if gcc -print-prog-name=ld gives a path.
1999 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2000 echo "configure:2001: checking for ld used by GCC" >&5
2001 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2003 # Accept absolute paths.
2005 test -z "$LD" && LD="$ac_prog"
2008 # If it fails, then pretend we aren't using GCC.
2012 # If it is relative, then search for the first ld in PATH.
2016 elif test "$with_gnu_ld" = yes; then
2017 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2018 echo "configure:2019: checking for GNU ld" >&5
2020 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2021 echo "configure:2022: checking for non-GNU ld" >&5
2023 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 if test -z "$LD"; then
2027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2028 for ac_dir in $PATH; do
2029 test -z "$ac_dir" && ac_dir=.
2030 if test -f "$ac_dir/$ac_prog"; then
2031 ac_cv_path_LD="$ac_dir/$ac_prog"
2032 # Check to see if the program is GNU ld. I'd rather use --version,
2033 # but apparently some GNU ld's only accept -v.
2034 # Break only if it was the GNU/non-GNU ld that we prefer.
2035 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2036 test "$with_gnu_ld" != no && break
2038 test "$with_gnu_ld" != yes && break
2044 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2049 if test -n "$LD"; then
2050 echo "$ac_t""$LD" 1>&6
2052 echo "$ac_t""no" 1>&6
2054 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2056 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2057 echo "configure:2058: checking if the linker ($LD) is GNU ld" >&5
2058 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2062 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2063 ac_cv_prog_gnu_ld=yes
2065 ac_cv_prog_gnu_ld=no
2069 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2072 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2073 echo "configure:2074: checking for BSD-compatible nm" >&5
2074 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2079 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2083 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2084 test -z "$ac_dir" && ac_dir=.
2085 if test -f $ac_dir/nm; then
2086 # Check to see if the nm accepts a BSD-compat flag.
2087 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2088 # nm: unknown option "B" ignored
2089 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2090 ac_cv_path_NM="$ac_dir/nm -B"
2091 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2092 ac_cv_path_NM="$ac_dir/nm -p"
2094 ac_cv_path_NM="$ac_dir/nm"
2100 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2106 echo "$ac_t""$NM" 1>&6
2109 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2110 echo "configure:2111: checking whether ln -s works" >&5
2111 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2115 if ln -s X conftestdata 2>/dev/null
2118 ac_cv_prog_LN_S="ln -s"
2123 LN_S="$ac_cv_prog_LN_S"
2124 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2125 echo "$ac_t""yes" 1>&6
2127 echo "$ac_t""no" 1>&6
2130 # Always use our own libtool.
2131 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2133 # Check for any special flags to pass to ltconfig.
2135 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2136 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2137 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2138 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2139 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2141 # Some flags need to be propagated to the compiler or linker for good
2145 # Find out which ABI we are using.
2146 echo '#line 2147 "configure"' > conftest.$ac_ext
2147 if { (eval echo configure:2148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2148 case "`/usr/bin/file conftest.o`" in
2164 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2165 CFLAGS="$CFLAGS -belf"
2169 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2170 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2171 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2172 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2173 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2174 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2177 for ac_prog in mawk gawk nawk awk
2179 # Extract the first word of "$ac_prog", so it can be a program name with args.
2180 set dummy $ac_prog; ac_word=$2
2181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_word" >&5
2183 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 if test -n "$AWK"; then
2187 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2191 for ac_dir in $ac_dummy; do
2192 test -z "$ac_dir" && ac_dir=.
2193 if test -f $ac_dir/$ac_word; then
2194 ac_cv_prog_AWK="$ac_prog"
2201 AWK="$ac_cv_prog_AWK"
2202 if test -n "$AWK"; then
2203 echo "$ac_t""$AWK" 1>&6
2205 echo "$ac_t""no" 1>&6
2208 test -n "$AWK" && break
2211 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2212 echo "configure:2213: checking whether ln -s works" >&5
2213 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2217 if ln -s X conftestdata 2>/dev/null
2220 ac_cv_prog_LN_S="ln -s"
2225 LN_S="$ac_cv_prog_LN_S"
2226 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2227 echo "$ac_t""yes" 1>&6
2229 echo "$ac_t""no" 1>&6
2233 # Extract the first word of "sendmail", so it can be a program name with args.
2234 set dummy sendmail; ac_word=$2
2235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_word" >&5
2237 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2242 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2245 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2249 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2250 for ac_dir in $ac_dummy; do
2251 test -z "$ac_dir" && ac_dir=.
2252 if test -f $ac_dir/$ac_word; then
2253 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2258 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2262 SENDMAIL="$ac_cv_path_SENDMAIL"
2263 if test -n "$SENDMAIL"; then
2264 echo "$ac_t""$SENDMAIL" 1>&6
2266 echo "$ac_t""no" 1>&6
2269 # Extract the first word of "vi", so it can be a program name with args.
2270 set dummy vi; ac_word=$2
2271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2272 echo "configure:2273: checking for $ac_word" >&5
2273 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2278 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2281 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2285 ac_dummy="$PATH:/usr/ucb"
2286 for ac_dir in $ac_dummy; do
2287 test -z "$ac_dir" && ac_dir=.
2288 if test -f $ac_dir/$ac_word; then
2289 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2294 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2298 EDITOR="$ac_cv_path_EDITOR"
2299 if test -n "$EDITOR"; then
2300 echo "$ac_t""$EDITOR" 1>&6
2302 echo "$ac_t""no" 1>&6
2305 # Extract the first word of "finger", so it can be a program name with args.
2306 set dummy finger; ac_word=$2
2307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2308 echo "configure:2309: checking for $ac_word" >&5
2309 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2314 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2317 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2321 ac_dummy="$PATH:/usr/ucb"
2322 for ac_dir in $ac_dummy; do
2323 test -z "$ac_dir" && ac_dir=.
2324 if test -f $ac_dir/$ac_word; then
2325 ac_cv_path_FINGER="$ac_dir/$ac_word"
2330 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2334 FINGER="$ac_cv_path_FINGER"
2335 if test -n "$FINGER"; then
2336 echo "$ac_t""$FINGER" 1>&6
2338 echo "$ac_t""no" 1>&6
2342 if test $ol_enable_perl = yes ; then
2343 # Extract the first word of "perl", so it can be a program name with args.
2344 set dummy perl; ac_word=$2
2345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_word" >&5
2347 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2355 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2360 for ac_dir in $ac_dummy; do
2361 test -z "$ac_dir" && ac_dir=.
2362 if test -f $ac_dir/$ac_word; then
2363 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2368 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2372 PERLBIN="$ac_cv_path_PERLBIN"
2373 if test -n "$PERLBIN"; then
2374 echo "$ac_t""$PERLBIN" 1>&6
2376 echo "$ac_t""no" 1>&6
2380 if test "no$PERLBIN" = "no" ; then
2384 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2385 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
2388 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2389 echo "configure:2390: checking how to run the C preprocessor" >&5
2390 # On Suns, sometimes $CPP names a directory.
2391 if test -n "$CPP" && test -d "$CPP"; then
2394 if test -z "$CPP"; then
2395 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 # This must be in double quotes, not single quotes, because CPP may get
2399 # substituted into the Makefile and "${CC-cc}" will confuse make.
2401 # On the NeXT, cc -E runs the code through the compiler's parser,
2402 # not just through cpp.
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2410 { (eval echo configure:2411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2412 if test -z "$ac_err"; then
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2419 CPP="${CC-cc} -E -traditional-cpp"
2420 cat > conftest.$ac_ext <<EOF
2421 #line 2422 "configure"
2422 #include "confdefs.h"
2426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2427 { (eval echo configure:2428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2429 if test -z "$ac_err"; then
2433 echo "configure: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2436 CPP="${CC-cc} -nologo -E"
2437 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2444 { (eval echo configure:2445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2446 if test -z "$ac_err"; then
2450 echo "configure: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2460 ac_cv_prog_CPP="$CPP"
2462 CPP="$ac_cv_prog_CPP"
2464 ac_cv_prog_CPP="$CPP"
2466 echo "$ac_t""$CPP" 1>&6
2469 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2470 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2472 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2473 echo "configure: warning: programs compiled here do run here..." 1>&2
2474 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2476 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2477 echo "configure: warning: programs compiled here do not run here..." 1>&2
2478 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2481 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2482 echo "configure:2483: checking for AIX" >&5
2483 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2492 egrep "yes" >/dev/null 2>&1; then
2494 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2495 #define _ALL_SOURCE 1
2500 echo "$ac_t""no" 1>&6
2505 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2506 echo "configure:2507: checking for POSIXized ISC" >&5
2507 if test -d /etc/conf/kconfig.d &&
2508 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2510 echo "$ac_t""yes" 1>&6
2511 ISC=yes # If later tests want to check for ISC.
2512 cat >> confdefs.h <<\EOF
2513 #define _POSIX_SOURCE 1
2516 if test "$GCC" = yes; then
2522 echo "$ac_t""no" 1>&6
2526 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2527 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2528 echo "configure:2529: checking for minix/config.h" >&5
2529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 #include <minix/config.h>
2537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2538 { (eval echo configure:2539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2540 if test -z "$ac_err"; then
2542 eval "ac_cv_header_$ac_safe=yes"
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2548 eval "ac_cv_header_$ac_safe=no"
2552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2553 echo "$ac_t""yes" 1>&6
2556 echo "$ac_t""no" 1>&6
2560 if test "$MINIX" = yes; then
2561 cat >> confdefs.h <<\EOF
2562 #define _POSIX_SOURCE 1
2565 cat >> confdefs.h <<\EOF
2566 #define _POSIX_1_SOURCE 2
2569 cat >> confdefs.h <<\EOF
2576 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2577 echo "configure:2578: checking for Cygwin environment" >&5
2578 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 cat > conftest.$ac_ext <<EOF
2582 #line 2583 "configure"
2583 #include "confdefs.h"
2588 #define __CYGWIN__ __CYGWIN32__
2593 if { (eval echo configure:2594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2597 echo "configure: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2606 echo "$ac_t""$ac_cv_cygwin" 1>&6
2608 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2609 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2610 echo "configure:2611: checking for mingw32 environment" >&5
2611 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2622 if { (eval echo configure:2623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2626 echo "configure: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2635 echo "$ac_t""$ac_cv_mingw32" 1>&6
2637 test "$ac_cv_mingw32" = yes && MINGW32=yes
2640 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2641 echo "configure:2642: checking for executable suffix" >&5
2642 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2649 echo 'int main () { return 0; }' > conftest.$ac_ext
2651 if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2652 for file in conftest.*; do
2654 *.c | *.o | *.obj) ;;
2655 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2659 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2662 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2667 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2668 echo "$ac_t""${ac_cv_exeext}" 1>&6
2671 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2672 echo "configure:2673: checking for object suffix" >&5
2673 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2677 echo 'int i = 1;' > conftest.$ac_ext
2678 if { (eval echo configure:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2679 for ac_file in conftest.*; do
2682 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2686 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2691 echo "$ac_t""$ac_cv_objext" 1>&6
2692 OBJEXT=$ac_cv_objext
2693 ac_objext=$ac_cv_objext
2699 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2700 echo "configure:2701: checking for ${CC-cc} option to accept ANSI C" >&5
2701 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 am_cv_prog_cc_stdc=no
2706 # Don't try gcc -ansi; that turns off useful extensions and
2707 # breaks some systems' header files.
2708 # AIX -qlanglvl=ansi
2709 # Ultrix and OSF/1 -std1
2710 # HP-UX -Aa -D_HPUX_SOURCE
2711 # SVR4 -Xc -D__EXTENSIONS__
2712 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2714 CC="$ac_save_CC $ac_arg"
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2720 #include <sys/types.h>
2721 #include <sys/stat.h>
2722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2723 struct buf { int x; };
2724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2725 static char *e (p, i)
2731 static char *f (char * (*g) (char **, int), char **p, ...)
2736 s = g (p, va_arg (v,int));
2740 int test (int i, double x);
2741 struct s1 {int (*f) (int a);};
2742 struct s2 {int (*f) (double a);};
2743 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2749 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2753 if { (eval echo configure:2754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2755 am_cv_prog_cc_stdc="$ac_arg"; break
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2766 if test -z "$am_cv_prog_cc_stdc"; then
2767 echo "$ac_t""none needed" 1>&6
2769 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2771 case "x$am_cv_prog_cc_stdc" in
2773 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2776 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2777 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2783 echo $ac_n "checking for socket""... $ac_c" 1>&6
2784 echo "configure:2785: checking for socket" >&5
2785 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2791 /* System header to define __stub macros and hopefully few prototypes,
2792 which can conflict with char socket(); below. */
2794 /* Override any gcc2 internal prototype to avoid an error. */
2795 /* We use char because int might match the return type of a gcc2
2796 builtin and then its argument prototype would still apply. */
2801 /* The GNU C library defines this for functions which it implements
2802 to always fail with ENOSYS. Some functions are actually named
2803 something starting with __ and the normal name is an alias. */
2804 #if defined (__stub_socket) || defined (__stub___socket)
2812 if { (eval echo configure:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2814 eval "ac_cv_func_socket=yes"
2816 echo "configure: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2819 eval "ac_cv_func_socket=no"
2824 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2828 echo "$ac_t""no" 1>&6
2830 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2831 echo "configure:2832: checking for main in -lsocket" >&5
2832 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 ac_save_LIBS="$LIBS"
2837 LIBS="-lsocket $LIBS"
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2846 if { (eval echo configure:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2848 eval "ac_cv_lib_$ac_lib_var=yes"
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2853 eval "ac_cv_lib_$ac_lib_var=no"
2856 LIBS="$ac_save_LIBS"
2859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2860 echo "$ac_t""yes" 1>&6
2861 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2862 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2863 cat >> confdefs.h <<EOF
2864 #define $ac_tr_lib 1
2867 LIBS="-lsocket $LIBS"
2870 echo "$ac_t""no" 1>&6
2873 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2874 echo "configure:2875: checking for main in -lnet" >&5
2875 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 ac_save_LIBS="$LIBS"
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2889 if { (eval echo configure:2890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2891 eval "ac_cv_lib_$ac_lib_var=yes"
2893 echo "configure: failed program was:" >&5
2894 cat conftest.$ac_ext >&5
2896 eval "ac_cv_lib_$ac_lib_var=no"
2899 LIBS="$ac_save_LIBS"
2902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2903 echo "$ac_t""yes" 1>&6
2904 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2905 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2906 cat >> confdefs.h <<EOF
2907 #define $ac_tr_lib 1
2913 echo "$ac_t""no" 1>&6
2916 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2917 echo "configure:2918: checking for main in -lnsl_s" >&5
2918 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 ac_save_LIBS="$LIBS"
2923 LIBS="-lnsl_s $LIBS"
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2932 if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2934 eval "ac_cv_lib_$ac_lib_var=yes"
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2939 eval "ac_cv_lib_$ac_lib_var=no"
2942 LIBS="$ac_save_LIBS"
2945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2946 echo "$ac_t""yes" 1>&6
2947 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2948 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2949 cat >> confdefs.h <<EOF
2950 #define $ac_tr_lib 1
2953 LIBS="-lnsl_s $LIBS"
2956 echo "$ac_t""no" 1>&6
2959 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2960 echo "configure:2961: checking for main in -lnsl" >&5
2961 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 ac_save_LIBS="$LIBS"
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2975 if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2977 eval "ac_cv_lib_$ac_lib_var=yes"
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2982 eval "ac_cv_lib_$ac_lib_var=no"
2985 LIBS="$ac_save_LIBS"
2988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2989 echo "$ac_t""yes" 1>&6
2990 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2991 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2992 cat >> confdefs.h <<EOF
2993 #define $ac_tr_lib 1
2999 echo "$ac_t""no" 1>&6
3002 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3003 echo "configure:3004: checking for socket in -linet" >&5
3004 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3008 ac_save_LIBS="$LIBS"
3010 cat > conftest.$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3013 /* Override any gcc2 internal prototype to avoid an error. */
3014 /* We use char because int might match the return type of a gcc2
3015 builtin and then its argument prototype would still apply. */
3022 if { (eval echo configure:3023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3024 eval "ac_cv_lib_$ac_lib_var=yes"
3026 echo "configure: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3029 eval "ac_cv_lib_$ac_lib_var=no"
3032 LIBS="$ac_save_LIBS"
3035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3036 echo "$ac_t""yes" 1>&6
3037 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3038 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3039 cat >> confdefs.h <<EOF
3040 #define $ac_tr_lib 1
3046 echo "$ac_t""no" 1>&6
3049 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3050 echo "configure:3051: checking for main in -lgen" >&5
3051 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 ac_save_LIBS="$LIBS"
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3065 if { (eval echo configure:3066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3067 eval "ac_cv_lib_$ac_lib_var=yes"
3069 echo "configure: failed program was:" >&5
3070 cat conftest.$ac_ext >&5
3072 eval "ac_cv_lib_$ac_lib_var=no"
3075 LIBS="$ac_save_LIBS"
3078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3079 echo "$ac_t""yes" 1>&6
3080 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3081 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3082 cat >> confdefs.h <<EOF
3083 #define $ac_tr_lib 1
3089 echo "$ac_t""no" 1>&6
3096 for ac_func in res_search
3098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3099 echo "configure:3100: checking for $ac_func" >&5
3100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106 /* System header to define __stub macros and hopefully few prototypes,
3107 which can conflict with char $ac_func(); below. */
3109 /* Override any gcc2 internal prototype to avoid an error. */
3110 /* We use char because int might match the return type of a gcc2
3111 builtin and then its argument prototype would still apply. */
3116 /* The GNU C library defines this for functions which it implements
3117 to always fail with ENOSYS. Some functions are actually named
3118 something starting with __ and the normal name is an alias. */
3119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3127 if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3129 eval "ac_cv_func_$ac_func=yes"
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3134 eval "ac_cv_func_$ac_func=no"
3139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3140 echo "$ac_t""yes" 1>&6
3141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3142 cat >> confdefs.h <<EOF
3143 #define $ac_tr_func 1
3147 echo "$ac_t""no" 1>&6
3151 if test $ac_cv_func_res_search = "no" ; then
3152 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3153 echo "configure:3154: checking for res_search in -lbind" >&5
3154 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 ac_save_LIBS="$LIBS"
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3163 /* Override any gcc2 internal prototype to avoid an error. */
3164 /* We use char because int might match the return type of a gcc2
3165 builtin and then its argument prototype would still apply. */
3172 if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3174 eval "ac_cv_lib_$ac_lib_var=yes"
3176 echo "configure: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3179 eval "ac_cv_lib_$ac_lib_var=no"
3182 LIBS="$ac_save_LIBS"
3185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3186 echo "$ac_t""yes" 1>&6
3187 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3188 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3189 cat >> confdefs.h <<EOF
3190 #define $ac_tr_lib 1
3196 echo "$ac_t""no" 1>&6
3199 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3200 cat >> confdefs.h <<\EOF
3201 #define HAVE_RES_SEARCH 1
3205 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3206 echo "configure:3207: checking for res_search in -lresolv" >&5
3207 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 ac_save_LIBS="$LIBS"
3212 LIBS="-lresolv $LIBS"
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 /* Override any gcc2 internal prototype to avoid an error. */
3217 /* We use char because int might match the return type of a gcc2
3218 builtin and then its argument prototype would still apply. */
3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227 eval "ac_cv_lib_$ac_lib_var=yes"
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 eval "ac_cv_lib_$ac_lib_var=no"
3235 LIBS="$ac_save_LIBS"
3238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3239 echo "$ac_t""yes" 1>&6
3240 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3242 cat >> confdefs.h <<EOF
3243 #define $ac_tr_lib 1
3246 LIBS="-lresolv $LIBS"
3249 echo "$ac_t""no" 1>&6
3252 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3253 cat >> confdefs.h <<\EOF
3254 #define HAVE_RES_SEARCH 1
3261 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3262 echo "configure:3263: checking for sigset in -lV3" >&5
3263 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 ac_save_LIBS="$LIBS"
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272 /* Override any gcc2 internal prototype to avoid an error. */
3273 /* We use char because int might match the return type of a gcc2
3274 builtin and then its argument prototype would still apply. */
3281 if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3283 eval "ac_cv_lib_$ac_lib_var=yes"
3285 echo "configure: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3288 eval "ac_cv_lib_$ac_lib_var=no"
3291 LIBS="$ac_save_LIBS"
3294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3295 echo "$ac_t""yes" 1>&6
3296 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3297 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3298 cat >> confdefs.h <<EOF
3299 #define $ac_tr_lib 1
3305 echo "$ac_t""no" 1>&6
3311 if test $ol_enable_ldapd != no ; then
3312 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3313 echo "configure:3314: checking for main in -lxtpp" >&5
3314 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 ac_save_LIBS="$LIBS"
3319 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3328 if { (eval echo configure:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3330 eval "ac_cv_lib_$ac_lib_var=yes"
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3335 eval "ac_cv_lib_$ac_lib_var=no"
3338 LIBS="$ac_save_LIBS"
3341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3342 echo "$ac_t""yes" 1>&6
3345 cat >> confdefs.h <<\EOF
3349 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3352 echo "$ac_t""no" 1>&6
3356 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3357 echo "configure:3358: checking for main in -ldsap" >&5
3358 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3362 ac_save_LIBS="$LIBS"
3363 LIBS="-ldsap -lisode $LIBS"
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3372 if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3374 eval "ac_cv_lib_$ac_lib_var=yes"
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3379 eval "ac_cv_lib_$ac_lib_var=no"
3382 LIBS="$ac_save_LIBS"
3385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3389 cat >> confdefs.h <<\EOF
3393 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3396 echo "$ac_t""no" 1>&6
3400 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3401 echo "configure:3402: checking for main in -lisode" >&5
3402 ac_lib_var=`echo isode'_'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"
3407 LIBS="-lisode $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
3433 cat >> confdefs.h <<\EOF
3434 #define HAVE_ISODE 1
3437 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3440 echo "$ac_t""no" 1>&6
3446 if test $ol_link_isode != no; then
3447 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3448 echo "configure:3449: checking for main in -lpp" >&5
3449 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 ac_save_LIBS="$LIBS"
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
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
3479 cat >> confdefs.h <<\EOF
3483 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3486 echo "$ac_t""no" 1>&6
3491 # Extract the first word of "pepsy", so it can be a program name with args.
3492 set dummy pepsy; ac_word=$2
3493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3494 echo "configure:3495: checking for $ac_word" >&5
3495 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3500 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3503 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3508 for ac_dir in $ac_dummy; do
3509 test -z "$ac_dir" && ac_dir=.
3510 if test -f $ac_dir/$ac_word; then
3511 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3519 PEPSY="$ac_cv_path_PEPSY"
3520 if test -n "$PEPSY"; then
3521 echo "$ac_t""$PEPSY" 1>&6
3523 echo "$ac_t""no" 1>&6
3530 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3531 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3535 echo "configure:3536: checking for $ac_hdr" >&5
3536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3545 { (eval echo configure:3546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3547 if test -z "$ac_err"; then
3549 eval "ac_cv_header_$ac_safe=yes"
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3555 eval "ac_cv_header_$ac_safe=no"
3559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3560 echo "$ac_t""yes" 1>&6
3561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3562 cat >> confdefs.h <<EOF
3563 #define $ac_tr_hdr 1
3567 echo "$ac_t""no" 1>&6
3572 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3573 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3574 echo "configure:3575: checking for main in -lkrb4" >&5
3575 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 ac_save_LIBS="$LIBS"
3580 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3581 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3589 if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3591 eval "ac_cv_lib_$ac_lib_var=yes"
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 eval "ac_cv_lib_$ac_lib_var=no"
3599 LIBS="$ac_save_LIBS"
3602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3606 echo "$ac_t""no" 1>&6
3611 if test $have_k5 = yes ; then
3612 ol_with_kerberos=found
3613 ol_link_kerberos=yes
3615 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3617 LIBS="$KRB_LIBS $LIBS"
3619 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3620 echo "configure:3621: checking for des_debug in Kerberos libraries" >&5
3621 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3626 LIBS="$KRB_LIBS $LIBS"
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3631 #include <kerberosIV/krb.h>
3632 #include <kerberosIV/des.h>
3633 extern int des_debug;
3641 if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3643 ol_cv_var_des_debug=yes
3645 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3648 ol_cv_var_des_debug=no
3655 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3657 if test $ol_cv_var_des_debug= yes ; then
3658 cat >> confdefs.h <<\EOF
3659 #define HAVE_DES_DEBUG 1
3669 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3670 for ac_hdr in krb.h des.h
3672 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3674 echo "configure:3675: checking for $ac_hdr" >&5
3675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3684 { (eval echo configure:3685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3686 if test -z "$ac_err"; then
3688 eval "ac_cv_header_$ac_safe=yes"
3691 echo "configure: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3694 eval "ac_cv_header_$ac_safe=no"
3698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3699 echo "$ac_t""yes" 1>&6
3700 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3701 cat >> confdefs.h <<EOF
3702 #define $ac_tr_hdr 1
3706 echo "$ac_t""no" 1>&6
3711 if test $ac_cv_header_krb_h = yes ; then
3712 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3713 echo "configure:3714: checking for main in -lkrb" >&5
3714 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3718 ac_save_LIBS="$LIBS"
3719 LIBS="-lkrb -ldes $LIBS"
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3728 if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3730 eval "ac_cv_lib_$ac_lib_var=yes"
3732 echo "configure: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3735 eval "ac_cv_lib_$ac_lib_var=no"
3738 LIBS="$ac_save_LIBS"
3741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3745 echo "$ac_t""no" 1>&6
3750 if test $have_k4 = yes ; then
3751 ol_with_kerberos=found
3752 ol_link_kerberos=yes
3754 KRB_LIBS="-lkrb -ldes"
3759 if test $ol_link_kerberos = yes ; then
3760 cat >> confdefs.h <<\EOF
3761 #define HAVE_KERBEROS 1
3767 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3768 -o $ol_with_threads = posix ; then
3770 for ac_hdr in pthread.h sched.h
3772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3774 echo "configure:3775: checking for $ac_hdr" >&5
3775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3784 { (eval echo configure:3785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3786 if test -z "$ac_err"; then
3788 eval "ac_cv_header_$ac_safe=yes"
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3794 eval "ac_cv_header_$ac_safe=no"
3798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3799 echo "$ac_t""yes" 1>&6
3800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3801 cat >> confdefs.h <<EOF
3802 #define $ac_tr_hdr 1
3806 echo "$ac_t""no" 1>&6
3811 if test $ac_cv_header_pthread_h = yes ; then
3812 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3813 echo "configure:3814: checking POSIX thread version" >&5
3814 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3822 # include <pthread.h>
3823 /* this check could be improved */
3824 # ifdef PTHREAD_ONCE_INIT
3825 pthread_version_final
3829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830 egrep "pthread_version_final" >/dev/null 2>&1; then
3832 ol_pthread_final=yes
3840 cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3844 # include <pthread.h>
3845 /* this check could be improved */
3846 # ifdef pthread_once_init
3847 pthread_version_draft4
3851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3852 egrep "pthread_version_draft4" >/dev/null 2>&1; then
3854 ol_pthread_draft4=yes
3857 ol_pthread_draft4=no
3862 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3863 ol_cv_pthread_version=final
3864 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3865 ol_cv_pthread_version=draft4
3867 ol_cv_pthread_version=unknown
3872 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3875 if test $ol_cv_pthread_version = final ; then
3876 cat >> confdefs.h <<\EOF
3877 #define HAVE_PTHREADS_FINAL 1
3880 elif test $ol_cv_pthread_version = draft4 ; then
3881 cat >> confdefs.h <<\EOF
3882 #define HAVE_PTHREADS_D4 1
3886 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3889 # consider threads found
3890 ol_with_threads=found
3893 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3894 echo "configure:3895: checking for LinuxThreads" >&5
3895 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3899 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3900 if test "$res" -gt 0 ; then
3901 ol_cv_linux_threads=yes
3903 ol_cv_linux_threads=no
3908 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3911 if test $ol_cv_linux_threads = yes ; then
3912 cat >> confdefs.h <<\EOF
3913 #define HAVE_LINUX_THREADS 1
3919 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3920 echo "configure:3921: checking for pthread_create" >&5
3921 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3924 cat > conftest.$ac_ext <<EOF
3925 #line 3926 "configure"
3926 #include "confdefs.h"
3927 /* System header to define __stub macros and hopefully few prototypes,
3928 which can conflict with char pthread_create(); below. */
3930 /* Override any gcc2 internal prototype to avoid an error. */
3931 /* We use char because int might match the return type of a gcc2
3932 builtin and then its argument prototype would still apply. */
3933 char pthread_create();
3937 /* The GNU C library defines this for functions which it implements
3938 to always fail with ENOSYS. Some functions are actually named
3939 something starting with __ and the normal name is an alias. */
3940 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3948 if { (eval echo configure:3949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3950 eval "ac_cv_func_pthread_create=yes"
3952 echo "configure: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3955 eval "ac_cv_func_pthread_create=no"
3960 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3961 echo "$ac_t""yes" 1>&6
3964 echo "$ac_t""no" 1>&6
3968 if test $ol_link_threads = no ; then
3969 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
3970 echo "configure:3971: checking for pthread_create with -kthread" >&5
3971 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3976 LIBS="-kthread $LIBS"
3977 cat > conftest.$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #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 ol_cv_kthread_flag=yes
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3994 ol_cv_kthread_flag=no
4001 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
4003 if test $ol_cv_kthread_flag = yes ; then
4004 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4005 ol_link_threads=posix
4009 if test $ol_link_threads = no ; then
4010 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4011 echo "configure:4012: checking for pthread_create with -pthread" >&5
4012 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4017 LIBS="-pthread $LIBS"
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4028 if { (eval echo configure:4029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4030 ol_cv_pthread_flag=yes
4032 echo "configure: failed program was:" >&5
4033 cat conftest.$ac_ext >&5
4035 ol_cv_pthread_flag=no
4042 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4044 if test $ol_cv_pthread_flag = yes ; then
4045 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4046 ol_link_threads=posix
4050 if test $ol_link_threads = no ; then
4051 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4052 echo "configure:4053: checking for pthread_create with -pthreads" >&5
4053 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4058 LIBS="-pthreads $LIBS"
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4069 if { (eval echo configure:4070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4071 ol_cv_pthreads_flag=yes
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4076 ol_cv_pthreads_flag=no
4083 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4085 if test $ol_cv_pthreads_flag = yes ; then
4086 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4087 ol_link_threads=posix
4091 if test $ol_link_threads = no ; then
4092 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4093 echo "configure:4094: checking for pthread_create with -thread" >&5
4094 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4099 LIBS="-thread $LIBS"
4100 cat > conftest.$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4110 if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4112 ol_cv_thread_flag=yes
4114 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4117 ol_cv_thread_flag=no
4124 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4126 if test $ol_cv_thread_flag = yes ; then
4127 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4128 ol_link_threads=posix
4132 if test $ol_link_threads = no ; then
4134 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4135 echo "configure:4136: checking for pthread_mutex_unlock in -lpthread" >&5
4136 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 ac_save_LIBS="$LIBS"
4141 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4148 char pthread_mutex_unlock();
4151 pthread_mutex_unlock()
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4156 eval "ac_cv_lib_$ac_lib_var=yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4161 eval "ac_cv_lib_$ac_lib_var=no"
4164 LIBS="$ac_save_LIBS"
4167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4168 echo "$ac_t""yes" 1>&6
4170 ol_link_threads=posix
4171 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4172 if test $ol_with_yielding_select = auto ; then
4173 ol_with_yielding_select=yes
4177 echo "$ac_t""no" 1>&6
4184 if test $ol_link_threads = no ; then
4186 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4187 echo "configure:4188: checking for pthread_mutex_lock in -lpthread" >&5
4188 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 ac_save_LIBS="$LIBS"
4193 LIBS="-lpthread -lmach -lexc $LIBS"
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 /* Override any gcc2 internal prototype to avoid an error. */
4198 /* We use char because int might match the return type of a gcc2
4199 builtin and then its argument prototype would still apply. */
4200 char pthread_mutex_lock();
4203 pthread_mutex_lock()
4206 if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4208 eval "ac_cv_lib_$ac_lib_var=yes"
4210 echo "configure: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4213 eval "ac_cv_lib_$ac_lib_var=no"
4216 LIBS="$ac_save_LIBS"
4219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4220 echo "$ac_t""yes" 1>&6
4222 ol_link_threads=posix
4223 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4224 if test $ol_with_yielding_select = auto ; then
4225 ol_with_yielding_select=yes
4229 echo "$ac_t""no" 1>&6
4236 if test $ol_link_threads = no ; then
4238 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4239 echo "configure:4240: checking for pthread_mutex_trylock in -lpthread" >&5
4240 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4244 ac_save_LIBS="$LIBS"
4245 LIBS="-lpthread -lexc $LIBS"
4246 cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4249 /* Override any gcc2 internal prototype to avoid an error. */
4250 /* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4252 char pthread_mutex_trylock();
4255 pthread_mutex_trylock()
4258 if { (eval echo configure:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4260 eval "ac_cv_lib_$ac_lib_var=yes"
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4265 eval "ac_cv_lib_$ac_lib_var=no"
4268 LIBS="$ac_save_LIBS"
4271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4274 ol_link_threads=posix
4275 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4276 if test $ol_with_yielding_select = auto ; then
4277 ol_with_yielding_select=yes
4281 echo "$ac_t""no" 1>&6
4288 if test $ol_link_threads = no ; then
4290 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4291 echo "configure:4292: checking for pthread_create in -lpthread" >&5
4292 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4296 ac_save_LIBS="$LIBS"
4297 LIBS="-lpthread $LIBS"
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4301 /* Override any gcc2 internal prototype to avoid an error. */
4302 /* We use char because int might match the return type of a gcc2
4303 builtin and then its argument prototype would still apply. */
4304 char pthread_create();
4310 if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4312 eval "ac_cv_lib_$ac_lib_var=yes"
4314 echo "configure: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4317 eval "ac_cv_lib_$ac_lib_var=no"
4320 LIBS="$ac_save_LIBS"
4323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4324 echo "$ac_t""yes" 1>&6
4326 ol_link_threads=posix
4327 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4329 echo "$ac_t""no" 1>&6
4336 if test $ol_link_threads = no ; then
4338 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4339 echo "configure:4340: checking for pthread_create in -lc_r" >&5
4340 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4344 ac_save_LIBS="$LIBS"
4346 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 /* Override any gcc2 internal prototype to avoid an error. */
4350 /* We use char because int might match the return type of a gcc2
4351 builtin and then its argument prototype would still apply. */
4352 char pthread_create();
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4360 eval "ac_cv_lib_$ac_lib_var=yes"
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4365 eval "ac_cv_lib_$ac_lib_var=no"
4368 LIBS="$ac_save_LIBS"
4371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4372 echo "$ac_t""yes" 1>&6
4374 ol_link_threads=posix
4375 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
4377 echo "$ac_t""no" 1>&6
4384 if test $ol_link_threads = no ; then
4386 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
4387 echo "configure:4388: checking for pthread_create in -lpthreads" >&5
4388 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
4389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4392 ac_save_LIBS="$LIBS"
4393 LIBS="-lpthreads $LIBS"
4394 cat > conftest.$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4397 /* Override any gcc2 internal prototype to avoid an error. */
4398 /* We use char because int might match the return type of a gcc2
4399 builtin and then its argument prototype would still apply. */
4400 char pthread_create();
4406 if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4408 eval "ac_cv_lib_$ac_lib_var=yes"
4410 echo "configure: failed program was:" >&5
4411 cat conftest.$ac_ext >&5
4413 eval "ac_cv_lib_$ac_lib_var=no"
4416 LIBS="$ac_save_LIBS"
4419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4420 echo "$ac_t""yes" 1>&6
4422 ol_link_threads=posix
4423 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4425 echo "$ac_t""no" 1>&6
4432 if test $ol_link_threads = no ; then
4434 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
4435 echo "configure:4436: checking for pthread_join in -lpthreads" >&5
4436 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
4437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4440 ac_save_LIBS="$LIBS"
4441 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
4442 cat > conftest.$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4445 /* Override any gcc2 internal prototype to avoid an error. */
4446 /* We use char because int might match the return type of a gcc2
4447 builtin and then its argument prototype would still apply. */
4448 char pthread_join();
4454 if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4456 eval "ac_cv_lib_$ac_lib_var=yes"
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4461 eval "ac_cv_lib_$ac_lib_var=no"
4464 LIBS="$ac_save_LIBS"
4467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4468 echo "$ac_t""yes" 1>&6
4470 ol_link_threads=posix
4471 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4474 echo "$ac_t""no" 1>&6
4481 if test $ol_link_threads = no; then
4483 LIBS="$LIBS -lpthread"
4484 echo $ac_n "checking for pthread_create() in HP-UX -lpthread""... $ac_c" 1>&6
4485 echo "configure:4486: checking for pthread_create() in HP-UX -lpthread" >&5
4486 ol_try_pthread_hpux_11=no
4487 if eval "test \"`echo '$''{'ol_cv_pthread_hpux_11'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4495 #include <pthread.h>
4497 #ifndef ELFABI_HPUX_REL11
4502 pthread_create(NULL, NULL, NULL, NULL);
4505 if { (eval echo configure:4506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4507 ol_try_pthread_hpux_11=yes
4508 ol_cv_pthread_hpux_11=yes
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4513 ol_cv_pthread_hpux_11=no
4518 echo "$ac_t""yes" 1>&6
4521 if test $ol_cv_pthread_hpux_11=yes ; then
4522 ol_link_threads=posix
4523 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4524 if test $ol_try_pthread_hpux_11=yes ; then
4525 ac_cv_func_pthread_attr_init=yes
4530 if test $ol_link_threads = no ; then
4531 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
4532 echo "configure:4533: checking for pthread_create with -threads" >&5
4533 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4538 LIBS="-threads $LIBS"
4539 cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure"
4541 #include "confdefs.h"
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 ol_cv_thread_flag=yes
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4556 ol_cv_thread_flag=no
4563 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4565 if test $ol_cv_thread_flag = yes ; then
4566 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
4567 ol_link_threads=posix
4571 if test $ol_link_threads = no ; then
4573 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
4574 echo "configure:4575: checking for pthread_mutex_unlock in -lpthreads" >&5
4575 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6
4579 ac_save_LIBS="$LIBS"
4580 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 /* Override any gcc2 internal prototype to avoid an error. */
4585 /* We use char because int might match the return type of a gcc2
4586 builtin and then its argument prototype would still apply. */
4587 char pthread_mutex_unlock();
4590 pthread_mutex_unlock()
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595 eval "ac_cv_lib_$ac_lib_var=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4600 eval "ac_cv_lib_$ac_lib_var=no"
4603 LIBS="$ac_save_LIBS"
4606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4607 echo "$ac_t""yes" 1>&6
4609 ol_link_threads=posix
4610 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
4611 if test $ol_with_yielding_select = auto ; then
4612 ol_with_yielding_select=yes
4616 echo "$ac_t""no" 1>&6
4623 if test $ol_link_threads = no ; then
4625 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
4626 echo "configure:4627: checking for pthread_mutex_lock in -lpthreads" >&5
4627 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 ac_save_LIBS="$LIBS"
4632 LIBS="-lpthreads -lmach -lexc $LIBS"
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4639 char pthread_mutex_lock();
4642 pthread_mutex_lock()
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4647 eval "ac_cv_lib_$ac_lib_var=yes"
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4652 eval "ac_cv_lib_$ac_lib_var=no"
4655 LIBS="$ac_save_LIBS"
4658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4659 echo "$ac_t""yes" 1>&6
4661 ol_link_threads=posix
4662 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
4663 if test $ol_with_yielding_select = auto ; then
4664 ol_with_yielding_select=yes
4668 echo "$ac_t""no" 1>&6
4675 if test $ol_link_threads = no ; then
4677 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
4678 echo "configure:4679: checking for pthread_mutex_trylock in -lpthreads" >&5
4679 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4683 ac_save_LIBS="$LIBS"
4684 LIBS="-lpthreads -lexc $LIBS"
4685 cat > conftest.$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4688 /* Override any gcc2 internal prototype to avoid an error. */
4689 /* We use char because int might match the return type of a gcc2
4690 builtin and then its argument prototype would still apply. */
4691 char pthread_mutex_trylock();
4694 pthread_mutex_trylock()
4697 if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4699 eval "ac_cv_lib_$ac_lib_var=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4704 eval "ac_cv_lib_$ac_lib_var=no"
4707 LIBS="$ac_save_LIBS"
4710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4711 echo "$ac_t""yes" 1>&6
4713 ol_link_threads=posix
4714 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
4715 if test $ol_with_yielding_select = auto ; then
4716 ol_with_yielding_select=yes
4720 echo "$ac_t""no" 1>&6
4727 if test $ol_link_threads != no ; then
4728 cat >> confdefs.h <<\EOF
4729 #define HAVE_PTHREADS 1
4733 save_CPPFLAGS="$CPPFLAGS"
4735 LIBS="$LTHREAD_LIBS $LIBS"
4737 for ac_func in sched_yield pthread_yield
4739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4740 echo "configure:4741: checking for $ac_func" >&5
4741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4742 echo $ac_n "(cached) $ac_c" 1>&6
4744 cat > conftest.$ac_ext <<EOF
4745 #line 4746 "configure"
4746 #include "confdefs.h"
4747 /* System header to define __stub macros and hopefully few prototypes,
4748 which can conflict with char $ac_func(); below. */
4750 /* Override any gcc2 internal prototype to avoid an error. */
4751 /* We use char because int might match the return type of a gcc2
4752 builtin and then its argument prototype would still apply. */
4757 /* The GNU C library defines this for functions which it implements
4758 to always fail with ENOSYS. Some functions are actually named
4759 something starting with __ and the normal name is an alias. */
4760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4768 if { (eval echo configure:4769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4770 eval "ac_cv_func_$ac_func=yes"
4772 echo "configure: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4775 eval "ac_cv_func_$ac_func=no"
4780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4781 echo "$ac_t""yes" 1>&6
4782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4783 cat >> confdefs.h <<EOF
4784 #define $ac_tr_func 1
4788 echo "$ac_t""no" 1>&6
4793 if test $ac_cv_func_sched_yield = no -a \
4794 $ac_cv_func_pthread_yield = no ; then
4795 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4796 echo "configure:4797: checking for sched_yield in -lrt" >&5
4797 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4799 echo $ac_n "(cached) $ac_c" 1>&6
4801 ac_save_LIBS="$LIBS"
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4806 /* Override any gcc2 internal prototype to avoid an error. */
4807 /* We use char because int might match the return type of a gcc2
4808 builtin and then its argument prototype would still apply. */
4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4817 eval "ac_cv_lib_$ac_lib_var=yes"
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4822 eval "ac_cv_lib_$ac_lib_var=no"
4825 LIBS="$ac_save_LIBS"
4828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4829 echo "$ac_t""yes" 1>&6
4830 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
4831 cat >> confdefs.h <<\EOF
4832 #define HAVE_SCHED_YIELD 1
4835 ac_cv_func_sched_yield=yes
4837 echo "$ac_t""no" 1>&6
4838 ac_cv_func_sched_yield=no
4842 if test $ac_cv_func_sched_yield = no -a \
4843 $ac_cv_func_pthread_yield = no ; then
4844 for ac_func in thr_yield
4846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4847 echo "configure:4848: checking for $ac_func" >&5
4848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4854 /* System header to define __stub macros and hopefully few prototypes,
4855 which can conflict with char $ac_func(); below. */
4857 /* Override any gcc2 internal prototype to avoid an error. */
4858 /* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4864 /* The GNU C library defines this for functions which it implements
4865 to always fail with ENOSYS. Some functions are actually named
4866 something starting with __ and the normal name is an alias. */
4867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4875 if { (eval echo configure:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4877 eval "ac_cv_func_$ac_func=yes"
4879 echo "configure: failed program was:" >&5
4880 cat conftest.$ac_ext >&5
4882 eval "ac_cv_func_$ac_func=no"
4887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4888 echo "$ac_t""yes" 1>&6
4889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4890 cat >> confdefs.h <<EOF
4891 #define $ac_tr_func 1
4895 echo "$ac_t""no" 1>&6
4900 if test $ac_cv_func_sched_yield = no -a \
4901 $ac_cv_func_pthread_yield = no -a \
4902 "$ac_cv_func_thr_yield" = no ; then
4903 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
4906 for ac_func in pthread_kill pthread_detach
4908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4909 echo "configure:4910: checking for $ac_func" >&5
4910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 /* System header to define __stub macros and hopefully few prototypes,
4917 which can conflict with char $ac_func(); below. */
4919 /* Override any gcc2 internal prototype to avoid an error. */
4920 /* We use char because int might match the return type of a gcc2
4921 builtin and then its argument prototype would still apply. */
4926 /* The GNU C library defines this for functions which it implements
4927 to always fail with ENOSYS. Some functions are actually named
4928 something starting with __ and the normal name is an alias. */
4929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4937 if { (eval echo configure:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4939 eval "ac_cv_func_$ac_func=yes"
4941 echo "configure: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4944 eval "ac_cv_func_$ac_func=no"
4949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4950 echo "$ac_t""yes" 1>&6
4951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4952 cat >> confdefs.h <<EOF
4953 #define $ac_tr_func 1
4957 echo "$ac_t""no" 1>&6
4962 if test $ac_cv_func_pthread_detach = no ; then
4963 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
4967 pthread_setconcurrency \
4968 pthread_getconcurrency \
4969 thr_setconcurrency \
4970 thr_getconcurrency \
4973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4974 echo "configure:4975: checking for $ac_func" >&5
4975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4981 /* System header to define __stub macros and hopefully few prototypes,
4982 which can conflict with char $ac_func(); below. */
4984 /* Override any gcc2 internal prototype to avoid an error. */
4985 /* We use char because int might match the return type of a gcc2
4986 builtin and then its argument prototype would still apply. */
4991 /* The GNU C library defines this for functions which it implements
4992 to always fail with ENOSYS. Some functions are actually named
4993 something starting with __ and the normal name is an alias. */
4994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5002 if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5004 eval "ac_cv_func_$ac_func=yes"
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5009 eval "ac_cv_func_$ac_func=no"
5014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5015 echo "$ac_t""yes" 1>&6
5016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5017 cat >> confdefs.h <<EOF
5018 #define $ac_tr_func 1
5022 echo "$ac_t""no" 1>&6
5027 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5028 echo "configure:5029: checking if pthread_create() works" >&5
5029 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
5030 echo $ac_n "(cached) $ac_c" 1>&6
5033 if test "$cross_compiling" = yes; then
5034 ol_cv_pthread_create_works=yes
5036 cat > conftest.$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5040 #include <pthread.h>
5042 #define NULL (void*)0
5045 static void *task(p)
5048 return (void *) (p == NULL);
5051 int main(argc, argv)
5056 exit(pthread_create(&t, NULL, task, NULL));
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5062 ol_cv_pthread_create_works=yes
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 ol_cv_pthread_create_works=no
5074 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5076 if test $ol_cv_pthread_create_works = no ; then
5077 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
5080 if test $ol_with_yielding_select = auto ; then
5081 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5082 echo "configure:5083: checking if select yields when using pthreads" >&5
5083 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5087 if test "$cross_compiling" = yes; then
5089 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5091 cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5095 #include <sys/types.h>
5096 #include <sys/time.h>
5098 #include <pthread.h>
5100 #define NULL (void*) 0
5103 static int fildes[2];
5105 static void *task(p)
5117 FD_SET(fildes[0], &rfds);
5119 /* we're not interested in any fds */
5120 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5127 exit(0); /* if we exit here, the select blocked the whole process */
5130 int main(argc, argv)
5136 /* create a pipe to select */
5137 if(pipe(&fildes[0])) {
5142 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5143 (void) pthread_setconcurrency(2);
5145 #ifdef HAVE_THR_SETCONCURRENCY
5146 /* Set Solaris LWP concurrency to 2 */
5147 thr_setconcurrency(2);
5151 pthread_create(&t, NULL, task, NULL);
5153 #if HAVE_SCHED_YIELD
5154 sched_yield(); /* make sure task runs first */
5156 #ifdef HAVE_PTHREAD_YIELD
5157 pthread_yield(); /* make sure task runs first */
5164 if { (eval echo configure:5165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5166 ol_cv_pthread_select_yields=no
5168 echo "configure: failed program was:" >&5
5169 cat conftest.$ac_ext >&5
5171 ol_cv_pthread_select_yields=yes
5178 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5180 if test $ol_cv_pthread_select_yields = yes ; then
5181 ol_with_yielding_select=yes
5185 CPPFLAGS="$save_CPPFLAGS"
5188 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5192 if test $ol_with_threads = posix ; then
5193 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5197 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5198 -o $ol_with_threads = mach ; then
5200 for ac_hdr in mach/cthreads.h
5202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5204 echo "configure:5205: checking for $ac_hdr" >&5
5205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 cat > conftest.$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5214 { (eval echo configure:5215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5216 if test -z "$ac_err"; then
5218 eval "ac_cv_header_$ac_safe=yes"
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5224 eval "ac_cv_header_$ac_safe=no"
5228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5229 echo "$ac_t""yes" 1>&6
5230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5231 cat >> confdefs.h <<EOF
5232 #define $ac_tr_hdr 1
5236 echo "$ac_t""no" 1>&6
5240 if test $ac_cv_header_mach_cthreads_h = yes ; then
5241 ol_with_threads=found
5243 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5244 echo "configure:5245: checking for cthread_fork" >&5
5245 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5251 /* System header to define __stub macros and hopefully few prototypes,
5252 which can conflict with char cthread_fork(); below. */
5254 /* Override any gcc2 internal prototype to avoid an error. */
5255 /* We use char because int might match the return type of a gcc2
5256 builtin and then its argument prototype would still apply. */
5257 char cthread_fork();
5261 /* The GNU C library defines this for functions which it implements
5262 to always fail with ENOSYS. Some functions are actually named
5263 something starting with __ and the normal name is an alias. */
5264 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5272 if { (eval echo configure:5273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5274 eval "ac_cv_func_cthread_fork=yes"
5276 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5279 eval "ac_cv_func_cthread_fork=no"
5284 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5285 echo "$ac_t""yes" 1>&6
5288 echo "$ac_t""no" 1>&6
5292 if test $ol_link_threads = no ; then
5293 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5294 echo "configure:5295: checking for cthread_fork with -all_load" >&5
5295 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
5296 echo $ac_n "(cached) $ac_c" 1>&6
5300 LIBS="-all_load $LIBS"
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5304 #include <mach/cthreads.h>
5307 cthread_fork((void *)0, (void *)0);
5311 if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5313 ol_cv_cthread_all_load=yes
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5318 ol_cv_cthread_all_load=no
5325 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5327 if test $ol_cv_cthread_all_load = yes ; then
5328 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5329 ol_link_threads=mach
5333 if test $ol_link_threads != no ; then
5334 : check for cthread specific functionality here
5335 cat >> confdefs.h <<\EOF
5336 #define HAVE_MACH_CTHREADS 1
5340 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5344 if test $ol_with_threads = mach ; then
5345 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5349 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5350 -o $ol_with_threads = lwp ; then
5352 for ac_hdr in thread.h synch.h
5354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5356 echo "configure:5357: checking for $ac_hdr" >&5
5357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5358 echo $ac_n "(cached) $ac_c" 1>&6
5360 cat > conftest.$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5366 { (eval echo configure:5367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5368 if test -z "$ac_err"; then
5370 eval "ac_cv_header_$ac_safe=yes"
5373 echo "configure: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5376 eval "ac_cv_header_$ac_safe=no"
5380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5381 echo "$ac_t""yes" 1>&6
5382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5383 cat >> confdefs.h <<EOF
5384 #define $ac_tr_hdr 1
5388 echo "$ac_t""no" 1>&6
5392 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
5393 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
5394 echo "configure:5395: checking for thr_create in -lthread" >&5
5395 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
5396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5397 echo $ac_n "(cached) $ac_c" 1>&6
5399 ac_save_LIBS="$LIBS"
5400 LIBS="-lthread $LIBS"
5401 cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5404 /* Override any gcc2 internal prototype to avoid an error. */
5405 /* We use char because int might match the return type of a gcc2
5406 builtin and then its argument prototype would still apply. */
5413 if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5415 eval "ac_cv_lib_$ac_lib_var=yes"
5417 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5420 eval "ac_cv_lib_$ac_lib_var=no"
5423 LIBS="$ac_save_LIBS"
5426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5427 echo "$ac_t""yes" 1>&6
5430 echo "$ac_t""no" 1>&6
5435 if test $have_thr = yes ; then
5436 cat >> confdefs.h <<\EOF
5440 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
5443 if test $ol_with_yielding_select = auto ; then
5444 ol_with_yielding_select=yes
5448 thr_setconcurrency \
5449 thr_getconcurrency \
5452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5453 echo "configure:5454: checking for $ac_func" >&5
5454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5455 echo $ac_n "(cached) $ac_c" 1>&6
5457 cat > conftest.$ac_ext <<EOF
5458 #line 5459 "configure"
5459 #include "confdefs.h"
5460 /* System header to define __stub macros and hopefully few prototypes,
5461 which can conflict with char $ac_func(); below. */
5463 /* Override any gcc2 internal prototype to avoid an error. */
5464 /* We use char because int might match the return type of a gcc2
5465 builtin and then its argument prototype would still apply. */
5470 /* The GNU C library defines this for functions which it implements
5471 to always fail with ENOSYS. Some functions are actually named
5472 something starting with __ and the normal name is an alias. */
5473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5481 if { (eval echo configure:5482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5483 eval "ac_cv_func_$ac_func=yes"
5485 echo "configure: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5488 eval "ac_cv_func_$ac_func=no"
5493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5494 echo "$ac_t""yes" 1>&6
5495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5496 cat >> confdefs.h <<EOF
5497 #define $ac_tr_func 1
5501 echo "$ac_t""no" 1>&6
5508 for ac_hdr in lwp/lwp.h
5510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5512 echo "configure:5513: checking for $ac_hdr" >&5
5513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5516 cat > conftest.$ac_ext <<EOF
5517 #line 5518 "configure"
5518 #include "confdefs.h"
5521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5522 { (eval echo configure:5523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5524 if test -z "$ac_err"; then
5526 eval "ac_cv_header_$ac_safe=yes"
5529 echo "configure: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5532 eval "ac_cv_header_$ac_safe=no"
5536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5537 echo "$ac_t""yes" 1>&6
5538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5539 cat >> confdefs.h <<EOF
5540 #define $ac_tr_hdr 1
5544 echo "$ac_t""no" 1>&6
5548 if test $ac_cv_header_lwp_lwp_h = yes ; then
5549 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
5550 echo "configure:5551: checking for lwp_create in -llwp" >&5
5551 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
5552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5553 echo $ac_n "(cached) $ac_c" 1>&6
5555 ac_save_LIBS="$LIBS"
5557 cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 /* Override any gcc2 internal prototype to avoid an error. */
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5569 if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5571 eval "ac_cv_lib_$ac_lib_var=yes"
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5576 eval "ac_cv_lib_$ac_lib_var=no"
5579 LIBS="$ac_save_LIBS"
5582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5583 echo "$ac_t""yes" 1>&6
5586 echo "$ac_t""no" 1>&6
5591 if test $have_lwp = yes ; then
5592 cat >> confdefs.h <<\EOF
5596 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
5599 if test $ol_with_yielding_select = auto ; then
5600 ol_with_yielding_select=no
5606 if test $ol_with_yielding_select = yes ; then
5607 cat >> confdefs.h <<\EOF
5608 #define HAVE_YIELDING_SELECT 1
5613 if test $ol_with_threads = manual ; then
5616 echo "configure: warning: thread defines and link options must be set manually" 1>&2
5618 for ac_hdr in pthread.h sched.h
5620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5622 echo "configure:5623: checking for $ac_hdr" >&5
5623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5624 echo $ac_n "(cached) $ac_c" 1>&6
5626 cat > conftest.$ac_ext <<EOF
5627 #line 5628 "configure"
5628 #include "confdefs.h"
5631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5632 { (eval echo configure:5633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5634 if test -z "$ac_err"; then
5636 eval "ac_cv_header_$ac_safe=yes"
5639 echo "configure: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5642 eval "ac_cv_header_$ac_safe=no"
5646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5647 echo "$ac_t""yes" 1>&6
5648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5649 cat >> confdefs.h <<EOF
5650 #define $ac_tr_hdr 1
5654 echo "$ac_t""no" 1>&6
5658 for ac_func in sched_yield pthread_yield
5660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5661 echo "configure:5662: checking for $ac_func" >&5
5662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 cat > conftest.$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5668 /* System header to define __stub macros and hopefully few prototypes,
5669 which can conflict with char $ac_func(); below. */
5671 /* Override any gcc2 internal prototype to avoid an error. */
5672 /* We use char because int might match the return type of a gcc2
5673 builtin and then its argument prototype would still apply. */
5678 /* The GNU C library defines this for functions which it implements
5679 to always fail with ENOSYS. Some functions are actually named
5680 something starting with __ and the normal name is an alias. */
5681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5689 if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5691 eval "ac_cv_func_$ac_func=yes"
5693 echo "configure: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5696 eval "ac_cv_func_$ac_func=no"
5701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5702 echo "$ac_t""yes" 1>&6
5703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5704 cat >> confdefs.h <<EOF
5705 #define $ac_tr_func 1
5709 echo "$ac_t""no" 1>&6
5714 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5715 echo "configure:5716: checking for LinuxThreads" >&5
5716 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5720 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5721 if test "$res" -gt 0 ; then
5722 ol_cv_linux_threads=yes
5724 ol_cv_linux_threads=no
5729 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5732 for ac_hdr in mach/cthreads.h
5734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5736 echo "configure:5737: checking for $ac_hdr" >&5
5737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5738 echo $ac_n "(cached) $ac_c" 1>&6
5740 cat > conftest.$ac_ext <<EOF
5741 #line 5742 "configure"
5742 #include "confdefs.h"
5745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5746 { (eval echo configure:5747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5748 if test -z "$ac_err"; then
5750 eval "ac_cv_header_$ac_safe=yes"
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5756 eval "ac_cv_header_$ac_safe=no"
5760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5761 echo "$ac_t""yes" 1>&6
5762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5763 cat >> confdefs.h <<EOF
5764 #define $ac_tr_hdr 1
5768 echo "$ac_t""no" 1>&6
5772 for ac_hdr in lwp/lwp.h
5774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5776 echo "configure:5777: checking for $ac_hdr" >&5
5777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5786 { (eval echo configure:5787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5788 if test -z "$ac_err"; then
5790 eval "ac_cv_header_$ac_safe=yes"
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5796 eval "ac_cv_header_$ac_safe=no"
5800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5801 echo "$ac_t""yes" 1>&6
5802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5803 cat >> confdefs.h <<EOF
5804 #define $ac_tr_hdr 1
5808 echo "$ac_t""no" 1>&6
5812 for ac_hdr in thread.h synch.h
5814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5816 echo "configure:5817: checking for $ac_hdr" >&5
5817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5818 echo $ac_n "(cached) $ac_c" 1>&6
5820 cat > conftest.$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5826 { (eval echo configure:5827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5828 if test -z "$ac_err"; then
5830 eval "ac_cv_header_$ac_safe=yes"
5833 echo "configure: failed program was:" >&5
5834 cat conftest.$ac_ext >&5
5836 eval "ac_cv_header_$ac_safe=no"
5840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5841 echo "$ac_t""yes" 1>&6
5842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5843 cat >> confdefs.h <<EOF
5844 #define $ac_tr_hdr 1
5848 echo "$ac_t""no" 1>&6
5854 if test $ol_link_threads != no ; then
5855 cat >> confdefs.h <<\EOF
5859 cat >> confdefs.h <<\EOF
5860 #define _REENTRANT 1
5863 cat >> confdefs.h <<\EOF
5864 #define THREAD_SAFE 1
5867 cat >> confdefs.h <<\EOF
5868 #define _THREAD_SAFE 1
5871 cat >> confdefs.h <<\EOF
5872 #define THREADSAFE 1
5875 cat >> confdefs.h <<\EOF
5876 #define _THREADSAFE 1
5880 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
5881 echo "configure:5882: checking for thread specific errno" >&5
5882 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5898 if { (eval echo configure:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5900 ol_cv_errno_thread_specific=yes
5902 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5905 ol_cv_errno_thread_specific=no
5911 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
5913 if test $ol_cv_errno_thread_specific != yes ; then
5914 LIBS="$LTHREAD_LIBS $LIBS"
5921 if test $ol_link_threads = no ; then
5922 if test $ol_with_threads = yes ; then
5923 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
5926 if test $ol_with_threads = auto ; then
5927 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
5931 cat >> confdefs.h <<\EOF
5932 #define NO_THREADS 1
5939 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
5940 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
5941 echo "configure:5942: checking for DB2 library" >&5
5942 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5946 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
5947 echo "configure:5948: checking for db_open in -ldb" >&5
5948 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
5949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5950 echo $ac_n "(cached) $ac_c" 1>&6
5952 ac_save_LIBS="$LIBS"
5954 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 /* Override any gcc2 internal prototype to avoid an error. */
5958 /* We use char because int might match the return type of a gcc2
5959 builtin and then its argument prototype would still apply. */
5966 if { (eval echo configure:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5968 eval "ac_cv_lib_$ac_lib_var=yes"
5970 echo "configure: failed program was:" >&5
5971 cat conftest.$ac_ext >&5
5973 eval "ac_cv_lib_$ac_lib_var=no"
5976 LIBS="$ac_save_LIBS"
5979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5980 echo "$ac_t""yes" 1>&6
5983 echo "$ac_t""no" 1>&6
5991 echo "$ac_t""$ol_cv_lib_db2" 1>&6
5995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5997 echo "configure:5998: checking for $ac_hdr" >&5
5998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6007 { (eval echo configure:6008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6009 if test -z "$ac_err"; then
6011 eval "ac_cv_header_$ac_safe=yes"
6014 echo "configure: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6017 eval "ac_cv_header_$ac_safe=no"
6021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6022 echo "$ac_t""yes" 1>&6
6023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6024 cat >> confdefs.h <<EOF
6025 #define $ac_tr_hdr 1
6029 echo "$ac_t""no" 1>&6
6033 if test $ac_cv_header_db_h = yes ; then
6034 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6035 echo "configure:6036: checking if db.h is DB2" >&5
6036 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6040 cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6045 /* this check could be improved */
6046 # ifdef DB_VERSION_MAJOR
6047 # if DB_VERSION_MAJOR == 2
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054 egrep "__db_version_2" >/dev/null 2>&1; then
6056 ol_cv_header_db2=yes
6065 echo "$ac_t""$ol_cv_header_db2" 1>&6
6072 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6073 echo "configure:6074: checking for Berkeley DB2" >&5
6074 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
6075 echo $ac_n "(cached) $ac_c" 1>&6
6078 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6079 ol_cv_berkeley_db2=no
6081 ol_cv_berkeley_db2=yes
6086 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6087 if test $ol_cv_berkeley_db2 = yes ; then
6088 cat >> confdefs.h <<\EOF
6089 #define HAVE_BERKELEY_DB2 1
6095 if test $ol_cv_berkeley_db2 = yes ; then
6097 ol_with_ldbm_api=db2
6099 if test $ol_with_ldbm_type = hash ; then
6100 cat >> confdefs.h <<\EOF
6101 #define LDBM_USE_DBHASH 1
6105 cat >> confdefs.h <<\EOF
6106 #define LDBM_USE_DBBTREE 1
6111 if test $ol_cv_lib_db2 != yes ; then
6112 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6118 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
6122 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6123 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6124 echo "configure:6125: checking for Berkeley DB library" >&5
6125 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
6126 echo $ac_n "(cached) $ac_c" 1>&6
6129 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6130 echo "configure:6131: checking for dbopen" >&5
6131 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char dbopen(); below. */
6140 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6147 /* The GNU C library defines this for functions which it implements
6148 to always fail with ENOSYS. Some functions are actually named
6149 something starting with __ and the normal name is an alias. */
6150 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6158 if { (eval echo configure:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6160 eval "ac_cv_func_dbopen=yes"
6162 echo "configure: failed program was:" >&5
6163 cat conftest.$ac_ext >&5
6165 eval "ac_cv_func_dbopen=no"
6170 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6171 echo "$ac_t""yes" 1>&6
6174 echo "$ac_t""no" 1>&6
6176 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6177 echo "configure:6178: checking for dbopen in -ldb" >&5
6178 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
6179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6180 echo $ac_n "(cached) $ac_c" 1>&6
6182 ac_save_LIBS="$LIBS"
6184 cat > conftest.$ac_ext <<EOF
6185 #line 6186 "configure"
6186 #include "confdefs.h"
6187 /* Override any gcc2 internal prototype to avoid an error. */
6188 /* We use char because int might match the return type of a gcc2
6189 builtin and then its argument prototype would still apply. */
6196 if { (eval echo configure:6197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6198 eval "ac_cv_lib_$ac_lib_var=yes"
6200 echo "configure: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6203 eval "ac_cv_lib_$ac_lib_var=no"
6206 LIBS="$ac_save_LIBS"
6209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6210 echo "$ac_t""yes" 1>&6
6213 echo "$ac_t""no" 1>&6
6224 echo "$ac_t""$ol_cv_lib_db" 1>&6
6227 for ac_hdr in db_185.h
6229 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6231 echo "configure:6232: checking for $ac_hdr" >&5
6232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6233 echo $ac_n "(cached) $ac_c" 1>&6
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure"
6237 #include "confdefs.h"
6240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6241 { (eval echo configure:6242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6243 if test -z "$ac_err"; then
6245 eval "ac_cv_header_$ac_safe=yes"
6248 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6251 eval "ac_cv_header_$ac_safe=no"
6255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6256 echo "$ac_t""yes" 1>&6
6257 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6258 cat >> confdefs.h <<EOF
6259 #define $ac_tr_hdr 1
6263 echo "$ac_t""no" 1>&6
6267 if test "$ol_cv_header_db2" = yes ; then
6269 ol_cv_header_db=$ac_cv_header_db_185_h
6271 ol_cv_header_db=$ac_cv_header_db_h
6276 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6277 echo "configure:6278: checking for Berkeley DB" >&5
6278 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
6279 echo $ac_n "(cached) $ac_c" 1>&6
6282 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6283 ol_cv_berkeley_db=no
6285 ol_cv_berkeley_db=yes
6290 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6291 if test $ol_cv_berkeley_db = yes ; then
6292 cat >> confdefs.h <<\EOF
6293 #define HAVE_BERKELEY_DB 1
6299 if test $ol_cv_berkeley_db = yes ; then
6303 if test $ol_with_ldbm_type = hash ; then
6304 cat >> confdefs.h <<\EOF
6305 #define LDBM_USE_DBHASH 1
6309 cat >> confdefs.h <<\EOF
6310 #define LDBM_USE_DBBTREE 1
6315 if test $ol_cv_lib_db != yes ; then
6316 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6321 if test $ol_with_ldbm_api = manual ; then
6324 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6326 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6330 echo "configure:6331: checking for $ac_hdr" >&5
6331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6340 { (eval echo configure:6341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6342 if test -z "$ac_err"; then
6344 eval "ac_cv_header_$ac_safe=yes"
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6350 eval "ac_cv_header_$ac_safe=no"
6354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6355 echo "$ac_t""yes" 1>&6
6356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6357 cat >> confdefs.h <<EOF
6358 #define $ac_tr_hdr 1
6362 echo "$ac_t""no" 1>&6
6368 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
6369 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
6370 ol_with_ldbm_api=none
6373 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
6374 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
6375 echo "configure:6376: checking for GDBM library" >&5
6376 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
6377 echo $ac_n "(cached) $ac_c" 1>&6
6380 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6381 echo "configure:6382: checking for gdbm_open" >&5
6382 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
6383 echo $ac_n "(cached) $ac_c" 1>&6
6385 cat > conftest.$ac_ext <<EOF
6386 #line 6387 "configure"
6387 #include "confdefs.h"
6388 /* System header to define __stub macros and hopefully few prototypes,
6389 which can conflict with char gdbm_open(); below. */
6391 /* Override any gcc2 internal prototype to avoid an error. */
6392 /* We use char because int might match the return type of a gcc2
6393 builtin and then its argument prototype would still apply. */
6398 /* The GNU C library defines this for functions which it implements
6399 to always fail with ENOSYS. Some functions are actually named
6400 something starting with __ and the normal name is an alias. */
6401 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
6409 if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411 eval "ac_cv_func_gdbm_open=yes"
6413 echo "configure: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6416 eval "ac_cv_func_gdbm_open=no"
6421 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
6422 echo "$ac_t""yes" 1>&6
6425 echo "$ac_t""no" 1>&6
6427 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6428 echo "configure:6429: checking for gdbm_open in -lgdbm" >&5
6429 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
6430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6433 ac_save_LIBS="$LIBS"
6435 cat > conftest.$ac_ext <<EOF
6436 #line 6437 "configure"
6437 #include "confdefs.h"
6438 /* Override any gcc2 internal prototype to avoid an error. */
6439 /* We use char because int might match the return type of a gcc2
6440 builtin and then its argument prototype would still apply. */
6447 if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6449 eval "ac_cv_lib_$ac_lib_var=yes"
6451 echo "configure: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6454 eval "ac_cv_lib_$ac_lib_var=no"
6457 LIBS="$ac_save_LIBS"
6460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6461 echo "$ac_t""yes" 1>&6
6462 ol_cv_lib_gdbm=-lgdbm
6464 echo "$ac_t""no" 1>&6
6475 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
6478 for ac_hdr in gdbm.h
6480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6482 echo "configure:6483: checking for $ac_hdr" >&5
6483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6484 echo $ac_n "(cached) $ac_c" 1>&6
6486 cat > conftest.$ac_ext <<EOF
6487 #line 6488 "configure"
6488 #include "confdefs.h"
6491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6492 { (eval echo configure:6493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6494 if test -z "$ac_err"; then
6496 eval "ac_cv_header_$ac_safe=yes"
6499 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6502 eval "ac_cv_header_$ac_safe=no"
6506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6507 echo "$ac_t""yes" 1>&6
6508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6509 cat >> confdefs.h <<EOF
6510 #define $ac_tr_hdr 1
6514 echo "$ac_t""no" 1>&6
6518 echo $ac_n "checking for db""... $ac_c" 1>&6
6519 echo "configure:6520: checking for db" >&5
6520 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
6521 echo $ac_n "(cached) $ac_c" 1>&6
6524 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
6532 echo "$ac_t""$ol_cv_gdbm" 1>&6
6533 if test $ol_cv_gdbm = yes ; then
6534 cat >> confdefs.h <<\EOF
6541 if test $ol_cv_gdbm = yes ; then
6543 ol_with_ldbm_api=gdbm
6545 if test $ol_cv_lib_gdbm != yes ; then
6546 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
6551 if test $ol_with_ldbm_api = auto ; then
6552 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
6553 elif test $ol_with_ldbm_api = ndbm ; then
6554 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
6555 echo "configure:6556: checking for NDBM library" >&5
6556 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
6557 echo $ac_n "(cached) $ac_c" 1>&6
6560 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
6561 echo "configure:6562: checking for dbm_open" >&5
6562 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
6563 echo $ac_n "(cached) $ac_c" 1>&6
6565 cat > conftest.$ac_ext <<EOF
6566 #line 6567 "configure"
6567 #include "confdefs.h"
6568 /* System header to define __stub macros and hopefully few prototypes,
6569 which can conflict with char dbm_open(); below. */
6571 /* Override any gcc2 internal prototype to avoid an error. */
6572 /* We use char because int might match the return type of a gcc2
6573 builtin and then its argument prototype would still apply. */
6578 /* The GNU C library defines this for functions which it implements
6579 to always fail with ENOSYS. Some functions are actually named
6580 something starting with __ and the normal name is an alias. */
6581 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
6589 if { (eval echo configure:6590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6591 eval "ac_cv_func_dbm_open=yes"
6593 echo "configure: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6596 eval "ac_cv_func_dbm_open=no"
6601 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
6602 echo "$ac_t""yes" 1>&6
6605 echo "$ac_t""no" 1>&6
6607 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
6608 echo "configure:6609: checking for dbm_open in -lndbm" >&5
6609 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
6610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6611 echo $ac_n "(cached) $ac_c" 1>&6
6613 ac_save_LIBS="$LIBS"
6615 cat > conftest.$ac_ext <<EOF
6616 #line 6617 "configure"
6617 #include "confdefs.h"
6618 /* Override any gcc2 internal prototype to avoid an error. */
6619 /* We use char because int might match the return type of a gcc2
6620 builtin and then its argument prototype would still apply. */
6627 if { (eval echo configure:6628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6629 eval "ac_cv_lib_$ac_lib_var=yes"
6631 echo "configure: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6634 eval "ac_cv_lib_$ac_lib_var=no"
6637 LIBS="$ac_save_LIBS"
6640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6641 echo "$ac_t""yes" 1>&6
6642 ol_cv_lib_ndbm=-lndbm
6644 echo "$ac_t""no" 1>&6
6646 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
6647 echo "configure:6648: checking for dbm_open in -ldbm" >&5
6648 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
6649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6652 ac_save_LIBS="$LIBS"
6654 cat > conftest.$ac_ext <<EOF
6655 #line 6656 "configure"
6656 #include "confdefs.h"
6657 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668 eval "ac_cv_lib_$ac_lib_var=yes"
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6673 eval "ac_cv_lib_$ac_lib_var=no"
6676 LIBS="$ac_save_LIBS"
6679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6680 echo "$ac_t""yes" 1>&6
6681 ol_cv_lib_ndbm=-ldbm
6683 echo "$ac_t""no" 1>&6
6696 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6699 for ac_hdr in ndbm.h
6701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6703 echo "configure:6704: checking for $ac_hdr" >&5
6704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
6712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6713 { (eval echo configure:6714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6715 if test -z "$ac_err"; then
6717 eval "ac_cv_header_$ac_safe=yes"
6720 echo "configure: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6723 eval "ac_cv_header_$ac_safe=no"
6727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6728 echo "$ac_t""yes" 1>&6
6729 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6730 cat >> confdefs.h <<EOF
6731 #define $ac_tr_hdr 1
6735 echo "$ac_t""no" 1>&6
6739 echo $ac_n "checking for db""... $ac_c" 1>&6
6740 echo "configure:6741: checking for db" >&5
6741 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6745 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
6753 echo "$ac_t""$ol_cv_ndbm" 1>&6
6754 if test $ol_cv_ndbm = yes ; then
6755 cat >> confdefs.h <<\EOF
6762 if test $ol_cv_ndbm = yes ; then
6764 ol_with_ldbm_api=ndbm
6766 if test $ol_cv_lib_ndbm != yes ; then
6767 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
6772 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
6773 echo "configure: warning: could not find suitable LDBM backend" 1>&2
6774 if test $ol_enable_ldbm = yes ; then
6775 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
6778 echo "configure: warning: disabling LDBM" 1>&2
6782 if test $ol_enable_wrappers != no ; then
6783 for ac_hdr in tcpd.h
6785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6787 echo "configure:6788: checking for $ac_hdr" >&5
6788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6789 echo $ac_n "(cached) $ac_c" 1>&6
6791 cat > conftest.$ac_ext <<EOF
6792 #line 6793 "configure"
6793 #include "confdefs.h"
6796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6797 { (eval echo configure:6798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6799 if test -z "$ac_err"; then
6801 eval "ac_cv_header_$ac_safe=yes"
6804 echo "configure: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6807 eval "ac_cv_header_$ac_safe=no"
6811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6812 echo "$ac_t""yes" 1>&6
6813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6814 cat >> confdefs.h <<EOF
6815 #define $ac_tr_hdr 1
6819 echo "$ac_t""no" 1>&6
6824 if test $ac_cv_header_tcpd_h != yes ; then
6827 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
6828 echo "configure:6829: checking for main in -lwrap" >&5
6829 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
6830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6833 ac_save_LIBS="$LIBS"
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6843 if { (eval echo configure:6844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6845 eval "ac_cv_lib_$ac_lib_var=yes"
6847 echo "configure: failed program was:" >&5
6848 cat conftest.$ac_ext >&5
6850 eval "ac_cv_lib_$ac_lib_var=no"
6853 LIBS="$ac_save_LIBS"
6856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6857 echo "$ac_t""yes" 1>&6
6860 echo "$ac_t""no" 1>&6
6866 if test $have_wrappers = yes ; then
6867 cat >> confdefs.h <<\EOF
6871 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
6873 echo "configure: warning: could not find -lwrap" 1>&2
6874 if test $ol_enable_wrappers = yes ; then
6875 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
6878 echo "configure: warning: disabling wrappers support" 1>&2
6879 ol_enable_wrappers=no
6883 if test $ol_enable_syslog != no ; then
6884 echo $ac_n "checking for openlog""... $ac_c" 1>&6
6885 echo "configure:6886: checking for openlog" >&5
6886 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
6887 echo $ac_n "(cached) $ac_c" 1>&6
6889 cat > conftest.$ac_ext <<EOF
6890 #line 6891 "configure"
6891 #include "confdefs.h"
6892 /* System header to define __stub macros and hopefully few prototypes,
6893 which can conflict with char openlog(); below. */
6895 /* Override any gcc2 internal prototype to avoid an error. */
6896 /* We use char because int might match the return type of a gcc2
6897 builtin and then its argument prototype would still apply. */
6902 /* The GNU C library defines this for functions which it implements
6903 to always fail with ENOSYS. Some functions are actually named
6904 something starting with __ and the normal name is an alias. */
6905 #if defined (__stub_openlog) || defined (__stub___openlog)
6913 if { (eval echo configure:6914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6915 eval "ac_cv_func_openlog=yes"
6917 echo "configure: failed program was:" >&5
6918 cat conftest.$ac_ext >&5
6920 eval "ac_cv_func_openlog=no"
6925 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
6926 echo "$ac_t""yes" 1>&6
6929 echo "$ac_t""no" 1>&6
6932 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
6933 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
6935 ol_enable_syslog=$ac_cv_func_openlog
6938 if test $ol_enable_dmalloc != no ; then
6939 for ac_hdr in dmalloc.h
6941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6943 echo "configure:6944: checking for $ac_hdr" >&5
6944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6945 echo $ac_n "(cached) $ac_c" 1>&6
6947 cat > conftest.$ac_ext <<EOF
6948 #line 6949 "configure"
6949 #include "confdefs.h"
6952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6953 { (eval echo configure:6954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6955 if test -z "$ac_err"; then
6957 eval "ac_cv_header_$ac_safe=yes"
6960 echo "configure: failed program was:" >&5
6961 cat conftest.$ac_ext >&5
6963 eval "ac_cv_header_$ac_safe=no"
6967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6968 echo "$ac_t""yes" 1>&6
6969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6970 cat >> confdefs.h <<EOF
6971 #define $ac_tr_hdr 1
6975 echo "$ac_t""no" 1>&6
6979 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
6980 echo "configure:6981: checking for dmalloc_shutdown in -ldmalloc" >&5
6981 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
6982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6983 echo $ac_n "(cached) $ac_c" 1>&6
6985 ac_save_LIBS="$LIBS"
6986 LIBS="-ldmalloc $LIBS"
6987 cat > conftest.$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6990 /* Override any gcc2 internal prototype to avoid an error. */
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
6993 char dmalloc_shutdown();
6999 if { (eval echo configure:7000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7001 eval "ac_cv_lib_$ac_lib_var=yes"
7003 echo "configure: failed program was:" >&5
7004 cat conftest.$ac_ext >&5
7006 eval "ac_cv_lib_$ac_lib_var=no"
7009 LIBS="$ac_save_LIBS"
7012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7013 echo "$ac_t""yes" 1>&6
7014 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7015 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7016 cat >> confdefs.h <<EOF
7017 #define $ac_tr_lib 1
7020 LIBS="-ldmalloc $LIBS"
7023 echo "$ac_t""no" 1>&6
7028 # ud needs termcap (should insert check here)
7030 for ac_hdr in termcap.h ncurses.h
7032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7034 echo "configure:7035: checking for $ac_hdr" >&5
7035 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7036 echo $ac_n "(cached) $ac_c" 1>&6
7038 cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7044 { (eval echo configure:7045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7046 if test -z "$ac_err"; then
7048 eval "ac_cv_header_$ac_safe=yes"
7051 echo "configure: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7054 eval "ac_cv_header_$ac_safe=no"
7058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7059 echo "$ac_t""yes" 1>&6
7060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7061 cat >> confdefs.h <<EOF
7062 #define $ac_tr_hdr 1
7066 echo "$ac_t""no" 1>&6
7071 if test $ol_link_termcap = no ; then
7072 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
7073 echo "configure:7074: checking for tputs in -ltermcap" >&5
7074 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
7075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7076 echo $ac_n "(cached) $ac_c" 1>&6
7078 ac_save_LIBS="$LIBS"
7079 LIBS="-ltermcap $LIBS"
7080 cat > conftest.$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7083 /* Override any gcc2 internal prototype to avoid an error. */
7084 /* We use char because int might match the return type of a gcc2
7085 builtin and then its argument prototype would still apply. */
7092 if { (eval echo configure:7093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7094 eval "ac_cv_lib_$ac_lib_var=yes"
7096 echo "configure: failed program was:" >&5
7097 cat conftest.$ac_ext >&5
7099 eval "ac_cv_lib_$ac_lib_var=no"
7102 LIBS="$ac_save_LIBS"
7105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7106 echo "$ac_t""yes" 1>&6
7109 echo "$ac_t""no" 1>&6
7113 if test $have_termcap = yes ; then
7114 cat >> confdefs.h <<\EOF
7115 #define HAVE_TERMCAP 1
7119 TERMCAP_LIBS=-ltermcap
7123 if test $ol_link_termcap = no ; then
7124 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
7125 echo "configure:7126: checking for initscr in -lncurses" >&5
7126 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
7127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7128 echo $ac_n "(cached) $ac_c" 1>&6
7130 ac_save_LIBS="$LIBS"
7131 LIBS="-lncurses $LIBS"
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 /* Override any gcc2 internal prototype to avoid an error. */
7136 /* We use char because int might match the return type of a gcc2
7137 builtin and then its argument prototype would still apply. */
7144 if { (eval echo configure:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7146 eval "ac_cv_lib_$ac_lib_var=yes"
7148 echo "configure: failed program was:" >&5
7149 cat conftest.$ac_ext >&5
7151 eval "ac_cv_lib_$ac_lib_var=no"
7154 LIBS="$ac_save_LIBS"
7157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7158 echo "$ac_t""yes" 1>&6
7161 echo "$ac_t""no" 1>&6
7165 if test $have_ncurses = yes ; then
7166 cat >> confdefs.h <<\EOF
7167 #define HAVE_NCURSES 1
7171 TERMCAP_LIBS=-lncurses
7175 if test $ol_link_termcap = no ; then
7176 cat >> confdefs.h <<\EOF
7177 #define NO_TERMCAP 1
7183 # FreeBSD (and others) have crypt(3) in -lcrypt
7184 if test $ol_enable_crypt != no ; then
7185 echo $ac_n "checking for crypt""... $ac_c" 1>&6
7186 echo "configure:7187: checking for crypt" >&5
7187 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
7188 echo $ac_n "(cached) $ac_c" 1>&6
7190 cat > conftest.$ac_ext <<EOF
7191 #line 7192 "configure"
7192 #include "confdefs.h"
7193 /* System header to define __stub macros and hopefully few prototypes,
7194 which can conflict with char crypt(); below. */
7196 /* Override any gcc2 internal prototype to avoid an error. */
7197 /* We use char because int might match the return type of a gcc2
7198 builtin and then its argument prototype would still apply. */
7203 /* The GNU C library defines this for functions which it implements
7204 to always fail with ENOSYS. Some functions are actually named
7205 something starting with __ and the normal name is an alias. */
7206 #if defined (__stub_crypt) || defined (__stub___crypt)
7214 if { (eval echo configure:7215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7216 eval "ac_cv_func_crypt=yes"
7218 echo "configure: failed program was:" >&5
7219 cat conftest.$ac_ext >&5
7221 eval "ac_cv_func_crypt=no"
7226 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
7227 echo "$ac_t""yes" 1>&6
7230 echo "$ac_t""no" 1>&6
7232 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7233 echo "configure:7234: checking for crypt in -lcrypt" >&5
7234 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
7238 ac_save_LIBS="$LIBS"
7239 LIBS="-lcrypt $LIBS"
7240 cat > conftest.$ac_ext <<EOF
7241 #line 7242 "configure"
7242 #include "confdefs.h"
7243 /* Override any gcc2 internal prototype to avoid an error. */
7244 /* We use char because int might match the return type of a gcc2
7245 builtin and then its argument prototype would still apply. */
7252 if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7254 eval "ac_cv_lib_$ac_lib_var=yes"
7256 echo "configure: failed program was:" >&5
7257 cat conftest.$ac_ext >&5
7259 eval "ac_cv_lib_$ac_lib_var=no"
7262 LIBS="$ac_save_LIBS"
7265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7266 echo "$ac_t""yes" 1>&6
7267 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
7270 echo "$ac_t""no" 1>&6
7277 if test $have_crypt = yes ; then
7278 cat >> confdefs.h <<\EOF
7279 #define HAVE_CRYPT 1
7283 echo "configure: warning: could not find crypt" 1>&2
7284 if test $ol_enable_crypt = yes ; then
7285 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
7288 echo "configure: warning: disabling crypt support" 1>&2
7293 # FreeBSD (and others) have setproctitle(3) in -lutil
7294 if test $ol_enable_proctitle != no ; then
7295 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
7296 echo "configure:7297: checking for setproctitle" >&5
7297 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7300 cat > conftest.$ac_ext <<EOF
7301 #line 7302 "configure"
7302 #include "confdefs.h"
7303 /* System header to define __stub macros and hopefully few prototypes,
7304 which can conflict with char setproctitle(); below. */
7306 /* Override any gcc2 internal prototype to avoid an error. */
7307 /* We use char because int might match the return type of a gcc2
7308 builtin and then its argument prototype would still apply. */
7309 char setproctitle();
7313 /* The GNU C library defines this for functions which it implements
7314 to always fail with ENOSYS. Some functions are actually named
7315 something starting with __ and the normal name is an alias. */
7316 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
7324 if { (eval echo configure:7325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7326 eval "ac_cv_func_setproctitle=yes"
7328 echo "configure: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7331 eval "ac_cv_func_setproctitle=no"
7336 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
7337 echo "$ac_t""yes" 1>&6
7338 have_setproctitle=yes
7340 echo "$ac_t""no" 1>&6
7342 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
7343 echo "configure:7344: checking for setproctitle in -lutil" >&5
7344 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
7345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7348 ac_save_LIBS="$LIBS"
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 /* Override any gcc2 internal prototype to avoid an error. */
7354 /* We use char because int might match the return type of a gcc2
7355 builtin and then its argument prototype would still apply. */
7356 char setproctitle();
7362 if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7364 eval "ac_cv_lib_$ac_lib_var=yes"
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 eval "ac_cv_lib_$ac_lib_var=no"
7372 LIBS="$ac_save_LIBS"
7375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7376 echo "$ac_t""yes" 1>&6
7377 have_setproctitle=yes
7378 LUTIL_LIBS="$LUTIL_LIBS -lutil"
7380 echo "$ac_t""no" 1>&6
7381 have_setproctitle=no
7382 LIBOBJS="$LIBOBJS setproctitle.o"
7388 if test $have_setproctitle = yes ; then
7389 cat >> confdefs.h <<\EOF
7390 #define HAVE_SETPROCTITLE 1
7396 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7397 echo "configure:7398: checking for ANSI C header files" >&5
7398 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7399 echo $ac_n "(cached) $ac_c" 1>&6
7401 cat > conftest.$ac_ext <<EOF
7402 #line 7403 "configure"
7403 #include "confdefs.h"
7409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7410 { (eval echo configure:7411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7412 if test -z "$ac_err"; then
7414 ac_cv_header_stdc=yes
7417 echo "configure: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7420 ac_cv_header_stdc=no
7424 if test $ac_cv_header_stdc = yes; then
7425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7426 cat > conftest.$ac_ext <<EOF
7427 #line 7428 "configure"
7428 #include "confdefs.h"
7431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7432 egrep "memchr" >/dev/null 2>&1; then
7436 ac_cv_header_stdc=no
7442 if test $ac_cv_header_stdc = yes; then
7443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7444 cat > conftest.$ac_ext <<EOF
7445 #line 7446 "configure"
7446 #include "confdefs.h"
7449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7450 egrep "free" >/dev/null 2>&1; then
7454 ac_cv_header_stdc=no
7460 if test $ac_cv_header_stdc = yes; then
7461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7462 if test "$cross_compiling" = yes; then
7465 cat > conftest.$ac_ext <<EOF
7466 #line 7467 "configure"
7467 #include "confdefs.h"
7469 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7470 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7471 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7472 int main () { int i; for (i = 0; i < 256; i++)
7473 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7477 if { (eval echo configure:7478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7481 echo "configure: failed program was:" >&5
7482 cat conftest.$ac_ext >&5
7484 ac_cv_header_stdc=no
7492 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7493 if test $ac_cv_header_stdc = yes; then
7494 cat >> confdefs.h <<\EOF
7495 #define STDC_HEADERS 1
7501 if test $ac_cv_header_stdc != yes; then
7502 echo "configure: warning: could not Standard C compliant headers" 1>&2
7506 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
7508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7509 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
7510 echo "configure:7511: checking for $ac_hdr that defines DIR" >&5
7511 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7517 #include <sys/types.h>
7523 if { (eval echo configure:7524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7525 eval "ac_cv_header_dirent_$ac_safe=yes"
7527 echo "configure: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7530 eval "ac_cv_header_dirent_$ac_safe=no"
7534 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
7535 echo "$ac_t""yes" 1>&6
7536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7537 cat >> confdefs.h <<EOF
7538 #define $ac_tr_hdr 1
7540 ac_header_dirent=$ac_hdr; break
7542 echo "$ac_t""no" 1>&6
7545 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7546 if test $ac_header_dirent = dirent.h; then
7547 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
7548 echo "configure:7549: checking for opendir in -ldir" >&5
7549 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
7550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7553 ac_save_LIBS="$LIBS"
7555 cat > conftest.$ac_ext <<EOF
7556 #line 7557 "configure"
7557 #include "confdefs.h"
7558 /* Override any gcc2 internal prototype to avoid an error. */
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7567 if { (eval echo configure:7568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7569 eval "ac_cv_lib_$ac_lib_var=yes"
7571 echo "configure: failed program was:" >&5
7572 cat conftest.$ac_ext >&5
7574 eval "ac_cv_lib_$ac_lib_var=no"
7577 LIBS="$ac_save_LIBS"
7580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7581 echo "$ac_t""yes" 1>&6
7584 echo "$ac_t""no" 1>&6
7588 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
7589 echo "configure:7590: checking for opendir in -lx" >&5
7590 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
7591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7592 echo $ac_n "(cached) $ac_c" 1>&6
7594 ac_save_LIBS="$LIBS"
7596 cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* Override any gcc2 internal prototype to avoid an error. */
7600 /* We use char because int might match the return type of a gcc2
7601 builtin and then its argument prototype would still apply. */
7608 if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7610 eval "ac_cv_lib_$ac_lib_var=yes"
7612 echo "configure: failed program was:" >&5
7613 cat conftest.$ac_ext >&5
7615 eval "ac_cv_lib_$ac_lib_var=no"
7618 LIBS="$ac_save_LIBS"
7621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7622 echo "$ac_t""yes" 1>&6
7625 echo "$ac_t""no" 1>&6
7630 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7631 echo "configure:7632: checking for sys/wait.h that is POSIX.1 compatible" >&5
7632 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7638 #include <sys/types.h>
7639 #include <sys/wait.h>
7641 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7644 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7649 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7652 if { (eval echo configure:7653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7654 ac_cv_header_sys_wait_h=yes
7656 echo "configure: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7659 ac_cv_header_sys_wait_h=no
7664 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7665 if test $ac_cv_header_sys_wait_h = yes; then
7666 cat >> confdefs.h <<\EOF
7667 #define HAVE_SYS_WAIT_H 1
7672 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
7673 echo "configure:7674: checking POSIX termios" >&5
7674 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
7675 echo $ac_n "(cached) $ac_c" 1>&6
7677 cat > conftest.$ac_ext <<EOF
7678 #line 7679 "configure"
7679 #include "confdefs.h"
7680 #include <sys/types.h>
7682 #include <termios.h>
7684 /* SunOS 4.0.3 has termios.h but not the library calls. */
7688 if { (eval echo configure:7689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7690 am_cv_sys_posix_termios=yes
7692 echo "configure: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7695 am_cv_sys_posix_termios=no
7700 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
7703 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
7704 echo "configure:7705: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
7705 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
7706 echo $ac_n "(cached) $ac_c" 1>&6
7708 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
7710 gwinsz_in_termios_h=no
7711 if test $am_cv_sys_posix_termios = yes; then
7712 cat > conftest.$ac_ext <<EOF
7713 #line 7714 "configure"
7714 #include "confdefs.h"
7715 #include <sys/types.h>
7716 # include <termios.h>
7722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7723 egrep "yes" >/dev/null 2>&1; then
7725 gwinsz_in_termios_h=yes
7731 if test $gwinsz_in_termios_h = no; then
7732 cat > conftest.$ac_ext <<EOF
7733 #line 7734 "configure"
7734 #include "confdefs.h"
7735 #include <sys/types.h>
7736 # include <sys/ioctl.h>
7742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7743 egrep "yes" >/dev/null 2>&1; then
7745 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
7753 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
7754 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
7755 cat >> confdefs.h <<\EOF
7756 #define GWINSZ_IN_SYS_IOCTL 1
7761 if test $am_cv_sys_posix_termios = yes ; then
7762 cat >> confdefs.h <<\EOF
7763 #define HAVE_POSIX_TERMIOS 1
7804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7806 echo "configure:7807: checking for $ac_hdr" >&5
7807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7808 echo $ac_n "(cached) $ac_c" 1>&6
7810 cat > conftest.$ac_ext <<EOF
7811 #line 7812 "configure"
7812 #include "confdefs.h"
7815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7816 { (eval echo configure:7817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7818 if test -z "$ac_err"; then
7820 eval "ac_cv_header_$ac_safe=yes"
7823 echo "configure: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7826 eval "ac_cv_header_$ac_safe=no"
7830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7831 echo "$ac_t""yes" 1>&6
7832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7833 cat >> confdefs.h <<EOF
7834 #define $ac_tr_hdr 1
7838 echo "$ac_t""no" 1>&6
7843 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7844 echo "configure:7845: checking for uid_t in sys/types.h" >&5
7845 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7848 cat > conftest.$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7851 #include <sys/types.h>
7853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7854 egrep "uid_t" >/dev/null 2>&1; then
7856 ac_cv_type_uid_t=yes
7865 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7866 if test $ac_cv_type_uid_t = no; then
7867 cat >> confdefs.h <<\EOF
7871 cat >> confdefs.h <<\EOF
7877 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
7878 echo "configure:7879: checking type of array argument to getgroups" >&5
7879 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7882 if test "$cross_compiling" = yes; then
7883 ac_cv_type_getgroups=cross
7885 cat > conftest.$ac_ext <<EOF
7886 #line 7887 "configure"
7887 #include "confdefs.h"
7889 /* Thanks to Mike Rendell for this test. */
7890 #include <sys/types.h>
7893 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7898 union { gid_t gval; long lval; } val;
7901 for (i = 0; i < NGID; i++)
7902 gidset[i] = val.gval;
7903 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7905 /* Exit non-zero if getgroups seems to require an array of ints. This
7906 happens when gid_t is short but getgroups modifies an array of ints. */
7907 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7911 if { (eval echo configure:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7913 ac_cv_type_getgroups=gid_t
7915 echo "configure: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7918 ac_cv_type_getgroups=int
7923 if test $ac_cv_type_getgroups = cross; then
7924 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7932 ac_cv_type_getgroups=gid_t
7935 ac_cv_type_getgroups=int
7942 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
7943 cat >> confdefs.h <<EOF
7944 #define GETGROUPS_T $ac_cv_type_getgroups
7947 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7948 echo "configure:7949: checking for mode_t" >&5
7949 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7950 echo $ac_n "(cached) $ac_c" 1>&6
7952 cat > conftest.$ac_ext <<EOF
7953 #line 7954 "configure"
7954 #include "confdefs.h"
7955 #include <sys/types.h>
7961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7962 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7964 ac_cv_type_mode_t=yes
7967 ac_cv_type_mode_t=no
7972 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
7973 if test $ac_cv_type_mode_t = no; then
7974 cat >> confdefs.h <<\EOF
7980 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7981 echo "configure:7982: checking for off_t" >&5
7982 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7983 echo $ac_n "(cached) $ac_c" 1>&6
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7988 #include <sys/types.h>
7994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7995 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7997 ac_cv_type_off_t=yes
8005 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8006 if test $ac_cv_type_off_t = no; then
8007 cat >> confdefs.h <<\EOF
8013 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8014 echo "configure:8015: checking for pid_t" >&5
8015 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8016 echo $ac_n "(cached) $ac_c" 1>&6
8018 cat > conftest.$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8021 #include <sys/types.h>
8027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8028 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8030 ac_cv_type_pid_t=yes
8038 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8039 if test $ac_cv_type_pid_t = no; then
8040 cat >> confdefs.h <<\EOF
8046 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
8047 echo "configure:8048: checking for ptrdiff_t" >&5
8048 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8051 cat > conftest.$ac_ext <<EOF
8052 #line 8053 "configure"
8053 #include "confdefs.h"
8059 if { (eval echo configure:8060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8061 am_cv_type_ptrdiff_t=yes
8063 echo "configure: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8066 am_cv_type_ptrdiff_t=no
8071 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
8072 if test $am_cv_type_ptrdiff_t = yes; then
8073 cat >> confdefs.h <<\EOF
8074 #define HAVE_PTRDIFF_T 1
8079 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8080 echo "configure:8081: checking return type of signal handlers" >&5
8081 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
8084 cat > conftest.$ac_ext <<EOF
8085 #line 8086 "configure"
8086 #include "confdefs.h"
8087 #include <sys/types.h>
8093 extern "C" void (*signal (int, void (*)(int)))(int);
8095 void (*signal ()) ();
8102 if { (eval echo configure:8103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8104 ac_cv_type_signal=void
8106 echo "configure: failed program was:" >&5
8107 cat conftest.$ac_ext >&5
8109 ac_cv_type_signal=int
8114 echo "$ac_t""$ac_cv_type_signal" 1>&6
8115 cat >> confdefs.h <<EOF
8116 #define RETSIGTYPE $ac_cv_type_signal
8120 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
8121 echo "configure:8122: checking for sig_atomic_t" >&5
8122 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8125 cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8130 sig_atomic_t atomic;
8133 if { (eval echo configure:8134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8135 ol_cv_type_sig_atomic_t=yes
8137 echo "configure: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8140 ol_cv_type_sig_atomic_t=no
8145 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
8146 if test $ol_cv_type_sig_atomic_t = no; then
8147 cat >> confdefs.h <<\EOF
8148 #define sig_atomic_t int
8153 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8154 echo "configure:8155: checking for size_t" >&5
8155 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8156 echo $ac_n "(cached) $ac_c" 1>&6
8158 cat > conftest.$ac_ext <<EOF
8159 #line 8160 "configure"
8160 #include "confdefs.h"
8161 #include <sys/types.h>
8167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8168 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8170 ac_cv_type_size_t=yes
8173 ac_cv_type_size_t=no
8178 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8179 if test $ac_cv_type_size_t = no; then
8180 cat >> confdefs.h <<\EOF
8181 #define size_t unsigned
8186 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
8187 echo "configure:8188: checking for st_blksize in struct stat" >&5
8188 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
8189 echo $ac_n "(cached) $ac_c" 1>&6
8191 cat > conftest.$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8194 #include <sys/types.h>
8195 #include <sys/stat.h>
8197 struct stat s; s.st_blksize;
8200 if { (eval echo configure:8201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8202 ac_cv_struct_st_blksize=yes
8204 echo "configure: failed program was:" >&5
8205 cat conftest.$ac_ext >&5
8207 ac_cv_struct_st_blksize=no
8212 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
8213 if test $ac_cv_struct_st_blksize = yes; then
8214 cat >> confdefs.h <<\EOF
8215 #define HAVE_ST_BLKSIZE 1
8220 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8221 echo "configure:8222: checking whether time.h and sys/time.h may both be included" >&5
8222 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8223 echo $ac_n "(cached) $ac_c" 1>&6
8225 cat > conftest.$ac_ext <<EOF
8226 #line 8227 "configure"
8227 #include "confdefs.h"
8228 #include <sys/types.h>
8229 #include <sys/time.h>
8235 if { (eval echo configure:8236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8237 ac_cv_header_time=yes
8239 echo "configure: failed program was:" >&5
8240 cat conftest.$ac_ext >&5
8242 ac_cv_header_time=no
8247 echo "$ac_t""$ac_cv_header_time" 1>&6
8248 if test $ac_cv_header_time = yes; then
8249 cat >> confdefs.h <<\EOF
8250 #define TIME_WITH_SYS_TIME 1
8255 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
8256 echo "configure:8257: checking whether struct tm is in sys/time.h or time.h" >&5
8257 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
8258 echo $ac_n "(cached) $ac_c" 1>&6
8260 cat > conftest.$ac_ext <<EOF
8261 #line 8262 "configure"
8262 #include "confdefs.h"
8263 #include <sys/types.h>
8266 struct tm *tp; tp->tm_sec;
8269 if { (eval echo configure:8270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8271 ac_cv_struct_tm=time.h
8273 echo "configure: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8276 ac_cv_struct_tm=sys/time.h
8281 echo "$ac_t""$ac_cv_struct_tm" 1>&6
8282 if test $ac_cv_struct_tm = sys/time.h; then
8283 cat >> confdefs.h <<\EOF
8284 #define TM_IN_SYS_TIME 1
8291 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
8292 echo "configure:8293: checking if toupper() requires islower()" >&5
8293 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
8294 echo $ac_n "(cached) $ac_c" 1>&6
8297 if test "$cross_compiling" = yes; then
8298 ol_cv_c_upper_lower=safe
8300 cat > conftest.$ac_ext <<EOF
8301 #line 8302 "configure"
8302 #include "confdefs.h"
8307 if ('C' == toupper('C'))
8313 if { (eval echo configure:8314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8315 ol_cv_c_upper_lower=no
8317 echo "configure: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8320 ol_cv_c_upper_lower=yes
8327 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
8328 if test $ol_cv_c_upper_lower != no ; then
8329 cat >> confdefs.h <<\EOF
8330 #define C_UPPER_LOWER 1
8335 echo $ac_n "checking for working const""... $ac_c" 1>&6
8336 echo "configure:8337: checking for working const" >&5
8337 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8338 echo $ac_n "(cached) $ac_c" 1>&6
8340 cat > conftest.$ac_ext <<EOF
8341 #line 8342 "configure"
8342 #include "confdefs.h"
8346 /* Ultrix mips cc rejects this. */
8347 typedef int charset[2]; const charset x;
8348 /* SunOS 4.1.1 cc rejects this. */
8349 char const *const *ccp;
8351 /* NEC SVR4.0.2 mips cc rejects this. */
8352 struct point {int x, y;};
8353 static struct point const zero = {0,0};
8354 /* AIX XL C 1.02.0.0 rejects this.
8355 It does not let you subtract one const X* pointer from another in an arm
8356 of an if-expression whose if-part is not a constant expression */
8357 const char *g = "string";
8358 ccp = &g + (g ? g-g : 0);
8359 /* HPUX 7.0 cc rejects these. */
8362 ccp = (char const *const *) p;
8363 { /* SCO 3.2v4 cc rejects this. */
8365 char const *s = 0 ? (char *) 0 : (char const *) 0;
8369 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8371 const int *foo = &x[0];
8374 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8375 typedef const int *iptr;
8379 { /* AIX XL C 1.02.0.0 rejects this saying
8380 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8381 struct s { int j; const int *ap[3]; };
8382 struct s *b; b->j = 5;
8384 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8390 if { (eval echo configure:8391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8402 echo "$ac_t""$ac_cv_c_const" 1>&6
8403 if test $ac_cv_c_const = no; then
8404 cat >> confdefs.h <<\EOF
8410 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
8411 echo "configure:8412: checking if compiler understands volatile" >&5
8412 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8415 cat > conftest.$ac_ext <<EOF
8416 #line 8417 "configure"
8417 #include "confdefs.h"
8420 volatile int a; int * volatile b = x ? &y : &z;
8421 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
8425 if { (eval echo configure:8426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8427 ol_cv_c_volatile=yes
8429 echo "configure: failed program was:" >&5
8430 cat conftest.$ac_ext >&5
8437 echo "$ac_t""$ol_cv_c_volatile" 1>&6
8438 if test $ol_cv_c_volatile = yes; then
8441 cat >> confdefs.h <<\EOF
8448 if test $cross_compiling = yes ; then
8449 cat >> confdefs.h <<\EOF
8450 #define CROSS_COMPILING 1
8454 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8455 echo "configure:8456: checking whether byte ordering is bigendian" >&5
8456 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6
8459 ac_cv_c_bigendian=unknown
8460 # See if sys/param.h defines the BYTE_ORDER macro.
8461 cat > conftest.$ac_ext <<EOF
8462 #line 8463 "configure"
8463 #include "confdefs.h"
8464 #include <sys/types.h>
8465 #include <sys/param.h>
8468 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8473 if { (eval echo configure:8474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8475 # It does; now see whether it defined to BIG_ENDIAN or not.
8476 cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 #include <sys/types.h>
8480 #include <sys/param.h>
8483 #if BYTE_ORDER != BIG_ENDIAN
8488 if { (eval echo configure:8489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8490 ac_cv_c_bigendian=yes
8492 echo "configure: failed program was:" >&5
8493 cat conftest.$ac_ext >&5
8495 ac_cv_c_bigendian=no
8499 echo "configure: failed program was:" >&5
8500 cat conftest.$ac_ext >&5
8503 if test $ac_cv_c_bigendian = unknown; then
8504 if test "$cross_compiling" = yes; then
8505 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8507 cat > conftest.$ac_ext <<EOF
8508 #line 8509 "configure"
8509 #include "confdefs.h"
8511 /* Are we little or big endian? From Harbison&Steele. */
8515 char c[sizeof (long)];
8518 exit (u.c[sizeof (long) - 1] == 1);
8521 if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8523 ac_cv_c_bigendian=no
8525 echo "configure: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8528 ac_cv_c_bigendian=yes
8536 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8537 if test $ac_cv_c_bigendian = yes; then
8538 cat >> confdefs.h <<\EOF
8539 #define WORDS_BIGENDIAN 1
8544 echo $ac_n "checking size of short""... $ac_c" 1>&6
8545 echo "configure:8546: checking size of short" >&5
8546 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8547 echo $ac_n "(cached) $ac_c" 1>&6
8549 if test "$cross_compiling" = yes; then
8550 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8552 cat > conftest.$ac_ext <<EOF
8553 #line 8554 "configure"
8554 #include "confdefs.h"
8558 FILE *f=fopen("conftestval", "w");
8560 fprintf(f, "%d\n", sizeof(short));
8564 if { (eval echo configure:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8566 ac_cv_sizeof_short=`cat conftestval`
8568 echo "configure: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8571 ac_cv_sizeof_short=0
8577 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8578 cat >> confdefs.h <<EOF
8579 #define SIZEOF_SHORT $ac_cv_sizeof_short
8583 echo $ac_n "checking size of int""... $ac_c" 1>&6
8584 echo "configure:8585: checking size of int" >&5
8585 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8586 echo $ac_n "(cached) $ac_c" 1>&6
8588 if test "$cross_compiling" = yes; then
8589 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8591 cat > conftest.$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8597 FILE *f=fopen("conftestval", "w");
8599 fprintf(f, "%d\n", sizeof(int));
8603 if { (eval echo configure:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8605 ac_cv_sizeof_int=`cat conftestval`
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8616 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8617 cat >> confdefs.h <<EOF
8618 #define SIZEOF_INT $ac_cv_sizeof_int
8622 echo $ac_n "checking size of long""... $ac_c" 1>&6
8623 echo "configure:8624: checking size of long" >&5
8624 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8625 echo $ac_n "(cached) $ac_c" 1>&6
8627 if test "$cross_compiling" = yes; then
8628 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8630 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8636 FILE *f=fopen("conftestval", "w");
8638 fprintf(f, "%d\n", sizeof(long));
8642 if { (eval echo configure:8643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8644 ac_cv_sizeof_long=`cat conftestval`
8646 echo "configure: failed program was:" >&5
8647 cat conftest.$ac_ext >&5
8655 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8656 cat >> confdefs.h <<EOF
8657 #define SIZEOF_LONG $ac_cv_sizeof_long
8663 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
8664 echo "configure:8665: checking for 8-bit clean memcmp" >&5
8665 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
8666 echo $ac_n "(cached) $ac_c" 1>&6
8668 if test "$cross_compiling" = yes; then
8669 ac_cv_func_memcmp_clean=no
8671 cat > conftest.$ac_ext <<EOF
8672 #line 8673 "configure"
8673 #include "confdefs.h"
8677 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8678 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
8682 if { (eval echo configure:8683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8684 ac_cv_func_memcmp_clean=yes
8686 echo "configure: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8689 ac_cv_func_memcmp_clean=no
8696 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
8697 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
8699 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8700 echo "configure:8701: checking for strftime" >&5
8701 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8704 cat > conftest.$ac_ext <<EOF
8705 #line 8706 "configure"
8706 #include "confdefs.h"
8707 /* System header to define __stub macros and hopefully few prototypes,
8708 which can conflict with char strftime(); below. */
8710 /* Override any gcc2 internal prototype to avoid an error. */
8711 /* We use char because int might match the return type of a gcc2
8712 builtin and then its argument prototype would still apply. */
8717 /* The GNU C library defines this for functions which it implements
8718 to always fail with ENOSYS. Some functions are actually named
8719 something starting with __ and the normal name is an alias. */
8720 #if defined (__stub_strftime) || defined (__stub___strftime)
8728 if { (eval echo configure:8729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8730 eval "ac_cv_func_strftime=yes"
8732 echo "configure: failed program was:" >&5
8733 cat conftest.$ac_ext >&5
8735 eval "ac_cv_func_strftime=no"
8740 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8741 echo "$ac_t""yes" 1>&6
8742 cat >> confdefs.h <<\EOF
8743 #define HAVE_STRFTIME 1
8747 echo "$ac_t""no" 1>&6
8748 # strftime is in -lintl on SCO UNIX.
8749 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8750 echo "configure:8751: checking for strftime in -lintl" >&5
8751 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8753 echo $ac_n "(cached) $ac_c" 1>&6
8755 ac_save_LIBS="$LIBS"
8757 cat > conftest.$ac_ext <<EOF
8758 #line 8759 "configure"
8759 #include "confdefs.h"
8760 /* Override any gcc2 internal prototype to avoid an error. */
8761 /* We use char because int might match the return type of a gcc2
8762 builtin and then its argument prototype would still apply. */
8769 if { (eval echo configure:8770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8771 eval "ac_cv_lib_$ac_lib_var=yes"
8773 echo "configure: failed program was:" >&5
8774 cat conftest.$ac_ext >&5
8776 eval "ac_cv_lib_$ac_lib_var=no"
8779 LIBS="$ac_save_LIBS"
8782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8783 echo "$ac_t""yes" 1>&6
8784 cat >> confdefs.h <<\EOF
8785 #define HAVE_STRFTIME 1
8790 echo "$ac_t""no" 1>&6
8795 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8796 echo "configure:8797: checking for vprintf" >&5
8797 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8798 echo $ac_n "(cached) $ac_c" 1>&6
8800 cat > conftest.$ac_ext <<EOF
8801 #line 8802 "configure"
8802 #include "confdefs.h"
8803 /* System header to define __stub macros and hopefully few prototypes,
8804 which can conflict with char vprintf(); below. */
8806 /* Override any gcc2 internal prototype to avoid an error. */
8807 /* We use char because int might match the return type of a gcc2
8808 builtin and then its argument prototype would still apply. */
8813 /* The GNU C library defines this for functions which it implements
8814 to always fail with ENOSYS. Some functions are actually named
8815 something starting with __ and the normal name is an alias. */
8816 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8824 if { (eval echo configure:8825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8826 eval "ac_cv_func_vprintf=yes"
8828 echo "configure: failed program was:" >&5
8829 cat conftest.$ac_ext >&5
8831 eval "ac_cv_func_vprintf=no"
8836 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8837 echo "$ac_t""yes" 1>&6
8838 cat >> confdefs.h <<\EOF
8839 #define HAVE_VPRINTF 1
8843 echo "$ac_t""no" 1>&6
8846 if test "$ac_cv_func_vprintf" != yes; then
8847 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8848 echo "configure:8849: checking for _doprnt" >&5
8849 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8850 echo $ac_n "(cached) $ac_c" 1>&6
8852 cat > conftest.$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8855 /* System header to define __stub macros and hopefully few prototypes,
8856 which can conflict with char _doprnt(); below. */
8858 /* Override any gcc2 internal prototype to avoid an error. */
8859 /* We use char because int might match the return type of a gcc2
8860 builtin and then its argument prototype would still apply. */
8865 /* The GNU C library defines this for functions which it implements
8866 to always fail with ENOSYS. Some functions are actually named
8867 something starting with __ and the normal name is an alias. */
8868 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8876 if { (eval echo configure:8877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8878 eval "ac_cv_func__doprnt=yes"
8880 echo "configure: failed program was:" >&5
8881 cat conftest.$ac_ext >&5
8883 eval "ac_cv_func__doprnt=no"
8888 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8889 echo "$ac_t""yes" 1>&6
8890 cat >> confdefs.h <<\EOF
8891 #define HAVE_DOPRNT 1
8895 echo "$ac_t""no" 1>&6
8901 if test $ac_cv_func_vprintf = yes ; then
8902 for ac_func in vsnprintf vsprintf
8904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8905 echo "configure:8906: checking for $ac_func" >&5
8906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8907 echo $ac_n "(cached) $ac_c" 1>&6
8909 cat > conftest.$ac_ext <<EOF
8910 #line 8911 "configure"
8911 #include "confdefs.h"
8912 /* System header to define __stub macros and hopefully few prototypes,
8913 which can conflict with char $ac_func(); below. */
8915 /* Override any gcc2 internal prototype to avoid an error. */
8916 /* We use char because int might match the return type of a gcc2
8917 builtin and then its argument prototype would still apply. */
8922 /* The GNU C library defines this for functions which it implements
8923 to always fail with ENOSYS. Some functions are actually named
8924 something starting with __ and the normal name is an alias. */
8925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8933 if { (eval echo configure:8934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8935 eval "ac_cv_func_$ac_func=yes"
8937 echo "configure: failed program was:" >&5
8938 cat conftest.$ac_ext >&5
8940 eval "ac_cv_func_$ac_func=no"
8945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8946 echo "$ac_t""yes" 1>&6
8947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8948 cat >> confdefs.h <<EOF
8949 #define $ac_tr_func 1
8953 echo "$ac_t""no" 1>&6
8991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8992 echo "configure:8993: checking for $ac_func" >&5
8993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8994 echo $ac_n "(cached) $ac_c" 1>&6
8996 cat > conftest.$ac_ext <<EOF
8997 #line 8998 "configure"
8998 #include "confdefs.h"
8999 /* System header to define __stub macros and hopefully few prototypes,
9000 which can conflict with char $ac_func(); below. */
9002 /* Override any gcc2 internal prototype to avoid an error. */
9003 /* We use char because int might match the return type of a gcc2
9004 builtin and then its argument prototype would still apply. */
9009 /* The GNU C library defines this for functions which it implements
9010 to always fail with ENOSYS. Some functions are actually named
9011 something starting with __ and the normal name is an alias. */
9012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9020 if { (eval echo configure:9021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9022 eval "ac_cv_func_$ac_func=yes"
9024 echo "configure: failed program was:" >&5
9025 cat conftest.$ac_ext >&5
9027 eval "ac_cv_func_$ac_func=no"
9032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9033 echo "$ac_t""yes" 1>&6
9034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9035 cat >> confdefs.h <<EOF
9036 #define $ac_tr_func 1
9040 echo "$ac_t""no" 1>&6
9045 # these functions are required to build a thread_safe -lldap
9053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9054 echo "configure:9055: checking for $ac_func" >&5
9055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9056 echo $ac_n "(cached) $ac_c" 1>&6
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 /* System header to define __stub macros and hopefully few prototypes,
9062 which can conflict with char $ac_func(); below. */
9064 /* Override any gcc2 internal prototype to avoid an error. */
9065 /* We use char because int might match the return type of a gcc2
9066 builtin and then its argument prototype would still apply. */
9071 /* The GNU C library defines this for functions which it implements
9072 to always fail with ENOSYS. Some functions are actually named
9073 something starting with __ and the normal name is an alias. */
9074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9082 if { (eval echo configure:9083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9084 eval "ac_cv_func_$ac_func=yes"
9086 echo "configure: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9089 eval "ac_cv_func_$ac_func=no"
9094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9095 echo "$ac_t""yes" 1>&6
9096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9097 cat >> confdefs.h <<EOF
9098 #define $ac_tr_func 1
9102 echo "$ac_t""no" 1>&6
9107 if test "$ac_cv_func_ctime_r" = yes ; then
9108 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
9109 echo "configure:9110: checking number of arguments of ctime_r" >&5
9110 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
9111 echo $ac_n "(cached) $ac_c" 1>&6
9113 cat > conftest.$ac_ext <<EOF
9114 #line 9115 "configure"
9115 #include "confdefs.h"
9118 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
9121 if { (eval echo configure:9122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9123 ol_cv_func_ctime_r_nargs=3
9125 echo "configure: failed program was:" >&5
9126 cat conftest.$ac_ext >&5
9128 ol_cv_func_ctime_r_nargs=0
9131 if test $ol_cv_func_ctime_r_nargs = 0 ; then
9132 cat > conftest.$ac_ext <<EOF
9133 #line 9134 "configure"
9134 #include "confdefs.h"
9137 time_t ti; char *buffer;
9138 ctime_r(&ti,buffer);
9141 if { (eval echo configure:9142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9143 ol_cv_func_ctime_r_nargs=2
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9148 ol_cv_func_ctime_r_nargs=0
9155 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
9156 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
9157 cat >> confdefs.h <<EOF
9158 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
9164 ol_cv_func_ctime_r=0
9167 if test "$ac_cv_func_strtok_r" = yes \
9168 -a "$ac_cv_func_ctime_r" = yes \
9169 -a "$ol_cv_func_ctime_r_nargs" -ge 2 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
9170 -a "$ac_cv_func_gethostbyaddr_r" = yes \
9171 -a "$ac_cv_func_gethostbyname_r" = yes \
9174 cat >> confdefs.h <<\EOF
9175 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
9180 if test $ol_link_threads != no ; then
9181 cat >> confdefs.h <<\EOF
9182 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
9187 for ac_func in getopt tempnam
9189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9190 echo "configure:9191: checking for $ac_func" >&5
9191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9192 echo $ac_n "(cached) $ac_c" 1>&6
9194 cat > conftest.$ac_ext <<EOF
9195 #line 9196 "configure"
9196 #include "confdefs.h"
9197 /* System header to define __stub macros and hopefully few prototypes,
9198 which can conflict with char $ac_func(); below. */
9200 /* Override any gcc2 internal prototype to avoid an error. */
9201 /* We use char because int might match the return type of a gcc2
9202 builtin and then its argument prototype would still apply. */
9207 /* The GNU C library defines this for functions which it implements
9208 to always fail with ENOSYS. Some functions are actually named
9209 something starting with __ and the normal name is an alias. */
9210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9218 if { (eval echo configure:9219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9220 eval "ac_cv_func_$ac_func=yes"
9222 echo "configure: failed program was:" >&5
9223 cat conftest.$ac_ext >&5
9225 eval "ac_cv_func_$ac_func=no"
9230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9231 echo "$ac_t""yes" 1>&6
9232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9233 cat >> confdefs.h <<EOF
9234 #define $ac_tr_func 1
9238 echo "$ac_t""no" 1>&6
9239 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9245 # Check Configuration
9247 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9248 echo "configure:9249: checking declaration of sys_errlist" >&5
9249 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
9250 echo $ac_n "(cached) $ac_c" 1>&6
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9258 #include <sys/types.h>
9261 char *c = (char *) *sys_errlist
9264 if { (eval echo configure:9265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9266 ol_cv_dcl_sys_errlist=yes
9268 echo "configure: failed program was:" >&5
9269 cat conftest.$ac_ext >&5
9271 ol_cv_dcl_sys_errlist=no
9276 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9278 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9279 if test $ol_cv_dcl_sys_errlist = no ; then
9280 cat >> confdefs.h <<\EOF
9281 #define DECL_SYS_ERRLIST 1
9284 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9285 echo "configure:9286: checking existence of sys_errlist" >&5
9286 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
9287 echo $ac_n "(cached) $ac_c" 1>&6
9290 cat > conftest.$ac_ext <<EOF
9291 #line 9292 "configure"
9292 #include "confdefs.h"
9295 char *c = (char *) *sys_errlist
9298 if { (eval echo configure:9299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9300 ol_cv_have_sys_errlist=yes
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9305 ol_cv_have_sys_errlist=no
9310 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9315 if test "$ol_enable_debug" != no ; then
9316 cat >> confdefs.h <<\EOF
9317 #define LDAP_DEBUG 1
9321 if test "$ol_enable_syslog" = yes ; then
9322 cat >> confdefs.h <<\EOF
9323 #define LDAP_SYSLOG 1
9327 if test "$ol_enable_libui" = yes ; then
9328 cat >> confdefs.h <<\EOF
9329 #define LDAP_LIBUI 1
9333 if test "$ol_enable_cache" = no ; then
9334 cat >> confdefs.h <<\EOF
9335 #define LDAP_NOCACHE 1
9339 if test "$ol_enable_dns" != no ; then
9340 cat >> confdefs.h <<\EOF
9341 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
9345 if test "$ol_enable_proctitle" != no ; then
9346 cat >> confdefs.h <<\EOF
9347 #define LDAP_PROCTITLE 1
9351 if test "$ol_enable_referrals" != no ; then
9352 cat >> confdefs.h <<\EOF
9353 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
9357 if test "$ol_enable_cldap" != no ; then
9358 cat >> confdefs.h <<\EOF
9359 #define LDAP_CONNECTIONLESS 1
9364 if test "$ol_enable_aclgroups" != no ; then
9365 cat >> confdefs.h <<\EOF
9366 #define SLAPD_ACLGROUPS 1
9370 if test "$ol_enable_crypt" != no ; then
9371 cat >> confdefs.h <<\EOF
9372 #define SLAPD_CRYPT 1
9376 if test "$ol_enable_cleartext" != no ; then
9377 cat >> confdefs.h <<\EOF
9378 #define SLAPD_CLEARTEXT 1
9382 if test "$ol_enable_phonetic" != no ; then
9383 cat >> confdefs.h <<\EOF
9384 #define SLAPD_PHONETIC 1
9388 if test "$ol_enable_rlookups" != no ; then
9389 cat >> confdefs.h <<\EOF
9390 #define SLAPD_RLOOKUPS 1
9395 if test "$ol_link_bdb2" != no ; then
9396 cat >> confdefs.h <<\EOF
9397 #define SLAPD_BDB2 1
9404 if test "$ol_link_ldbm" != no ; then
9405 cat >> confdefs.h <<\EOF
9406 #define SLAPD_LDBM 1
9413 if test "$ol_enable_passwd" != no ; then
9414 cat >> confdefs.h <<\EOF
9415 #define SLAPD_PASSWD 1
9422 if test "$ol_enable_perl" != no ; then
9423 cat >> confdefs.h <<\EOF
9424 #define SLAPD_PERL 1
9431 if test "$ol_enable_shell" != no ; then
9432 cat >> confdefs.h <<\EOF
9433 #define SLAPD_SHELL 1
9440 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
9441 $BUILD_SLAPD = yes ; then
9445 if test "$ol_link_isode" != no ; then
9475 cat > confcache <<\EOF
9476 # This file is a shell script that caches the results of configure
9477 # tests run on this system so they can be shared between configure
9478 # scripts and configure runs. It is not useful on other systems.
9479 # If it contains results you don't want to keep, you may remove or edit it.
9481 # By default, configure uses ./config.cache as the cache file,
9482 # creating it if it does not exist already. You can give configure
9483 # the --cache-file=FILE option to use a different cache file; that is
9484 # what configure does when it calls configure scripts in
9485 # subdirectories, so they share the cache.
9486 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9487 # config.status only pays attention to the cache file if you give it the
9488 # --recheck option to rerun configure.
9491 # The following way of writing the cache mishandles newlines in values,
9492 # but we know of no workaround that is simple, portable, and efficient.
9493 # So, don't put newlines in cache variables' values.
9494 # Ultrix sh set writes to stderr and can't be redirected directly,
9495 # and sets the high bit in the cache file unless we assign to the vars.
9497 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9499 # `set' does not quote correctly, so add quotes (double-quote substitution
9500 # turns \\\\ into \\, and sed turns \\ into \).
9502 -e "s/'/'\\\\''/g" \
9503 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9506 # `set' quotes correctly as required by POSIX, so do not add quotes.
9507 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9510 if cmp -s $cache_file confcache; then
9513 if test -w $cache_file; then
9514 echo "updating cache $cache_file"
9515 cat confcache > $cache_file
9517 echo "not updating unwritable cache $cache_file"
9522 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9524 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9525 # Let make expand exec_prefix.
9526 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9528 # Any assignment to VPATH causes Sun make to only execute
9529 # the first set of double-colon rules, so remove it if not needed.
9530 # If there is a colon in the path, we need to keep it.
9531 if test "x$srcdir" = x.; then
9532 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9535 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9537 DEFS=-DHAVE_CONFIG_H
9539 # Without the "./", some shells look in PATH for config.status.
9540 : ${CONFIG_STATUS=./config.status}
9542 echo creating $CONFIG_STATUS
9543 rm -f $CONFIG_STATUS
9544 cat > $CONFIG_STATUS <<EOF
9546 # Generated automatically by configure.
9547 # Run this file to recreate the current configuration.
9548 # This directory was configured as follows,
9549 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9551 # $0 $ac_configure_args
9553 # Compiler output produced by configure, useful for debugging
9554 # configure, is in ./config.log if it exists.
9556 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9559 case "\$ac_option" in
9560 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9561 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9562 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9563 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9564 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9566 -help | --help | --hel | --he | --h)
9567 echo "\$ac_cs_usage"; exit 0 ;;
9568 *) echo "\$ac_cs_usage"; exit 1 ;;
9572 ac_given_srcdir=$srcdir
9573 ac_given_INSTALL="$INSTALL"
9575 trap 'rm -fr `echo "\
9576 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9577 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9578 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9579 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9580 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9581 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9582 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9583 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9584 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9585 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9586 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9587 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9588 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9589 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9590 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9591 include/Makefile:build/top.mk:include/Makefile.in \
9592 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9593 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9594 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9595 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9596 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
9597 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9598 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9599 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9600 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9601 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9602 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9603 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9604 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9605 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
9606 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9607 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9608 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9609 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9610 tests/Makefile:build/top.mk:tests/Makefile.in \
9611 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9613 cat >> $CONFIG_STATUS <<EOF
9615 # Protect against being on the right side of a sed subst in config.status.
9616 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9617 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9621 s%@CFLAGS@%$CFLAGS%g
9622 s%@CPPFLAGS@%$CPPFLAGS%g
9623 s%@CXXFLAGS@%$CXXFLAGS%g
9624 s%@FFLAGS@%$FFLAGS%g
9626 s%@LDFLAGS@%$LDFLAGS%g
9628 s%@exec_prefix@%$exec_prefix%g
9629 s%@prefix@%$prefix%g
9630 s%@program_transform_name@%$program_transform_name%g
9631 s%@bindir@%$bindir%g
9632 s%@sbindir@%$sbindir%g
9633 s%@libexecdir@%$libexecdir%g
9634 s%@datadir@%$datadir%g
9635 s%@sysconfdir@%$sysconfdir%g
9636 s%@sharedstatedir@%$sharedstatedir%g
9637 s%@localstatedir@%$localstatedir%g
9638 s%@libdir@%$libdir%g
9639 s%@includedir@%$includedir%g
9640 s%@oldincludedir@%$oldincludedir%g
9641 s%@infodir@%$infodir%g
9642 s%@mandir@%$mandir%g
9643 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9644 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9645 s%@INSTALL_DATA@%$INSTALL_DATA%g
9646 s%@PACKAGE@%$PACKAGE%g
9647 s%@VERSION@%$VERSION%g
9648 s%@ACLOCAL@%$ACLOCAL%g
9649 s%@AUTOCONF@%$AUTOCONF%g
9650 s%@AUTOMAKE@%$AUTOMAKE%g
9651 s%@AUTOHEADER@%$AUTOHEADER%g
9652 s%@MAKEINFO@%$MAKEINFO%g
9653 s%@SET_MAKE@%$SET_MAKE%g
9654 s%@top_builddir@%$top_builddir%g
9655 s%@ldap_subdir@%$ldap_subdir%g
9657 s%@host_alias@%$host_alias%g
9658 s%@host_cpu@%$host_cpu%g
9659 s%@host_vendor@%$host_vendor%g
9660 s%@host_os@%$host_os%g
9661 s%@RANLIB@%$RANLIB%g
9666 s%@LIBTOOL@%$LIBTOOL%g
9668 s%@SENDMAIL@%$SENDMAIL%g
9669 s%@EDITOR@%$EDITOR%g
9670 s%@FINGER@%$FINGER%g
9671 s%@PERLBIN@%$PERLBIN%g
9673 s%@EXEEXT@%$EXEEXT%g
9674 s%@OBJEXT@%$OBJEXT%g
9676 s%@LIBOBJS@%$LIBOBJS%g
9677 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
9678 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
9679 s%@BUILD_BDB2@%$BUILD_BDB2%g
9680 s%@BUILD_LDBM@%$BUILD_LDBM%g
9681 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
9682 s%@BUILD_PERL@%$BUILD_PERL%g
9683 s%@BUILD_SHELL@%$BUILD_SHELL%g
9684 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
9685 s%@LDAP_LIBS@%$LDAP_LIBS%g
9686 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
9687 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
9688 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
9689 s%@LDBM_LIBS@%$LDBM_LIBS%g
9690 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
9691 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
9692 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
9693 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
9694 s%@KRB_LIBS@%$KRB_LIBS%g
9695 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
9700 cat >> $CONFIG_STATUS <<\EOF
9702 # Split the substitutions into bite-sized pieces for seds with
9703 # small command number limits, like on Digital OSF/1 and HP-UX.
9704 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9705 ac_file=1 # Number of current file.
9706 ac_beg=1 # First line for current file.
9707 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9710 while $ac_more_lines; do
9711 if test $ac_beg -gt 1; then
9712 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9714 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9716 if test ! -s conftest.s$ac_file; then
9718 rm -f conftest.s$ac_file
9720 if test -z "$ac_sed_cmds"; then
9721 ac_sed_cmds="sed -f conftest.s$ac_file"
9723 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9725 ac_file=`expr $ac_file + 1`
9727 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9730 if test -z "$ac_sed_cmds"; then
9735 cat >> $CONFIG_STATUS <<EOF
9737 CONFIG_FILES=\${CONFIG_FILES-"\
9738 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9739 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9740 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9741 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9742 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9743 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9744 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9745 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9746 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9747 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9748 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9749 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9750 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9751 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9752 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9753 include/Makefile:build/top.mk:include/Makefile.in \
9754 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9755 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9756 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9757 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9758 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
9759 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9760 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9761 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9762 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9763 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9764 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9765 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9766 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9767 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
9768 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9769 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9770 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9771 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9772 tests/Makefile:build/top.mk:tests/Makefile.in \
9775 cat >> $CONFIG_STATUS <<\EOF
9776 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9777 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9779 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9780 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9781 *) ac_file_in="${ac_file}.in" ;;
9784 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9786 # Remove last slash and all that follows it. Not all systems have dirname.
9787 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9788 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9789 # The file is in a subdirectory.
9790 test ! -d "$ac_dir" && mkdir "$ac_dir"
9791 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9792 # A "../" for each directory in $ac_dir_suffix.
9793 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9795 ac_dir_suffix= ac_dots=
9798 case "$ac_given_srcdir" in
9800 if test -z "$ac_dots"; then top_srcdir=.
9801 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9802 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9804 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9805 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9808 case "$ac_given_INSTALL" in
9809 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9810 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9813 echo creating "$ac_file"
9815 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9817 *Makefile*) ac_comsub="1i\\
9818 # $configure_input" ;;
9822 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9824 s%@configure_input@%$configure_input%g
9825 s%@srcdir@%$srcdir%g
9826 s%@top_srcdir@%$top_srcdir%g
9827 s%@INSTALL@%$INSTALL%g
9828 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9832 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9833 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9835 # ac_d sets the value in "#define NAME VALUE" lines.
9836 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9837 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9840 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9841 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9842 ac_uB='\([ ]\)%\1#\2define\3'
9845 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9846 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9847 ac_eB='$%\1#\2define\3'
9851 if test "${CONFIG_HEADERS+set}" != set; then
9853 cat >> $CONFIG_STATUS <<EOF
9854 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
9856 cat >> $CONFIG_STATUS <<\EOF
9858 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9859 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9861 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9862 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9863 *) ac_file_in="${ac_file}.in" ;;
9866 echo creating $ac_file
9868 rm -f conftest.frag conftest.in conftest.out
9869 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9870 cat $ac_file_inputs > conftest.in
9874 # Transform confdefs.h into a sed script conftest.vals that substitutes
9875 # the proper values into config.h.in to produce config.h. And first:
9876 # Protect against being on the right side of a sed subst in config.status.
9877 # Protect against being in an unquoted here document in config.status.
9879 cat > conftest.hdr <<\EOF
9882 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9886 sed -n -f conftest.hdr confdefs.h > conftest.vals
9889 # This sed command replaces #undef with comments. This is necessary, for
9890 # example, in the case of _POSIX_SOURCE, which is predefined and required
9891 # on some systems where configure will not decide to define it.
9892 cat >> conftest.vals <<\EOF
9893 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9896 # Break up conftest.vals because some shells have a limit on
9897 # the size of here documents, and old seds have small limits too.
9902 ac_lines=`grep -c . conftest.vals`
9903 # grep -c gives empty output for an empty file on some AIX systems.
9904 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9905 # Write a limited-size here document to conftest.frag.
9906 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9907 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9909 sed -f conftest.frag conftest.in > conftest.out
9911 mv conftest.out conftest.in
9913 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9915 mv conftest.tail conftest.vals
9919 cat >> $CONFIG_STATUS <<\EOF
9920 rm -f conftest.frag conftest.h
9921 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9922 cat conftest.in >> conftest.h
9924 if cmp -s $ac_file conftest.h 2>/dev/null; then
9925 echo "$ac_file is unchanged"
9928 # Remove last slash and all that follows it. Not all systems have dirname.
9929 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9930 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9931 # The file is in a subdirectory.
9932 test ! -d "$ac_dir" && mkdir "$ac_dir"
9935 mv conftest.h $ac_file
9940 cat >> $CONFIG_STATUS <<EOF
9943 cat >> $CONFIG_STATUS <<\EOF
9946 echo Please \"make depend\" to build dependencies
9950 chmod +x $CONFIG_STATUS
9951 rm -fr confdefs* $ac_clean_files
9952 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1