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 with Kerberos support (auto)"
36 --with-readline with readline support (auto)"
38 --with-threads use threads (auto)"
40 --with-tls with TLS/SSL support (auto)"
42 --with-yielding-select with implicitly yielding select (auto)"
46 --enable-ldapd enable building ldapd (no)"
50 --enable-slapd enable building slapd (yes)"
52 --enable-aclgroups enable ACL group support (auto)"
54 --enable-cleartext enable cleartext passwords (yes)"
56 --enable-crypt enable crypt(3) passwords (auto)"
58 --enable-wrappers enable tcp wrapper support (no)"
60 --enable-phonetic enable phonetic/soundex (no)"
62 --enable-rlookups enable reverse lookups (auto)"
64 --enable-bdb2 enable bdb2 backend (no)"
66 --enable-ldbm enable ldbm backend (yes)"
68 --with-ldbm-api use LDBM API (auto)"
70 --with-ldbm-type use LDBM type (auto)"
72 --enable-passwd enable passwd backend (no)"
74 --enable-perl enable perl backend (no)"
76 --enable-shell enable shell backend (no)"
78 --enable-tcl enable tcl backend (no)"
82 --enable-slurpd enable building slurpd (auto)"
84 Library Generation & Linking Options"
86 --enable-static build static libraries [default=yes]
87 --enable-static=PKGS only build shared libraries if the current package
88 appears as an element in the PKGS list"
90 --enable-shared build shared libraries [default=yes]
91 --enable-shared=PKGS only build shared libraries if the current package
92 appears as an element in the PKGS list"
94 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
96 # Initialize some variables set by options.
97 # The variables have the same names as the options, with
98 # dashes changed to underlines.
100 cache_file=./config.cache
109 program_transform_name=s,x,x,
117 bindir='${exec_prefix}/bin'
118 sbindir='${exec_prefix}/sbin'
119 libexecdir='${exec_prefix}/libexec'
120 datadir='${prefix}/share'
121 sysconfdir='${prefix}/etc'
122 sharedstatedir='${prefix}/com'
123 localstatedir='${prefix}/var'
124 libdir='${exec_prefix}/lib'
125 includedir='${prefix}/include'
126 oldincludedir='/usr/include'
127 infodir='${prefix}/info'
128 mandir='${prefix}/man'
130 # Initialize some other variables.
133 SHELL=${CONFIG_SHELL-/bin/sh}
134 # Maximum number of lines to put in a shell here document.
141 # If the previous option needs an argument, assign it.
142 if test -n "$ac_prev"; then
143 eval "$ac_prev=\$ac_option"
149 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
153 # Accept the important Cygnus configure options, so we can diagnose typos.
157 -bindir | --bindir | --bindi | --bind | --bin | --bi)
159 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
160 bindir="$ac_optarg" ;;
162 -build | --build | --buil | --bui | --bu)
164 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
165 build="$ac_optarg" ;;
167 -cache-file | --cache-file | --cache-fil | --cache-fi \
168 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
169 ac_prev=cache_file ;;
170 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
171 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
172 cache_file="$ac_optarg" ;;
174 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
176 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
178 datadir="$ac_optarg" ;;
180 -disable-* | --disable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}=no" ;;
189 -enable-* | --enable-*)
190 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
191 # Reject names that are not valid shell variable names.
192 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
193 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
195 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}='$ac_optarg'" ;;
202 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
203 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
204 | --exec | --exe | --ex)
205 ac_prev=exec_prefix ;;
206 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
207 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
208 | --exec=* | --exe=* | --ex=*)
209 exec_prefix="$ac_optarg" ;;
211 -gas | --gas | --ga | --g)
212 # Obsolete; use --with-gas.
215 -help | --help | --hel | --he)
216 # Omit some internal or obsolete options to make the list less imposing.
217 # This message is too long to be a string in the A/UX 3.1 sh.
219 Usage: configure [options] [host]
220 Options: [defaults in brackets after descriptions]
222 --cache-file=FILE cache test results in FILE
223 --help print this message
224 --no-create do not create output files
225 --quiet, --silent do not print \`checking...' messages
226 --version print the version of autoconf that created configure
227 Directory and file names:
228 --prefix=PREFIX install architecture-independent files in PREFIX
230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
232 --bindir=DIR user executables in DIR [EPREFIX/bin]
233 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
234 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
235 --datadir=DIR read-only architecture-independent data in DIR
237 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
238 --sharedstatedir=DIR modifiable architecture-independent data in DIR
240 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
241 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
242 --includedir=DIR C header files in DIR [PREFIX/include]
243 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
244 --infodir=DIR info documentation in DIR [PREFIX/info]
245 --mandir=DIR man documentation in DIR [PREFIX/man]
246 --srcdir=DIR find the sources in DIR [configure dir or ..]
247 --program-prefix=PREFIX prepend PREFIX to installed program names
248 --program-suffix=SUFFIX append SUFFIX to installed program names
249 --program-transform-name=PROGRAM
250 run sed PROGRAM on installed program names
254 --build=BUILD configure for building on BUILD [BUILD=HOST]
255 --host=HOST configure for HOST [guessed]
256 --target=TARGET configure for TARGET [TARGET=HOST]
257 Features and packages:
258 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
259 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
260 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
261 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
262 --x-includes=DIR X include files are in DIR
263 --x-libraries=DIR X library files are in DIR
265 if test -n "$ac_help"; then
266 echo "--enable and --with options recognized:$ac_help"
270 -host | --host | --hos | --ho)
272 -host=* | --host=* | --hos=* | --ho=*)
275 -includedir | --includedir | --includedi | --included | --include \
276 | --includ | --inclu | --incl | --inc)
277 ac_prev=includedir ;;
278 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
279 | --includ=* | --inclu=* | --incl=* | --inc=*)
280 includedir="$ac_optarg" ;;
282 -infodir | --infodir | --infodi | --infod | --info | --inf)
284 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
285 infodir="$ac_optarg" ;;
287 -libdir | --libdir | --libdi | --libd)
289 -libdir=* | --libdir=* | --libdi=* | --libd=*)
290 libdir="$ac_optarg" ;;
292 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
293 | --libexe | --libex | --libe)
294 ac_prev=libexecdir ;;
295 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
296 | --libexe=* | --libex=* | --libe=*)
297 libexecdir="$ac_optarg" ;;
299 -localstatedir | --localstatedir | --localstatedi | --localstated \
300 | --localstate | --localstat | --localsta | --localst \
301 | --locals | --local | --loca | --loc | --lo)
302 ac_prev=localstatedir ;;
303 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
304 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
305 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
306 localstatedir="$ac_optarg" ;;
308 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
310 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
311 mandir="$ac_optarg" ;;
314 # Obsolete; use --without-fp.
317 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
321 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
322 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
325 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
326 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
327 | --oldin | --oldi | --old | --ol | --o)
328 ac_prev=oldincludedir ;;
329 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
330 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
331 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
332 oldincludedir="$ac_optarg" ;;
334 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
336 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
337 prefix="$ac_optarg" ;;
339 -program-prefix | --program-prefix | --program-prefi | --program-pref \
340 | --program-pre | --program-pr | --program-p)
341 ac_prev=program_prefix ;;
342 -program-prefix=* | --program-prefix=* | --program-prefi=* \
343 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
344 program_prefix="$ac_optarg" ;;
346 -program-suffix | --program-suffix | --program-suffi | --program-suff \
347 | --program-suf | --program-su | --program-s)
348 ac_prev=program_suffix ;;
349 -program-suffix=* | --program-suffix=* | --program-suffi=* \
350 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
351 program_suffix="$ac_optarg" ;;
353 -program-transform-name | --program-transform-name \
354 | --program-transform-nam | --program-transform-na \
355 | --program-transform-n | --program-transform- \
356 | --program-transform | --program-transfor \
357 | --program-transfo | --program-transf \
358 | --program-trans | --program-tran \
359 | --progr-tra | --program-tr | --program-t)
360 ac_prev=program_transform_name ;;
361 -program-transform-name=* | --program-transform-name=* \
362 | --program-transform-nam=* | --program-transform-na=* \
363 | --program-transform-n=* | --program-transform-=* \
364 | --program-transform=* | --program-transfor=* \
365 | --program-transfo=* | --program-transf=* \
366 | --program-trans=* | --program-tran=* \
367 | --progr-tra=* | --program-tr=* | --program-t=*)
368 program_transform_name="$ac_optarg" ;;
370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
371 | -silent | --silent | --silen | --sile | --sil)
374 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
376 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
378 sbindir="$ac_optarg" ;;
380 -sharedstatedir | --sharedstatedir | --sharedstatedi \
381 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
382 | --sharedst | --shareds | --shared | --share | --shar \
384 ac_prev=sharedstatedir ;;
385 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
386 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
387 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
389 sharedstatedir="$ac_optarg" ;;
391 -site | --site | --sit)
393 -site=* | --site=* | --sit=*)
396 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
398 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
399 srcdir="$ac_optarg" ;;
401 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
402 | --syscon | --sysco | --sysc | --sys | --sy)
403 ac_prev=sysconfdir ;;
404 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
405 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
406 sysconfdir="$ac_optarg" ;;
408 -target | --target | --targe | --targ | --tar | --ta | --t)
410 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
411 target="$ac_optarg" ;;
413 -v | -verbose | --verbose | --verbos | --verbo | --verb)
416 -version | --version | --versio | --versi | --vers)
417 echo "configure generated by autoconf version 2.13"
421 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}='$ac_optarg'" ;;
433 -without-* | --without-*)
434 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 eval "with_${ac_package}=no" ;;
443 # Obsolete; use --with-x.
446 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
447 | --x-incl | --x-inc | --x-in | --x-i)
448 ac_prev=x_includes ;;
449 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
450 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
451 x_includes="$ac_optarg" ;;
453 -x-libraries | --x-libraries | --x-librarie | --x-librari \
454 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
455 ac_prev=x_libraries ;;
456 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
457 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
458 x_libraries="$ac_optarg" ;;
460 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
464 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
465 echo "configure: warning: $ac_option: invalid host type" 1>&2
467 if test "x$nonopt" != xNONE; then
468 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 if test -n "$ac_prev"; then
477 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
480 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
482 # File descriptor usage:
485 # 2 errors and warnings
486 # 3 some systems may open it to /dev/tty
487 # 4 used on the Kubota Titan
488 # 6 checking for... messages and results
489 # 5 compiler messages saved in config.log
490 if test "$silent" = yes; then
498 This file contains any messages produced by compilers while
499 running configure, to aid debugging if configure makes a mistake.
502 # Strip out --no-create and --no-recursion so they do not pile up.
503 # Also quote any args containing shell metacharacters.
508 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
509 | --no-cr | --no-c) ;;
510 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
511 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
513 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
514 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
519 # Only set these to C if already set. These must not be set unconditionally
520 # because not all systems understand e.g. LANG=C (notably SCO).
521 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
522 # Non-C LC_CTYPE values break the ctype check.
523 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
524 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
525 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
526 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
528 # confdefs.h avoids OS command line length limits that DEFS can exceed.
529 rm -rf conftest* confdefs.h
530 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
533 # A filename unique to this package, relative to the directory that
534 # configure is in, which we can look for to find out if srcdir is correct.
535 ac_unique_file=include/ldap.h
537 # Find the source files, if location was not specified.
538 if test -z "$srcdir"; then
539 ac_srcdir_defaulted=yes
540 # Try the directory containing this script, then its parent.
542 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
543 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
545 if test ! -r $srcdir/$ac_unique_file; then
549 ac_srcdir_defaulted=no
551 if test ! -r $srcdir/$ac_unique_file; then
552 if test "$ac_srcdir_defaulted" = yes; then
553 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
555 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
558 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
560 # Prefer explicitly selected file to automatically selected ones.
561 if test -z "$CONFIG_SITE"; then
562 if test "x$prefix" != xNONE; then
563 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
565 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
568 for ac_site_file in $CONFIG_SITE; do
569 if test -r "$ac_site_file"; then
570 echo "loading site script $ac_site_file"
575 if test -r "$cache_file"; then
576 echo "loading cache $cache_file"
579 echo "creating cache $cache_file"
584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
585 ac_cpp='$CPP $CPPFLAGS'
586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
588 cross_compiling=$ac_cv_prog_cc_cross
592 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
593 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
594 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
601 ac_n= ac_c='\c' ac_t=
605 for ac_dir in build $srcdir/build; do
606 if test -f $ac_dir/install-sh; then
608 ac_install_sh="$ac_aux_dir/install-sh -c"
610 elif test -f $ac_dir/install.sh; then
612 ac_install_sh="$ac_aux_dir/install.sh -c"
616 if test -z "$ac_aux_dir"; then
617 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
619 ac_config_guess=$ac_aux_dir/config.guess
620 ac_config_sub=$ac_aux_dir/config.sub
621 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 # Find a good install program. We prefer a C program (faster),
623 # so one script is as good as another. But avoid the broken or
624 # incompatible versions:
625 # SysV /etc/install, /usr/sbin/install
626 # SunOS /usr/etc/install
629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
632 # ./install, which can be erroneously created by make from ./install.sh.
633 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
634 echo "configure:635: checking for a BSD compatible install" >&5
635 if test -z "$INSTALL"; then
636 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
639 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
640 for ac_dir in $PATH; do
641 # Account for people who put trailing slashes in PATH elements.
643 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
645 # OSF1 and SCO ODT 3.0 have their own names for install.
646 # Don't use installbsd from OSF since it installs stuff as root
648 for ac_prog in ginstall scoinst install; do
649 if test -f $ac_dir/$ac_prog; then
650 if test $ac_prog = install &&
651 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
652 # AIX install. It has an incompatible calling convention.
655 ac_cv_path_install="$ac_dir/$ac_prog -c"
666 if test "${ac_cv_path_install+set}" = set; then
667 INSTALL="$ac_cv_path_install"
669 # As a last resort, use the slow shell script. We don't cache a
670 # path for INSTALL within a source directory, because that will
671 # break other packages using the cache if that directory is
672 # removed, or if the path is relative.
673 INSTALL="$ac_install_sh"
676 echo "$ac_t""$INSTALL" 1>&6
678 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
679 # It thinks the first close brace ends the variable substitution.
680 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
682 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
684 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
686 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
687 echo "configure:688: checking whether build environment is sane" >&5
690 echo timestamp > conftestfile
691 # Do `set' in a subshell so we don't clobber the current shell's
692 # arguments. Must try -L first in case configure is actually a
693 # symlink; some systems play weird games with the mod time of symlinks
694 # (eg FreeBSD returns the mod time of the symlink's containing
697 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
698 if test "$*" = "X"; then
700 set X `ls -t $srcdir/configure conftestfile`
702 if test "$*" != "X $srcdir/configure conftestfile" \
703 && test "$*" != "X conftestfile $srcdir/configure"; then
705 # If neither matched, then we have a broken ls. This can happen
706 # if, for instance, CONFIG_SHELL is bash and it inherits a
707 # broken ls alias from the environment. This has actually
708 # happened. Such a system could not be considered "sane".
709 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
710 alias in your environment" 1>&2; exit 1; }
713 test "$2" = conftestfile
719 { echo "configure: error: newly created file is older than distributed files!
720 Check your system clock" 1>&2; exit 1; }
723 echo "$ac_t""yes" 1>&6
724 if test "$program_transform_name" = s,x,x,; then
725 program_transform_name=
727 # Double any \ or $. echo might interpret backslashes.
728 cat <<\EOF_SED > conftestsed
729 s,\\,\\\\,g; s,\$,$$,g
731 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
734 test "$program_prefix" != NONE &&
735 program_transform_name="s,^,${program_prefix},; $program_transform_name"
736 # Use a double $ so make ignores it.
737 test "$program_suffix" != NONE &&
738 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
740 # sed with no file args requires a program.
741 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
743 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
744 echo "configure:745: checking whether ${MAKE-make} sets \${MAKE}" >&5
745 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
746 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 cat > conftestmake <<\EOF
751 @echo 'ac_maketemp="${MAKE}"'
753 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
754 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
755 if test -n "$ac_maketemp"; then
756 eval ac_cv_prog_make_${ac_make}_set=yes
758 eval ac_cv_prog_make_${ac_make}_set=no
762 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
763 echo "$ac_t""yes" 1>&6
766 echo "$ac_t""no" 1>&6
767 SET_MAKE="MAKE=${MAKE-make}"
775 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
776 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
781 missing_dir=`cd $ac_aux_dir && pwd`
782 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
783 echo "configure:784: checking for working aclocal" >&5
784 # Run test in a subshell; some versions of sh will print an error if
785 # an executable is not found, even if stderr is redirected.
786 # Redirect stdin to placate older versions of autoconf. Sigh.
787 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
789 echo "$ac_t""found" 1>&6
791 ACLOCAL="$missing_dir/missing aclocal"
792 echo "$ac_t""missing" 1>&6
795 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
796 echo "configure:797: checking for working autoconf" >&5
797 # Run test in a subshell; some versions of sh will print an error if
798 # an executable is not found, even if stderr is redirected.
799 # Redirect stdin to placate older versions of autoconf. Sigh.
800 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
802 echo "$ac_t""found" 1>&6
804 AUTOCONF="$missing_dir/missing autoconf"
805 echo "$ac_t""missing" 1>&6
808 echo $ac_n "checking for working automake""... $ac_c" 1>&6
809 echo "configure:810: checking for working automake" >&5
810 # Run test in a subshell; some versions of sh will print an error if
811 # an executable is not found, even if stderr is redirected.
812 # Redirect stdin to placate older versions of autoconf. Sigh.
813 if (automake --version) < /dev/null > /dev/null 2>&1; then
815 echo "$ac_t""found" 1>&6
817 AUTOMAKE="$missing_dir/missing automake"
818 echo "$ac_t""missing" 1>&6
821 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
822 echo "configure:823: checking for working autoheader" >&5
823 # Run test in a subshell; some versions of sh will print an error if
824 # an executable is not found, even if stderr is redirected.
825 # Redirect stdin to placate older versions of autoconf. Sigh.
826 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
827 AUTOHEADER=autoheader
828 echo "$ac_t""found" 1>&6
830 AUTOHEADER="$missing_dir/missing autoheader"
831 echo "$ac_t""missing" 1>&6
834 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
835 echo "configure:836: checking for working makeinfo" >&5
836 # Run test in a subshell; some versions of sh will print an error if
837 # an executable is not found, even if stderr is redirected.
838 # Redirect stdin to placate older versions of autoconf. Sigh.
839 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
841 echo "$ac_t""found" 1>&6
843 MAKEINFO="$missing_dir/missing makeinfo"
844 echo "$ac_t""missing" 1>&6
850 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
851 echo "configure:852: checking configure arguments" >&5
856 ldap_subdir="openldap"
858 # Check whether --with-subdir or --without-subdir was given.
859 if test "${with_subdir+set}" = set; then
860 withval="$with_subdir"
862 if test "$withval" = "no"; then
864 elif test "$withval" != "yes"; then
865 ldap_subdir="$withval"
871 # OpenLDAP --enable-debug
872 # Check whether --enable-debug or --disable-debug was given.
873 if test "${enable_debug+set}" = set; then
874 enableval="$enable_debug"
877 for ol_val in auto yes no ; do
878 if test "$enableval" = "$ol_val" ; then
882 if test "$ol_arg" = "invalid" ; then
883 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
885 ol_enable_debug="$ol_arg"
888 ol_enable_debug="yes"
892 # OpenLDAP --enable-proctitle
893 # Check whether --enable-proctitle or --disable-proctitle was given.
894 if test "${enable_proctitle+set}" = set; then
895 enableval="$enable_proctitle"
898 for ol_val in auto yes no ; do
899 if test "$enableval" = "$ol_val" ; then
903 if test "$ol_arg" = "invalid" ; then
904 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
906 ol_enable_proctitle="$ol_arg"
909 ol_enable_proctitle="yes"
911 # end --enable-proctitle
912 # OpenLDAP --enable-cache
913 # Check whether --enable-cache or --disable-cache was given.
914 if test "${enable_cache+set}" = set; then
915 enableval="$enable_cache"
918 for ol_val in auto yes no ; do
919 if test "$enableval" = "$ol_val" ; then
923 if test "$ol_arg" = "invalid" ; then
924 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
926 ol_enable_cache="$ol_arg"
929 ol_enable_cache="yes"
932 # OpenLDAP --enable-dns
933 # Check whether --enable-dns or --disable-dns was given.
934 if test "${enable_dns+set}" = set; then
935 enableval="$enable_dns"
938 for ol_val in auto yes no ; do
939 if test "$enableval" = "$ol_val" ; then
943 if test "$ol_arg" = "invalid" ; then
944 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
946 ol_enable_dns="$ol_arg"
952 # OpenLDAP --enable-referrals
953 # Check whether --enable-referrals or --disable-referrals was given.
954 if test "${enable_referrals+set}" = set; then
955 enableval="$enable_referrals"
958 for ol_val in auto yes no ; do
959 if test "$enableval" = "$ol_val" ; then
963 if test "$ol_arg" = "invalid" ; then
964 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
966 ol_enable_referrals="$ol_arg"
969 ol_enable_referrals="yes"
971 # end --enable-referrals
972 # OpenLDAP --enable-cldap
973 # Check whether --enable-cldap or --disable-cldap was given.
974 if test "${enable_cldap+set}" = set; then
975 enableval="$enable_cldap"
978 for ol_val in auto yes no ; do
979 if test "$enableval" = "$ol_val" ; then
983 if test "$ol_arg" = "invalid" ; then
984 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
986 ol_enable_cldap="$ol_arg"
992 # OpenLDAP --enable-x_compile
993 # Check whether --enable-x_compile or --disable-x_compile was given.
994 if test "${enable_x_compile+set}" = set; then
995 enableval="$enable_x_compile"
998 for ol_val in yes no ; do
999 if test "$enableval" = "$ol_val" ; then
1003 if test "$ol_arg" = "invalid" ; then
1004 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1006 ol_enable_x_compile="$ol_arg"
1009 ol_enable_x_compile="no"
1011 # end --enable-x_compile
1013 # OpenLDAP --enable-dmalloc
1014 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1015 if test "${enable_dmalloc+set}" = set; then
1016 enableval="$enable_dmalloc"
1019 for ol_val in auto yes no ; do
1020 if test "$enableval" = "$ol_val" ; then
1024 if test "$ol_arg" = "invalid" ; then
1025 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1027 ol_enable_dmalloc="$ol_arg"
1030 ol_enable_dmalloc="no"
1032 # end --enable-dmalloc
1034 # OpenLDAP --with-kerberos
1035 # Check whether --with-kerberos or --without-kerberos was given.
1036 if test "${with_kerberos+set}" = set; then
1037 withval="$with_kerberos"
1040 for ol_val in auto k5 k4 afs yes no ; do
1041 if test "$withval" = "$ol_val" ; then
1045 if test "$ol_arg" = "invalid" ; then
1046 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1048 ol_with_kerberos="$ol_arg"
1051 ol_with_kerberos="auto"
1053 # end --with-kerberos
1055 # OpenLDAP --with-readline
1056 # Check whether --with-readline or --without-readline was given.
1057 if test "${with_readline+set}" = set; then
1058 withval="$with_readline"
1061 for ol_val in auto yes no ; do
1062 if test "$withval" = "$ol_val" ; then
1066 if test "$ol_arg" = "invalid" ; then
1067 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1069 ol_with_readline="$ol_arg"
1072 ol_with_readline="auto"
1074 # end --with-readline
1076 # OpenLDAP --with-threads
1077 # Check whether --with-threads or --without-threads was given.
1078 if test "${with_threads+set}" = set; then
1079 withval="$with_threads"
1082 for ol_val in auto posix mach lwp yes no manual ; do
1083 if test "$withval" = "$ol_val" ; then
1087 if test "$ol_arg" = "invalid" ; then
1088 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1090 ol_with_threads="$ol_arg"
1093 ol_with_threads="auto"
1095 # end --with-threads
1097 # OpenLDAP --with-tls
1098 # Check whether --with-tls or --without-tls was given.
1099 if test "${with_tls+set}" = set; then
1103 for ol_val in auto ssleay openssl yes no ; do
1104 if test "$withval" = "$ol_val" ; then
1108 if test "$ol_arg" = "invalid" ; then
1109 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1111 ol_with_tls="$ol_arg"
1118 # OpenLDAP --with-yielding_select
1119 # Check whether --with-yielding_select or --without-yielding_select was given.
1120 if test "${with_yielding_select+set}" = set; then
1121 withval="$with_yielding_select"
1124 for ol_val in auto yes no manual ; do
1125 if test "$withval" = "$ol_val" ; then
1129 if test "$ol_arg" = "invalid" ; then
1130 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1132 ol_with_yielding_select="$ol_arg"
1135 ol_with_yielding_select="auto"
1137 # end --with-yielding_select
1141 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1142 if test "${with_xxldapdoptions+set}" = set; then
1143 withval="$with_xxldapdoptions"
1147 # OpenLDAP --enable-ldapd
1148 # Check whether --enable-ldapd or --disable-ldapd was given.
1149 if test "${enable_ldapd+set}" = set; then
1150 enableval="$enable_ldapd"
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-ldapd" 1>&2; exit 1; }
1161 ol_enable_ldapd="$ol_arg"
1164 ol_enable_ldapd="no"
1166 # end --enable-ldapd
1168 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1169 if test "${with_xxslapdoptions+set}" = set; then
1170 withval="$with_xxslapdoptions"
1174 # OpenLDAP --enable-slapd
1175 # Check whether --enable-slapd or --disable-slapd was given.
1176 if test "${enable_slapd+set}" = set; then
1177 enableval="$enable_slapd"
1180 for ol_val in auto yes no ; do
1181 if test "$enableval" = "$ol_val" ; then
1185 if test "$ol_arg" = "invalid" ; then
1186 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1188 ol_enable_slapd="$ol_arg"
1191 ol_enable_slapd="yes"
1193 # end --enable-slapd
1194 # OpenLDAP --enable-aclgroups
1195 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1196 if test "${enable_aclgroups+set}" = set; then
1197 enableval="$enable_aclgroups"
1200 for ol_val in auto yes no ; do
1201 if test "$enableval" = "$ol_val" ; then
1205 if test "$ol_arg" = "invalid" ; then
1206 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1208 ol_enable_aclgroups="$ol_arg"
1211 ol_enable_aclgroups="auto"
1213 # end --enable-aclgroups
1214 # OpenLDAP --enable-cleartext
1215 # Check whether --enable-cleartext or --disable-cleartext was given.
1216 if test "${enable_cleartext+set}" = set; then
1217 enableval="$enable_cleartext"
1220 for ol_val in auto yes no ; do
1221 if test "$enableval" = "$ol_val" ; then
1225 if test "$ol_arg" = "invalid" ; then
1226 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1228 ol_enable_cleartext="$ol_arg"
1231 ol_enable_cleartext="yes"
1233 # end --enable-cleartext
1234 # OpenLDAP --enable-crypt
1235 # Check whether --enable-crypt or --disable-crypt was given.
1236 if test "${enable_crypt+set}" = set; then
1237 enableval="$enable_crypt"
1240 for ol_val in auto yes no ; do
1241 if test "$enableval" = "$ol_val" ; then
1245 if test "$ol_arg" = "invalid" ; then
1246 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1248 ol_enable_crypt="$ol_arg"
1251 ol_enable_crypt="auto"
1253 # end --enable-crypt
1254 # OpenLDAP --enable-wrappers
1255 # Check whether --enable-wrappers or --disable-wrappers was given.
1256 if test "${enable_wrappers+set}" = set; then
1257 enableval="$enable_wrappers"
1260 for ol_val in auto yes no ; do
1261 if test "$enableval" = "$ol_val" ; then
1265 if test "$ol_arg" = "invalid" ; then
1266 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1268 ol_enable_wrappers="$ol_arg"
1271 ol_enable_wrappers="no"
1273 # end --enable-wrappers
1274 # OpenLDAP --enable-phonetic
1275 # Check whether --enable-phonetic or --disable-phonetic was given.
1276 if test "${enable_phonetic+set}" = set; then
1277 enableval="$enable_phonetic"
1280 for ol_val in auto yes no ; do
1281 if test "$enableval" = "$ol_val" ; then
1285 if test "$ol_arg" = "invalid" ; then
1286 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1288 ol_enable_phonetic="$ol_arg"
1291 ol_enable_phonetic="no"
1293 # end --enable-phonetic
1294 # OpenLDAP --enable-rlookups
1295 # Check whether --enable-rlookups or --disable-rlookups was given.
1296 if test "${enable_rlookups+set}" = set; then
1297 enableval="$enable_rlookups"
1300 for ol_val in auto yes no ; do
1301 if test "$enableval" = "$ol_val" ; then
1305 if test "$ol_arg" = "invalid" ; then
1306 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1308 ol_enable_rlookups="$ol_arg"
1311 ol_enable_rlookups="auto"
1313 # end --enable-rlookups
1315 # OpenLDAP --enable-bdb2
1316 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1317 if test "${enable_bdb2+set}" = set; then
1318 enableval="$enable_bdb2"
1321 for ol_val in auto yes no ; do
1322 if test "$enableval" = "$ol_val" ; then
1326 if test "$ol_arg" = "invalid" ; then
1327 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1329 ol_enable_bdb2="$ol_arg"
1335 # OpenLDAP --enable-ldbm
1336 # Check whether --enable-ldbm or --disable-ldbm was given.
1337 if test "${enable_ldbm+set}" = set; then
1338 enableval="$enable_ldbm"
1341 for ol_val in auto yes no ; do
1342 if test "$enableval" = "$ol_val" ; then
1346 if test "$ol_arg" = "invalid" ; then
1347 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1349 ol_enable_ldbm="$ol_arg"
1352 ol_enable_ldbm="yes"
1355 # OpenLDAP --with-ldbm_api
1356 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1357 if test "${with_ldbm_api+set}" = set; then
1358 withval="$with_ldbm_api"
1361 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1362 if test "$withval" = "$ol_val" ; then
1366 if test "$ol_arg" = "invalid" ; then
1367 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1369 ol_with_ldbm_api="$ol_arg"
1372 ol_with_ldbm_api="auto"
1374 # end --with-ldbm_api
1376 # OpenLDAP --with-ldbm_type
1377 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1378 if test "${with_ldbm_type+set}" = set; then
1379 withval="$with_ldbm_type"
1382 for ol_val in auto btree hash ; do
1383 if test "$withval" = "$ol_val" ; then
1387 if test "$ol_arg" = "invalid" ; then
1388 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1390 ol_with_ldbm_type="$ol_arg"
1393 ol_with_ldbm_type="auto"
1395 # end --with-ldbm_type
1398 # OpenLDAP --enable-passwd
1399 # Check whether --enable-passwd or --disable-passwd was given.
1400 if test "${enable_passwd+set}" = set; then
1401 enableval="$enable_passwd"
1404 for ol_val in auto yes no ; do
1405 if test "$enableval" = "$ol_val" ; then
1409 if test "$ol_arg" = "invalid" ; then
1410 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1412 ol_enable_passwd="$ol_arg"
1415 ol_enable_passwd="no"
1417 # end --enable-passwd
1418 # OpenLDAP --enable-perl
1419 # Check whether --enable-perl or --disable-perl was given.
1420 if test "${enable_perl+set}" = set; then
1421 enableval="$enable_perl"
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-perl" 1>&2; exit 1; }
1432 ol_enable_perl="$ol_arg"
1438 # OpenLDAP --enable-shell
1439 # Check whether --enable-shell or --disable-shell was given.
1440 if test "${enable_shell+set}" = set; then
1441 enableval="$enable_shell"
1444 for ol_val in auto yes no ; do
1445 if test "$enableval" = "$ol_val" ; then
1449 if test "$ol_arg" = "invalid" ; then
1450 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1452 ol_enable_shell="$ol_arg"
1455 ol_enable_shell="no"
1457 # end --enable-shell
1458 # OpenLDAP --enable-tcl
1459 # Check whether --enable-tcl or --disable-tcl was given.
1460 if test "${enable_tcl+set}" = set; then
1461 enableval="$enable_tcl"
1464 for ol_val in auto yes no ; do
1465 if test "$enableval" = "$ol_val" ; then
1469 if test "$ol_arg" = "invalid" ; then
1470 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1472 ol_enable_tcl="$ol_arg"
1479 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1480 if test "${with_xxslurpdoptions+set}" = set; then
1481 withval="$with_xxslurpdoptions"
1485 # OpenLDAP --enable-slurpd
1486 # Check whether --enable-slurpd or --disable-slurpd was given.
1487 if test "${enable_slurpd+set}" = set; then
1488 enableval="$enable_slurpd"
1491 for ol_val in auto yes no ; do
1492 if test "$enableval" = "$ol_val" ; then
1496 if test "$ol_arg" = "invalid" ; then
1497 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1499 ol_enable_slurpd="$ol_arg"
1502 ol_enable_slurpd="auto"
1504 # end --enable-slurpd
1506 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1507 if test "${with_xxliboptions+set}" = set; then
1508 withval="$with_xxliboptions"
1512 # Check whether --enable-static or --disable-static was given.
1513 if test "${enable_static+set}" = set; then
1514 enableval="$enable_static"
1515 p=${PACKAGE-default}
1516 case "$enableval" in
1517 yes) enable_static=yes ;;
1518 no) enable_static=no ;;
1521 # Look at the argument we got. We use all the common list separators.
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1523 for pkg in $enableval; do
1524 if test "X$pkg" = "X$p"; then
1535 # Check whether --enable-shared or --disable-shared was given.
1536 if test "${enable_shared+set}" = set; then
1537 enableval="$enable_shared"
1538 p=${PACKAGE-default}
1539 case "$enableval" in
1540 yes) enable_shared=yes ;;
1541 no) enable_shared=no ;;
1544 # Look at the argument we got. We use all the common list separators.
1545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1546 for pkg in $enableval; do
1547 if test "X$pkg" = "X$p"; then
1560 if test $ol_enable_dns = yes ; then
1561 if test $ol_enable_referrals = no ; then
1562 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1564 if test $ol_enable_referrals = auto ; then
1565 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1566 ol_enable_referrals=yes
1570 if test $ol_enable_slapd = no ; then
1571 if test $ol_enable_bdb2 = yes ; then
1572 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1574 if test $ol_enable_ldbm = yes ; then
1575 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1577 if test $ol_enable_passwd = yes ; then
1578 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1580 if test $ol_enable_perl = yes ; then
1581 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1583 if test $ol_enable_shell = yes ; then
1584 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1586 if test $ol_enable_tcl = yes ; then
1587 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1589 if test $ol_enable_aclgroups = yes ; then
1590 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1592 if test $ol_enable_wrappers = yes ; then
1593 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1595 if test $ol_enable_phonetic = yes ; then
1596 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1598 if test $ol_enable_rlookups = yes ; then
1599 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1601 if test $ol_with_ldbm_api != auto ; then
1602 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1604 if test $ol_with_ldbm_type != auto ; then
1605 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1607 if test $ol_enable_slurpd = yes ; then
1608 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1611 # force settings to no
1618 ol_enable_aclgroups=no
1619 ol_enable_wrappers=no
1620 ol_enable_phonetic=no
1621 ol_enable_rlookups=no
1623 ol_with_ldbm_type=no
1626 elif test $ol_enable_ldbm = no ; then
1628 if test $ol_with_ldbm_api != auto ; then
1629 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1632 if test $ol_with_ldbm_type != auto ; then
1633 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1636 if test $ol_enable_bdb2 = yes ; then
1637 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1640 if test $ol_enable_passwd = no -a \
1641 $ol_enable_perl = no -a \
1642 $ol_enable_shell = no -a \
1643 $ol_enable_tcl = no ; then
1644 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1648 ol_with_ldbm_type=no
1650 elif test $ol_enable_bdb2 = yes ; then
1652 if test $ol_with_ldbm_api != auto -a \
1653 $ol_with_ldbm_api != db2 ; then
1654 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1657 ol_with_ldbm_api=db2
1661 if test $ol_enable_bdb2 != no ; then
1662 if test $ol_with_ldbm_api != auto -a \
1663 $ol_with_ldbm_api != db2 ; then
1664 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1669 if test $ol_with_ldbm_api = gdbm -a \
1670 $ol_with_ldbm_type = btree ; then
1671 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1673 if test $ol_with_ldbm_api = mdbm -a \
1674 $ol_with_ldbm_type = btree ; then
1675 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1677 if test $ol_with_ldbm_api = ndbm -a \
1678 $ol_with_ldbm_type = btree ; then
1679 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1683 if test $ol_enable_slurpd = yes ; then
1684 if test $ol_with_threads = no ; then
1685 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1689 echo "$ac_t""done" 1>&6
1714 SLAPD_PERL_CPPFLAGS=
1722 # Find a good install program. We prefer a C program (faster),
1723 # so one script is as good as another. But avoid the broken or
1724 # incompatible versions:
1725 # SysV /etc/install, /usr/sbin/install
1726 # SunOS /usr/etc/install
1727 # IRIX /sbin/install
1729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1732 # ./install, which can be erroneously created by make from ./install.sh.
1733 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1734 echo "configure:1735: checking for a BSD compatible install" >&5
1735 if test -z "$INSTALL"; then
1736 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1740 for ac_dir in $PATH; do
1741 # Account for people who put trailing slashes in PATH elements.
1743 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1745 # OSF1 and SCO ODT 3.0 have their own names for install.
1746 # Don't use installbsd from OSF since it installs stuff as root
1748 for ac_prog in ginstall scoinst install; do
1749 if test -f $ac_dir/$ac_prog; then
1750 if test $ac_prog = install &&
1751 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1752 # AIX install. It has an incompatible calling convention.
1755 ac_cv_path_install="$ac_dir/$ac_prog -c"
1766 if test "${ac_cv_path_install+set}" = set; then
1767 INSTALL="$ac_cv_path_install"
1769 # As a last resort, use the slow shell script. We don't cache a
1770 # path for INSTALL within a source directory, because that will
1771 # break other packages using the cache if that directory is
1772 # removed, or if the path is relative.
1773 INSTALL="$ac_install_sh"
1776 echo "$ac_t""$INSTALL" 1>&6
1778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1779 # It thinks the first close brace ends the variable substitution.
1780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1790 # Make sure we can run config.sub.
1791 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1792 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1795 echo $ac_n "checking host system type""... $ac_c" 1>&6
1796 echo "configure:1797: checking host system type" >&5
1799 case "$host_alias" in
1803 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1804 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1806 *) host_alias=$nonopt ;;
1810 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1811 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1812 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1813 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1814 echo "$ac_t""$host" 1>&6
1816 # Extract the first word of "ranlib", so it can be a program name with args.
1817 set dummy ranlib; ac_word=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1820 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 if test -n "$RANLIB"; then
1824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1828 for ac_dir in $ac_dummy; do
1829 test -z "$ac_dir" && ac_dir=.
1830 if test -f $ac_dir/$ac_word; then
1831 ac_cv_prog_RANLIB="ranlib"
1836 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1839 RANLIB="$ac_cv_prog_RANLIB"
1840 if test -n "$RANLIB"; then
1841 echo "$ac_t""$RANLIB" 1>&6
1843 echo "$ac_t""no" 1>&6
1846 # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc; 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
1875 if test -z "$CC"; then
1876 # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc; ac_word=$2
1878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $ac_word" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1889 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 if test -f $ac_dir/$ac_word; then
1892 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1893 ac_prog_rejected=yes
1901 if test $ac_prog_rejected = yes; then
1902 # We found a bogon in the path, so make sure we never use it.
1903 set dummy $ac_cv_prog_CC
1905 if test $# -gt 0; then
1906 # We chose a different compiler from the bogus one.
1907 # However, it has the same basename, so the bogon will be chosen
1908 # first if we set CC to just the basename; use the full file name.
1910 set dummy "$ac_dir/$ac_word" "$@"
1918 if test -n "$CC"; then
1919 echo "$ac_t""$CC" 1>&6
1921 echo "$ac_t""no" 1>&6
1924 if test -z "$CC"; then
1925 case "`uname -s`" in
1927 # Extract the first word of "cl", so it can be a program name with args.
1928 set dummy cl; ac_word=$2
1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_word" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1939 for ac_dir in $ac_dummy; do
1940 test -z "$ac_dir" && ac_dir=.
1941 if test -f $ac_dir/$ac_word; then
1950 if test -n "$CC"; then
1951 echo "$ac_t""$CC" 1>&6
1953 echo "$ac_t""no" 1>&6
1958 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1969 cross_compiling=$ac_cv_prog_cc_cross
1971 cat > conftest.$ac_ext << EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1978 if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1979 ac_cv_prog_cc_works=yes
1980 # If we can't run a trivial program, we are probably using a cross compiler.
1981 if (./conftest; exit) 2>/dev/null; then
1982 ac_cv_prog_cc_cross=no
1984 ac_cv_prog_cc_cross=yes
1987 echo "configure: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 ac_cv_prog_cc_works=no
1993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1997 cross_compiling=$ac_cv_prog_cc_cross
1999 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2000 if test $ac_cv_prog_cc_works = no; then
2001 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2003 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2005 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2006 cross_compiling=$ac_cv_prog_cc_cross
2008 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2009 echo "configure:2010: checking whether we are using GNU C" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 cat > conftest.c <<EOF
2018 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2027 if test $ac_cv_prog_gcc = yes; then
2033 ac_test_CFLAGS="${CFLAGS+set}"
2034 ac_save_CFLAGS="$CFLAGS"
2036 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether ${CC-cc} accepts -g" >&5
2038 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 echo 'void f(){}' > conftest.c
2042 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2051 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2052 if test "$ac_test_CFLAGS" = set; then
2053 CFLAGS="$ac_save_CFLAGS"
2054 elif test $ac_cv_prog_cc_g = yes; then
2055 if test "$GCC" = yes; then
2061 if test "$GCC" = yes; then
2068 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2069 if test "${with_gnu_ld+set}" = set; then
2070 withval="$with_gnu_ld"
2071 test "$withval" = no || with_gnu_ld=yes
2078 if test "$ac_cv_prog_gcc" = yes; then
2079 # Check if gcc -print-prog-name=ld gives a path.
2080 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2081 echo "configure:2082: checking for ld used by GCC" >&5
2082 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2084 # Accept absolute paths.
2086 test -z "$LD" && LD="$ac_prog"
2089 # If it fails, then pretend we aren't using GCC.
2093 # If it is relative, then search for the first ld in PATH.
2097 elif test "$with_gnu_ld" = yes; then
2098 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2099 echo "configure:2100: checking for GNU ld" >&5
2101 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2102 echo "configure:2103: checking for non-GNU ld" >&5
2104 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 if test -z "$LD"; then
2108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2109 for ac_dir in $PATH; do
2110 test -z "$ac_dir" && ac_dir=.
2111 if test -f "$ac_dir/$ac_prog"; then
2112 ac_cv_path_LD="$ac_dir/$ac_prog"
2113 # Check to see if the program is GNU ld. I'd rather use --version,
2114 # but apparently some GNU ld's only accept -v.
2115 # Break only if it was the GNU/non-GNU ld that we prefer.
2116 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2117 test "$with_gnu_ld" != no && break
2119 test "$with_gnu_ld" != yes && break
2125 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2130 if test -n "$LD"; then
2131 echo "$ac_t""$LD" 1>&6
2133 echo "$ac_t""no" 1>&6
2135 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2137 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2138 echo "configure:2139: checking if the linker ($LD) is GNU ld" >&5
2139 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2143 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2144 ac_cv_prog_gnu_ld=yes
2146 ac_cv_prog_gnu_ld=no
2150 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2153 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2154 echo "configure:2155: checking for BSD-compatible nm" >&5
2155 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2160 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2164 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2165 test -z "$ac_dir" && ac_dir=.
2166 if test -f $ac_dir/nm; then
2167 # Check to see if the nm accepts a BSD-compat flag.
2168 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2169 # nm: unknown option "B" ignored
2170 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2171 ac_cv_path_NM="$ac_dir/nm -B"
2172 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2173 ac_cv_path_NM="$ac_dir/nm -p"
2175 ac_cv_path_NM="$ac_dir/nm"
2181 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2187 echo "$ac_t""$NM" 1>&6
2190 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2191 echo "configure:2192: checking whether ln -s works" >&5
2192 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2196 if ln -s X conftestdata 2>/dev/null
2199 ac_cv_prog_LN_S="ln -s"
2204 LN_S="$ac_cv_prog_LN_S"
2205 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2206 echo "$ac_t""yes" 1>&6
2208 echo "$ac_t""no" 1>&6
2211 # Always use our own libtool.
2212 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2214 # Check for any special flags to pass to ltconfig.
2216 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2217 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2218 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2219 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2220 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2222 # Some flags need to be propagated to the compiler or linker for good
2226 # Find out which ABI we are using.
2227 echo '#line 2228 "configure"' > conftest.$ac_ext
2228 if { (eval echo configure:2229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2229 case "`/usr/bin/file conftest.o`" in
2245 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2246 CFLAGS="$CFLAGS -belf"
2250 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2251 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2252 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2253 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2254 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2255 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2258 for ac_prog in mawk gawk nawk awk
2260 # Extract the first word of "$ac_prog", so it can be a program name with args.
2261 set dummy $ac_prog; ac_word=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 if test -n "$AWK"; then
2268 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2272 for ac_dir in $ac_dummy; do
2273 test -z "$ac_dir" && ac_dir=.
2274 if test -f $ac_dir/$ac_word; then
2275 ac_cv_prog_AWK="$ac_prog"
2282 AWK="$ac_cv_prog_AWK"
2283 if test -n "$AWK"; then
2284 echo "$ac_t""$AWK" 1>&6
2286 echo "$ac_t""no" 1>&6
2289 test -n "$AWK" && break
2292 # test for ln hardlink support
2293 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2294 echo "configure:2295: checking whether ln works" >&5
2295 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 rm -f conftest.src conftest.dst
2299 echo "conftest" > conftest.src
2300 if ln conftest.src conftest.dst 2>/dev/null
2302 ol_cv_prog_LN_H="ln"
2304 ol_cv_prog_LN_H="cp"
2306 rm -f conftest.src conftest.dst
2309 LN_H="$ol_cv_prog_LN_H"
2310 if test "$ol_cv_prog_LN_H" = "ln"; then
2311 echo "$ac_t""yes" 1>&6
2313 echo "$ac_t""no" 1>&6
2316 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2317 echo "configure:2318: checking whether ln -s works" >&5
2318 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2322 if ln -s X conftestdata 2>/dev/null
2325 ac_cv_prog_LN_S="ln -s"
2330 LN_S="$ac_cv_prog_LN_S"
2331 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2332 echo "$ac_t""yes" 1>&6
2334 echo "$ac_t""no" 1>&6
2338 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2342 # Extract the first word of "sendmail", so it can be a program name with args.
2343 set dummy sendmail; ac_word=$2
2344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_word" >&5
2346 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2351 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2354 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2358 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2359 for ac_dir in $ac_dummy; do
2360 test -z "$ac_dir" && ac_dir=.
2361 if test -f $ac_dir/$ac_word; then
2362 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2367 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2371 SENDMAIL="$ac_cv_path_SENDMAIL"
2372 if test -n "$SENDMAIL"; then
2373 echo "$ac_t""$SENDMAIL" 1>&6
2375 echo "$ac_t""no" 1>&6
2378 # Extract the first word of "vi", so it can be a program name with args.
2379 set dummy vi; ac_word=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2387 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2390 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2394 ac_dummy="$PATH:/usr/ucb"
2395 for ac_dir in $ac_dummy; do
2396 test -z "$ac_dir" && ac_dir=.
2397 if test -f $ac_dir/$ac_word; then
2398 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2403 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2407 EDITOR="$ac_cv_path_EDITOR"
2408 if test -n "$EDITOR"; then
2409 echo "$ac_t""$EDITOR" 1>&6
2411 echo "$ac_t""no" 1>&6
2414 # Extract the first word of "finger", so it can be a program name with args.
2415 set dummy finger; ac_word=$2
2416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2417 echo "configure:2418: checking for $ac_word" >&5
2418 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2423 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2426 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2430 ac_dummy="$PATH:/usr/ucb"
2431 for ac_dir in $ac_dummy; do
2432 test -z "$ac_dir" && ac_dir=.
2433 if test -f $ac_dir/$ac_word; then
2434 ac_cv_path_FINGER="$ac_dir/$ac_word"
2439 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2443 FINGER="$ac_cv_path_FINGER"
2444 if test -n "$FINGER"; then
2445 echo "$ac_t""$FINGER" 1>&6
2447 echo "$ac_t""no" 1>&6
2451 if test $ol_enable_perl = yes ; then
2452 # Extract the first word of "perl", so it can be a program name with args.
2453 set dummy perl; ac_word=$2
2454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2455 echo "configure:2456: checking for $ac_word" >&5
2456 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2461 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2464 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2469 for ac_dir in $ac_dummy; do
2470 test -z "$ac_dir" && ac_dir=.
2471 if test -f $ac_dir/$ac_word; then
2472 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2477 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2481 PERLBIN="$ac_cv_path_PERLBIN"
2482 if test -n "$PERLBIN"; then
2483 echo "$ac_t""$PERLBIN" 1>&6
2485 echo "$ac_t""no" 1>&6
2489 if test "no$PERLBIN" = "no" ; then
2493 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2494 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
2497 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2498 echo "configure:2499: checking how to run the C preprocessor" >&5
2499 # On Suns, sometimes $CPP names a directory.
2500 if test -n "$CPP" && test -d "$CPP"; then
2503 if test -z "$CPP"; then
2504 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 # This must be in double quotes, not single quotes, because CPP may get
2508 # substituted into the Makefile and "${CC-cc}" will confuse make.
2510 # On the NeXT, cc -E runs the code through the compiler's parser,
2511 # not just through cpp.
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2519 { (eval echo configure:2520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2521 if test -z "$ac_err"; then
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 CPP="${CC-cc} -E -traditional-cpp"
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2536 { (eval echo configure:2537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2538 if test -z "$ac_err"; then
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2545 CPP="${CC-cc} -nologo -E"
2546 cat > conftest.$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2553 { (eval echo configure:2554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2555 if test -z "$ac_err"; then
2559 echo "configure: failed program was:" >&5
2560 cat conftest.$ac_ext >&5
2569 ac_cv_prog_CPP="$CPP"
2571 CPP="$ac_cv_prog_CPP"
2573 ac_cv_prog_CPP="$CPP"
2575 echo "$ac_t""$CPP" 1>&6
2578 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2579 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2581 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2582 echo "configure: warning: programs compiled here do run here..." 1>&2
2583 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2585 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2586 echo "configure: warning: programs compiled here do not run here..." 1>&2
2587 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2590 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2591 echo "configure:2592: checking for AIX" >&5
2592 cat > conftest.$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2601 egrep "yes" >/dev/null 2>&1; then
2603 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2604 #define _ALL_SOURCE 1
2609 echo "$ac_t""no" 1>&6
2614 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2615 echo "configure:2616: checking for POSIXized ISC" >&5
2616 if test -d /etc/conf/kconfig.d &&
2617 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2619 echo "$ac_t""yes" 1>&6
2620 ISC=yes # If later tests want to check for ISC.
2621 cat >> confdefs.h <<\EOF
2622 #define _POSIX_SOURCE 1
2625 if test "$GCC" = yes; then
2631 echo "$ac_t""no" 1>&6
2635 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2636 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2637 echo "configure:2638: checking for minix/config.h" >&5
2638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2644 #include <minix/config.h>
2646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2647 { (eval echo configure:2648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2649 if test -z "$ac_err"; then
2651 eval "ac_cv_header_$ac_safe=yes"
2654 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2657 eval "ac_cv_header_$ac_safe=no"
2661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2662 echo "$ac_t""yes" 1>&6
2665 echo "$ac_t""no" 1>&6
2669 if test "$MINIX" = yes; then
2670 cat >> confdefs.h <<\EOF
2671 #define _POSIX_SOURCE 1
2674 cat >> confdefs.h <<\EOF
2675 #define _POSIX_1_SOURCE 2
2678 cat >> confdefs.h <<\EOF
2685 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2686 echo "configure:2687: checking for be_app in -lbe" >&5
2687 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 ac_save_LIBS="$LIBS"
2692 LIBS="-lbe -lroot $LIBS"
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 /* Override any gcc2 internal prototype to avoid an error. */
2697 /* We use char because int might match the return type of a gcc2
2698 builtin and then its argument prototype would still apply. */
2705 if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2707 eval "ac_cv_lib_$ac_lib_var=yes"
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2712 eval "ac_cv_lib_$ac_lib_var=no"
2715 LIBS="$ac_save_LIBS"
2718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2720 LIBS="$LIBS -lbe -lroot"
2722 echo "$ac_t""no" 1>&6
2727 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2728 echo "configure:2729: checking for Cygwin environment" >&5
2729 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2739 #define __CYGWIN__ __CYGWIN32__
2744 if { (eval echo configure:2745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2748 echo "configure: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2757 echo "$ac_t""$ac_cv_cygwin" 1>&6
2759 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2760 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2761 echo "configure:2762: checking for mingw32 environment" >&5
2762 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2773 if { (eval echo configure:2774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2777 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2786 echo "$ac_t""$ac_cv_mingw32" 1>&6
2788 test "$ac_cv_mingw32" = yes && MINGW32=yes
2791 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2792 echo "configure:2793: checking for executable suffix" >&5
2793 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2800 echo 'int main () { return 0; }' > conftest.$ac_ext
2802 if { (eval echo configure:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2803 for file in conftest.*; do
2805 *.c | *.o | *.obj) ;;
2806 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2810 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2813 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2818 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2819 echo "$ac_t""${ac_cv_exeext}" 1>&6
2822 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2823 echo "configure:2824: checking for object suffix" >&5
2824 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2828 echo 'int i = 1;' > conftest.$ac_ext
2829 if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2830 for ac_file in conftest.*; do
2833 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2837 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2842 echo "$ac_t""$ac_cv_objext" 1>&6
2843 OBJEXT=$ac_cv_objext
2844 ac_objext=$ac_cv_objext
2850 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2851 echo "configure:2852: checking for ${CC-cc} option to accept ANSI C" >&5
2852 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 am_cv_prog_cc_stdc=no
2857 # Don't try gcc -ansi; that turns off useful extensions and
2858 # breaks some systems' header files.
2859 # AIX -qlanglvl=ansi
2860 # Ultrix and OSF/1 -std1
2861 # HP-UX -Aa -D_HPUX_SOURCE
2862 # SVR4 -Xc -D__EXTENSIONS__
2863 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2865 CC="$ac_save_CC $ac_arg"
2866 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2871 #include <sys/types.h>
2872 #include <sys/stat.h>
2873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2874 struct buf { int x; };
2875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2876 static char *e (p, i)
2882 static char *f (char * (*g) (char **, int), char **p, ...)
2887 s = g (p, va_arg (v,int));
2891 int test (int i, double x);
2892 struct s1 {int (*f) (int a);};
2893 struct s2 {int (*f) (double a);};
2894 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2900 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2904 if { (eval echo configure:2905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2906 am_cv_prog_cc_stdc="$ac_arg"; break
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2917 if test -z "$am_cv_prog_cc_stdc"; then
2918 echo "$ac_t""none needed" 1>&6
2920 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2922 case "x$am_cv_prog_cc_stdc" in
2924 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2927 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2928 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2934 echo $ac_n "checking for socket""... $ac_c" 1>&6
2935 echo "configure:2936: checking for socket" >&5
2936 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2939 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2942 /* System header to define __stub macros and hopefully few prototypes,
2943 which can conflict with char socket(); below. */
2945 /* Override any gcc2 internal prototype to avoid an error. */
2946 /* We use char because int might match the return type of a gcc2
2947 builtin and then its argument prototype would still apply. */
2952 /* The GNU C library defines this for functions which it implements
2953 to always fail with ENOSYS. Some functions are actually named
2954 something starting with __ and the normal name is an alias. */
2955 #if defined (__stub_socket) || defined (__stub___socket)
2963 if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2965 eval "ac_cv_func_socket=yes"
2967 echo "configure: failed program was:" >&5
2968 cat conftest.$ac_ext >&5
2970 eval "ac_cv_func_socket=no"
2975 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2976 echo "$ac_t""yes" 1>&6
2979 echo "$ac_t""no" 1>&6
2981 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2982 echo "configure:2983: checking for main in -lsocket" >&5
2983 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 ac_save_LIBS="$LIBS"
2988 LIBS="-lsocket $LIBS"
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2999 eval "ac_cv_lib_$ac_lib_var=yes"
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3004 eval "ac_cv_lib_$ac_lib_var=no"
3007 LIBS="$ac_save_LIBS"
3010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3011 echo "$ac_t""yes" 1>&6
3012 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3014 cat >> confdefs.h <<EOF
3015 #define $ac_tr_lib 1
3018 LIBS="-lsocket $LIBS"
3021 echo "$ac_t""no" 1>&6
3024 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3025 echo "configure:3026: checking for main in -lnet" >&5
3026 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 ac_save_LIBS="$LIBS"
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3042 eval "ac_cv_lib_$ac_lib_var=yes"
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3047 eval "ac_cv_lib_$ac_lib_var=no"
3050 LIBS="$ac_save_LIBS"
3053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3055 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3056 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3057 cat >> confdefs.h <<EOF
3058 #define $ac_tr_lib 1
3064 echo "$ac_t""no" 1>&6
3067 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3068 echo "configure:3069: checking for main in -lnsl_s" >&5
3069 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 ac_save_LIBS="$LIBS"
3074 LIBS="-lnsl_s $LIBS"
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3083 if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3085 eval "ac_cv_lib_$ac_lib_var=yes"
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3090 eval "ac_cv_lib_$ac_lib_var=no"
3093 LIBS="$ac_save_LIBS"
3096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3097 echo "$ac_t""yes" 1>&6
3098 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3099 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3100 cat >> confdefs.h <<EOF
3101 #define $ac_tr_lib 1
3104 LIBS="-lnsl_s $LIBS"
3107 echo "$ac_t""no" 1>&6
3110 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3111 echo "configure:3112: checking for main in -lnsl" >&5
3112 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 ac_save_LIBS="$LIBS"
3118 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3126 if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3128 eval "ac_cv_lib_$ac_lib_var=yes"
3130 echo "configure: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3133 eval "ac_cv_lib_$ac_lib_var=no"
3136 LIBS="$ac_save_LIBS"
3139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3140 echo "$ac_t""yes" 1>&6
3141 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3143 cat >> confdefs.h <<EOF
3144 #define $ac_tr_lib 1
3150 echo "$ac_t""no" 1>&6
3153 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3154 echo "configure:3155: checking for socket in -linet" >&5
3155 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 ac_save_LIBS="$LIBS"
3161 cat > conftest.$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3164 /* Override any gcc2 internal prototype to avoid an error. */
3165 /* We use char because int might match the return type of a gcc2
3166 builtin and then its argument prototype would still apply. */
3173 if { (eval echo configure:3174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3175 eval "ac_cv_lib_$ac_lib_var=yes"
3177 echo "configure: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3180 eval "ac_cv_lib_$ac_lib_var=no"
3183 LIBS="$ac_save_LIBS"
3186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3187 echo "$ac_t""yes" 1>&6
3188 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3189 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3190 cat >> confdefs.h <<EOF
3191 #define $ac_tr_lib 1
3197 echo "$ac_t""no" 1>&6
3200 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3201 echo "configure:3202: checking for main in -lgen" >&5
3202 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3206 ac_save_LIBS="$LIBS"
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3216 if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3218 eval "ac_cv_lib_$ac_lib_var=yes"
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3223 eval "ac_cv_lib_$ac_lib_var=no"
3226 LIBS="$ac_save_LIBS"
3229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3231 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3232 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3233 cat >> confdefs.h <<EOF
3234 #define $ac_tr_lib 1
3240 echo "$ac_t""no" 1>&6
3247 for ac_func in res_search
3249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3250 echo "configure:3251: checking for $ac_func" >&5
3251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 cat > conftest.$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 /* System header to define __stub macros and hopefully few prototypes,
3258 which can conflict with char $ac_func(); below. */
3260 /* Override any gcc2 internal prototype to avoid an error. */
3261 /* We use char because int might match the return type of a gcc2
3262 builtin and then its argument prototype would still apply. */
3267 /* The GNU C library defines this for functions which it implements
3268 to always fail with ENOSYS. Some functions are actually named
3269 something starting with __ and the normal name is an alias. */
3270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3278 if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3280 eval "ac_cv_func_$ac_func=yes"
3282 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3285 eval "ac_cv_func_$ac_func=no"
3290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3293 cat >> confdefs.h <<EOF
3294 #define $ac_tr_func 1
3298 echo "$ac_t""no" 1>&6
3302 if test $ac_cv_func_res_search = "no" ; then
3303 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3304 echo "configure:3305: checking for res_search in -lbind" >&5
3305 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 ac_save_LIBS="$LIBS"
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* Override any gcc2 internal prototype to avoid an error. */
3315 /* We use char because int might match the return type of a gcc2
3316 builtin and then its argument prototype would still apply. */
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3325 eval "ac_cv_lib_$ac_lib_var=yes"
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3330 eval "ac_cv_lib_$ac_lib_var=no"
3333 LIBS="$ac_save_LIBS"
3336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3339 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3340 cat >> confdefs.h <<EOF
3341 #define $ac_tr_lib 1
3347 echo "$ac_t""no" 1>&6
3350 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3351 cat >> confdefs.h <<\EOF
3352 #define HAVE_RES_SEARCH 1
3356 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3357 echo "configure:3358: checking for res_search in -lresolv" >&5
3358 ac_lib_var=`echo resolv'_'res_search | 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="-lresolv $LIBS"
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* Override any gcc2 internal prototype to avoid an error. */
3368 /* We use char because int might match the return type of a gcc2
3369 builtin and then its argument prototype would still apply. */
3376 if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3378 eval "ac_cv_lib_$ac_lib_var=yes"
3380 echo "configure: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3383 eval "ac_cv_lib_$ac_lib_var=no"
3386 LIBS="$ac_save_LIBS"
3389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3390 echo "$ac_t""yes" 1>&6
3391 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3393 cat >> confdefs.h <<EOF
3394 #define $ac_tr_lib 1
3397 LIBS="-lresolv $LIBS"
3400 echo "$ac_t""no" 1>&6
3403 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3404 cat >> confdefs.h <<\EOF
3405 #define HAVE_RES_SEARCH 1
3412 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3413 echo "configure:3414: checking for sigset in -lV3" >&5
3414 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 ac_save_LIBS="$LIBS"
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 /* Override any gcc2 internal prototype to avoid an error. */
3424 /* We use char because int might match the return type of a gcc2
3425 builtin and then its argument prototype would still apply. */
3432 if { (eval echo configure:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3434 eval "ac_cv_lib_$ac_lib_var=yes"
3436 echo "configure: failed program was:" >&5
3437 cat conftest.$ac_ext >&5
3439 eval "ac_cv_lib_$ac_lib_var=no"
3442 LIBS="$ac_save_LIBS"
3445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3446 echo "$ac_t""yes" 1>&6
3447 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3448 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3449 cat >> confdefs.h <<EOF
3450 #define $ac_tr_lib 1
3456 echo "$ac_t""no" 1>&6
3462 if test $ol_enable_ldapd != no ; then
3463 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3464 echo "configure:3465: checking for main in -lxtpp" >&5
3465 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3469 ac_save_LIBS="$LIBS"
3470 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3479 if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3481 eval "ac_cv_lib_$ac_lib_var=yes"
3483 echo "configure: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3486 eval "ac_cv_lib_$ac_lib_var=no"
3489 LIBS="$ac_save_LIBS"
3492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3493 echo "$ac_t""yes" 1>&6
3496 cat >> confdefs.h <<\EOF
3500 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3503 echo "$ac_t""no" 1>&6
3507 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3508 echo "configure:3509: checking for main in -ldsap" >&5
3509 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 ac_save_LIBS="$LIBS"
3514 LIBS="-ldsap -lisode $LIBS"
3515 cat > conftest.$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3523 if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3525 eval "ac_cv_lib_$ac_lib_var=yes"
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3530 eval "ac_cv_lib_$ac_lib_var=no"
3533 LIBS="$ac_save_LIBS"
3536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3537 echo "$ac_t""yes" 1>&6
3540 cat >> confdefs.h <<\EOF
3544 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3547 echo "$ac_t""no" 1>&6
3551 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3552 echo "configure:3553: checking for main in -lisode" >&5
3553 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 ac_save_LIBS="$LIBS"
3558 LIBS="-lisode $LIBS"
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3569 eval "ac_cv_lib_$ac_lib_var=yes"
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3574 eval "ac_cv_lib_$ac_lib_var=no"
3577 LIBS="$ac_save_LIBS"
3580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3581 echo "$ac_t""yes" 1>&6
3584 cat >> confdefs.h <<\EOF
3585 #define HAVE_ISODE 1
3588 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3591 echo "$ac_t""no" 1>&6
3597 if test $ol_link_isode != no; then
3598 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3599 echo "configure:3600: checking for main in -lpp" >&5
3600 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3604 ac_save_LIBS="$LIBS"
3606 cat > conftest.$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3614 if { (eval echo configure:3615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3616 eval "ac_cv_lib_$ac_lib_var=yes"
3618 echo "configure: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3621 eval "ac_cv_lib_$ac_lib_var=no"
3624 LIBS="$ac_save_LIBS"
3627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3628 echo "$ac_t""yes" 1>&6
3630 cat >> confdefs.h <<\EOF
3634 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3637 echo "$ac_t""no" 1>&6
3642 # Extract the first word of "pepsy", so it can be a program name with args.
3643 set dummy pepsy; ac_word=$2
3644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3645 echo "configure:3646: checking for $ac_word" >&5
3646 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3647 echo $ac_n "(cached) $ac_c" 1>&6
3651 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3654 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3659 for ac_dir in $ac_dummy; do
3660 test -z "$ac_dir" && ac_dir=.
3661 if test -f $ac_dir/$ac_word; then
3662 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3670 PEPSY="$ac_cv_path_PEPSY"
3671 if test -n "$PEPSY"; then
3672 echo "$ac_t""$PEPSY" 1>&6
3674 echo "$ac_t""no" 1>&6
3681 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3682 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3686 echo "configure:3687: checking for $ac_hdr" >&5
3687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3696 { (eval echo configure:3697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3698 if test -z "$ac_err"; then
3700 eval "ac_cv_header_$ac_safe=yes"
3703 echo "configure: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3706 eval "ac_cv_header_$ac_safe=no"
3710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3711 echo "$ac_t""yes" 1>&6
3712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3713 cat >> confdefs.h <<EOF
3714 #define $ac_tr_hdr 1
3718 echo "$ac_t""no" 1>&6
3723 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3724 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3725 echo "configure:3726: checking for main in -lkrb4" >&5
3726 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 ac_save_LIBS="$LIBS"
3731 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3740 if { (eval echo configure:3741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3742 eval "ac_cv_lib_$ac_lib_var=yes"
3744 echo "configure: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3747 eval "ac_cv_lib_$ac_lib_var=no"
3750 LIBS="$ac_save_LIBS"
3753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3754 echo "$ac_t""yes" 1>&6
3757 echo "$ac_t""no" 1>&6
3762 if test $have_k5 = yes ; then
3763 ol_with_kerberos=found
3764 ol_link_kerberos=yes
3766 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3768 LIBS="$KRB_LIBS $LIBS"
3770 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3771 echo "configure:3772: checking for des_debug in Kerberos libraries" >&5
3772 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3777 LIBS="$KRB_LIBS $LIBS"
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3782 #include <kerberosIV/krb.h>
3783 #include <kerberosIV/des.h>
3784 extern int des_debug;
3792 if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3794 ol_cv_var_des_debug=yes
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3799 ol_cv_var_des_debug=no
3806 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3808 if test $ol_cv_var_des_debug = yes ; then
3809 cat >> confdefs.h <<\EOF
3810 #define HAVE_DES_DEBUG 1
3820 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3821 for ac_hdr in krb.h des.h
3823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3825 echo "configure:3826: checking for $ac_hdr" >&5
3826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3835 { (eval echo configure:3836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3837 if test -z "$ac_err"; then
3839 eval "ac_cv_header_$ac_safe=yes"
3842 echo "configure: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3845 eval "ac_cv_header_$ac_safe=no"
3849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3850 echo "$ac_t""yes" 1>&6
3851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3852 cat >> confdefs.h <<EOF
3853 #define $ac_tr_hdr 1
3857 echo "$ac_t""no" 1>&6
3862 if test $ac_cv_header_krb_h = yes ; then
3863 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3864 echo "configure:3865: checking for main in -lkrb" >&5
3865 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 ac_save_LIBS="$LIBS"
3870 LIBS="-lkrb -ldes $LIBS"
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3881 eval "ac_cv_lib_$ac_lib_var=yes"
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3886 eval "ac_cv_lib_$ac_lib_var=no"
3889 LIBS="$ac_save_LIBS"
3892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3896 echo "$ac_t""no" 1>&6
3901 if test $have_k4 = yes ; then
3902 ol_with_kerberos=found
3903 ol_link_kerberos=yes
3905 KRB_LIBS="-lkrb -ldes"
3910 if test $ol_link_kerberos = yes ; then
3911 cat >> confdefs.h <<\EOF
3912 #define HAVE_KERBEROS 1
3918 if test $ol_with_tls != no ; then
3922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3924 echo "configure:3925: checking for $ac_hdr" >&5
3925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3934 { (eval echo configure:3935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3936 if test -z "$ac_err"; then
3938 eval "ac_cv_header_$ac_safe=yes"
3941 echo "configure: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3944 eval "ac_cv_header_$ac_safe=no"
3948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3949 echo "$ac_t""yes" 1>&6
3950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3951 cat >> confdefs.h <<EOF
3952 #define $ac_tr_hdr 1
3956 echo "$ac_t""no" 1>&6
3961 if test $ac_cv_header_ssl_h = yes ; then
3962 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
3963 echo "configure:3964: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
3964 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
3965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3968 ac_save_LIBS="$LIBS"
3969 LIBS="-lssl -lcrypto $LIBS"
3970 cat > conftest.$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 /* Override any gcc2 internal prototype to avoid an error. */
3974 /* We use char because int might match the return type of a gcc2
3975 builtin and then its argument prototype would still apply. */
3976 char SSLeay_add_ssl_algorithms();
3979 SSLeay_add_ssl_algorithms()
3982 if { (eval echo configure:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3984 eval "ac_cv_lib_$ac_lib_var=yes"
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3989 eval "ac_cv_lib_$ac_lib_var=no"
3992 LIBS="$ac_save_LIBS"
3995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3996 echo "$ac_t""yes" 1>&6
4000 echo "$ac_t""no" 1>&6
4005 if test $have_ssleay = no ; then
4006 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4007 echo "configure:4008: checking for ssl3_accept in -lssl" >&5
4008 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 ac_save_LIBS="$LIBS"
4013 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 /* Override any gcc2 internal prototype to avoid an error. */
4018 /* We use char because int might match the return type of a gcc2
4019 builtin and then its argument prototype would still apply. */
4026 if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4028 eval "ac_cv_lib_$ac_lib_var=yes"
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4033 eval "ac_cv_lib_$ac_lib_var=no"
4036 LIBS="$ac_save_LIBS"
4039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4040 echo "$ac_t""yes" 1>&6
4044 echo "$ac_t""no" 1>&6
4050 if test $have_ssleay = yes ; then
4054 cat >> confdefs.h <<\EOF
4055 #define HAVE_SSLEAY 1
4059 if test $need_rsaref = yes; then
4060 cat >> confdefs.h <<\EOF
4061 #define HAVE_RSAREF 1
4065 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4067 TLS_LIBS="-lssl -lcrypto"
4073 if test $ol_link_tls = yes ; then
4074 cat >> confdefs.h <<\EOF
4082 gethostbyname_r gethostbyaddr_r \
4085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4086 echo "configure:4087: checking for $ac_func" >&5
4087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 /* System header to define __stub macros and hopefully few prototypes,
4094 which can conflict with char $ac_func(); below. */
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4103 /* The GNU C library defines this for functions which it implements
4104 to always fail with ENOSYS. Some functions are actually named
4105 something starting with __ and the normal name is an alias. */
4106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4114 if { (eval echo configure:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116 eval "ac_cv_func_$ac_func=yes"
4118 echo "configure: failed program was:" >&5
4119 cat conftest.$ac_ext >&5
4121 eval "ac_cv_func_$ac_func=no"
4126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4127 echo "$ac_t""yes" 1>&6
4128 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4129 cat >> confdefs.h <<EOF
4130 #define $ac_tr_func 1
4134 echo "$ac_t""no" 1>&6
4139 if test "$ac_cv_func_ctime_r" = no ; then
4140 ol_cv_func_ctime_r_nargs=0
4142 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4143 echo "configure:4144: checking number of arguments of ctime_r" >&5
4144 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4152 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4155 if { (eval echo configure:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4157 ol_cv_func_ctime_r_nargs=3
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4167 time_t ti; char *buffer; ctime_r(&ti,buffer);
4170 if { (eval echo configure:4171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4172 ol_cv_func_ctime_r_nargs=2
4174 echo "configure: failed program was:" >&5
4175 cat conftest.$ac_ext >&5
4177 ol_cv_func_ctime_r_nargs=0
4184 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4185 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4186 cat >> confdefs.h <<EOF
4187 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4194 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4195 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4196 echo "configure:4197: checking number of arguments of gethostbyname_r" >&5
4197 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 #include <sys/types.h>
4204 #include <sys/socket.h>
4205 #include <netinet/in.h>
4207 #define BUFSIZE (sizeof(struct hostent)+10)
4209 struct hostent hent; char buffer[BUFSIZE];
4210 int bufsize=BUFSIZE;int h_errno;
4211 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4212 buffer, bufsize, &h_errno);
4215 if { (eval echo configure:4216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4217 ol_cv_func_gethostbyname_r_nargs=5
4219 echo "configure: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 #include <sys/types.h>
4226 #include <sys/socket.h>
4227 #include <netinet/in.h>
4229 #define BUFSIZE (sizeof(struct hostent)+10)
4231 struct hostent hent;struct hostent *rhent;
4232 char buffer[BUFSIZE];
4233 int bufsize=BUFSIZE;int h_errno;
4234 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4238 if { (eval echo configure:4239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4240 ol_cv_func_gethostbyname_r_nargs=6
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 ol_cv_func_gethostbyname_r_nargs=0
4252 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4253 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4254 cat >> confdefs.h <<EOF
4255 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4261 ol_cv_func_gethostbyname_r_nargs=0
4264 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4265 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4266 echo "configure:4267: checking number of arguments of gethostbyaddr_r" >&5
4267 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4273 #include <sys/types.h>
4274 #include <sys/socket.h>
4275 #include <netinet/in.h>
4277 #define BUFSIZE (sizeof(struct hostent)+10)
4279 struct hostent hent; char buffer[BUFSIZE];
4281 size_t alen=sizeof(struct in_addr);
4282 int bufsize=BUFSIZE;int h_errno;
4283 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4284 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4287 if { (eval echo configure:4288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4289 ol_cv_func_gethostbyaddr_r_nargs=7
4291 echo "configure: failed program was:" >&5
4292 cat conftest.$ac_ext >&5
4294 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4297 #include <sys/types.h>
4298 #include <sys/socket.h>
4299 #include <netinet/in.h>
4301 #define BUFSIZE (sizeof(struct hostent)+10)
4303 struct hostent hent;
4304 struct hostent *rhent; char buffer[BUFSIZE];
4306 size_t alen=sizeof(struct in_addr);
4307 int bufsize=BUFSIZE;int h_errno;
4308 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4309 alen, AF_INET, &hent, buffer, bufsize,
4313 if { (eval echo configure:4314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4315 ol_cv_func_gethostbyaddr_r_nargs=8
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4320 ol_cv_func_gethostbyaddr_r_nargs=0
4327 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4328 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4329 cat >> confdefs.h <<EOF
4330 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4336 ol_cv_func_gethostbyaddr_r_nargs=0
4339 if test "$ac_cv_func_ctime_r" = yes \
4340 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4341 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4342 -a "$ac_cv_func_gethostbyname_r" = yes \
4343 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4344 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4345 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4346 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4347 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4350 cat >> confdefs.h <<\EOF
4351 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4357 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4358 -o $ol_with_threads = posix ; then
4360 for ac_hdr in pthread.h sched.h
4362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4364 echo "configure:4365: checking for $ac_hdr" >&5
4365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4374 { (eval echo configure:4375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4376 if test -z "$ac_err"; then
4378 eval "ac_cv_header_$ac_safe=yes"
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4384 eval "ac_cv_header_$ac_safe=no"
4388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4391 cat >> confdefs.h <<EOF
4392 #define $ac_tr_hdr 1
4396 echo "$ac_t""no" 1>&6
4401 if test $ac_cv_header_pthread_h = yes ; then
4402 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4403 echo "configure:4404: checking POSIX thread version" >&5
4404 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4412 # include <pthread.h>
4413 /* this check could be improved */
4414 # ifdef PTHREAD_ONCE_INIT
4415 pthread_version_final
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 egrep "pthread_version_final" >/dev/null 2>&1; then
4422 ol_pthread_final=yes
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4434 # include <pthread.h>
4435 /* this check could be improved */
4436 # ifdef pthread_once_init
4437 pthread_version_draft4
4441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4442 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4444 ol_pthread_draft4=yes
4447 ol_pthread_draft4=no
4452 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4453 ol_cv_pthread_version=final
4454 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4455 ol_cv_pthread_version=draft4
4457 ol_cv_pthread_version=unknown
4462 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4465 if test $ol_cv_pthread_version = final ; then
4466 cat >> confdefs.h <<\EOF
4467 #define HAVE_PTHREADS_FINAL 1
4470 elif test $ol_cv_pthread_version = draft4 ; then
4471 cat >> confdefs.h <<\EOF
4472 #define HAVE_PTHREADS_D4 1
4476 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4479 # consider threads found
4480 ol_with_threads=found
4483 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4484 echo "configure:4485: checking for LinuxThreads" >&5
4485 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4489 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4490 if test "$res" -gt 0 ; then
4491 ol_cv_linux_threads=yes
4493 ol_cv_linux_threads=no
4498 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4501 if test $ol_cv_linux_threads = yes ; then
4502 cat >> confdefs.h <<\EOF
4503 #define HAVE_LINUX_THREADS 1
4509 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4510 echo "configure:4511: checking for pthread_create in default libraries" >&5
4511 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4515 if test "$cross_compiling" = yes; then
4516 ol_cv_pthread_create=yes
4518 cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4522 #include <pthread.h>
4524 #define NULL (void*)0
4527 static void *task(p)
4530 return (void *) (p == NULL);
4533 int main(argc, argv)
4540 /* make sure pthread_create() isn't just a stub */
4541 #if HAVE_PTHREADS_D4
4542 status = pthread_create(&t, pthread_attr_default, task, NULL));
4544 status = pthread_create(&t, NULL, task, NULL);
4547 if( status ) return status;
4549 /* make sure pthread_detach() isn't just a stub */
4550 #if HAVE_PTHREADS_D4
4551 status = pthread_detach( &t );
4553 status = pthread_detach( t );
4556 if( status ) return status;
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4564 ol_cv_pthread_create=yes
4566 echo "configure: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4569 ol_cv_pthread_create=no
4576 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4578 if test $ol_cv_pthread_create != no ; then
4579 ol_link_threads=posix
4582 if test $ol_link_threads = no ; then
4583 echo $ac_n "checking for pthread_create with -mt""... $ac_c" 1>&6
4584 echo "configure:4585: checking for pthread_create with -mt" >&5
4585 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4591 cat > conftest.$ac_ext <<EOF
4592 #line 4593 "configure"
4593 #include "confdefs.h"
4594 char pthread_create();
4599 if { (eval echo configure:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4601 ol_cv_thread_flag=yes
4603 echo "configure: failed program was:" >&5
4604 cat conftest.$ac_ext >&5
4606 ol_cv_thread_flag=no
4613 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4615 if test $ol_cv_thread_flag = yes ; then
4616 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
4617 ol_link_threads=posix
4621 if test $ol_link_threads = no ; then
4622 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
4623 echo "configure:4624: checking for pthread_create with -kthread" >&5
4624 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4629 LIBS="-kthread $LIBS"
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 #include <pthread.h>
4636 #if HAVE_PTHREADS_D4
4637 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4640 pthread_create(&t,NULL,NULL,NULL);
4646 if { (eval echo configure:4647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4648 ol_cv_kthread_flag=yes
4650 echo "configure: failed program was:" >&5
4651 cat conftest.$ac_ext >&5
4653 ol_cv_kthread_flag=no
4660 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
4662 if test $ol_cv_kthread_flag = yes ; then
4663 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4664 ol_link_threads=posix
4668 if test $ol_link_threads = no ; then
4669 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4670 echo "configure:4671: checking for pthread_create with -pthread" >&5
4671 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4676 LIBS="-pthread $LIBS"
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <pthread.h>
4683 #if HAVE_PTHREADS_D4
4684 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4686 pthread_create(NULL,NULL,NULL,NULL);
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 ol_cv_pthread_flag=yes
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4698 ol_cv_pthread_flag=no
4705 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4707 if test $ol_cv_pthread_flag = yes ; then
4708 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4709 ol_link_threads=posix
4713 if test $ol_link_threads = no ; then
4714 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4715 echo "configure:4716: checking for pthread_create with -pthreads" >&5
4716 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4721 LIBS="-pthreads $LIBS"
4722 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4725 #include <pthread.h>
4728 #if HAVE_PTHREADS_D4
4729 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4731 pthread_create(NULL,NULL,NULL,NULL);
4736 if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4738 ol_cv_pthreads_flag=yes
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4743 ol_cv_pthreads_flag=no
4750 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4752 if test $ol_cv_pthreads_flag = yes ; then
4753 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4754 ol_link_threads=posix
4758 if test $ol_link_threads = no ; then
4759 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4760 echo "configure:4761: checking for pthread_create with -thread" >&5
4761 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4762 echo $ac_n "(cached) $ac_c" 1>&6
4766 LIBS="-thread $LIBS"
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 char pthread_create();
4775 if { (eval echo configure:4776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4777 ol_cv_thread_flag=yes
4779 echo "configure: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4782 ol_cv_thread_flag=no
4789 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4791 if test $ol_cv_thread_flag = yes ; then
4792 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4793 ol_link_threads=posix
4797 if test $ol_link_threads = no ; then
4799 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4800 echo "configure:4801: checking for pthread_mutex_unlock in -lpthread" >&5
4801 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4805 ac_save_LIBS="$LIBS"
4806 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4807 cat > conftest.$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4810 /* Override any gcc2 internal prototype to avoid an error. */
4811 /* We use char because int might match the return type of a gcc2
4812 builtin and then its argument prototype would still apply. */
4813 char pthread_mutex_unlock();
4816 pthread_mutex_unlock()
4819 if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4821 eval "ac_cv_lib_$ac_lib_var=yes"
4823 echo "configure: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4826 eval "ac_cv_lib_$ac_lib_var=no"
4829 LIBS="$ac_save_LIBS"
4832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4833 echo "$ac_t""yes" 1>&6
4835 ol_link_threads=posix
4836 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4837 if test $ol_with_yielding_select = auto ; then
4838 ol_with_yielding_select=yes
4842 echo "$ac_t""no" 1>&6
4849 if test $ol_link_threads = no ; then
4851 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4852 echo "configure:4853: checking for pthread_mutex_lock in -lpthread" >&5
4853 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4857 ac_save_LIBS="$LIBS"
4858 LIBS="-lpthread -lmach -lexc $LIBS"
4859 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 /* Override any gcc2 internal prototype to avoid an error. */
4863 /* We use char because int might match the return type of a gcc2
4864 builtin and then its argument prototype would still apply. */
4865 char pthread_mutex_lock();
4868 pthread_mutex_lock()
4871 if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4873 eval "ac_cv_lib_$ac_lib_var=yes"
4875 echo "configure: failed program was:" >&5
4876 cat conftest.$ac_ext >&5
4878 eval "ac_cv_lib_$ac_lib_var=no"
4881 LIBS="$ac_save_LIBS"
4884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4885 echo "$ac_t""yes" 1>&6
4887 ol_link_threads=posix
4888 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4889 if test $ol_with_yielding_select = auto ; then
4890 ol_with_yielding_select=yes
4894 echo "$ac_t""no" 1>&6
4901 if test $ol_link_threads = no ; then
4903 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4904 echo "configure:4905: checking for pthread_mutex_trylock in -lpthread" >&5
4905 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4909 ac_save_LIBS="$LIBS"
4910 LIBS="-lpthread -lexc $LIBS"
4911 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4914 /* Override any gcc2 internal prototype to avoid an error. */
4915 /* We use char because int might match the return type of a gcc2
4916 builtin and then its argument prototype would still apply. */
4917 char pthread_mutex_trylock();
4920 pthread_mutex_trylock()
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925 eval "ac_cv_lib_$ac_lib_var=yes"
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4930 eval "ac_cv_lib_$ac_lib_var=no"
4933 LIBS="$ac_save_LIBS"
4936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4937 echo "$ac_t""yes" 1>&6
4939 ol_link_threads=posix
4940 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4941 if test $ol_with_yielding_select = auto ; then
4942 ol_with_yielding_select=yes
4946 echo "$ac_t""no" 1>&6
4953 if test $ol_link_threads = no ; then
4955 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4956 echo "configure:4957: checking for pthread_create in -lpthread" >&5
4957 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4961 ac_save_LIBS="$LIBS"
4962 LIBS="-lpthread $LIBS"
4963 cat > conftest.$ac_ext <<EOF
4964 #line 4965 "configure"
4965 #include "confdefs.h"
4966 /* Override any gcc2 internal prototype to avoid an error. */
4967 /* We use char because int might match the return type of a gcc2
4968 builtin and then its argument prototype would still apply. */
4969 char pthread_create();
4975 if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4977 eval "ac_cv_lib_$ac_lib_var=yes"
4979 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4982 eval "ac_cv_lib_$ac_lib_var=no"
4985 LIBS="$ac_save_LIBS"
4988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4989 echo "$ac_t""yes" 1>&6
4991 ol_link_threads=posix
4992 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4994 echo "$ac_t""no" 1>&6
5001 if test $ol_link_threads = no ; then
5003 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
5004 echo "configure:5005: checking for pthread_create in -lc_r" >&5
5005 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
5006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5009 ac_save_LIBS="$LIBS"
5011 cat > conftest.$ac_ext <<EOF
5012 #line 5013 "configure"
5013 #include "confdefs.h"
5014 /* Override any gcc2 internal prototype to avoid an error. */
5015 /* We use char because int might match the return type of a gcc2
5016 builtin and then its argument prototype would still apply. */
5017 char pthread_create();
5023 if { (eval echo configure:5024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5025 eval "ac_cv_lib_$ac_lib_var=yes"
5027 echo "configure: failed program was:" >&5
5028 cat conftest.$ac_ext >&5
5030 eval "ac_cv_lib_$ac_lib_var=no"
5033 LIBS="$ac_save_LIBS"
5036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5037 echo "$ac_t""yes" 1>&6
5039 ol_link_threads=posix
5040 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
5042 echo "$ac_t""no" 1>&6
5049 if test $ol_link_threads = no ; then
5051 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
5052 echo "configure:5053: checking for pthread_create in -lpthreads" >&5
5053 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
5054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5055 echo $ac_n "(cached) $ac_c" 1>&6
5057 ac_save_LIBS="$LIBS"
5058 LIBS="-lpthreads $LIBS"
5059 cat > conftest.$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5062 /* Override any gcc2 internal prototype to avoid an error. */
5063 /* We use char because int might match the return type of a gcc2
5064 builtin and then its argument prototype would still apply. */
5065 char pthread_create();
5071 if { (eval echo configure:5072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5073 eval "ac_cv_lib_$ac_lib_var=yes"
5075 echo "configure: failed program was:" >&5
5076 cat conftest.$ac_ext >&5
5078 eval "ac_cv_lib_$ac_lib_var=no"
5081 LIBS="$ac_save_LIBS"
5084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5085 echo "$ac_t""yes" 1>&6
5087 ol_link_threads=posix
5088 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
5090 echo "$ac_t""no" 1>&6
5097 if test $ol_link_threads = no ; then
5099 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
5100 echo "configure:5101: checking for pthread_join in -lpthreads" >&5
5101 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
5102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5105 ac_save_LIBS="$LIBS"
5106 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
5107 cat > conftest.$ac_ext <<EOF
5108 #line 5109 "configure"
5109 #include "confdefs.h"
5110 /* Override any gcc2 internal prototype to avoid an error. */
5111 /* We use char because int might match the return type of a gcc2
5112 builtin and then its argument prototype would still apply. */
5113 char pthread_join();
5119 if { (eval echo configure:5120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5121 eval "ac_cv_lib_$ac_lib_var=yes"
5123 echo "configure: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5126 eval "ac_cv_lib_$ac_lib_var=no"
5129 LIBS="$ac_save_LIBS"
5132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5133 echo "$ac_t""yes" 1>&6
5135 ol_link_threads=posix
5136 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
5139 echo "$ac_t""no" 1>&6
5146 if test $ol_link_threads = no ; then
5147 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
5148 echo "configure:5149: checking for pthread_create with -threads" >&5
5149 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6
5154 LIBS="-threads $LIBS"
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5158 char pthread_create();
5165 if { (eval echo configure:5166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5167 ol_cv_thread_flag=yes
5169 echo "configure: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5172 ol_cv_thread_flag=no
5179 echo "$ac_t""$ol_cv_thread_flag" 1>&6
5181 if test $ol_cv_thread_flag = yes ; then
5182 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
5183 ol_link_threads=posix
5187 if test $ol_link_threads = no ; then
5189 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
5190 echo "configure:5191: checking for pthread_mutex_unlock in -lpthreads" >&5
5191 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
5192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 ac_save_LIBS="$LIBS"
5196 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 /* Override any gcc2 internal prototype to avoid an error. */
5201 /* We use char because int might match the return type of a gcc2
5202 builtin and then its argument prototype would still apply. */
5203 char pthread_mutex_unlock();
5206 pthread_mutex_unlock()
5209 if { (eval echo configure:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5211 eval "ac_cv_lib_$ac_lib_var=yes"
5213 echo "configure: failed program was:" >&5
5214 cat conftest.$ac_ext >&5
5216 eval "ac_cv_lib_$ac_lib_var=no"
5219 LIBS="$ac_save_LIBS"
5222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5225 ol_link_threads=posix
5226 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
5227 if test $ol_with_yielding_select = auto ; then
5228 ol_with_yielding_select=yes
5232 echo "$ac_t""no" 1>&6
5239 if test $ol_link_threads = no ; then
5241 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
5242 echo "configure:5243: checking for pthread_mutex_lock in -lpthreads" >&5
5243 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
5244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5247 ac_save_LIBS="$LIBS"
5248 LIBS="-lpthreads -lmach -lexc $LIBS"
5249 cat > conftest.$ac_ext <<EOF
5250 #line 5251 "configure"
5251 #include "confdefs.h"
5252 /* Override any gcc2 internal prototype to avoid an error. */
5253 /* We use char because int might match the return type of a gcc2
5254 builtin and then its argument prototype would still apply. */
5255 char pthread_mutex_lock();
5258 pthread_mutex_lock()
5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5263 eval "ac_cv_lib_$ac_lib_var=yes"
5265 echo "configure: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5268 eval "ac_cv_lib_$ac_lib_var=no"
5271 LIBS="$ac_save_LIBS"
5274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5275 echo "$ac_t""yes" 1>&6
5277 ol_link_threads=posix
5278 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
5279 if test $ol_with_yielding_select = auto ; then
5280 ol_with_yielding_select=yes
5284 echo "$ac_t""no" 1>&6
5291 if test $ol_link_threads = no ; then
5293 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
5294 echo "configure:5295: checking for pthread_mutex_trylock in -lpthreads" >&5
5295 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
5296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5299 ac_save_LIBS="$LIBS"
5300 LIBS="-lpthreads -lexc $LIBS"
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5304 /* Override any gcc2 internal prototype to avoid an error. */
5305 /* We use char because int might match the return type of a gcc2
5306 builtin and then its argument prototype would still apply. */
5307 char pthread_mutex_trylock();
5310 pthread_mutex_trylock()
5313 if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5315 eval "ac_cv_lib_$ac_lib_var=yes"
5317 echo "configure: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5320 eval "ac_cv_lib_$ac_lib_var=no"
5323 LIBS="$ac_save_LIBS"
5326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5327 echo "$ac_t""yes" 1>&6
5329 ol_link_threads=posix
5330 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
5331 if test $ol_with_yielding_select = auto ; then
5332 ol_with_yielding_select=yes
5336 echo "$ac_t""no" 1>&6
5343 if test $ol_link_threads != no ; then
5344 cat >> confdefs.h <<\EOF
5345 #define HAVE_PTHREADS 1
5349 save_CPPFLAGS="$CPPFLAGS"
5351 LIBS="$LTHREAD_LIBS $LIBS"
5353 for ac_func in sched_yield pthread_yield
5355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5356 echo "configure:5357: checking for $ac_func" >&5
5357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
5363 /* System header to define __stub macros and hopefully few prototypes,
5364 which can conflict with char $ac_func(); below. */
5366 /* Override any gcc2 internal prototype to avoid an error. */
5367 /* We use char because int might match the return type of a gcc2
5368 builtin and then its argument prototype would still apply. */
5373 /* The GNU C library defines this for functions which it implements
5374 to always fail with ENOSYS. Some functions are actually named
5375 something starting with __ and the normal name is an alias. */
5376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5384 if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5386 eval "ac_cv_func_$ac_func=yes"
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5391 eval "ac_cv_func_$ac_func=no"
5396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5397 echo "$ac_t""yes" 1>&6
5398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5399 cat >> confdefs.h <<EOF
5400 #define $ac_tr_func 1
5404 echo "$ac_t""no" 1>&6
5409 if test $ac_cv_func_sched_yield = no -a \
5410 $ac_cv_func_pthread_yield = no ; then
5411 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5412 echo "configure:5413: checking for sched_yield in -lrt" >&5
5413 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 ac_save_LIBS="$LIBS"
5419 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5422 /* Override any gcc2 internal prototype to avoid an error. */
5423 /* We use char because int might match the return type of a gcc2
5424 builtin and then its argument prototype would still apply. */
5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5433 eval "ac_cv_lib_$ac_lib_var=yes"
5435 echo "configure: failed program was:" >&5
5436 cat conftest.$ac_ext >&5
5438 eval "ac_cv_lib_$ac_lib_var=no"
5441 LIBS="$ac_save_LIBS"
5444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5445 echo "$ac_t""yes" 1>&6
5446 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5447 cat >> confdefs.h <<\EOF
5448 #define HAVE_SCHED_YIELD 1
5451 ac_cv_func_sched_yield=yes
5453 echo "$ac_t""no" 1>&6
5454 ac_cv_func_sched_yield=no
5458 if test $ac_cv_func_sched_yield = no -a \
5459 $ac_cv_func_pthread_yield = no ; then
5460 for ac_func in thr_yield
5462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5463 echo "configure:5464: checking for $ac_func" >&5
5464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5467 cat > conftest.$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5470 /* System header to define __stub macros and hopefully few prototypes,
5471 which can conflict with char $ac_func(); below. */
5473 /* Override any gcc2 internal prototype to avoid an error. */
5474 /* We use char because int might match the return type of a gcc2
5475 builtin and then its argument prototype would still apply. */
5480 /* The GNU C library defines this for functions which it implements
5481 to always fail with ENOSYS. Some functions are actually named
5482 something starting with __ and the normal name is an alias. */
5483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5491 if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5493 eval "ac_cv_func_$ac_func=yes"
5495 echo "configure: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5498 eval "ac_cv_func_$ac_func=no"
5503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5504 echo "$ac_t""yes" 1>&6
5505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5506 cat >> confdefs.h <<EOF
5507 #define $ac_tr_func 1
5511 echo "$ac_t""no" 1>&6
5516 if test $ac_cv_func_sched_yield = no -a \
5517 $ac_cv_func_pthread_yield = no -a \
5518 "$ac_cv_func_thr_yield" = no ; then
5519 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5522 for ac_func in pthread_kill
5524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5525 echo "configure:5526: checking for $ac_func" >&5
5526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5527 echo $ac_n "(cached) $ac_c" 1>&6
5529 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5532 /* System header to define __stub macros and hopefully few prototypes,
5533 which can conflict with char $ac_func(); below. */
5535 /* Override any gcc2 internal prototype to avoid an error. */
5536 /* We use char because int might match the return type of a gcc2
5537 builtin and then its argument prototype would still apply. */
5542 /* The GNU C library defines this for functions which it implements
5543 to always fail with ENOSYS. Some functions are actually named
5544 something starting with __ and the normal name is an alias. */
5545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5553 if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5555 eval "ac_cv_func_$ac_func=yes"
5557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5560 eval "ac_cv_func_$ac_func=no"
5565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5566 echo "$ac_t""yes" 1>&6
5567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5568 cat >> confdefs.h <<EOF
5569 #define $ac_tr_func 1
5573 echo "$ac_t""no" 1>&6
5578 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
5579 echo "configure:5580: checking for pthread_detach with <pthread.h>" >&5
5580 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
5581 echo $ac_n "(cached) $ac_c" 1>&6
5584 cat > conftest.$ac_ext <<EOF
5585 #line 5586 "configure"
5586 #include "confdefs.h"
5588 #include <pthread.h>
5590 #define NULL (void*)0
5594 pthread_detach(NULL);
5597 if { (eval echo configure:5598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5599 ol_cv_func_pthread_detach=yes
5601 echo "configure: failed program was:" >&5
5602 cat conftest.$ac_ext >&5
5604 ol_cv_func_pthread_detach=no
5610 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5612 if test $ol_cv_func_pthread_detach = no ; then
5613 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5616 cat >> confdefs.h <<\EOF
5617 #define HAVE_PTHREAD_DETACH 1
5622 pthread_setconcurrency \
5623 pthread_getconcurrency \
5624 thr_setconcurrency \
5625 thr_getconcurrency \
5628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5629 echo "configure:5630: checking for $ac_func" >&5
5630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
5633 cat > conftest.$ac_ext <<EOF
5634 #line 5635 "configure"
5635 #include "confdefs.h"
5636 /* System header to define __stub macros and hopefully few prototypes,
5637 which can conflict with char $ac_func(); below. */
5639 /* Override any gcc2 internal prototype to avoid an error. */
5640 /* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5646 /* The GNU C library defines this for functions which it implements
5647 to always fail with ENOSYS. Some functions are actually named
5648 something starting with __ and the normal name is an alias. */
5649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5657 if { (eval echo configure:5658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5659 eval "ac_cv_func_$ac_func=yes"
5661 echo "configure: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5664 eval "ac_cv_func_$ac_func=no"
5669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5670 echo "$ac_t""yes" 1>&6
5671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5672 cat >> confdefs.h <<EOF
5673 #define $ac_tr_func 1
5677 echo "$ac_t""no" 1>&6
5682 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5683 echo "configure:5684: checking if pthread_create() works" >&5
5684 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
5685 echo $ac_n "(cached) $ac_c" 1>&6
5688 if test "$cross_compiling" = yes; then
5689 ol_cv_pthread_create_works=yes
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5695 #include <pthread.h>
5697 #define NULL (void*)0
5700 static void *task(p)
5703 return (void *) (p == NULL);
5706 int main(argc, argv)
5711 #if HAVE_PTHREADS_D4
5712 exit(pthread_create(&t, pthread_attr_default, task, NULL));
5714 exit(pthread_create(&t, NULL, task, NULL));
5719 if { (eval echo configure:5720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5721 ol_cv_pthread_create_works=yes
5723 echo "configure: failed program was:" >&5
5724 cat conftest.$ac_ext >&5
5726 ol_cv_pthread_create_works=no
5733 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5735 if test $ol_cv_pthread_create_works = no ; then
5736 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
5739 if test $ol_with_yielding_select = auto ; then
5740 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5741 echo "configure:5742: checking if select yields when using pthreads" >&5
5742 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
5743 echo $ac_n "(cached) $ac_c" 1>&6
5746 if test "$cross_compiling" = yes; then
5748 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5750 cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5754 #include <sys/types.h>
5755 #include <sys/time.h>
5757 #include <pthread.h>
5759 #define NULL (void*) 0
5762 static int fildes[2];
5764 static void *task(p)
5776 FD_SET(fildes[0], &rfds);
5778 /* we're not interested in any fds */
5779 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5786 exit(0); /* if we exit here, the select blocked the whole process */
5789 int main(argc, argv)
5795 /* create a pipe to select */
5796 if(pipe(&fildes[0])) {
5801 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5802 (void) pthread_setconcurrency(2);
5804 #ifdef HAVE_THR_SETCONCURRENCY
5805 /* Set Solaris LWP concurrency to 2 */
5806 thr_setconcurrency(2);
5810 #if HAVE_PTHREADS_D4
5811 pthread_create(&t, pthread_attr_default, task, NULL);
5813 pthread_create(&t, NULL, task, NULL);
5816 #if HAVE_SCHED_YIELD
5817 sched_yield(); /* make sure task runs first */
5819 #ifdef HAVE_PTHREAD_YIELD
5820 pthread_yield(); /* make sure task runs first */
5827 if { (eval echo configure:5828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5829 ol_cv_pthread_select_yields=no
5831 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5834 ol_cv_pthread_select_yields=yes
5841 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5843 if test $ol_cv_pthread_select_yields = yes ; then
5844 ol_with_yielding_select=yes
5848 CPPFLAGS="$save_CPPFLAGS"
5851 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5855 if test $ol_with_threads = posix ; then
5856 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5860 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5861 -o $ol_with_threads = mach ; then
5863 for ac_hdr in mach/cthreads.h
5865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5867 echo "configure:5868: checking for $ac_hdr" >&5
5868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5871 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5877 { (eval echo configure:5878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5879 if test -z "$ac_err"; then
5881 eval "ac_cv_header_$ac_safe=yes"
5884 echo "configure: failed program was:" >&5
5885 cat conftest.$ac_ext >&5
5887 eval "ac_cv_header_$ac_safe=no"
5891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5892 echo "$ac_t""yes" 1>&6
5893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5894 cat >> confdefs.h <<EOF
5895 #define $ac_tr_hdr 1
5899 echo "$ac_t""no" 1>&6
5903 if test $ac_cv_header_mach_cthreads_h = yes ; then
5904 ol_with_threads=found
5906 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5907 echo "configure:5908: checking for cthread_fork" >&5
5908 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5914 /* System header to define __stub macros and hopefully few prototypes,
5915 which can conflict with char cthread_fork(); below. */
5917 /* Override any gcc2 internal prototype to avoid an error. */
5918 /* We use char because int might match the return type of a gcc2
5919 builtin and then its argument prototype would still apply. */
5920 char cthread_fork();
5924 /* The GNU C library defines this for functions which it implements
5925 to always fail with ENOSYS. Some functions are actually named
5926 something starting with __ and the normal name is an alias. */
5927 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5935 if { (eval echo configure:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5937 eval "ac_cv_func_cthread_fork=yes"
5939 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5942 eval "ac_cv_func_cthread_fork=no"
5947 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5948 echo "$ac_t""yes" 1>&6
5951 echo "$ac_t""no" 1>&6
5955 if test $ol_link_threads = no ; then
5956 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5957 echo "configure:5958: checking for cthread_fork with -all_load" >&5
5958 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
5959 echo $ac_n "(cached) $ac_c" 1>&6
5963 LIBS="-all_load $LIBS"
5964 cat > conftest.$ac_ext <<EOF
5965 #line 5966 "configure"
5966 #include "confdefs.h"
5967 #include <mach/cthreads.h>
5970 cthread_fork((void *)0, (void *)0);
5974 if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5976 ol_cv_cthread_all_load=yes
5978 echo "configure: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5981 ol_cv_cthread_all_load=no
5988 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5990 if test $ol_cv_cthread_all_load = yes ; then
5991 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5992 ol_link_threads=mach
5996 if test $ol_link_threads != no ; then
5997 : check for cthread specific functionality here
5998 cat >> confdefs.h <<\EOF
5999 #define HAVE_MACH_CTHREADS 1
6003 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6007 if test $ol_with_threads = mach ; then
6008 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6012 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6013 -o $ol_with_threads = lwp ; then
6015 for ac_hdr in thread.h synch.h
6017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6019 echo "configure:6020: checking for $ac_hdr" >&5
6020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6021 echo $ac_n "(cached) $ac_c" 1>&6
6023 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure"
6025 #include "confdefs.h"
6028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6029 { (eval echo configure:6030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6031 if test -z "$ac_err"; then
6033 eval "ac_cv_header_$ac_safe=yes"
6036 echo "configure: failed program was:" >&5
6037 cat conftest.$ac_ext >&5
6039 eval "ac_cv_header_$ac_safe=no"
6043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6044 echo "$ac_t""yes" 1>&6
6045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6046 cat >> confdefs.h <<EOF
6047 #define $ac_tr_hdr 1
6051 echo "$ac_t""no" 1>&6
6055 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6056 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6057 echo "configure:6058: checking for thr_create in -lthread" >&5
6058 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6060 echo $ac_n "(cached) $ac_c" 1>&6
6062 ac_save_LIBS="$LIBS"
6063 LIBS="-lthread $LIBS"
6064 cat > conftest.$ac_ext <<EOF
6065 #line 6066 "configure"
6066 #include "confdefs.h"
6067 /* Override any gcc2 internal prototype to avoid an error. */
6068 /* We use char because int might match the return type of a gcc2
6069 builtin and then its argument prototype would still apply. */
6076 if { (eval echo configure:6077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6078 eval "ac_cv_lib_$ac_lib_var=yes"
6080 echo "configure: failed program was:" >&5
6081 cat conftest.$ac_ext >&5
6083 eval "ac_cv_lib_$ac_lib_var=no"
6086 LIBS="$ac_save_LIBS"
6089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6090 echo "$ac_t""yes" 1>&6
6093 echo "$ac_t""no" 1>&6
6098 if test $have_thr = yes ; then
6099 cat >> confdefs.h <<\EOF
6103 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6106 if test $ol_with_yielding_select = auto ; then
6107 ol_with_yielding_select=yes
6111 thr_setconcurrency \
6112 thr_getconcurrency \
6115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6116 echo "configure:6117: checking for $ac_func" >&5
6117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6118 echo $ac_n "(cached) $ac_c" 1>&6
6120 cat > conftest.$ac_ext <<EOF
6121 #line 6122 "configure"
6122 #include "confdefs.h"
6123 /* System header to define __stub macros and hopefully few prototypes,
6124 which can conflict with char $ac_func(); below. */
6126 /* Override any gcc2 internal prototype to avoid an error. */
6127 /* We use char because int might match the return type of a gcc2
6128 builtin and then its argument prototype would still apply. */
6133 /* The GNU C library defines this for functions which it implements
6134 to always fail with ENOSYS. Some functions are actually named
6135 something starting with __ and the normal name is an alias. */
6136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6144 if { (eval echo configure:6145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6146 eval "ac_cv_func_$ac_func=yes"
6148 echo "configure: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6151 eval "ac_cv_func_$ac_func=no"
6156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6157 echo "$ac_t""yes" 1>&6
6158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6159 cat >> confdefs.h <<EOF
6160 #define $ac_tr_func 1
6164 echo "$ac_t""no" 1>&6
6171 for ac_hdr in lwp/lwp.h
6173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6175 echo "configure:6176: checking for $ac_hdr" >&5
6176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6179 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6185 { (eval echo configure:6186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6187 if test -z "$ac_err"; then
6189 eval "ac_cv_header_$ac_safe=yes"
6192 echo "configure: failed program was:" >&5
6193 cat conftest.$ac_ext >&5
6195 eval "ac_cv_header_$ac_safe=no"
6199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6200 echo "$ac_t""yes" 1>&6
6201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6202 cat >> confdefs.h <<EOF
6203 #define $ac_tr_hdr 1
6207 echo "$ac_t""no" 1>&6
6211 if test $ac_cv_header_lwp_lwp_h = yes ; then
6212 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6213 echo "configure:6214: checking for lwp_create in -llwp" >&5
6214 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6216 echo $ac_n "(cached) $ac_c" 1>&6
6218 ac_save_LIBS="$LIBS"
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 /* Override any gcc2 internal prototype to avoid an error. */
6224 /* We use char because int might match the return type of a gcc2
6225 builtin and then its argument prototype would still apply. */
6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6234 eval "ac_cv_lib_$ac_lib_var=yes"
6236 echo "configure: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6239 eval "ac_cv_lib_$ac_lib_var=no"
6242 LIBS="$ac_save_LIBS"
6245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6246 echo "$ac_t""yes" 1>&6
6249 echo "$ac_t""no" 1>&6
6254 if test $have_lwp = yes ; then
6255 cat >> confdefs.h <<\EOF
6259 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6262 if test $ol_with_yielding_select = auto ; then
6263 ol_with_yielding_select=no
6269 if test $ol_with_yielding_select = yes ; then
6270 cat >> confdefs.h <<\EOF
6271 #define HAVE_YIELDING_SELECT 1
6276 if test $ol_with_threads = manual ; then
6279 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6281 for ac_hdr in pthread.h sched.h
6283 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6285 echo "configure:6286: checking for $ac_hdr" >&5
6286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6287 echo $ac_n "(cached) $ac_c" 1>&6
6289 cat > conftest.$ac_ext <<EOF
6290 #line 6291 "configure"
6291 #include "confdefs.h"
6294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6295 { (eval echo configure:6296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6297 if test -z "$ac_err"; then
6299 eval "ac_cv_header_$ac_safe=yes"
6302 echo "configure: failed program was:" >&5
6303 cat conftest.$ac_ext >&5
6305 eval "ac_cv_header_$ac_safe=no"
6309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6310 echo "$ac_t""yes" 1>&6
6311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6312 cat >> confdefs.h <<EOF
6313 #define $ac_tr_hdr 1
6317 echo "$ac_t""no" 1>&6
6321 for ac_func in sched_yield pthread_yield
6323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6324 echo "configure:6325: checking for $ac_func" >&5
6325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6328 cat > conftest.$ac_ext <<EOF
6329 #line 6330 "configure"
6330 #include "confdefs.h"
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func(); below. */
6334 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6341 /* The GNU C library defines this for functions which it implements
6342 to always fail with ENOSYS. Some functions are actually named
6343 something starting with __ and the normal name is an alias. */
6344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6352 if { (eval echo configure:6353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6354 eval "ac_cv_func_$ac_func=yes"
6356 echo "configure: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6359 eval "ac_cv_func_$ac_func=no"
6364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6365 echo "$ac_t""yes" 1>&6
6366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6367 cat >> confdefs.h <<EOF
6368 #define $ac_tr_func 1
6372 echo "$ac_t""no" 1>&6
6377 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
6378 echo "configure:6379: checking for LinuxThreads" >&5
6379 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6383 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
6384 if test "$res" -gt 0 ; then
6385 ol_cv_linux_threads=yes
6387 ol_cv_linux_threads=no
6392 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6395 for ac_hdr in mach/cthreads.h
6397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6399 echo "configure:6400: checking for $ac_hdr" >&5
6400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6401 echo $ac_n "(cached) $ac_c" 1>&6
6403 cat > conftest.$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6409 { (eval echo configure:6410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6411 if test -z "$ac_err"; then
6413 eval "ac_cv_header_$ac_safe=yes"
6416 echo "configure: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6419 eval "ac_cv_header_$ac_safe=no"
6423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6424 echo "$ac_t""yes" 1>&6
6425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6426 cat >> confdefs.h <<EOF
6427 #define $ac_tr_hdr 1
6431 echo "$ac_t""no" 1>&6
6435 for ac_hdr in lwp/lwp.h
6437 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6439 echo "configure:6440: checking for $ac_hdr" >&5
6440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6443 cat > conftest.$ac_ext <<EOF
6444 #line 6445 "configure"
6445 #include "confdefs.h"
6448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6449 { (eval echo configure:6450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6451 if test -z "$ac_err"; then
6453 eval "ac_cv_header_$ac_safe=yes"
6456 echo "configure: failed program was:" >&5
6457 cat conftest.$ac_ext >&5
6459 eval "ac_cv_header_$ac_safe=no"
6463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6466 cat >> confdefs.h <<EOF
6467 #define $ac_tr_hdr 1
6471 echo "$ac_t""no" 1>&6
6475 for ac_hdr in thread.h synch.h
6477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6479 echo "configure:6480: checking for $ac_hdr" >&5
6480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6489 { (eval echo configure:6490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6491 if test -z "$ac_err"; then
6493 eval "ac_cv_header_$ac_safe=yes"
6496 echo "configure: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6499 eval "ac_cv_header_$ac_safe=no"
6503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6504 echo "$ac_t""yes" 1>&6
6505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6506 cat >> confdefs.h <<EOF
6507 #define $ac_tr_hdr 1
6511 echo "$ac_t""no" 1>&6
6517 if test $ol_link_threads != no ; then
6518 cat >> confdefs.h <<\EOF
6522 cat >> confdefs.h <<\EOF
6523 #define _REENTRANT 1
6526 cat >> confdefs.h <<\EOF
6527 #define THREAD_SAFE 1
6530 cat >> confdefs.h <<\EOF
6531 #define _THREAD_SAFE 1
6534 cat >> confdefs.h <<\EOF
6535 #define THREADSAFE 1
6538 cat >> confdefs.h <<\EOF
6539 #define _THREADSAFE 1
6543 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
6544 echo "configure:6545: checking for thread specific errno" >&5
6545 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6549 cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6557 if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6559 ol_cv_errno_thread_specific=yes
6561 echo "configure: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6564 ol_cv_errno_thread_specific=no
6570 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
6572 if test $ol_cv_errno_thread_specific != yes ; then
6573 LIBS="$LTHREAD_LIBS $LIBS"
6579 if test $ol_link_threads = no ; then
6580 if test $ol_with_threads = yes ; then
6581 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
6584 if test $ol_with_threads = auto ; then
6585 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
6589 cat >> confdefs.h <<\EOF
6590 #define NO_THREADS 1
6596 if test $ol_link_threads != no ; then
6597 cat >> confdefs.h <<\EOF
6598 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
6605 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
6606 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
6607 echo "configure:6608: checking for DB2 library" >&5
6608 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
6609 echo $ac_n "(cached) $ac_c" 1>&6
6612 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
6613 echo "configure:6614: checking for db_open in -ldb" >&5
6614 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
6615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6618 ac_save_LIBS="$LIBS"
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6623 /* Override any gcc2 internal prototype to avoid an error. */
6624 /* We use char because int might match the return type of a gcc2
6625 builtin and then its argument prototype would still apply. */
6632 if { (eval echo configure:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6634 eval "ac_cv_lib_$ac_lib_var=yes"
6636 echo "configure: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6639 eval "ac_cv_lib_$ac_lib_var=no"
6642 LIBS="$ac_save_LIBS"
6645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6649 echo "$ac_t""no" 1>&6
6657 echo "$ac_t""$ol_cv_lib_db2" 1>&6
6661 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6662 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6663 echo "configure:6664: checking for $ac_hdr" >&5
6664 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6673 { (eval echo configure:6674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6675 if test -z "$ac_err"; then
6677 eval "ac_cv_header_$ac_safe=yes"
6680 echo "configure: failed program was:" >&5
6681 cat conftest.$ac_ext >&5
6683 eval "ac_cv_header_$ac_safe=no"
6687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6688 echo "$ac_t""yes" 1>&6
6689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6690 cat >> confdefs.h <<EOF
6691 #define $ac_tr_hdr 1
6695 echo "$ac_t""no" 1>&6
6699 if test $ac_cv_header_db_h = yes ; then
6700 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6701 echo "configure:6702: checking if db.h is DB2" >&5
6702 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
6703 echo $ac_n "(cached) $ac_c" 1>&6
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6711 /* this check could be improved */
6712 # ifdef DB_VERSION_MAJOR
6713 # if DB_VERSION_MAJOR == 2
6719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6720 egrep "__db_version_2" >/dev/null 2>&1; then
6722 ol_cv_header_db2=yes
6731 echo "$ac_t""$ol_cv_header_db2" 1>&6
6738 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6739 echo "configure:6740: checking for Berkeley DB2" >&5
6740 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6744 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6745 ol_cv_berkeley_db2=no
6747 ol_cv_berkeley_db2=yes
6752 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6753 if test $ol_cv_berkeley_db2 = yes ; then
6754 cat >> confdefs.h <<\EOF
6755 #define HAVE_BERKELEY_DB2 1
6761 if test $ol_cv_berkeley_db2 = yes ; then
6763 ol_with_ldbm_api=db2
6765 if test $ol_with_ldbm_type = hash ; then
6766 cat >> confdefs.h <<\EOF
6767 #define LDBM_USE_DBHASH 1
6771 cat >> confdefs.h <<\EOF
6772 #define LDBM_USE_DBBTREE 1
6777 if test $ol_cv_lib_db2 != yes ; then
6778 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6784 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
6788 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6789 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6790 echo "configure:6791: checking for Berkeley DB library" >&5
6791 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
6792 echo $ac_n "(cached) $ac_c" 1>&6
6795 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6796 echo "configure:6797: checking for dbopen" >&5
6797 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 /* System header to define __stub macros and hopefully few prototypes,
6804 which can conflict with char dbopen(); below. */
6806 /* Override any gcc2 internal prototype to avoid an error. */
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6813 /* The GNU C library defines this for functions which it implements
6814 to always fail with ENOSYS. Some functions are actually named
6815 something starting with __ and the normal name is an alias. */
6816 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6824 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6826 eval "ac_cv_func_dbopen=yes"
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6831 eval "ac_cv_func_dbopen=no"
6836 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6837 echo "$ac_t""yes" 1>&6
6840 echo "$ac_t""no" 1>&6
6842 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6843 echo "configure:6844: checking for dbopen in -ldb" >&5
6844 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
6845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6846 echo $ac_n "(cached) $ac_c" 1>&6
6848 ac_save_LIBS="$LIBS"
6850 cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure"
6852 #include "confdefs.h"
6853 /* Override any gcc2 internal prototype to avoid an error. */
6854 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */
6862 if { (eval echo configure:6863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6864 eval "ac_cv_lib_$ac_lib_var=yes"
6866 echo "configure: failed program was:" >&5
6867 cat conftest.$ac_ext >&5
6869 eval "ac_cv_lib_$ac_lib_var=no"
6872 LIBS="$ac_save_LIBS"
6875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6876 echo "$ac_t""yes" 1>&6
6879 echo "$ac_t""no" 1>&6
6890 echo "$ac_t""$ol_cv_lib_db" 1>&6
6893 for ac_hdr in db_185.h
6895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6897 echo "configure:6898: checking for $ac_hdr" >&5
6898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6899 echo $ac_n "(cached) $ac_c" 1>&6
6901 cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6907 { (eval echo configure:6908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6909 if test -z "$ac_err"; then
6911 eval "ac_cv_header_$ac_safe=yes"
6914 echo "configure: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6917 eval "ac_cv_header_$ac_safe=no"
6921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6922 echo "$ac_t""yes" 1>&6
6923 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6924 cat >> confdefs.h <<EOF
6925 #define $ac_tr_hdr 1
6929 echo "$ac_t""no" 1>&6
6933 if test "$ol_cv_header_db2" = yes ; then
6935 ol_cv_header_db=$ac_cv_header_db_185_h
6937 ol_cv_header_db=$ac_cv_header_db_h
6942 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6943 echo "configure:6944: checking for Berkeley DB" >&5
6944 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
6945 echo $ac_n "(cached) $ac_c" 1>&6
6948 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6949 ol_cv_berkeley_db=no
6951 ol_cv_berkeley_db=yes
6956 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6957 if test $ol_cv_berkeley_db = yes ; then
6958 cat >> confdefs.h <<\EOF
6959 #define HAVE_BERKELEY_DB 1
6965 if test $ol_cv_berkeley_db = yes ; then
6969 if test $ol_with_ldbm_type = hash ; then
6970 cat >> confdefs.h <<\EOF
6971 #define LDBM_USE_DBHASH 1
6975 cat >> confdefs.h <<\EOF
6976 #define LDBM_USE_DBBTREE 1
6981 if test $ol_cv_lib_db != yes ; then
6982 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6987 if test $ol_with_ldbm_api = manual ; then
6990 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6992 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6996 echo "configure:6997: checking for $ac_hdr" >&5
6997 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6998 echo $ac_n "(cached) $ac_c" 1>&6
7000 cat > conftest.$ac_ext <<EOF
7001 #line 7002 "configure"
7002 #include "confdefs.h"
7005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7006 { (eval echo configure:7007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7008 if test -z "$ac_err"; then
7010 eval "ac_cv_header_$ac_safe=yes"
7013 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7016 eval "ac_cv_header_$ac_safe=no"
7020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7021 echo "$ac_t""yes" 1>&6
7022 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7023 cat >> confdefs.h <<EOF
7024 #define $ac_tr_hdr 1
7028 echo "$ac_t""no" 1>&6
7034 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7035 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7036 ol_with_ldbm_api=none
7039 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7040 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7041 echo "configure:7042: checking for MDBM library" >&5
7042 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7043 echo $ac_n "(cached) $ac_c" 1>&6
7046 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7047 echo "configure:7048: checking for mdbm_set_chain" >&5
7048 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7049 echo $ac_n "(cached) $ac_c" 1>&6
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7054 /* System header to define __stub macros and hopefully few prototypes,
7055 which can conflict with char mdbm_set_chain(); below. */
7057 /* Override any gcc2 internal prototype to avoid an error. */
7058 /* We use char because int might match the return type of a gcc2
7059 builtin and then its argument prototype would still apply. */
7060 char mdbm_set_chain();
7064 /* The GNU C library defines this for functions which it implements
7065 to always fail with ENOSYS. Some functions are actually named
7066 something starting with __ and the normal name is an alias. */
7067 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7075 if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7077 eval "ac_cv_func_mdbm_set_chain=yes"
7079 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7082 eval "ac_cv_func_mdbm_set_chain=no"
7087 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
7088 echo "$ac_t""yes" 1>&6
7091 echo "$ac_t""no" 1>&6
7093 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
7094 echo "configure:7095: checking for mdbm_set_chain in -lmdbm" >&5
7095 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
7096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7097 echo $ac_n "(cached) $ac_c" 1>&6
7099 ac_save_LIBS="$LIBS"
7101 cat > conftest.$ac_ext <<EOF
7102 #line 7103 "configure"
7103 #include "confdefs.h"
7104 /* Override any gcc2 internal prototype to avoid an error. */
7105 /* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */
7107 char mdbm_set_chain();
7113 if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7115 eval "ac_cv_lib_$ac_lib_var=yes"
7117 echo "configure: failed program was:" >&5
7118 cat conftest.$ac_ext >&5
7120 eval "ac_cv_lib_$ac_lib_var=no"
7123 LIBS="$ac_save_LIBS"
7126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7127 echo "$ac_t""yes" 1>&6
7128 ol_cv_lib_mdbm=-lmdbm
7130 echo "$ac_t""no" 1>&6
7141 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
7144 for ac_hdr in mdbm.h
7146 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7147 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7148 echo "configure:7149: checking for $ac_hdr" >&5
7149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7150 echo $ac_n "(cached) $ac_c" 1>&6
7152 cat > conftest.$ac_ext <<EOF
7153 #line 7154 "configure"
7154 #include "confdefs.h"
7157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7158 { (eval echo configure:7159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7160 if test -z "$ac_err"; then
7162 eval "ac_cv_header_$ac_safe=yes"
7165 echo "configure: failed program was:" >&5
7166 cat conftest.$ac_ext >&5
7168 eval "ac_cv_header_$ac_safe=no"
7172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7173 echo "$ac_t""yes" 1>&6
7174 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7175 cat >> confdefs.h <<EOF
7176 #define $ac_tr_hdr 1
7180 echo "$ac_t""no" 1>&6
7184 echo $ac_n "checking for db""... $ac_c" 1>&6
7185 echo "configure:7186: checking for db" >&5
7186 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7190 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
7198 echo "$ac_t""$ol_cv_mdbm" 1>&6
7199 if test $ol_cv_mdbm = yes ; then
7200 cat >> confdefs.h <<\EOF
7207 if test $ol_cv_mdbm = yes ; then
7209 ol_with_ldbm_api=mdbm
7210 if test $ol_cv_lib_mdbm != yes ; then
7211 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
7216 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7217 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7218 echo "configure:7219: checking for GDBM library" >&5
7219 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7220 echo $ac_n "(cached) $ac_c" 1>&6
7223 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
7224 echo "configure:7225: checking for gdbm_open" >&5
7225 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7228 cat > conftest.$ac_ext <<EOF
7229 #line 7230 "configure"
7230 #include "confdefs.h"
7231 /* System header to define __stub macros and hopefully few prototypes,
7232 which can conflict with char gdbm_open(); below. */
7234 /* Override any gcc2 internal prototype to avoid an error. */
7235 /* We use char because int might match the return type of a gcc2
7236 builtin and then its argument prototype would still apply. */
7241 /* The GNU C library defines this for functions which it implements
7242 to always fail with ENOSYS. Some functions are actually named
7243 something starting with __ and the normal name is an alias. */
7244 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
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_func_gdbm_open=yes"
7256 echo "configure: failed program was:" >&5
7257 cat conftest.$ac_ext >&5
7259 eval "ac_cv_func_gdbm_open=no"
7264 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
7265 echo "$ac_t""yes" 1>&6
7268 echo "$ac_t""no" 1>&6
7270 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
7271 echo "configure:7272: checking for gdbm_open in -lgdbm" >&5
7272 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
7273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7276 ac_save_LIBS="$LIBS"
7278 cat > conftest.$ac_ext <<EOF
7279 #line 7280 "configure"
7280 #include "confdefs.h"
7281 /* Override any gcc2 internal prototype to avoid an error. */
7282 /* We use char because int might match the return type of a gcc2
7283 builtin and then its argument prototype would still apply. */
7290 if { (eval echo configure:7291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7292 eval "ac_cv_lib_$ac_lib_var=yes"
7294 echo "configure: failed program was:" >&5
7295 cat conftest.$ac_ext >&5
7297 eval "ac_cv_lib_$ac_lib_var=no"
7300 LIBS="$ac_save_LIBS"
7303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7304 echo "$ac_t""yes" 1>&6
7305 ol_cv_lib_gdbm=-lgdbm
7307 echo "$ac_t""no" 1>&6
7318 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
7321 for ac_hdr in gdbm.h
7323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7325 echo "configure:7326: checking for $ac_hdr" >&5
7326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7327 echo $ac_n "(cached) $ac_c" 1>&6
7329 cat > conftest.$ac_ext <<EOF
7330 #line 7331 "configure"
7331 #include "confdefs.h"
7334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7335 { (eval echo configure:7336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7337 if test -z "$ac_err"; then
7339 eval "ac_cv_header_$ac_safe=yes"
7342 echo "configure: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7345 eval "ac_cv_header_$ac_safe=no"
7349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7350 echo "$ac_t""yes" 1>&6
7351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7352 cat >> confdefs.h <<EOF
7353 #define $ac_tr_hdr 1
7357 echo "$ac_t""no" 1>&6
7361 echo $ac_n "checking for db""... $ac_c" 1>&6
7362 echo "configure:7363: checking for db" >&5
7363 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
7364 echo $ac_n "(cached) $ac_c" 1>&6
7367 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
7375 echo "$ac_t""$ol_cv_gdbm" 1>&6
7376 if test $ol_cv_gdbm = yes ; then
7377 cat >> confdefs.h <<\EOF
7384 if test $ol_cv_gdbm = yes ; then
7386 ol_with_ldbm_api=gdbm
7388 if test $ol_cv_lib_gdbm != yes ; then
7389 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
7394 if test $ol_with_ldbm_api = auto ; then
7395 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
7396 elif test $ol_with_ldbm_api = ndbm ; then
7397 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
7398 echo "configure:7399: checking for NDBM library" >&5
7399 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7403 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
7404 echo "configure:7405: checking for dbm_open" >&5
7405 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 /* System header to define __stub macros and hopefully few prototypes,
7412 which can conflict with char dbm_open(); below. */
7414 /* Override any gcc2 internal prototype to avoid an error. */
7415 /* We use char because int might match the return type of a gcc2
7416 builtin and then its argument prototype would still apply. */
7421 /* The GNU C library defines this for functions which it implements
7422 to always fail with ENOSYS. Some functions are actually named
7423 something starting with __ and the normal name is an alias. */
7424 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
7432 if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7434 eval "ac_cv_func_dbm_open=yes"
7436 echo "configure: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7439 eval "ac_cv_func_dbm_open=no"
7444 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
7445 echo "$ac_t""yes" 1>&6
7448 echo "$ac_t""no" 1>&6
7450 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
7451 echo "configure:7452: checking for dbm_open in -lndbm" >&5
7452 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
7453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7456 ac_save_LIBS="$LIBS"
7458 cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7461 /* Override any gcc2 internal prototype to avoid an error. */
7462 /* We use char because int might match the return type of a gcc2
7463 builtin and then its argument prototype would still apply. */
7470 if { (eval echo configure:7471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7472 eval "ac_cv_lib_$ac_lib_var=yes"
7474 echo "configure: failed program was:" >&5
7475 cat conftest.$ac_ext >&5
7477 eval "ac_cv_lib_$ac_lib_var=no"
7480 LIBS="$ac_save_LIBS"
7483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7484 echo "$ac_t""yes" 1>&6
7485 ol_cv_lib_ndbm=-lndbm
7487 echo "$ac_t""no" 1>&6
7489 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
7490 echo "configure:7491: checking for dbm_open in -ldbm" >&5
7491 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
7492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7493 echo $ac_n "(cached) $ac_c" 1>&6
7495 ac_save_LIBS="$LIBS"
7497 cat > conftest.$ac_ext <<EOF
7498 #line 7499 "configure"
7499 #include "confdefs.h"
7500 /* Override any gcc2 internal prototype to avoid an error. */
7501 /* We use char because int might match the return type of a gcc2
7502 builtin and then its argument prototype would still apply. */
7509 if { (eval echo configure:7510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7511 eval "ac_cv_lib_$ac_lib_var=yes"
7513 echo "configure: failed program was:" >&5
7514 cat conftest.$ac_ext >&5
7516 eval "ac_cv_lib_$ac_lib_var=no"
7519 LIBS="$ac_save_LIBS"
7522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7523 echo "$ac_t""yes" 1>&6
7524 ol_cv_lib_ndbm=-ldbm
7526 echo "$ac_t""no" 1>&6
7539 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
7542 for ac_hdr in ndbm.h
7544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7546 echo "configure:7547: checking for $ac_hdr" >&5
7547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7548 echo $ac_n "(cached) $ac_c" 1>&6
7550 cat > conftest.$ac_ext <<EOF
7551 #line 7552 "configure"
7552 #include "confdefs.h"
7555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7556 { (eval echo configure:7557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7558 if test -z "$ac_err"; then
7560 eval "ac_cv_header_$ac_safe=yes"
7563 echo "configure: failed program was:" >&5
7564 cat conftest.$ac_ext >&5
7566 eval "ac_cv_header_$ac_safe=no"
7570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7571 echo "$ac_t""yes" 1>&6
7572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7573 cat >> confdefs.h <<EOF
7574 #define $ac_tr_hdr 1
7578 echo "$ac_t""no" 1>&6
7582 echo $ac_n "checking for db""... $ac_c" 1>&6
7583 echo "configure:7584: checking for db" >&5
7584 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
7585 echo $ac_n "(cached) $ac_c" 1>&6
7588 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
7596 echo "$ac_t""$ol_cv_ndbm" 1>&6
7597 if test $ol_cv_ndbm = yes ; then
7598 cat >> confdefs.h <<\EOF
7605 if test $ol_cv_ndbm = yes ; then
7607 ol_with_ldbm_api=ndbm
7609 if test $ol_cv_lib_ndbm != yes ; then
7610 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
7615 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
7616 echo "configure: warning: could not find suitable LDBM backend" 1>&2
7617 if test $ol_enable_ldbm = yes ; then
7618 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
7621 echo "configure: warning: disabling LDBM" 1>&2
7625 if test $ol_enable_wrappers != no ; then
7626 for ac_hdr in tcpd.h
7628 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7630 echo "configure:7631: checking for $ac_hdr" >&5
7631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7632 echo $ac_n "(cached) $ac_c" 1>&6
7634 cat > conftest.$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7640 { (eval echo configure:7641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7642 if test -z "$ac_err"; then
7644 eval "ac_cv_header_$ac_safe=yes"
7647 echo "configure: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7650 eval "ac_cv_header_$ac_safe=no"
7654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7656 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7657 cat >> confdefs.h <<EOF
7658 #define $ac_tr_hdr 1
7662 echo "$ac_t""no" 1>&6
7667 if test $ac_cv_header_tcpd_h != yes ; then
7670 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
7671 echo "configure:7672: checking for main in -lwrap" >&5
7672 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
7673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7674 echo $ac_n "(cached) $ac_c" 1>&6
7676 ac_save_LIBS="$LIBS"
7678 cat > conftest.$ac_ext <<EOF
7679 #line 7680 "configure"
7680 #include "confdefs.h"
7686 if { (eval echo configure:7687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7688 eval "ac_cv_lib_$ac_lib_var=yes"
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7693 eval "ac_cv_lib_$ac_lib_var=no"
7696 LIBS="$ac_save_LIBS"
7699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7700 echo "$ac_t""yes" 1>&6
7703 echo "$ac_t""no" 1>&6
7709 if test $have_wrappers = yes ; then
7710 cat >> confdefs.h <<\EOF
7714 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
7716 echo "configure: warning: could not find -lwrap" 1>&2
7717 if test $ol_enable_wrappers = yes ; then
7718 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
7721 echo "configure: warning: disabling wrappers support" 1>&2
7722 ol_enable_wrappers=no
7726 if test $ol_enable_syslog != no ; then
7727 echo $ac_n "checking for openlog""... $ac_c" 1>&6
7728 echo "configure:7729: checking for openlog" >&5
7729 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
7730 echo $ac_n "(cached) $ac_c" 1>&6
7732 cat > conftest.$ac_ext <<EOF
7733 #line 7734 "configure"
7734 #include "confdefs.h"
7735 /* System header to define __stub macros and hopefully few prototypes,
7736 which can conflict with char openlog(); below. */
7738 /* Override any gcc2 internal prototype to avoid an error. */
7739 /* We use char because int might match the return type of a gcc2
7740 builtin and then its argument prototype would still apply. */
7745 /* The GNU C library defines this for functions which it implements
7746 to always fail with ENOSYS. Some functions are actually named
7747 something starting with __ and the normal name is an alias. */
7748 #if defined (__stub_openlog) || defined (__stub___openlog)
7756 if { (eval echo configure:7757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7758 eval "ac_cv_func_openlog=yes"
7760 echo "configure: failed program was:" >&5
7761 cat conftest.$ac_ext >&5
7763 eval "ac_cv_func_openlog=no"
7768 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
7769 echo "$ac_t""yes" 1>&6
7772 echo "$ac_t""no" 1>&6
7775 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
7776 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
7778 ol_enable_syslog=$ac_cv_func_openlog
7781 if test $ol_enable_dmalloc != no ; then
7782 for ac_hdr in dmalloc.h
7784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7786 echo "configure:7787: checking for $ac_hdr" >&5
7787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7790 cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7796 { (eval echo configure:7797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7798 if test -z "$ac_err"; then
7800 eval "ac_cv_header_$ac_safe=yes"
7803 echo "configure: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7806 eval "ac_cv_header_$ac_safe=no"
7810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7811 echo "$ac_t""yes" 1>&6
7812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7813 cat >> confdefs.h <<EOF
7814 #define $ac_tr_hdr 1
7818 echo "$ac_t""no" 1>&6
7822 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7823 echo "configure:7824: checking for dmalloc_shutdown in -ldmalloc" >&5
7824 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
7825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7828 ac_save_LIBS="$LIBS"
7829 LIBS="-ldmalloc $LIBS"
7830 cat > conftest.$ac_ext <<EOF
7831 #line 7832 "configure"
7832 #include "confdefs.h"
7833 /* Override any gcc2 internal prototype to avoid an error. */
7834 /* We use char because int might match the return type of a gcc2
7835 builtin and then its argument prototype would still apply. */
7836 char dmalloc_shutdown();
7842 if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7844 eval "ac_cv_lib_$ac_lib_var=yes"
7846 echo "configure: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7849 eval "ac_cv_lib_$ac_lib_var=no"
7852 LIBS="$ac_save_LIBS"
7855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7856 echo "$ac_t""yes" 1>&6
7857 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7858 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7859 cat >> confdefs.h <<EOF
7860 #define $ac_tr_lib 1
7863 LIBS="-ldmalloc $LIBS"
7866 echo "$ac_t""no" 1>&6
7871 if test $ol_enable_tcl != no ; then
7874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7876 echo "configure:7877: checking for $ac_hdr" >&5
7877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7878 echo $ac_n "(cached) $ac_c" 1>&6
7880 cat > conftest.$ac_ext <<EOF
7881 #line 7882 "configure"
7882 #include "confdefs.h"
7885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7886 { (eval echo configure:7887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7888 if test -z "$ac_err"; then
7890 eval "ac_cv_header_$ac_safe=yes"
7893 echo "configure: failed program was:" >&5
7894 cat conftest.$ac_ext >&5
7896 eval "ac_cv_header_$ac_safe=no"
7900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7901 echo "$ac_t""yes" 1>&6
7902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7903 cat >> confdefs.h <<EOF
7904 #define $ac_tr_hdr 1
7908 echo "$ac_t""no" 1>&6
7913 if test $ac_cv_header_tcl_h != yes ; then
7916 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
7917 echo "configure:7918: checking for main in -ltcl" >&5
7918 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
7919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7920 echo $ac_n "(cached) $ac_c" 1>&6
7922 ac_save_LIBS="$LIBS"
7924 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7932 if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7934 eval "ac_cv_lib_$ac_lib_var=yes"
7936 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7939 eval "ac_cv_lib_$ac_lib_var=no"
7942 LIBS="$ac_save_LIBS"
7945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7946 echo "$ac_t""yes" 1>&6
7947 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
7949 echo "$ac_t""no" 1>&6
7954 if test $have_tcl != yes; then
7955 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
7956 echo "configure:7957: checking for main in -ltcl7.6" >&5
7957 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
7958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7959 echo $ac_n "(cached) $ac_c" 1>&6
7961 ac_save_LIBS="$LIBS"
7962 LIBS="-ltcl7.6 $LIBS"
7963 cat > conftest.$ac_ext <<EOF
7964 #line 7965 "configure"
7965 #include "confdefs.h"
7971 if { (eval echo configure:7972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7973 eval "ac_cv_lib_$ac_lib_var=yes"
7975 echo "configure: failed program was:" >&5
7976 cat conftest.$ac_ext >&5
7978 eval "ac_cv_lib_$ac_lib_var=no"
7981 LIBS="$ac_save_LIBS"
7984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7985 echo "$ac_t""yes" 1>&6
7986 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
7988 echo "$ac_t""no" 1>&6
7994 if test $have_tcl != yes; then
7995 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
7996 echo "configure:7997: checking for main in -ltcl8.0" >&5
7997 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
7998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7999 echo $ac_n "(cached) $ac_c" 1>&6
8001 ac_save_LIBS="$LIBS"
8002 LIBS="-ltcl8.0 $LIBS"
8003 cat > conftest.$ac_ext <<EOF
8004 #line 8005 "configure"
8005 #include "confdefs.h"
8011 if { (eval echo configure:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8013 eval "ac_cv_lib_$ac_lib_var=yes"
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8018 eval "ac_cv_lib_$ac_lib_var=no"
8021 LIBS="$ac_save_LIBS"
8024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8025 echo "$ac_t""yes" 1>&6
8026 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8028 echo "$ac_t""no" 1>&6
8035 if test $have_tcl != yes ; then
8036 echo "configure: warning: could not find -ltcl" 1>&2
8037 if test $ol_enable_tcl = yes ; then
8038 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
8045 # ud needs termcap (should insert check here)
8047 for ac_hdr in termcap.h ncurses.h
8049 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8050 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8051 echo "configure:8052: checking for $ac_hdr" >&5
8052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8053 echo $ac_n "(cached) $ac_c" 1>&6
8055 cat > conftest.$ac_ext <<EOF
8056 #line 8057 "configure"
8057 #include "confdefs.h"
8060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8061 { (eval echo configure:8062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8063 if test -z "$ac_err"; then
8065 eval "ac_cv_header_$ac_safe=yes"
8068 echo "configure: failed program was:" >&5
8069 cat conftest.$ac_ext >&5
8071 eval "ac_cv_header_$ac_safe=no"
8075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8076 echo "$ac_t""yes" 1>&6
8077 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8078 cat >> confdefs.h <<EOF
8079 #define $ac_tr_hdr 1
8083 echo "$ac_t""no" 1>&6
8088 if test $ol_link_termcap = no ; then
8089 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
8090 echo "configure:8091: checking for tputs in -ltermcap" >&5
8091 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
8092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8093 echo $ac_n "(cached) $ac_c" 1>&6
8095 ac_save_LIBS="$LIBS"
8096 LIBS="-ltermcap $LIBS"
8097 cat > conftest.$ac_ext <<EOF
8098 #line 8099 "configure"
8099 #include "confdefs.h"
8100 /* Override any gcc2 internal prototype to avoid an error. */
8101 /* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8109 if { (eval echo configure:8110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8111 eval "ac_cv_lib_$ac_lib_var=yes"
8113 echo "configure: failed program was:" >&5
8114 cat conftest.$ac_ext >&5
8116 eval "ac_cv_lib_$ac_lib_var=no"
8119 LIBS="$ac_save_LIBS"
8122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8123 echo "$ac_t""yes" 1>&6
8126 echo "$ac_t""no" 1>&6
8130 if test $have_termcap = yes ; then
8131 cat >> confdefs.h <<\EOF
8132 #define HAVE_TERMCAP 1
8136 TERMCAP_LIBS=-ltermcap
8140 if test $ol_link_termcap = no ; then
8141 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
8142 echo "configure:8143: checking for initscr in -lncurses" >&5
8143 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
8144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8145 echo $ac_n "(cached) $ac_c" 1>&6
8147 ac_save_LIBS="$LIBS"
8148 LIBS="-lncurses $LIBS"
8149 cat > conftest.$ac_ext <<EOF
8150 #line 8151 "configure"
8151 #include "confdefs.h"
8152 /* Override any gcc2 internal prototype to avoid an error. */
8153 /* We use char because int might match the return type of a gcc2
8154 builtin and then its argument prototype would still apply. */
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8163 eval "ac_cv_lib_$ac_lib_var=yes"
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8168 eval "ac_cv_lib_$ac_lib_var=no"
8171 LIBS="$ac_save_LIBS"
8174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8175 echo "$ac_t""yes" 1>&6
8178 echo "$ac_t""no" 1>&6
8182 if test $have_ncurses = yes ; then
8183 cat >> confdefs.h <<\EOF
8184 #define HAVE_NCURSES 1
8188 TERMCAP_LIBS=-lncurses
8192 if test $ol_link_termcap = no ; then
8193 cat >> confdefs.h <<\EOF
8194 #define NO_TERMCAP 1
8201 if test $ol_with_readline != no ; then
8202 for ac_hdr in readline/readline.h readline/history.h
8204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8206 echo "configure:8207: checking for $ac_hdr" >&5
8207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8208 echo $ac_n "(cached) $ac_c" 1>&6
8210 cat > conftest.$ac_ext <<EOF
8211 #line 8212 "configure"
8212 #include "confdefs.h"
8215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8216 { (eval echo configure:8217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8218 if test -z "$ac_err"; then
8220 eval "ac_cv_header_$ac_safe=yes"
8223 echo "configure: failed program was:" >&5
8224 cat conftest.$ac_ext >&5
8226 eval "ac_cv_header_$ac_safe=no"
8230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8231 echo "$ac_t""yes" 1>&6
8232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8233 cat >> confdefs.h <<EOF
8234 #define $ac_tr_hdr 1
8238 echo "$ac_t""no" 1>&6
8243 if test $ac_cv_header_readline_readline_h = yes ; then
8245 LIBS="$TERMCAP_LIBS $LIBS"
8246 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8247 echo "configure:8248: checking for readline in -lreadline" >&5
8248 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8250 echo $ac_n "(cached) $ac_c" 1>&6
8252 ac_save_LIBS="$LIBS"
8253 LIBS="-lreadline $LIBS"
8254 cat > conftest.$ac_ext <<EOF
8255 #line 8256 "configure"
8256 #include "confdefs.h"
8257 /* Override any gcc2 internal prototype to avoid an error. */
8258 /* We use char because int might match the return type of a gcc2
8259 builtin and then its argument prototype would still apply. */
8266 if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8268 eval "ac_cv_lib_$ac_lib_var=yes"
8270 echo "configure: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8273 eval "ac_cv_lib_$ac_lib_var=no"
8276 LIBS="$ac_save_LIBS"
8279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8280 echo "$ac_t""yes" 1>&6
8283 echo "$ac_t""no" 1>&6
8289 if test $have_readline = yes ; then
8290 ol_with_readline=found
8291 ol_link_readline=yes
8293 READLINE_LIBS="-lreadline"
8298 if test $ol_link_readline = yes ; then
8299 cat >> confdefs.h <<\EOF
8300 #define HAVE_READLINE 1
8306 # FreeBSD (and others) have crypt(3) in -lcrypt
8307 if test $ol_enable_crypt != no ; then
8308 echo $ac_n "checking for crypt""... $ac_c" 1>&6
8309 echo "configure:8310: checking for crypt" >&5
8310 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8316 /* System header to define __stub macros and hopefully few prototypes,
8317 which can conflict with char crypt(); below. */
8319 /* Override any gcc2 internal prototype to avoid an error. */
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8326 /* The GNU C library defines this for functions which it implements
8327 to always fail with ENOSYS. Some functions are actually named
8328 something starting with __ and the normal name is an alias. */
8329 #if defined (__stub_crypt) || defined (__stub___crypt)
8337 if { (eval echo configure:8338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8339 eval "ac_cv_func_crypt=yes"
8341 echo "configure: failed program was:" >&5
8342 cat conftest.$ac_ext >&5
8344 eval "ac_cv_func_crypt=no"
8349 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
8350 echo "$ac_t""yes" 1>&6
8353 echo "$ac_t""no" 1>&6
8355 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8356 echo "configure:8357: checking for crypt in -lcrypt" >&5
8357 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8359 echo $ac_n "(cached) $ac_c" 1>&6
8361 ac_save_LIBS="$LIBS"
8362 LIBS="-lcrypt $LIBS"
8363 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure"
8365 #include "confdefs.h"
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 /* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8375 if { (eval echo configure:8376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8377 eval "ac_cv_lib_$ac_lib_var=yes"
8379 echo "configure: failed program was:" >&5
8380 cat conftest.$ac_ext >&5
8382 eval "ac_cv_lib_$ac_lib_var=no"
8385 LIBS="$ac_save_LIBS"
8388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8389 echo "$ac_t""yes" 1>&6
8390 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
8393 echo "$ac_t""no" 1>&6
8400 if test $have_crypt = yes ; then
8401 cat >> confdefs.h <<\EOF
8402 #define HAVE_CRYPT 1
8406 echo "configure: warning: could not find crypt" 1>&2
8407 if test $ol_enable_crypt = yes ; then
8408 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
8411 echo "configure: warning: disabling crypt support" 1>&2
8416 # FreeBSD (and others) have setproctitle(3) in -lutil
8417 if test $ol_enable_proctitle != no ; then
8418 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
8419 echo "configure:8420: checking for setproctitle" >&5
8420 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8423 cat > conftest.$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8426 /* System header to define __stub macros and hopefully few prototypes,
8427 which can conflict with char setproctitle(); below. */
8429 /* Override any gcc2 internal prototype to avoid an error. */
8430 /* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8432 char setproctitle();
8436 /* The GNU C library defines this for functions which it implements
8437 to always fail with ENOSYS. Some functions are actually named
8438 something starting with __ and the normal name is an alias. */
8439 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
8447 if { (eval echo configure:8448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8449 eval "ac_cv_func_setproctitle=yes"
8451 echo "configure: failed program was:" >&5
8452 cat conftest.$ac_ext >&5
8454 eval "ac_cv_func_setproctitle=no"
8459 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
8460 echo "$ac_t""yes" 1>&6
8461 have_setproctitle=yes
8463 echo "$ac_t""no" 1>&6
8465 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
8466 echo "configure:8467: checking for setproctitle in -lutil" >&5
8467 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
8468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8469 echo $ac_n "(cached) $ac_c" 1>&6
8471 ac_save_LIBS="$LIBS"
8473 cat > conftest.$ac_ext <<EOF
8474 #line 8475 "configure"
8475 #include "confdefs.h"
8476 /* Override any gcc2 internal prototype to avoid an error. */
8477 /* We use char because int might match the return type of a gcc2
8478 builtin and then its argument prototype would still apply. */
8479 char setproctitle();
8485 if { (eval echo configure:8486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8487 eval "ac_cv_lib_$ac_lib_var=yes"
8489 echo "configure: failed program was:" >&5
8490 cat conftest.$ac_ext >&5
8492 eval "ac_cv_lib_$ac_lib_var=no"
8495 LIBS="$ac_save_LIBS"
8498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8499 echo "$ac_t""yes" 1>&6
8500 have_setproctitle=yes
8501 LUTIL_LIBS="$LUTIL_LIBS -lutil"
8503 echo "$ac_t""no" 1>&6
8504 have_setproctitle=no
8505 LIBOBJS="$LIBOBJS setproctitle.o"
8511 if test $have_setproctitle = yes ; then
8512 cat >> confdefs.h <<\EOF
8513 #define HAVE_SETPROCTITLE 1
8520 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8521 echo "configure:8522: checking for EBCDIC" >&5
8522 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
8526 cat > conftest.$ac_ext <<EOF
8527 #line 8528 "configure"
8528 #include "confdefs.h"
8531 #include <__ASCII__/generate_error.h>
8535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8536 { (eval echo configure:8537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8538 if test -z "$ac_err"; then
8540 ol_cv_cpp_ebcdic=yes
8543 echo "configure: failed program was:" >&5
8544 cat conftest.$ac_ext >&5
8551 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8552 if test $ol_cv_cpp_ebcdic = yes ; then
8553 cat >> confdefs.h <<\EOF
8554 #define HAVE_EBCDIC 1
8559 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8560 echo "configure:8561: checking for ANSI C header files" >&5
8561 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
8562 echo $ac_n "(cached) $ac_c" 1>&6
8564 cat > conftest.$ac_ext <<EOF
8565 #line 8566 "configure"
8566 #include "confdefs.h"
8572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8573 { (eval echo configure:8574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8575 if test -z "$ac_err"; then
8577 ol_cv_header_stdc=yes
8580 echo "configure: failed program was:" >&5
8581 cat conftest.$ac_ext >&5
8583 ol_cv_header_stdc=no
8587 if test $ol_cv_header_stdc = yes; then
8588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8589 cat > conftest.$ac_ext <<EOF
8590 #line 8591 "configure"
8591 #include "confdefs.h"
8594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8595 egrep "memchr" >/dev/null 2>&1; then
8599 ol_cv_header_stdc=no
8605 if test $ol_cv_header_stdc = yes; then
8606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8607 cat > conftest.$ac_ext <<EOF
8608 #line 8609 "configure"
8609 #include "confdefs.h"
8612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8613 egrep "free" >/dev/null 2>&1; then
8617 ol_cv_header_stdc=no
8623 if test $ol_cv_header_stdc = yes; then
8624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8625 if test "$cross_compiling" = yes; then
8628 cat > conftest.$ac_ext <<EOF
8629 #line 8630 "configure"
8630 #include "confdefs.h"
8633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8636 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8637 || ('j' <= (c) && (c) <= 'r') \
8638 || ('s' <= (c) && (c) <= 'z'))
8639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8641 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8642 int main () { int i; for (i = 0; i < 256; i++)
8643 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8647 if { (eval echo configure:8648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8651 echo "configure: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8654 ol_cv_header_stdc=no
8662 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8663 if test $ol_cv_header_stdc = yes; then
8664 cat >> confdefs.h <<\EOF
8665 #define STDC_HEADERS 1
8669 ac_cv_header_stdc=disable
8672 if test $ol_cv_header_stdc != yes; then
8673 echo "configure: warning: could not Standard C compliant headers" 1>&2
8677 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8680 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8681 echo "configure:8682: checking for $ac_hdr that defines DIR" >&5
8682 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8685 cat > conftest.$ac_ext <<EOF
8686 #line 8687 "configure"
8687 #include "confdefs.h"
8688 #include <sys/types.h>
8694 if { (eval echo configure:8695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8696 eval "ac_cv_header_dirent_$ac_safe=yes"
8698 echo "configure: failed program was:" >&5
8699 cat conftest.$ac_ext >&5
8701 eval "ac_cv_header_dirent_$ac_safe=no"
8705 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8706 echo "$ac_t""yes" 1>&6
8707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8708 cat >> confdefs.h <<EOF
8709 #define $ac_tr_hdr 1
8711 ac_header_dirent=$ac_hdr; break
8713 echo "$ac_t""no" 1>&6
8716 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8717 if test $ac_header_dirent = dirent.h; then
8718 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8719 echo "configure:8720: checking for opendir in -ldir" >&5
8720 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
8721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8722 echo $ac_n "(cached) $ac_c" 1>&6
8724 ac_save_LIBS="$LIBS"
8726 cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8729 /* Override any gcc2 internal prototype to avoid an error. */
8730 /* We use char because int might match the return type of a gcc2
8731 builtin and then its argument prototype would still apply. */
8738 if { (eval echo configure:8739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8740 eval "ac_cv_lib_$ac_lib_var=yes"
8742 echo "configure: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8745 eval "ac_cv_lib_$ac_lib_var=no"
8748 LIBS="$ac_save_LIBS"
8751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8752 echo "$ac_t""yes" 1>&6
8755 echo "$ac_t""no" 1>&6
8759 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8760 echo "configure:8761: checking for opendir in -lx" >&5
8761 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8763 echo $ac_n "(cached) $ac_c" 1>&6
8765 ac_save_LIBS="$LIBS"
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8769 "configure"
8769 #include "confdefs.h"
8770 /* Override any gcc2 internal prototype to avoid an error. */
8771 /* We use char because int might match the return type of a gcc2
8772 builtin and then its argument prototype would still apply. */
8779 if { (eval echo configure:8780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8781 eval "ac_cv_lib_$ac_lib_var=yes"
8783 echo "configure: failed program was:" >&5
8784 cat conftest.$ac_ext >&5
8786 eval "ac_cv_lib_$ac_lib_var=no"
8789 LIBS="$ac_save_LIBS"
8792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8793 echo "$ac_t""yes" 1>&6
8796 echo "$ac_t""no" 1>&6
8801 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8802 echo "configure:8803: checking for sys/wait.h that is POSIX.1 compatible" >&5
8803 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8809 #include <sys/types.h>
8810 #include <sys/wait.h>
8812 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8815 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8820 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8823 if { (eval echo configure:8824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8825 ac_cv_header_sys_wait_h=yes
8827 echo "configure: failed program was:" >&5
8828 cat conftest.$ac_ext >&5
8830 ac_cv_header_sys_wait_h=no
8835 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8836 if test $ac_cv_header_sys_wait_h = yes; then
8837 cat >> confdefs.h <<\EOF
8838 #define HAVE_SYS_WAIT_H 1
8843 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8844 echo "configure:8845: checking POSIX termios" >&5
8845 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
8846 echo $ac_n "(cached) $ac_c" 1>&6
8848 cat > conftest.$ac_ext <<EOF
8849 #line 8850 "configure"
8850 #include "confdefs.h"
8851 #include <sys/types.h>
8853 #include <termios.h>
8855 /* SunOS 4.0.3 has termios.h but not the library calls. */
8859 if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8861 am_cv_sys_posix_termios=yes
8863 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8866 am_cv_sys_posix_termios=no
8871 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8874 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8875 echo "configure:8876: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8876 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
8877 echo $ac_n "(cached) $ac_c" 1>&6
8879 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8881 gwinsz_in_termios_h=no
8882 if test $am_cv_sys_posix_termios = yes; then
8883 cat > conftest.$ac_ext <<EOF
8884 #line 8885 "configure"
8885 #include "confdefs.h"
8886 #include <sys/types.h>
8887 # include <termios.h>
8893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8894 egrep "yes" >/dev/null 2>&1; then
8896 gwinsz_in_termios_h=yes
8902 if test $gwinsz_in_termios_h = no; then
8903 cat > conftest.$ac_ext <<EOF
8904 #line 8905 "configure"
8905 #include "confdefs.h"
8906 #include <sys/types.h>
8907 # include <sys/ioctl.h>
8913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8914 egrep "yes" >/dev/null 2>&1; then
8916 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8924 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8925 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8926 cat >> confdefs.h <<\EOF
8927 #define GWINSZ_IN_SYS_IOCTL 1
8932 if test $am_cv_sys_posix_termios = yes ; then
8933 cat >> confdefs.h <<\EOF
8934 #define HAVE_POSIX_TERMIOS 1
8979 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8980 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8981 echo "configure:8981: checking for $ac_hdr" >&5
8982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8983 echo $ac_n "(cached) $ac_c" 1>&6
8985 cat > conftest.$ac_ext <<EOF
8986 #line 8986 "configure"
8987 #include "confdefs.h"
8990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8991 { (eval echo configure:8991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8993 if test -z "$ac_err"; then
8995 eval "ac_cv_header_$ac_safe=yes"
8998 echo "configure: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9001 eval "ac_cv_header_$ac_safe=no"
9005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9006 echo "$ac_t""yes" 1>&6
9007 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9008 cat >> confdefs.h <<EOF
9009 #define $ac_tr_hdr 1
9013 echo "$ac_t""no" 1>&6
9018 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9019 echo "configure:9019: checking for uid_t in sys/types.h" >&5
9020 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9023 cat > conftest.$ac_ext <<EOF
9024 #line 9024 "configure"
9025 #include "confdefs.h"
9026 #include <sys/types.h>
9028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9029 egrep "uid_t" >/dev/null 2>&1; then
9031 ac_cv_type_uid_t=yes
9040 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9041 if test $ac_cv_type_uid_t = no; then
9042 cat >> confdefs.h <<\EOF
9046 cat >> confdefs.h <<\EOF
9052 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
9053 echo "configure:9053: checking type of array argument to getgroups" >&5
9054 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9057 if test "$cross_compiling" = yes; then
9058 ac_cv_type_getgroups=cross
9060 cat > conftest.$ac_ext <<EOF
9061 #line 9061 "configure"
9062 #include "confdefs.h"
9064 /* Thanks to Mike Rendell for this test. */
9065 #include <sys/types.h>
9068 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9073 union { gid_t gval; long lval; } val;
9076 for (i = 0; i < NGID; i++)
9077 gidset[i] = val.gval;
9078 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9080 /* Exit non-zero if getgroups seems to require an array of ints. This
9081 happens when gid_t is short but getgroups modifies an array of ints. */
9082 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9086 if { (eval echo configure:9086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9088 ac_cv_type_getgroups=gid_t
9090 echo "configure: failed program was:" >&5
9091 cat conftest.$ac_ext >&5
9093 ac_cv_type_getgroups=int
9098 if test $ac_cv_type_getgroups = cross; then
9099 cat > conftest.$ac_ext <<EOF
9100 #line 9100 "configure"
9101 #include "confdefs.h"
9104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9105 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9107 ac_cv_type_getgroups=gid_t
9110 ac_cv_type_getgroups=int
9117 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
9118 cat >> confdefs.h <<EOF
9119 #define GETGROUPS_T $ac_cv_type_getgroups
9122 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9123 echo "configure:9123: checking for ANSI C header files" >&5
9124 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9125 echo $ac_n "(cached) $ac_c" 1>&6
9127 cat > conftest.$ac_ext <<EOF
9128 #line 9128 "configure"
9129 #include "confdefs.h"
9135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9136 { (eval echo configure:9136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9138 if test -z "$ac_err"; then
9140 ac_cv_header_stdc=yes
9143 echo "configure: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9146 ac_cv_header_stdc=no
9150 if test $ac_cv_header_stdc = yes; then
9151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9152 cat > conftest.$ac_ext <<EOF
9153 #line 9153 "configure"
9154 #include "confdefs.h"
9157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9158 egrep "memchr" >/dev/null 2>&1; then
9162 ac_cv_header_stdc=no
9168 if test $ac_cv_header_stdc = yes; then
9169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9170 cat > conftest.$ac_ext <<EOF
9171 #line 9171 "configure"
9172 #include "confdefs.h"
9175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9176 egrep "free" >/dev/null 2>&1; then
9180 ac_cv_header_stdc=no
9186 if test $ac_cv_header_stdc = yes; then
9187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9188 if test "$cross_compiling" = yes; then
9191 cat > conftest.$ac_ext <<EOF
9192 #line 9192 "configure"
9193 #include "confdefs.h"
9195 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9196 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9197 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9198 int main () { int i; for (i = 0; i < 256; i++)
9199 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9203 if { (eval echo configure:9203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9207 echo "configure: failed program was:" >&5
9208 cat conftest.$ac_ext >&5
9210 ac_cv_header_stdc=no
9218 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9219 if test $ac_cv_header_stdc = yes; then
9220 cat >> confdefs.h <<\EOF
9221 #define STDC_HEADERS 1
9226 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9227 echo "configure:9227: checking for mode_t" >&5
9228 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9229 echo $ac_n "(cached) $ac_c" 1>&6
9231 cat > conftest.$ac_ext <<EOF
9232 #line 9232 "configure"
9233 #include "confdefs.h"
9234 #include <sys/types.h>
9240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9241 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9243 ac_cv_type_mode_t=yes
9246 ac_cv_type_mode_t=no
9251 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9252 if test $ac_cv_type_mode_t = no; then
9253 cat >> confdefs.h <<\EOF
9259 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9260 echo "configure:9260: checking for off_t" >&5
9261 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9262 echo $ac_n "(cached) $ac_c" 1>&6
9264 cat > conftest.$ac_ext <<EOF
9265 #line 9265 "configure"
9266 #include "confdefs.h"
9267 #include <sys/types.h>
9273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9274 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9276 ac_cv_type_off_t=yes
9284 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9285 if test $ac_cv_type_off_t = no; then
9286 cat >> confdefs.h <<\EOF
9292 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9293 echo "configure:9293: checking for pid_t" >&5
9294 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9295 echo $ac_n "(cached) $ac_c" 1>&6
9297 cat > conftest.$ac_ext <<EOF
9298 #line 9298 "configure"
9299 #include "confdefs.h"
9300 #include <sys/types.h>
9306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9307 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9309 ac_cv_type_pid_t=yes
9317 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9318 if test $ac_cv_type_pid_t = no; then
9319 cat >> confdefs.h <<\EOF
9325 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
9326 echo "configure:9326: checking for ptrdiff_t" >&5
9327 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9330 cat > conftest.$ac_ext <<EOF
9331 #line 9331 "configure"
9332 #include "confdefs.h"
9338 if { (eval echo configure:9338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9340 am_cv_type_ptrdiff_t=yes
9342 echo "configure: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9345 am_cv_type_ptrdiff_t=no
9350 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
9351 if test $am_cv_type_ptrdiff_t = yes; then
9352 cat >> confdefs.h <<\EOF
9353 #define HAVE_PTRDIFF_T 1
9358 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
9359 echo "configure:9359: checking return type of signal handlers" >&5
9360 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
9361 echo $ac_n "(cached) $ac_c" 1>&6
9363 cat > conftest.$ac_ext <<EOF
9364 #line 9364 "configure"
9365 #include "confdefs.h"
9366 #include <sys/types.h>
9372 extern "C" void (*signal (int, void (*)(int)))(int);
9374 void (*signal ()) ();
9381 if { (eval echo configure:9381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9383 ac_cv_type_signal=void
9385 echo "configure: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9388 ac_cv_type_signal=int
9393 echo "$ac_t""$ac_cv_type_signal" 1>&6
9394 cat >> confdefs.h <<EOF
9395 #define RETSIGTYPE $ac_cv_type_signal
9399 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
9400 echo "configure:9400: checking for sig_atomic_t" >&5
9401 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
9402 echo $ac_n "(cached) $ac_c" 1>&6
9404 cat > conftest.$ac_ext <<EOF
9405 #line 9405 "configure"
9406 #include "confdefs.h"
9409 sig_atomic_t atomic;
9412 if { (eval echo configure:9412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9414 ol_cv_type_sig_atomic_t=yes
9416 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9419 ol_cv_type_sig_atomic_t=no
9424 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
9425 if test $ol_cv_type_sig_atomic_t = no; then
9426 cat >> confdefs.h <<\EOF
9427 #define sig_atomic_t int
9432 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9433 echo "configure:9433: checking for size_t" >&5
9434 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9435 echo $ac_n "(cached) $ac_c" 1>&6
9437 cat > conftest.$ac_ext <<EOF
9438 #line 9438 "configure"
9439 #include "confdefs.h"
9440 #include <sys/types.h>
9446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9447 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9449 ac_cv_type_size_t=yes
9452 ac_cv_type_size_t=no
9457 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9458 if test $ac_cv_type_size_t = no; then
9459 cat >> confdefs.h <<\EOF
9460 #define size_t unsigned
9465 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
9466 echo "configure:9466: checking for st_blksize in struct stat" >&5
9467 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
9468 echo $ac_n "(cached) $ac_c" 1>&6
9470 cat > conftest.$ac_ext <<EOF
9471 #line 9471 "configure"
9472 #include "confdefs.h"
9473 #include <sys/types.h>
9474 #include <sys/stat.h>
9476 struct stat s; s.st_blksize;
9479 if { (eval echo configure:9479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9481 ac_cv_struct_st_blksize=yes
9483 echo "configure: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9486 ac_cv_struct_st_blksize=no
9491 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
9492 if test $ac_cv_struct_st_blksize = yes; then
9493 cat >> confdefs.h <<\EOF
9494 #define HAVE_ST_BLKSIZE 1
9499 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
9500 echo "configure:9500: checking whether time.h and sys/time.h may both be included" >&5
9501 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
9504 cat > conftest.$ac_ext <<EOF
9505 #line 9505 "configure"
9506 #include "confdefs.h"
9507 #include <sys/types.h>
9508 #include <sys/time.h>
9514 if { (eval echo configure:9514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9516 ac_cv_header_time=yes
9518 echo "configure: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9521 ac_cv_header_time=no
9526 echo "$ac_t""$ac_cv_header_time" 1>&6
9527 if test $ac_cv_header_time = yes; then
9528 cat >> confdefs.h <<\EOF
9529 #define TIME_WITH_SYS_TIME 1
9534 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
9535 echo "configure:9535: checking whether struct tm is in sys/time.h or time.h" >&5
9536 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9540 "configure"
9541 #include "confdefs.h"
9542 #include <sys/types.h>
9545 struct tm *tp; tp->tm_sec;
9548 if { (eval echo configure:9548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9550 ac_cv_struct_tm=time.h
9552 echo "configure: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9555 ac_cv_struct_tm=sys/time.h
9560 echo "$ac_t""$ac_cv_struct_tm" 1>&6
9561 if test $ac_cv_struct_tm = sys/time.h; then
9562 cat >> confdefs.h <<\EOF
9563 #define TM_IN_SYS_TIME 1
9568 # test for pw_gecos in struct passwd
9569 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
9570 echo "configure:9570: checking struct passwd for pw_gecos" >&5
9571 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
9572 echo $ac_n "(cached) $ac_c" 1>&6
9575 cat > conftest.$ac_ext <<EOF
9576 #line 9576 "configure"
9577 #include "confdefs.h"
9582 pwd.pw_gecos = pwd.pw_name;
9586 if { (eval echo configure:9586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9588 ol_cv_struct_passwd_pw_gecos=yes
9590 echo "configure: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9593 ol_cv_struct_passwd_pw_gecos=no
9598 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
9599 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
9600 cat >> confdefs.h <<\EOF
9601 #define HAVE_PW_GECOS 1
9608 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
9609 echo "configure:9609: checking if toupper() requires islower()" >&5
9610 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
9611 echo $ac_n "(cached) $ac_c" 1>&6
9614 if test "$cross_compiling" = yes; then
9615 ol_cv_c_upper_lower=safe
9617 cat > conftest.$ac_ext <<EOF
9618 #line 9618 "configure"
9619 #include "confdefs.h"
9624 if ('C' == toupper('C'))
9630 if { (eval echo configure:9630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9632 ol_cv_c_upper_lower=no
9634 echo "configure: failed program was:" >&5
9635 cat conftest.$ac_ext >&5
9637 ol_cv_c_upper_lower=yes
9644 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
9645 if test $ol_cv_c_upper_lower != no ; then
9646 cat >> confdefs.h <<\EOF
9647 #define C_UPPER_LOWER 1
9652 echo $ac_n "checking for working const""... $ac_c" 1>&6
9653 echo "configure:9653: checking for working const" >&5
9654 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9655 echo $ac_n "(cached) $ac_c" 1>&6
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9658 "configure"
9659 #include "confdefs.h"
9663 /* Ultrix mips cc rejects this. */
9664 typedef int charset[2]; const charset x;
9665 /* SunOS 4.1.1 cc rejects this. */
9666 char const *const *ccp;
9668 /* NEC SVR4.0.2 mips cc rejects this. */
9669 struct point {int x, y;};
9670 static struct point const zero = {0,0};
9671 /* AIX XL C 1.02.0.0 rejects this.
9672 It does not let you subtract one const X* pointer from another in an arm
9673 of an if-expression whose if-part is not a constant expression */
9674 const char *g = "string";
9675 ccp = &g + (g ? g-g : 0);
9676 /* HPUX 7.0 cc rejects these. */
9679 ccp = (char const *const *) p;
9680 { /* SCO 3.2v4 cc rejects this. */
9682 char const *s = 0 ? (char *) 0 : (char const *) 0;
9686 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9688 const int *foo = &x[0];
9691 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9692 typedef const int *iptr;
9696 { /* AIX XL C 1.02.0.0 rejects this saying
9697 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9698 struct s { int j; const int *ap[3]; };
9699 struct s *b; b->j = 5;
9701 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9707 if { (eval echo configure:9707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9711 echo "configure: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9719 echo "$ac_t""$ac_cv_c_const" 1>&6
9720 if test $ac_cv_c_const = no; then
9721 cat >> confdefs.h <<\EOF
9727 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
9728 echo "configure:9728: checking if compiler understands volatile" >&5
9729 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
9730 echo $ac_n "(cached) $ac_c" 1>&6
9732 cat > conftest.$ac_ext <<EOF
9733 #line 9733 "configure"
9734 #include "confdefs.h"
9737 volatile int a; int * volatile b = x ? &y : &z;
9738 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
9742 if { (eval echo configure:9742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9744 ol_cv_c_volatile=yes
9746 echo "configure: failed program was:" >&5
9747 cat conftest.$ac_ext >&5
9754 echo "$ac_t""$ol_cv_c_volatile" 1>&6
9755 if test $ol_cv_c_volatile = yes; then
9758 cat >> confdefs.h <<\EOF
9765 if test $cross_compiling = yes ; then
9766 cat >> confdefs.h <<\EOF
9767 #define CROSS_COMPILING 1
9771 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9772 echo "configure:9772: checking whether byte ordering is bigendian" >&5
9773 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9774 echo $ac_n "(cached) $ac_c" 1>&6
9776 ac_cv_c_bigendian=unknown
9777 # See if sys/param.h defines the BYTE_ORDER macro.
9778 cat > conftest.$ac_ext <<EOF
9779 #line 9779 "configure"
9780 #include "confdefs.h"
9781 #include <sys/types.h>
9782 #include <sys/param.h>
9785 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9790 if { (eval echo configure:9790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9792 # It does; now see whether it defined to BIG_ENDIAN or not.
9793 cat > conftest.$ac_ext <<EOF
9794 #line 9794 "configure"
9795 #include "confdefs.h"
9796 #include <sys/types.h>
9797 #include <sys/param.h>
9800 #if BYTE_ORDER != BIG_ENDIAN
9805 if { (eval echo configure:9805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9807 ac_cv_c_bigendian=yes
9809 echo "configure: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9812 ac_cv_c_bigendian=no
9816 echo "configure: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9820 if test $ac_cv_c_bigendian = unknown; then
9821 if test "$cross_compiling" = yes; then
9822 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9824 cat > conftest.$ac_ext <<EOF
9825 #line 9825 "configure"
9826 #include "confdefs.h"
9828 /* Are we little or big endian? From Harbison&Steele. */
9832 char c[sizeof (long)];
9835 exit (u.c[sizeof (long) - 1] == 1);
9838 if { (eval echo configure:9838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9840 ac_cv_c_bigendian=no
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9845 ac_cv_c_bigendian=yes
9853 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9854 if test $ac_cv_c_bigendian = yes; then
9855 cat >> confdefs.h <<\EOF
9856 #define WORDS_BIGENDIAN 1
9861 echo $ac_n "checking size of short""... $ac_c" 1>&6
9862 echo "configure:9862: checking size of short" >&5
9863 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9864 echo $ac_n "(cached) $ac_c" 1>&6
9866 if test "$cross_compiling" = yes; then
9867 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9870 "configure"
9871 #include "confdefs.h"
9875 FILE *f=fopen("conftestval", "w");
9877 fprintf(f, "%d\n", sizeof(short));
9881 if { (eval echo configure:9881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9883 ac_cv_sizeof_short=`cat conftestval`
9885 echo "configure: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9888 ac_cv_sizeof_short=0
9894 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9895 cat >> confdefs.h <<EOF
9896 #define SIZEOF_SHORT $ac_cv_sizeof_short
9900 echo $ac_n "checking size of int""... $ac_c" 1>&6
9901 echo "configure:9901: checking size of int" >&5
9902 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9903 echo $ac_n "(cached) $ac_c" 1>&6
9905 if test "$cross_compiling" = yes; then
9906 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9908 cat > conftest.$ac_ext <<EOF
9909 #line 9909 "configure"
9910 #include "confdefs.h"
9914 FILE *f=fopen("conftestval", "w");
9916 fprintf(f, "%d\n", sizeof(int));
9920 if { (eval echo configure:9920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9922 ac_cv_sizeof_int=`cat conftestval`
9924 echo "configure: failed program was:" >&5
9925 cat conftest.$ac_ext >&5
9933 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9934 cat >> confdefs.h <<EOF
9935 #define SIZEOF_INT $ac_cv_sizeof_int
9939 echo $ac_n "checking size of long""... $ac_c" 1>&6
9940 echo "configure:9940: checking size of long" >&5
9941 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9942 echo $ac_n "(cached) $ac_c" 1>&6
9944 if test "$cross_compiling" = yes; then
9945 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9947 cat > conftest.$ac_ext <<EOF
9948 #line 9948 "configure"
9949 #include "confdefs.h"
9953 FILE *f=fopen("conftestval", "w");
9955 fprintf(f, "%d\n", sizeof(long));
9959 if { (eval echo configure:9959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9961 ac_cv_sizeof_long=`cat conftestval`
9963 echo "configure: failed program was:" >&5
9964 cat conftest.$ac_ext >&5
9972 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9973 cat >> confdefs.h <<EOF
9974 #define SIZEOF_LONG $ac_cv_sizeof_long
9980 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
9981 echo "configure:9981: checking for 8-bit clean memcmp" >&5
9982 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
9983 echo $ac_n "(cached) $ac_c" 1>&6
9985 if test "$cross_compiling" = yes; then
9986 ac_cv_func_memcmp_clean=no
9988 cat > conftest.$ac_ext <<EOF
9989 #line 9989 "configure"
9990 #include "confdefs.h"
9994 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9995 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
9999 if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10001 ac_cv_func_memcmp_clean=yes
10003 echo "configure: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10006 ac_cv_func_memcmp_clean=no
10013 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10014 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10016 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10017 echo "configure:10017: checking for strftime" >&5
10018 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10019 echo $ac_n "(cached) $ac_c" 1>&6
10021 cat > conftest.$ac_ext <<EOF
10022 #line 10022 "configure"
10023 #include "confdefs.h"
10024 /* System header to define __stub macros and hopefully few prototypes,
10025 which can conflict with char strftime(); below. */
10026 #include <assert.h>
10027 /* Override any gcc2 internal prototype to avoid an error. */
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10034 /* The GNU C library defines this for functions which it implements
10035 to always fail with ENOSYS. Some functions are actually named
10036 something starting with __ and the normal name is an alias. */
10037 #if defined (__stub_strftime) || defined (__stub___strftime)
10045 if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10047 eval "ac_cv_func_strftime=yes"
10049 echo "configure: failed program was:" >&5
10050 cat conftest.$ac_ext >&5
10052 eval "ac_cv_func_strftime=no"
10057 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
10058 echo "$ac_t""yes" 1>&6
10059 cat >> confdefs.h <<\EOF
10060 #define HAVE_STRFTIME 1
10064 echo "$ac_t""no" 1>&6
10065 # strftime is in -lintl on SCO UNIX.
10066 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
10067 echo "configure:10067: checking for strftime in -lintl" >&5
10068 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
10069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10070 echo $ac_n "(cached) $ac_c" 1>&6
10072 ac_save_LIBS="$LIBS"
10073 LIBS="-lintl $LIBS"
10074 cat > conftest.$ac_ext <<EOF
10075 #line 10075 "configure"
10076 #include "confdefs.h"
10077 /* Override any gcc2 internal prototype to avoid an error. */
10078 /* We use char because int might match the return type of a gcc2
10079 builtin and then its argument prototype would still apply. */
10086 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10088 eval "ac_cv_lib_$ac_lib_var=yes"
10090 echo "configure: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10093 eval "ac_cv_lib_$ac_lib_var=no"
10096 LIBS="$ac_save_LIBS"
10099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10100 echo "$ac_t""yes" 1>&6
10101 cat >> confdefs.h <<\EOF
10102 #define HAVE_STRFTIME 1
10105 LIBS="-lintl $LIBS"
10107 echo "$ac_t""no" 1>&6
10112 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10113 echo "configure:10113: checking for vprintf" >&5
10114 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10115 echo $ac_n "(cached) $ac_c" 1>&6
10117 cat > conftest.$ac_ext <<EOF
10118 #line 10118 "configure"
10119 #include "confdefs.h"
10120 /* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char vprintf(); below. */
10122 #include <assert.h>
10123 /* Override any gcc2 internal prototype to avoid an error. */
10124 /* We use char because int might match the return type of a gcc2
10125 builtin and then its argument prototype would still apply. */
10130 /* The GNU C library defines this for functions which it implements
10131 to always fail with ENOSYS. Some functions are actually named
10132 something starting with __ and the normal name is an alias. */
10133 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10141 if { (eval echo configure:10141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10143 eval "ac_cv_func_vprintf=yes"
10145 echo "configure: failed program was:" >&5
10146 cat conftest.$ac_ext >&5
10148 eval "ac_cv_func_vprintf=no"
10153 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10154 echo "$ac_t""yes" 1>&6
10155 cat >> confdefs.h <<\EOF
10156 #define HAVE_VPRINTF 1
10160 echo "$ac_t""no" 1>&6
10163 if test "$ac_cv_func_vprintf" != yes; then
10164 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10165 echo "configure:10165: checking for _doprnt" >&5
10166 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10167 echo $ac_n "(cached) $ac_c" 1>&6
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10170 "configure"
10171 #include "confdefs.h"
10172 /* System header to define __stub macros and hopefully few prototypes,
10173 which can conflict with char _doprnt(); below. */
10174 #include <assert.h>
10175 /* Override any gcc2 internal prototype to avoid an error. */
10176 /* We use char because int might match the return type of a gcc2
10177 builtin and then its argument prototype would still apply. */
10182 /* The GNU C library defines this for functions which it implements
10183 to always fail with ENOSYS. Some functions are actually named
10184 something starting with __ and the normal name is an alias. */
10185 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10193 if { (eval echo configure:10193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10195 eval "ac_cv_func__doprnt=yes"
10197 echo "configure: failed program was:" >&5
10198 cat conftest.$ac_ext >&5
10200 eval "ac_cv_func__doprnt=no"
10205 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10206 echo "$ac_t""yes" 1>&6
10207 cat >> confdefs.h <<\EOF
10208 #define HAVE_DOPRNT 1
10212 echo "$ac_t""no" 1>&6
10218 if test $ac_cv_func_vprintf = yes ; then
10219 for ac_func in vsnprintf vsprintf
10221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10222 echo "configure:10222: checking for $ac_func" >&5
10223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10224 echo $ac_n "(cached) $ac_c" 1>&6
10226 cat > conftest.$ac_ext <<EOF
10227 #line 10227 "configure"
10228 #include "confdefs.h"
10229 /* System header to define __stub macros and hopefully few prototypes,
10230 which can conflict with char $ac_func(); below. */
10231 #include <assert.h>
10232 /* Override any gcc2 internal prototype to avoid an error. */
10233 /* We use char because int might match the return type of a gcc2
10234 builtin and then its argument prototype would still apply. */
10239 /* The GNU C library defines this for functions which it implements
10240 to always fail with ENOSYS. Some functions are actually named
10241 something starting with __ and the normal name is an alias. */
10242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10250 if { (eval echo configure:10250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10252 eval "ac_cv_func_$ac_func=yes"
10254 echo "configure: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10257 eval "ac_cv_func_$ac_func=no"
10262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10263 echo "$ac_t""yes" 1>&6
10264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10265 cat >> confdefs.h <<EOF
10266 #define $ac_tr_func 1
10270 echo "$ac_t""no" 1>&6
10314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10315 echo "configure:10312: checking for $ac_func" >&5
10316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10317 echo $ac_n "(cached) $ac_c" 1>&6
10319 cat > conftest.$ac_ext <<EOF
10320 #line 10317 "configure"
10321 #include "confdefs.h"
10322 /* System header to define __stub macros and hopefully few prototypes,
10323 which can conflict with char $ac_func(); below. */
10324 #include <assert.h>
10325 /* Override any gcc2 internal prototype to avoid an error. */
10326 /* We use char because int might match the return type of a gcc2
10327 builtin and then its argument prototype would still apply. */
10332 /* The GNU C library defines this for functions which it implements
10333 to always fail with ENOSYS. Some functions are actually named
10334 something starting with __ and the normal name is an alias. */
10335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10343 if { (eval echo configure:10340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10345 eval "ac_cv_func_$ac_func=yes"
10347 echo "configure: failed program was:" >&5
10348 cat conftest.$ac_ext >&5
10350 eval "ac_cv_func_$ac_func=no"
10355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10356 echo "$ac_t""yes" 1>&6
10357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10358 cat >> confdefs.h <<EOF
10359 #define $ac_tr_func 1
10363 echo "$ac_t""no" 1>&6
10368 for ac_func in getopt tempnam
10370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10371 echo "configure:10368: checking for $ac_func" >&5
10372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10373 echo $ac_n "(cached) $ac_c" 1>&6
10375 cat > conftest.$ac_ext <<EOF
10376 #line 10373 "configure"
10377 #include "confdefs.h"
10378 /* System header to define __stub macros and hopefully few prototypes,
10379 which can conflict with char $ac_func(); below. */
10380 #include <assert.h>
10381 /* Override any gcc2 internal prototype to avoid an error. */
10382 /* We use char because int might match the return type of a gcc2
10383 builtin and then its argument prototype would still apply. */
10388 /* The GNU C library defines this for functions which it implements
10389 to always fail with ENOSYS. Some functions are actually named
10390 something starting with __ and the normal name is an alias. */
10391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10399 if { (eval echo configure:10396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10401 eval "ac_cv_func_$ac_func=yes"
10403 echo "configure: failed program was:" >&5
10404 cat conftest.$ac_ext >&5
10406 eval "ac_cv_func_$ac_func=no"
10411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10412 echo "$ac_t""yes" 1>&6
10413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10414 cat >> confdefs.h <<EOF
10415 #define $ac_tr_func 1
10419 echo "$ac_t""no" 1>&6
10420 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10426 # Check Configuration
10428 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
10429 echo "configure:10426: checking declaration of sys_errlist" >&5
10430 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
10431 echo $ac_n "(cached) $ac_c" 1>&6
10434 cat > conftest.$ac_ext <<EOF
10435 #line 10432 "configure"
10436 #include "confdefs.h"
10439 #include <sys/types.h>
10442 char *c = (char *) *sys_errlist
10445 if { (eval echo configure:10442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10447 ol_cv_dcl_sys_errlist=yes
10449 echo "configure: failed program was:" >&5
10450 cat conftest.$ac_ext >&5
10452 ol_cv_dcl_sys_errlist=no
10457 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
10458 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
10459 if test $ol_cv_dcl_sys_errlist = no ; then
10460 cat >> confdefs.h <<\EOF
10461 #define DECL_SYS_ERRLIST 1
10464 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
10465 echo "configure:10462: checking existence of sys_errlist" >&5
10466 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
10467 echo $ac_n "(cached) $ac_c" 1>&6
10470 cat > conftest.$ac_ext <<EOF
10471 #line 10468 "configure"
10472 #include "confdefs.h"
10475 char *c = (char *) *sys_errlist
10478 if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10480 ol_cv_have_sys_errlist=yes
10482 echo "configure: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10485 ol_cv_have_sys_errlist=no
10490 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
10491 if test $ol_cv_have_sys_errlist = yes ; then
10492 cat >> confdefs.h <<\EOF
10493 #define HAVE_SYS_ERRLIST 1
10501 echo $ac_n "checking strdup declaration""... $ac_c" 1>&6
10502 echo "configure:10499: checking strdup declaration" >&5
10503 if eval "test \"`echo '$''{'ol_cv_dcl_strdup'+set}'`\" = set"; then
10504 echo $ac_n "(cached) $ac_c" 1>&6
10507 cat > conftest.$ac_ext <<EOF
10508 #line 10505 "configure"
10509 #include "confdefs.h"
10511 #include <string.h>
10513 extern char *strdup();
10516 if { (eval echo configure:10513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10518 ol_cv_dcl_strdup=yes
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10523 ol_cv_dcl_strdup=no
10528 echo "$ac_t""$ol_cv_dcl_strdup" 1>&6
10529 if test $ol_cv_dcl_strdup = yes ; then
10530 cat >> confdefs.h <<\EOF
10531 #define DECL_STRDUP 1
10538 if test "$ol_enable_debug" != no ; then
10539 cat >> confdefs.h <<\EOF
10540 #define LDAP_DEBUG 1
10544 if test "$ol_enable_syslog" = yes ; then
10545 cat >> confdefs.h <<\EOF
10546 #define LDAP_SYSLOG 1
10550 if test "$ol_enable_libui" = yes ; then
10551 cat >> confdefs.h <<\EOF
10552 #define LDAP_LIBUI 1
10556 if test "$ol_enable_cache" = no ; then
10557 cat >> confdefs.h <<\EOF
10558 #define LDAP_NOCACHE 1
10562 if test "$ol_enable_dns" != no ; then
10563 cat >> confdefs.h <<\EOF
10564 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
10568 if test "$ol_enable_proctitle" != no ; then
10569 cat >> confdefs.h <<\EOF
10570 #define LDAP_PROCTITLE 1
10574 if test "$ol_enable_referrals" != no ; then
10575 cat >> confdefs.h <<\EOF
10576 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
10580 if test "$ol_enable_cldap" != no ; then
10581 cat >> confdefs.h <<\EOF
10582 #define LDAP_CONNECTIONLESS 1
10587 if test "$ol_enable_aclgroups" != no ; then
10588 cat >> confdefs.h <<\EOF
10589 #define SLAPD_ACLGROUPS 1
10593 if test "$ol_enable_crypt" != no ; then
10594 cat >> confdefs.h <<\EOF
10595 #define SLAPD_CRYPT 1
10599 if test "$ol_enable_cleartext" != no ; then
10600 cat >> confdefs.h <<\EOF
10601 #define SLAPD_CLEARTEXT 1
10605 if test "$ol_enable_phonetic" != no ; then
10606 cat >> confdefs.h <<\EOF
10607 #define SLAPD_PHONETIC 1
10611 if test "$ol_enable_rlookups" != no ; then
10612 cat >> confdefs.h <<\EOF
10613 #define SLAPD_RLOOKUPS 1
10618 if test "$ol_link_bdb2" != no ; then
10619 cat >> confdefs.h <<\EOF
10620 #define SLAPD_BDB2 1
10627 if test "$ol_link_ldbm" != no ; then
10628 cat >> confdefs.h <<\EOF
10629 #define SLAPD_LDBM 1
10636 if test "$ol_enable_passwd" != no ; then
10637 cat >> confdefs.h <<\EOF
10638 #define SLAPD_PASSWD 1
10645 if test "$ol_enable_perl" != no ; then
10646 cat >> confdefs.h <<\EOF
10647 #define SLAPD_PERL 1
10654 if test "$ol_enable_shell" != no ; then
10655 cat >> confdefs.h <<\EOF
10656 #define SLAPD_SHELL 1
10663 if test "$ol_enable_tcl" != no ; then
10664 cat >> confdefs.h <<\EOF
10665 #define SLAPD_TCL 1
10672 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
10673 $BUILD_SLAPD = yes ; then
10677 if test "$ol_link_isode" != no ; then
10710 cat > confcache <<\EOF
10711 # This file is a shell script that caches the results of configure
10712 # tests run on this system so they can be shared between configure
10713 # scripts and configure runs. It is not useful on other systems.
10714 # If it contains results you don't want to keep, you may remove or edit it.
10716 # By default, configure uses ./config.cache as the cache file,
10717 # creating it if it does not exist already. You can give configure
10718 # the --cache-file=FILE option to use a different cache file; that is
10719 # what configure does when it calls configure scripts in
10720 # subdirectories, so they share the cache.
10721 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10722 # config.status only pays attention to the cache file if you give it the
10723 # --recheck option to rerun configure.
10726 # The following way of writing the cache mishandles newlines in values,
10727 # but we know of no workaround that is simple, portable, and efficient.
10728 # So, don't put newlines in cache variables' values.
10729 # Ultrix sh set writes to stderr and can't be redirected directly,
10730 # and sets the high bit in the cache file unless we assign to the vars.
10732 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10734 # `set' does not quote correctly, so add quotes (double-quote substitution
10735 # turns \\\\ into \\, and sed turns \\ into \).
10737 -e "s/'/'\\\\''/g" \
10738 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10741 # `set' quotes correctly as required by POSIX, so do not add quotes.
10742 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10745 if cmp -s $cache_file confcache; then
10748 if test -w $cache_file; then
10749 echo "updating cache $cache_file"
10750 cat confcache > $cache_file
10752 echo "not updating unwritable cache $cache_file"
10757 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10759 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10760 # Let make expand exec_prefix.
10761 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10763 # Any assignment to VPATH causes Sun make to only execute
10764 # the first set of double-colon rules, so remove it if not needed.
10765 # If there is a colon in the path, we need to keep it.
10766 if test "x$srcdir" = x.; then
10767 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10770 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10772 DEFS=-DHAVE_CONFIG_H
10774 # Without the "./", some shells look in PATH for config.status.
10775 : ${CONFIG_STATUS=./config.status}
10777 echo creating $CONFIG_STATUS
10778 rm -f $CONFIG_STATUS
10779 cat > $CONFIG_STATUS <<EOF
10781 # Generated automatically by configure.
10782 # Run this file to recreate the current configuration.
10783 # This directory was configured as follows,
10784 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10786 # $0 $ac_configure_args
10788 # Compiler output produced by configure, useful for debugging
10789 # configure, is in ./config.log if it exists.
10791 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10794 case "\$ac_option" in
10795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10796 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10797 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10798 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10799 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10801 -help | --help | --hel | --he | --h)
10802 echo "\$ac_cs_usage"; exit 0 ;;
10803 *) echo "\$ac_cs_usage"; exit 1 ;;
10807 ac_given_srcdir=$srcdir
10808 ac_given_INSTALL="$INSTALL"
10810 trap 'rm -fr `echo "\
10811 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10812 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10813 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10814 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10815 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10816 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10817 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10818 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10819 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10820 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10821 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10822 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10823 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10824 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10825 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10826 include/Makefile:build/top.mk:include/Makefile.in \
10827 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10828 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10829 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10830 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10831 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10832 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10833 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10834 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10835 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10836 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10837 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10838 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10839 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10840 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10841 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10842 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10843 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10844 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10845 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10846 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10847 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10848 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10849 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
10850 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
10851 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
10852 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10854 cat >> $CONFIG_STATUS <<EOF
10856 # Protect against being on the right side of a sed subst in config.status.
10857 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10858 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10862 s%@CFLAGS@%$CFLAGS%g
10863 s%@CPPFLAGS@%$CPPFLAGS%g
10864 s%@CXXFLAGS@%$CXXFLAGS%g
10865 s%@FFLAGS@%$FFLAGS%g
10867 s%@LDFLAGS@%$LDFLAGS%g
10869 s%@exec_prefix@%$exec_prefix%g
10870 s%@prefix@%$prefix%g
10871 s%@program_transform_name@%$program_transform_name%g
10872 s%@bindir@%$bindir%g
10873 s%@sbindir@%$sbindir%g
10874 s%@libexecdir@%$libexecdir%g
10875 s%@datadir@%$datadir%g
10876 s%@sysconfdir@%$sysconfdir%g
10877 s%@sharedstatedir@%$sharedstatedir%g
10878 s%@localstatedir@%$localstatedir%g
10879 s%@libdir@%$libdir%g
10880 s%@includedir@%$includedir%g
10881 s%@oldincludedir@%$oldincludedir%g
10882 s%@infodir@%$infodir%g
10883 s%@mandir@%$mandir%g
10884 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10885 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10886 s%@INSTALL_DATA@%$INSTALL_DATA%g
10887 s%@PACKAGE@%$PACKAGE%g
10888 s%@VERSION@%$VERSION%g
10889 s%@ACLOCAL@%$ACLOCAL%g
10890 s%@AUTOCONF@%$AUTOCONF%g
10891 s%@AUTOMAKE@%$AUTOMAKE%g
10892 s%@AUTOHEADER@%$AUTOHEADER%g
10893 s%@MAKEINFO@%$MAKEINFO%g
10894 s%@SET_MAKE@%$SET_MAKE%g
10895 s%@top_builddir@%$top_builddir%g
10896 s%@ldap_subdir@%$ldap_subdir%g
10898 s%@host_alias@%$host_alias%g
10899 s%@host_cpu@%$host_cpu%g
10900 s%@host_vendor@%$host_vendor%g
10901 s%@host_os@%$host_os%g
10902 s%@RANLIB@%$RANLIB%g
10907 s%@LIBTOOL@%$LIBTOOL%g
10910 s%@SENDMAIL@%$SENDMAIL%g
10911 s%@EDITOR@%$EDITOR%g
10912 s%@FINGER@%$FINGER%g
10913 s%@PERLBIN@%$PERLBIN%g
10915 s%@EXEEXT@%$EXEEXT%g
10916 s%@OBJEXT@%$OBJEXT%g
10918 s%@LIBOBJS@%$LIBOBJS%g
10919 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
10920 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
10921 s%@BUILD_BDB2@%$BUILD_BDB2%g
10922 s%@BUILD_LDBM@%$BUILD_LDBM%g
10923 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
10924 s%@BUILD_PERL@%$BUILD_PERL%g
10925 s%@BUILD_SHELL@%$BUILD_SHELL%g
10926 s%@BUILD_TCL@%$BUILD_TCL%g
10927 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
10928 s%@LDAP_LIBS@%$LDAP_LIBS%g
10929 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
10930 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
10931 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
10932 s%@LDBM_LIBS@%$LDBM_LIBS%g
10933 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
10934 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
10935 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
10936 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
10937 s%@KRB_LIBS@%$KRB_LIBS%g
10938 s%@READLINE_LIBS@%$READLINE_LIBS%g
10939 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
10940 s%@TLS_LIBS@%$TLS_LIBS%g
10945 cat >> $CONFIG_STATUS <<\EOF
10947 # Split the substitutions into bite-sized pieces for seds with
10948 # small command number limits, like on Digital OSF/1 and HP-UX.
10949 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10950 ac_file=1 # Number of current file.
10951 ac_beg=1 # First line for current file.
10952 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10955 while $ac_more_lines; do
10956 if test $ac_beg -gt 1; then
10957 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10959 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10961 if test ! -s conftest.s$ac_file; then
10962 ac_more_lines=false
10963 rm -f conftest.s$ac_file
10965 if test -z "$ac_sed_cmds"; then
10966 ac_sed_cmds="sed -f conftest.s$ac_file"
10968 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10970 ac_file=`expr $ac_file + 1`
10972 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10975 if test -z "$ac_sed_cmds"; then
10980 cat >> $CONFIG_STATUS <<EOF
10982 CONFIG_FILES=\${CONFIG_FILES-"\
10983 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10984 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10985 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10986 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10987 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10988 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10989 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10990 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10991 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10992 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10993 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10994 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10995 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10996 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10997 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10998 include/Makefile:build/top.mk:include/Makefile.in \
10999 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11000 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11001 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11002 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11003 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11004 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11005 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11006 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11007 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11008 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11009 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11010 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11011 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11012 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11013 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11014 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11015 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11016 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11017 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11018 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11019 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11020 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11021 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11022 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11023 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11026 cat >> $CONFIG_STATUS <<\EOF
11027 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11028 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11030 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11031 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11032 *) ac_file_in="${ac_file}.in" ;;
11035 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11037 # Remove last slash and all that follows it. Not all systems have dirname.
11038 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11039 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11040 # The file is in a subdirectory.
11041 test ! -d "$ac_dir" && mkdir "$ac_dir"
11042 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11043 # A "../" for each directory in $ac_dir_suffix.
11044 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11046 ac_dir_suffix= ac_dots=
11049 case "$ac_given_srcdir" in
11051 if test -z "$ac_dots"; then top_srcdir=.
11052 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11053 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11054 *) # Relative path.
11055 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11056 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11059 case "$ac_given_INSTALL" in
11060 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11061 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11064 echo creating "$ac_file"
11066 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11068 *Makefile*) ac_comsub="1i\\
11069 # $configure_input" ;;
11073 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11075 s%@configure_input@%$configure_input%g
11076 s%@srcdir@%$srcdir%g
11077 s%@top_srcdir@%$top_srcdir%g
11078 s%@INSTALL@%$INSTALL%g
11079 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11083 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11084 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11086 # ac_d sets the value in "#define NAME VALUE" lines.
11087 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11088 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11091 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11092 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11093 ac_uB='\([ ]\)%\1#\2define\3'
11096 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11097 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11098 ac_eB='$%\1#\2define\3'
11102 if test "${CONFIG_HEADERS+set}" != set; then
11104 cat >> $CONFIG_STATUS <<EOF
11105 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
11107 cat >> $CONFIG_STATUS <<\EOF
11109 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11110 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11112 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11113 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11114 *) ac_file_in="${ac_file}.in" ;;
11117 echo creating $ac_file
11119 rm -f conftest.frag conftest.in conftest.out
11120 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11121 cat $ac_file_inputs > conftest.in
11125 # Transform confdefs.h into a sed script conftest.vals that substitutes
11126 # the proper values into config.h.in to produce config.h. And first:
11127 # Protect against being on the right side of a sed subst in config.status.
11128 # Protect against being in an unquoted here document in config.status.
11129 rm -f conftest.vals
11130 cat > conftest.hdr <<\EOF
11133 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11137 sed -n -f conftest.hdr confdefs.h > conftest.vals
11140 # This sed command replaces #undef with comments. This is necessary, for
11141 # example, in the case of _POSIX_SOURCE, which is predefined and required
11142 # on some systems where configure will not decide to define it.
11143 cat >> conftest.vals <<\EOF
11144 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11147 # Break up conftest.vals because some shells have a limit on
11148 # the size of here documents, and old seds have small limits too.
11150 rm -f conftest.tail
11153 ac_lines=`grep -c . conftest.vals`
11154 # grep -c gives empty output for an empty file on some AIX systems.
11155 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11156 # Write a limited-size here document to conftest.frag.
11157 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11158 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11160 sed -f conftest.frag conftest.in > conftest.out
11162 mv conftest.out conftest.in
11163 ' >> $CONFIG_STATUS
11164 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11165 rm -f conftest.vals
11166 mv conftest.tail conftest.vals
11168 rm -f conftest.vals
11170 cat >> $CONFIG_STATUS <<\EOF
11171 rm -f conftest.frag conftest.h
11172 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11173 cat conftest.in >> conftest.h
11175 if cmp -s $ac_file conftest.h 2>/dev/null; then
11176 echo "$ac_file is unchanged"
11179 # Remove last slash and all that follows it. Not all systems have dirname.
11180 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11181 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11182 # The file is in a subdirectory.
11183 test ! -d "$ac_dir" && mkdir "$ac_dir"
11186 mv conftest.h $ac_file
11191 cat >> $CONFIG_STATUS <<EOF
11194 cat >> $CONFIG_STATUS <<\EOF
11197 echo Please \"make depend\" to build dependencies
11201 chmod +x $CONFIG_STATUS
11202 rm -fr confdefs* $ac_clean_files
11203 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1