3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-kerberos with Kerberos support (auto)"
38 --with-readline with readline support (auto)"
40 --with-threads use threads (auto)"
42 --with-tls with TLS/SSL support (auto)"
44 --with-yielding-select with implicitly yielding select (auto)"
48 --enable-ldapd enable building ldapd (no)"
52 --enable-slapd enable building slapd (yes)"
54 --enable-aclgroups enable ACL group support (auto)"
56 --enable-cleartext enable cleartext passwords (yes)"
58 --enable-crypt enable crypt(3) passwords (auto)"
60 --enable-modules enable dynamic module support (no)"
62 --enable-phonetic enable phonetic/soundex (no)"
64 --enable-rlookups enable reverse lookups (auto)"
66 --enable-wrappers enable tcp wrapper support (no)"
68 --enable-bdb2 enable bdb2 backend (no)"
70 --enable-ldap enable ldap backend (no)"
72 --enable-ldbm enable ldbm backend (yes)"
74 --with-ldbm-api use LDBM API (auto)"
76 --with-ldbm-type use LDBM type (auto)"
78 --enable-passwd enable passwd backend (no)"
80 --enable-perl enable perl backend (no)"
82 --enable-shell enable shell backend (no)"
84 --enable-tcl enable tcl backend (no)"
88 --enable-slurpd enable building slurpd (auto)"
90 Library Generation & Linking Options"
92 --enable-static build static libraries [default=yes]
93 --enable-static=PKGS only build shared libraries if the current package
94 appears as an element in the PKGS list"
96 --enable-shared build shared libraries [default=yes]
97 --enable-shared=PKGS only build shared libraries if the current package
98 appears as an element in the PKGS list"
100 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
102 # Initialize some variables set by options.
103 # The variables have the same names as the options, with
104 # dashes changed to underlines.
106 cache_file=./config.cache
115 program_transform_name=s,x,x,
123 bindir='${exec_prefix}/bin'
124 sbindir='${exec_prefix}/sbin'
125 libexecdir='${exec_prefix}/libexec'
126 datadir='${prefix}/share'
127 sysconfdir='${prefix}/etc'
128 sharedstatedir='${prefix}/com'
129 localstatedir='${prefix}/var'
130 libdir='${exec_prefix}/lib'
131 includedir='${prefix}/include'
132 oldincludedir='/usr/include'
133 infodir='${prefix}/info'
134 mandir='${prefix}/man'
136 # Initialize some other variables.
139 SHELL=${CONFIG_SHELL-/bin/sh}
140 # Maximum number of lines to put in a shell here document.
147 # If the previous option needs an argument, assign it.
148 if test -n "$ac_prev"; then
149 eval "$ac_prev=\$ac_option"
155 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
159 # Accept the important Cygnus configure options, so we can diagnose typos.
163 -bindir | --bindir | --bindi | --bind | --bin | --bi)
165 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
166 bindir="$ac_optarg" ;;
168 -build | --build | --buil | --bui | --bu)
170 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
171 build="$ac_optarg" ;;
173 -cache-file | --cache-file | --cache-fil | --cache-fi \
174 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
175 ac_prev=cache_file ;;
176 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
177 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
178 cache_file="$ac_optarg" ;;
180 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
182 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
184 datadir="$ac_optarg" ;;
186 -disable-* | --disable-*)
187 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}=no" ;;
195 -enable-* | --enable-*)
196 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
197 # Reject names that are not valid shell variable names.
198 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
199 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
206 eval "enable_${ac_feature}='$ac_optarg'" ;;
208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
210 | --exec | --exe | --ex)
211 ac_prev=exec_prefix ;;
212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
214 | --exec=* | --exe=* | --ex=*)
215 exec_prefix="$ac_optarg" ;;
217 -gas | --gas | --ga | --g)
218 # Obsolete; use --with-gas.
221 -help | --help | --hel | --he)
222 # Omit some internal or obsolete options to make the list less imposing.
223 # This message is too long to be a string in the A/UX 3.1 sh.
225 Usage: configure [options] [host]
226 Options: [defaults in brackets after descriptions]
228 --cache-file=FILE cache test results in FILE
229 --help print this message
230 --no-create do not create output files
231 --quiet, --silent do not print \`checking...' messages
232 --version print the version of autoconf that created configure
233 Directory and file names:
234 --prefix=PREFIX install architecture-independent files in PREFIX
236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 --bindir=DIR user executables in DIR [EPREFIX/bin]
239 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
240 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
241 --datadir=DIR read-only architecture-independent data in DIR
243 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
244 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
247 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
248 --includedir=DIR C header files in DIR [PREFIX/include]
249 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
250 --infodir=DIR info documentation in DIR [PREFIX/info]
251 --mandir=DIR man documentation in DIR [PREFIX/man]
252 --srcdir=DIR find the sources in DIR [configure dir or ..]
253 --program-prefix=PREFIX prepend PREFIX to installed program names
254 --program-suffix=SUFFIX append SUFFIX to installed program names
255 --program-transform-name=PROGRAM
256 run sed PROGRAM on installed program names
260 --build=BUILD configure for building on BUILD [BUILD=HOST]
261 --host=HOST configure for HOST [guessed]
262 --target=TARGET configure for TARGET [TARGET=HOST]
263 Features and packages:
264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
266 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
267 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
268 --x-includes=DIR X include files are in DIR
269 --x-libraries=DIR X library files are in DIR
271 if test -n "$ac_help"; then
272 echo "--enable and --with options recognized:$ac_help"
276 -host | --host | --hos | --ho)
278 -host=* | --host=* | --hos=* | --ho=*)
281 -includedir | --includedir | --includedi | --included | --include \
282 | --includ | --inclu | --incl | --inc)
283 ac_prev=includedir ;;
284 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
285 | --includ=* | --inclu=* | --incl=* | --inc=*)
286 includedir="$ac_optarg" ;;
288 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
291 infodir="$ac_optarg" ;;
293 -libdir | --libdir | --libdi | --libd)
295 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 libdir="$ac_optarg" ;;
298 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
299 | --libexe | --libex | --libe)
300 ac_prev=libexecdir ;;
301 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
302 | --libexe=* | --libex=* | --libe=*)
303 libexecdir="$ac_optarg" ;;
305 -localstatedir | --localstatedir | --localstatedi | --localstated \
306 | --localstate | --localstat | --localsta | --localst \
307 | --locals | --local | --loca | --loc | --lo)
308 ac_prev=localstatedir ;;
309 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
310 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
311 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
312 localstatedir="$ac_optarg" ;;
314 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
317 mandir="$ac_optarg" ;;
320 # Obsolete; use --without-fp.
323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
328 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
331 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
332 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
333 | --oldin | --oldi | --old | --ol | --o)
334 ac_prev=oldincludedir ;;
335 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
336 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
337 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
338 oldincludedir="$ac_optarg" ;;
340 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 prefix="$ac_optarg" ;;
345 -program-prefix | --program-prefix | --program-prefi | --program-pref \
346 | --program-pre | --program-pr | --program-p)
347 ac_prev=program_prefix ;;
348 -program-prefix=* | --program-prefix=* | --program-prefi=* \
349 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
350 program_prefix="$ac_optarg" ;;
352 -program-suffix | --program-suffix | --program-suffi | --program-suff \
353 | --program-suf | --program-su | --program-s)
354 ac_prev=program_suffix ;;
355 -program-suffix=* | --program-suffix=* | --program-suffi=* \
356 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
357 program_suffix="$ac_optarg" ;;
359 -program-transform-name | --program-transform-name \
360 | --program-transform-nam | --program-transform-na \
361 | --program-transform-n | --program-transform- \
362 | --program-transform | --program-transfor \
363 | --program-transfo | --program-transf \
364 | --program-trans | --program-tran \
365 | --progr-tra | --program-tr | --program-t)
366 ac_prev=program_transform_name ;;
367 -program-transform-name=* | --program-transform-name=* \
368 | --program-transform-nam=* | --program-transform-na=* \
369 | --program-transform-n=* | --program-transform-=* \
370 | --program-transform=* | --program-transfor=* \
371 | --program-transfo=* | --program-transf=* \
372 | --program-trans=* | --program-tran=* \
373 | --progr-tra=* | --program-tr=* | --program-t=*)
374 program_transform_name="$ac_optarg" ;;
376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
377 | -silent | --silent | --silen | --sile | --sil)
380 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 sbindir="$ac_optarg" ;;
386 -sharedstatedir | --sharedstatedir | --sharedstatedi \
387 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
388 | --sharedst | --shareds | --shared | --share | --shar \
390 ac_prev=sharedstatedir ;;
391 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
392 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
393 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 sharedstatedir="$ac_optarg" ;;
397 -site | --site | --sit)
399 -site=* | --site=* | --sit=*)
402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 srcdir="$ac_optarg" ;;
407 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
408 | --syscon | --sysco | --sysc | --sys | --sy)
409 ac_prev=sysconfdir ;;
410 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
411 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
412 sysconfdir="$ac_optarg" ;;
414 -target | --target | --targe | --targ | --tar | --ta | --t)
416 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
417 target="$ac_optarg" ;;
419 -v | -verbose | --verbose | --verbos | --verbo | --verb)
422 -version | --version | --versio | --versi | --vers)
423 echo "configure generated by autoconf version 2.13"
427 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
437 eval "with_${ac_package}='$ac_optarg'" ;;
439 -without-* | --without-*)
440 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457 x_includes="$ac_optarg" ;;
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464 x_libraries="$ac_optarg" ;;
466 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
470 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
471 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 if test "x$nonopt" != xNONE; then
474 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 if test -n "$ac_prev"; then
483 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488 # File descriptor usage:
491 # 2 errors and warnings
492 # 3 some systems may open it to /dev/tty
493 # 4 used on the Kubota Titan
494 # 6 checking for... messages and results
495 # 5 compiler messages saved in config.log
496 if test "$silent" = yes; then
504 This file contains any messages produced by compilers while
505 running configure, to aid debugging if configure makes a mistake.
508 # Strip out --no-create and --no-recursion so they do not pile up.
509 # Also quote any args containing shell metacharacters.
514 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
515 | --no-cr | --no-c) ;;
516 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
517 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
519 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
520 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
525 # Only set these to C if already set. These must not be set unconditionally
526 # because not all systems understand e.g. LANG=C (notably SCO).
527 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
528 # Non-C LC_CTYPE values break the ctype check.
529 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
530 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
531 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
532 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
535 rm -rf conftest* confdefs.h
536 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
539 # A filename unique to this package, relative to the directory that
540 # configure is in, which we can look for to find out if srcdir is correct.
541 ac_unique_file=build/version
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
564 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566 # Prefer explicitly selected file to automatically selected ones.
567 if test -z "$CONFIG_SITE"; then
568 if test "x$prefix" != xNONE; then
569 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
571 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 for ac_site_file in $CONFIG_SITE; do
575 if test -r "$ac_site_file"; then
576 echo "loading site script $ac_site_file"
583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
584 ac_cpp='$CPP $CPPFLAGS'
585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
587 cross_compiling=$ac_cv_prog_cc_cross
591 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
592 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
593 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
600 ac_n= ac_c='\c' ac_t=
604 for ac_dir in build $srcdir/build; do
605 if test -f $ac_dir/install-sh; then
607 ac_install_sh="$ac_aux_dir/install-sh -c"
609 elif test -f $ac_dir/install.sh; then
611 ac_install_sh="$ac_aux_dir/install.sh -c"
615 if test -z "$ac_aux_dir"; then
616 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 OL_VERSION=`cat $ac_aux_dir/version`
623 if test -z "$OL_VERSION"; then
624 { echo "configure: error: could not determine version" 1>&2; exit 1; }
627 # Find a good install program. We prefer a C program (faster),
628 # so one script is as good as another. But avoid the broken or
629 # incompatible versions:
630 # SysV /etc/install, /usr/sbin/install
631 # SunOS /usr/etc/install
634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
637 # ./install, which can be erroneously created by make from ./install.sh.
638 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
639 echo "configure:640: checking for a BSD compatible install" >&5
640 if test -z "$INSTALL"; then
641 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
644 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
645 for ac_dir in $PATH; do
646 # Account for people who put trailing slashes in PATH elements.
648 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
650 # OSF1 and SCO ODT 3.0 have their own names for install.
651 # Don't use installbsd from OSF since it installs stuff as root
653 for ac_prog in ginstall scoinst install; do
654 if test -f $ac_dir/$ac_prog; then
655 if test $ac_prog = install &&
656 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
657 # AIX install. It has an incompatible calling convention.
660 ac_cv_path_install="$ac_dir/$ac_prog -c"
671 if test "${ac_cv_path_install+set}" = set; then
672 INSTALL="$ac_cv_path_install"
674 # As a last resort, use the slow shell script. We don't cache a
675 # path for INSTALL within a source directory, because that will
676 # break other packages using the cache if that directory is
677 # removed, or if the path is relative.
678 INSTALL="$ac_install_sh"
681 echo "$ac_t""$INSTALL" 1>&6
683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
684 # It thinks the first close brace ends the variable substitution.
685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
691 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
692 echo "configure:693: checking whether build environment is sane" >&5
695 echo timestamp > conftestfile
696 # Do `set' in a subshell so we don't clobber the current shell's
697 # arguments. Must try -L first in case configure is actually a
698 # symlink; some systems play weird games with the mod time of symlinks
699 # (eg FreeBSD returns the mod time of the symlink's containing
702 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
703 if test "$*" = "X"; then
705 set X `ls -t $srcdir/configure conftestfile`
707 if test "$*" != "X $srcdir/configure conftestfile" \
708 && test "$*" != "X conftestfile $srcdir/configure"; then
710 # If neither matched, then we have a broken ls. This can happen
711 # if, for instance, CONFIG_SHELL is bash and it inherits a
712 # broken ls alias from the environment. This has actually
713 # happened. Such a system could not be considered "sane".
714 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
715 alias in your environment" 1>&2; exit 1; }
718 test "$2" = conftestfile
724 { echo "configure: error: newly created file is older than distributed files!
725 Check your system clock" 1>&2; exit 1; }
728 echo "$ac_t""yes" 1>&6
729 if test "$program_transform_name" = s,x,x,; then
730 program_transform_name=
732 # Double any \ or $. echo might interpret backslashes.
733 cat <<\EOF_SED > conftestsed
734 s,\\,\\\\,g; s,\$,$$,g
736 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
739 test "$program_prefix" != NONE &&
740 program_transform_name="s,^,${program_prefix},; $program_transform_name"
741 # Use a double $ so make ignores it.
742 test "$program_suffix" != NONE &&
743 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
745 # sed with no file args requires a program.
746 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
748 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
749 echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
751 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftestmake <<\EOF
756 @echo 'ac_maketemp="${MAKE}"'
758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
759 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
760 if test -n "$ac_maketemp"; then
761 eval ac_cv_prog_make_${ac_make}_set=yes
763 eval ac_cv_prog_make_${ac_make}_set=no
767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
771 echo "$ac_t""no" 1>&6
772 SET_MAKE="MAKE=${MAKE-make}"
780 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
781 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
786 missing_dir=`cd $ac_aux_dir && pwd`
787 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
788 echo "configure:789: checking for working aclocal" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
794 echo "$ac_t""found" 1>&6
796 ACLOCAL="$missing_dir/missing aclocal"
797 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
801 echo "configure:802: checking for working autoconf" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
807 echo "$ac_t""found" 1>&6
809 AUTOCONF="$missing_dir/missing autoconf"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working automake""... $ac_c" 1>&6
814 echo "configure:815: checking for working automake" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (automake --version) < /dev/null > /dev/null 2>&1; then
820 echo "$ac_t""found" 1>&6
822 AUTOMAKE="$missing_dir/missing automake"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
827 echo "configure:828: checking for working autoheader" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
832 AUTOHEADER=autoheader
833 echo "$ac_t""found" 1>&6
835 AUTOHEADER="$missing_dir/missing autoheader"
836 echo "$ac_t""missing" 1>&6
839 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
840 echo "configure:841: checking for working makeinfo" >&5
841 # Run test in a subshell; some versions of sh will print an error if
842 # an executable is not found, even if stderr is redirected.
843 # Redirect stdin to placate older versions of autoconf. Sigh.
844 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
846 echo "$ac_t""found" 1>&6
848 MAKEINFO="$missing_dir/missing makeinfo"
849 echo "$ac_t""missing" 1>&6
854 cat >> confdefs.h <<EOF
855 #define OPENLDAP_PACKAGE "$PACKAGE"
858 cat >> confdefs.h <<EOF
859 #define OPENLDAP_VERSION "$VERSION"
865 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
866 echo "configure:867: checking configure arguments" >&5
871 cat >> confdefs.h <<\EOF
872 #define HAVE_MKVERSION 1
876 ldap_subdir="openldap"
878 # Check whether --with-subdir or --without-subdir was given.
879 if test "${with_subdir+set}" = set; then
880 withval="$with_subdir"
882 if test "$withval" = "no"; then
884 elif test "$withval" != "yes"; then
885 ldap_subdir="$withval"
891 # OpenLDAP --enable-debug
892 # Check whether --enable-debug or --disable-debug was given.
893 if test "${enable_debug+set}" = set; then
894 enableval="$enable_debug"
897 for ol_val in auto yes no ; do
898 if test "$enableval" = "$ol_val" ; then
902 if test "$ol_arg" = "invalid" ; then
903 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
905 ol_enable_debug="$ol_arg"
908 ol_enable_debug="yes"
911 # OpenLDAP --enable-syslog
912 # Check whether --enable-syslog or --disable-syslog was given.
913 if test "${enable_syslog+set}" = set; then
914 enableval="$enable_syslog"
917 for ol_val in auto yes no ; do
918 if test "$enableval" = "$ol_val" ; then
922 if test "$ol_arg" = "invalid" ; then
923 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
925 ol_enable_syslog="$ol_arg"
928 ol_enable_syslog="auto"
930 # end --enable-syslog
931 # OpenLDAP --enable-proctitle
932 # Check whether --enable-proctitle or --disable-proctitle was given.
933 if test "${enable_proctitle+set}" = set; then
934 enableval="$enable_proctitle"
937 for ol_val in auto yes no ; do
938 if test "$enableval" = "$ol_val" ; then
942 if test "$ol_arg" = "invalid" ; then
943 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
945 ol_enable_proctitle="$ol_arg"
948 ol_enable_proctitle="yes"
950 # end --enable-proctitle
951 # OpenLDAP --enable-cache
952 # Check whether --enable-cache or --disable-cache was given.
953 if test "${enable_cache+set}" = set; then
954 enableval="$enable_cache"
957 for ol_val in auto yes no ; do
958 if test "$enableval" = "$ol_val" ; then
962 if test "$ol_arg" = "invalid" ; then
963 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
965 ol_enable_cache="$ol_arg"
968 ol_enable_cache="yes"
971 # OpenLDAP --enable-dns
972 # Check whether --enable-dns or --disable-dns was given.
973 if test "${enable_dns+set}" = set; then
974 enableval="$enable_dns"
977 for ol_val in auto yes no ; do
978 if test "$enableval" = "$ol_val" ; then
982 if test "$ol_arg" = "invalid" ; then
983 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
985 ol_enable_dns="$ol_arg"
991 # OpenLDAP --enable-referrals
992 # Check whether --enable-referrals or --disable-referrals was given.
993 if test "${enable_referrals+set}" = set; then
994 enableval="$enable_referrals"
997 for ol_val in auto yes no ; do
998 if test "$enableval" = "$ol_val" ; then
1002 if test "$ol_arg" = "invalid" ; then
1003 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1005 ol_enable_referrals="$ol_arg"
1008 ol_enable_referrals="yes"
1010 # end --enable-referrals
1011 # OpenLDAP --enable-cldap
1012 # Check whether --enable-cldap or --disable-cldap was given.
1013 if test "${enable_cldap+set}" = set; then
1014 enableval="$enable_cldap"
1017 for ol_val in auto yes no ; do
1018 if test "$enableval" = "$ol_val" ; then
1022 if test "$ol_arg" = "invalid" ; then
1023 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1025 ol_enable_cldap="$ol_arg"
1028 ol_enable_cldap="no"
1030 # end --enable-cldap
1031 # OpenLDAP --enable-x_compile
1032 # Check whether --enable-x_compile or --disable-x_compile was given.
1033 if test "${enable_x_compile+set}" = set; then
1034 enableval="$enable_x_compile"
1037 for ol_val in yes no ; do
1038 if test "$enableval" = "$ol_val" ; then
1042 if test "$ol_arg" = "invalid" ; then
1043 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1045 ol_enable_x_compile="$ol_arg"
1048 ol_enable_x_compile="no"
1050 # end --enable-x_compile
1052 # OpenLDAP --enable-dmalloc
1053 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1054 if test "${enable_dmalloc+set}" = set; then
1055 enableval="$enable_dmalloc"
1058 for ol_val in auto yes no ; do
1059 if test "$enableval" = "$ol_val" ; then
1063 if test "$ol_arg" = "invalid" ; then
1064 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1066 ol_enable_dmalloc="$ol_arg"
1069 ol_enable_dmalloc="no"
1071 # end --enable-dmalloc
1073 # OpenLDAP --with-kerberos
1074 # Check whether --with-kerberos or --without-kerberos was given.
1075 if test "${with_kerberos+set}" = set; then
1076 withval="$with_kerberos"
1079 for ol_val in auto k5 k4 afs yes no ; do
1080 if test "$withval" = "$ol_val" ; then
1084 if test "$ol_arg" = "invalid" ; then
1085 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1087 ol_with_kerberos="$ol_arg"
1090 ol_with_kerberos="auto"
1092 # end --with-kerberos
1094 # OpenLDAP --with-readline
1095 # Check whether --with-readline or --without-readline was given.
1096 if test "${with_readline+set}" = set; then
1097 withval="$with_readline"
1100 for ol_val in auto yes no ; do
1101 if test "$withval" = "$ol_val" ; then
1105 if test "$ol_arg" = "invalid" ; then
1106 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1108 ol_with_readline="$ol_arg"
1111 ol_with_readline="auto"
1113 # end --with-readline
1115 # OpenLDAP --with-threads
1116 # Check whether --with-threads or --without-threads was given.
1117 if test "${with_threads+set}" = set; then
1118 withval="$with_threads"
1121 for ol_val in auto posix mach lwp yes no manual ; do
1122 if test "$withval" = "$ol_val" ; then
1126 if test "$ol_arg" = "invalid" ; then
1127 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1129 ol_with_threads="$ol_arg"
1132 ol_with_threads="auto"
1134 # end --with-threads
1136 # OpenLDAP --with-tls
1137 # Check whether --with-tls or --without-tls was given.
1138 if test "${with_tls+set}" = set; then
1142 for ol_val in auto ssleay openssl yes no ; do
1143 if test "$withval" = "$ol_val" ; then
1147 if test "$ol_arg" = "invalid" ; then
1148 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1150 ol_with_tls="$ol_arg"
1157 # OpenLDAP --with-yielding_select
1158 # Check whether --with-yielding_select or --without-yielding_select was given.
1159 if test "${with_yielding_select+set}" = set; then
1160 withval="$with_yielding_select"
1163 for ol_val in auto yes no manual ; do
1164 if test "$withval" = "$ol_val" ; then
1168 if test "$ol_arg" = "invalid" ; then
1169 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1171 ol_with_yielding_select="$ol_arg"
1174 ol_with_yielding_select="auto"
1176 # end --with-yielding_select
1180 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1181 if test "${with_xxldapdoptions+set}" = set; then
1182 withval="$with_xxldapdoptions"
1186 # OpenLDAP --enable-ldapd
1187 # Check whether --enable-ldapd or --disable-ldapd was given.
1188 if test "${enable_ldapd+set}" = set; then
1189 enableval="$enable_ldapd"
1192 for ol_val in auto yes no ; do
1193 if test "$enableval" = "$ol_val" ; then
1197 if test "$ol_arg" = "invalid" ; then
1198 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1200 ol_enable_ldapd="$ol_arg"
1203 ol_enable_ldapd="no"
1205 # end --enable-ldapd
1207 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1208 if test "${with_xxslapdoptions+set}" = set; then
1209 withval="$with_xxslapdoptions"
1213 # OpenLDAP --enable-slapd
1214 # Check whether --enable-slapd or --disable-slapd was given.
1215 if test "${enable_slapd+set}" = set; then
1216 enableval="$enable_slapd"
1219 for ol_val in auto yes no ; do
1220 if test "$enableval" = "$ol_val" ; then
1224 if test "$ol_arg" = "invalid" ; then
1225 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1227 ol_enable_slapd="$ol_arg"
1230 ol_enable_slapd="yes"
1232 # end --enable-slapd
1233 # OpenLDAP --enable-aclgroups
1234 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1235 if test "${enable_aclgroups+set}" = set; then
1236 enableval="$enable_aclgroups"
1239 for ol_val in auto yes no ; do
1240 if test "$enableval" = "$ol_val" ; then
1244 if test "$ol_arg" = "invalid" ; then
1245 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1247 ol_enable_aclgroups="$ol_arg"
1250 ol_enable_aclgroups="auto"
1252 # end --enable-aclgroups
1253 # OpenLDAP --enable-cleartext
1254 # Check whether --enable-cleartext or --disable-cleartext was given.
1255 if test "${enable_cleartext+set}" = set; then
1256 enableval="$enable_cleartext"
1259 for ol_val in auto yes no ; do
1260 if test "$enableval" = "$ol_val" ; then
1264 if test "$ol_arg" = "invalid" ; then
1265 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1267 ol_enable_cleartext="$ol_arg"
1270 ol_enable_cleartext="yes"
1272 # end --enable-cleartext
1273 # OpenLDAP --enable-crypt
1274 # Check whether --enable-crypt or --disable-crypt was given.
1275 if test "${enable_crypt+set}" = set; then
1276 enableval="$enable_crypt"
1279 for ol_val in auto yes no ; do
1280 if test "$enableval" = "$ol_val" ; then
1284 if test "$ol_arg" = "invalid" ; then
1285 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1287 ol_enable_crypt="$ol_arg"
1290 ol_enable_crypt="auto"
1292 # end --enable-crypt
1293 # OpenLDAP --enable-modules
1294 # Check whether --enable-modules or --disable-modules was given.
1295 if test "${enable_modules+set}" = set; then
1296 enableval="$enable_modules"
1299 for ol_val in auto yes no ; do
1300 if test "$enableval" = "$ol_val" ; then
1304 if test "$ol_arg" = "invalid" ; then
1305 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1307 ol_enable_modules="$ol_arg"
1310 ol_enable_modules="no"
1312 # end --enable-modules
1313 # OpenLDAP --enable-phonetic
1314 # Check whether --enable-phonetic or --disable-phonetic was given.
1315 if test "${enable_phonetic+set}" = set; then
1316 enableval="$enable_phonetic"
1319 for ol_val in auto yes no ; do
1320 if test "$enableval" = "$ol_val" ; then
1324 if test "$ol_arg" = "invalid" ; then
1325 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1327 ol_enable_phonetic="$ol_arg"
1330 ol_enable_phonetic="no"
1332 # end --enable-phonetic
1333 # OpenLDAP --enable-rlookups
1334 # Check whether --enable-rlookups or --disable-rlookups was given.
1335 if test "${enable_rlookups+set}" = set; then
1336 enableval="$enable_rlookups"
1339 for ol_val in auto yes no ; do
1340 if test "$enableval" = "$ol_val" ; then
1344 if test "$ol_arg" = "invalid" ; then
1345 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1347 ol_enable_rlookups="$ol_arg"
1350 ol_enable_rlookups="auto"
1352 # end --enable-rlookups
1353 # OpenLDAP --enable-wrappers
1354 # Check whether --enable-wrappers or --disable-wrappers was given.
1355 if test "${enable_wrappers+set}" = set; then
1356 enableval="$enable_wrappers"
1359 for ol_val in auto yes no ; do
1360 if test "$enableval" = "$ol_val" ; then
1364 if test "$ol_arg" = "invalid" ; then
1365 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1367 ol_enable_wrappers="$ol_arg"
1370 ol_enable_wrappers="no"
1372 # end --enable-wrappers
1374 # OpenLDAP --enable-bdb2
1375 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1376 if test "${enable_bdb2+set}" = set; then
1377 enableval="$enable_bdb2"
1380 for ol_val in auto yes no ; do
1381 if test "$enableval" = "$ol_val" ; then
1385 if test "$ol_arg" = "invalid" ; then
1386 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1388 ol_enable_bdb2="$ol_arg"
1394 # OpenLDAP --enable-ldap
1395 # Check whether --enable-ldap or --disable-ldap was given.
1396 if test "${enable_ldap+set}" = set; then
1397 enableval="$enable_ldap"
1400 for ol_val in auto yes no ; do
1401 if test "$enableval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1408 ol_enable_ldap="$ol_arg"
1414 # OpenLDAP --enable-ldbm
1415 # Check whether --enable-ldbm or --disable-ldbm was given.
1416 if test "${enable_ldbm+set}" = set; then
1417 enableval="$enable_ldbm"
1420 for ol_val in auto yes no ; do
1421 if test "$enableval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1428 ol_enable_ldbm="$ol_arg"
1431 ol_enable_ldbm="yes"
1434 # OpenLDAP --with-ldbm_api
1435 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1436 if test "${with_ldbm_api+set}" = set; then
1437 withval="$with_ldbm_api"
1440 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1441 if test "$withval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1448 ol_with_ldbm_api="$ol_arg"
1451 ol_with_ldbm_api="auto"
1453 # end --with-ldbm_api
1455 # OpenLDAP --with-ldbm_type
1456 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1457 if test "${with_ldbm_type+set}" = set; then
1458 withval="$with_ldbm_type"
1461 for ol_val in auto btree hash ; do
1462 if test "$withval" = "$ol_val" ; then
1466 if test "$ol_arg" = "invalid" ; then
1467 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1469 ol_with_ldbm_type="$ol_arg"
1472 ol_with_ldbm_type="auto"
1474 # end --with-ldbm_type
1477 # OpenLDAP --enable-passwd
1478 # Check whether --enable-passwd or --disable-passwd was given.
1479 if test "${enable_passwd+set}" = set; then
1480 enableval="$enable_passwd"
1483 for ol_val in auto yes no ; do
1484 if test "$enableval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1491 ol_enable_passwd="$ol_arg"
1494 ol_enable_passwd="no"
1496 # end --enable-passwd
1497 # OpenLDAP --enable-perl
1498 # Check whether --enable-perl or --disable-perl was given.
1499 if test "${enable_perl+set}" = set; then
1500 enableval="$enable_perl"
1503 for ol_val in auto yes no ; do
1504 if test "$enableval" = "$ol_val" ; then
1508 if test "$ol_arg" = "invalid" ; then
1509 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1511 ol_enable_perl="$ol_arg"
1517 # OpenLDAP --enable-shell
1518 # Check whether --enable-shell or --disable-shell was given.
1519 if test "${enable_shell+set}" = set; then
1520 enableval="$enable_shell"
1523 for ol_val in auto yes no ; do
1524 if test "$enableval" = "$ol_val" ; then
1528 if test "$ol_arg" = "invalid" ; then
1529 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1531 ol_enable_shell="$ol_arg"
1534 ol_enable_shell="no"
1536 # end --enable-shell
1537 # OpenLDAP --enable-tcl
1538 # Check whether --enable-tcl or --disable-tcl was given.
1539 if test "${enable_tcl+set}" = set; then
1540 enableval="$enable_tcl"
1543 for ol_val in auto yes no ; do
1544 if test "$enableval" = "$ol_val" ; then
1548 if test "$ol_arg" = "invalid" ; then
1549 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1551 ol_enable_tcl="$ol_arg"
1558 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1559 if test "${with_xxslurpdoptions+set}" = set; then
1560 withval="$with_xxslurpdoptions"
1564 # OpenLDAP --enable-slurpd
1565 # Check whether --enable-slurpd or --disable-slurpd was given.
1566 if test "${enable_slurpd+set}" = set; then
1567 enableval="$enable_slurpd"
1570 for ol_val in auto yes no ; do
1571 if test "$enableval" = "$ol_val" ; then
1575 if test "$ol_arg" = "invalid" ; then
1576 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1578 ol_enable_slurpd="$ol_arg"
1581 ol_enable_slurpd="auto"
1583 # end --enable-slurpd
1585 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1586 if test "${with_xxliboptions+set}" = set; then
1587 withval="$with_xxliboptions"
1591 # Check whether --enable-static or --disable-static was given.
1592 if test "${enable_static+set}" = set; then
1593 enableval="$enable_static"
1594 p=${PACKAGE-default}
1595 case "$enableval" in
1596 yes) enable_static=yes ;;
1597 no) enable_static=no ;;
1600 # Look at the argument we got. We use all the common list separators.
1601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1602 for pkg in $enableval; do
1603 if test "X$pkg" = "X$p"; then
1614 # Check whether --enable-shared or --disable-shared was given.
1615 if test "${enable_shared+set}" = set; then
1616 enableval="$enable_shared"
1617 p=${PACKAGE-default}
1618 case "$enableval" in
1619 yes) enable_shared=yes ;;
1620 no) enable_shared=no ;;
1623 # Look at the argument we got. We use all the common list separators.
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1625 for pkg in $enableval; do
1626 if test "X$pkg" = "X$p"; then
1639 if test $ol_enable_dns = yes ; then
1640 if test $ol_enable_referrals = no ; then
1641 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1643 if test $ol_enable_referrals = auto ; then
1644 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1645 ol_enable_referrals=yes
1649 if test $ol_enable_slapd = no ; then
1650 if test $ol_enable_bdb2 = yes ; then
1651 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
1653 if test $ol_enable_ldap = yes ; then
1654 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
1656 if test $ol_enable_ldbm = yes ; then
1657 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
1659 if test $ol_enable_passwd = yes ; then
1660 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
1662 if test $ol_enable_perl = yes ; then
1663 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
1665 if test $ol_enable_shell = yes ; then
1666 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
1668 if test $ol_enable_tcl = yes ; then
1669 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
1671 if test $ol_enable_aclgroups = yes ; then
1672 echo "configure: warning: slapd disabled, ignoring --enable-aclgroups argument" 1>&2
1674 if test $ol_enable_modules = yes ; then
1675 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
1677 if test $ol_enable_wrappers = yes ; then
1678 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
1680 if test $ol_enable_phonetic = yes ; then
1681 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
1683 if test $ol_enable_rlookups = yes ; then
1684 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
1686 if test $ol_with_ldbm_api != auto ; then
1687 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
1689 if test $ol_with_ldbm_type != auto ; then
1690 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
1692 if test $ol_enable_slurpd = yes ; then
1693 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1696 # force settings to no
1705 ol_enable_aclgroups=no
1706 ol_enable_modules=no
1707 ol_enable_phonetic=no
1708 ol_enable_rlookups=no
1709 ol_enable_wrappers=no
1712 ol_with_ldbm_type=no
1716 elif test $ol_enable_ldbm = no ; then
1718 if test $ol_with_ldbm_api != auto ; then
1719 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
1722 if test $ol_with_ldbm_type != auto ; then
1723 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
1726 if test $ol_enable_bdb2 = yes ; then
1727 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1730 if test $ol_enable_modules != yes -a \
1731 $ol_enable_ldap = no -a \
1732 $ol_enable_passwd = no -a \
1733 $ol_enable_perl = no -a \
1734 $ol_enable_shell = no -a \
1735 $ol_enable_tcl = no ; then
1736 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1740 ol_with_ldbm_type=no
1742 elif test $ol_enable_bdb2 = yes ; then
1744 if test $ol_with_ldbm_api != auto -a \
1745 $ol_with_ldbm_api != db2 ; then
1746 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1749 ol_with_ldbm_api=db2
1753 if test $ol_enable_bdb2 != no ; then
1754 if test $ol_with_ldbm_api != auto -a \
1755 $ol_with_ldbm_api != db2 ; then
1756 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1761 if test $ol_with_ldbm_api = gdbm -a \
1762 $ol_with_ldbm_type = btree ; then
1763 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1765 if test $ol_with_ldbm_api = mdbm -a \
1766 $ol_with_ldbm_type = btree ; then
1767 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1769 if test $ol_with_ldbm_api = ndbm -a \
1770 $ol_with_ldbm_type = btree ; then
1771 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1775 if test $ol_enable_slurpd = yes ; then
1776 if test $ol_with_threads = no ; then
1777 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1781 echo "$ac_t""done" 1>&6
1806 SLAPD_MODULES_LDFLAGS=
1807 SLAPD_MODULES_CPPFLAGS=
1810 SLAPD_PERL_CPPFLAGS=
1823 # Make sure we can run config.sub.
1824 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1825 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1828 echo $ac_n "checking host system type""... $ac_c" 1>&6
1829 echo "configure:1830: checking host system type" >&5
1832 case "$host_alias" in
1836 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1837 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1839 *) host_alias=$nonopt ;;
1843 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1844 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1845 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1846 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1847 echo "$ac_t""$host" 1>&6
1849 # Extract the first word of "ranlib", so it can be a program name with args.
1850 set dummy ranlib; ac_word=$2
1851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1852 echo "configure:1853: checking for $ac_word" >&5
1853 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 if test -n "$RANLIB"; then
1857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1861 for ac_dir in $ac_dummy; do
1862 test -z "$ac_dir" && ac_dir=.
1863 if test -f $ac_dir/$ac_word; then
1864 ac_cv_prog_RANLIB="ranlib"
1869 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1872 RANLIB="$ac_cv_prog_RANLIB"
1873 if test -n "$RANLIB"; then
1874 echo "$ac_t""$RANLIB" 1>&6
1876 echo "$ac_t""no" 1>&6
1879 # Extract the first word of "gcc", so it can be a program name with args.
1880 set dummy gcc; ac_word=$2
1881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1882 echo "configure:1883: checking for $ac_word" >&5
1883 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC="$CC" # Let the user override the test.
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1891 for ac_dir in $ac_dummy; do
1892 test -z "$ac_dir" && ac_dir=.
1893 if test -f $ac_dir/$ac_word; then
1902 if test -n "$CC"; then
1903 echo "$ac_t""$CC" 1>&6
1905 echo "$ac_t""no" 1>&6
1908 if test -z "$CC"; then
1909 # Extract the first word of "cc", so it can be a program name with args.
1910 set dummy cc; ac_word=$2
1911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1912 echo "configure:1913: checking for $ac_word" >&5
1913 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
1919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1922 for ac_dir in $ac_dummy; do
1923 test -z "$ac_dir" && ac_dir=.
1924 if test -f $ac_dir/$ac_word; then
1925 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1926 ac_prog_rejected=yes
1934 if test $ac_prog_rejected = yes; then
1935 # We found a bogon in the path, so make sure we never use it.
1936 set dummy $ac_cv_prog_CC
1938 if test $# -gt 0; then
1939 # We chose a different compiler from the bogus one.
1940 # However, it has the same basename, so the bogon will be chosen
1941 # first if we set CC to just the basename; use the full file name.
1943 set dummy "$ac_dir/$ac_word" "$@"
1951 if test -n "$CC"; then
1952 echo "$ac_t""$CC" 1>&6
1954 echo "$ac_t""no" 1>&6
1957 if test -z "$CC"; then
1958 case "`uname -s`" in
1960 # Extract the first word of "cl", so it can be a program name with args.
1961 set dummy cl; ac_word=$2
1962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1963 echo "configure:1964: checking for $ac_word" >&5
1964 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 if test -n "$CC"; then
1968 ac_cv_prog_CC="$CC" # Let the user override the test.
1970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1972 for ac_dir in $ac_dummy; do
1973 test -z "$ac_dir" && ac_dir=.
1974 if test -f $ac_dir/$ac_word; then
1983 if test -n "$CC"; then
1984 echo "$ac_t""$CC" 1>&6
1986 echo "$ac_t""no" 1>&6
1991 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1994 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1995 echo "configure:1996: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1998 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2001 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2002 cross_compiling=$ac_cv_prog_cc_cross
2004 cat > conftest.$ac_ext << EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2011 if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2012 ac_cv_prog_cc_works=yes
2013 # If we can't run a trivial program, we are probably using a cross compiler.
2014 if (./conftest; exit) 2>/dev/null; then
2015 ac_cv_prog_cc_cross=no
2017 ac_cv_prog_cc_cross=yes
2020 echo "configure: failed program was:" >&5
2021 cat conftest.$ac_ext >&5
2022 ac_cv_prog_cc_works=no
2026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2030 cross_compiling=$ac_cv_prog_cc_cross
2032 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2033 if test $ac_cv_prog_cc_works = no; then
2034 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2036 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2038 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2039 cross_compiling=$ac_cv_prog_cc_cross
2041 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2042 echo "configure:2043: checking whether we are using GNU C" >&5
2043 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 cat > conftest.c <<EOF
2051 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2058 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2060 if test $ac_cv_prog_gcc = yes; then
2066 ac_test_CFLAGS="${CFLAGS+set}"
2067 ac_save_CFLAGS="$CFLAGS"
2069 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2070 echo "configure:2071: checking whether ${CC-cc} accepts -g" >&5
2071 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 echo 'void f(){}' > conftest.c
2075 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2084 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2085 if test "$ac_test_CFLAGS" = set; then
2086 CFLAGS="$ac_save_CFLAGS"
2087 elif test $ac_cv_prog_cc_g = yes; then
2088 if test "$GCC" = yes; then
2094 if test "$GCC" = yes; then
2101 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2102 if test "${with_gnu_ld+set}" = set; then
2103 withval="$with_gnu_ld"
2104 test "$withval" = no || with_gnu_ld=yes
2111 if test "$ac_cv_prog_gcc" = yes; then
2112 # Check if gcc -print-prog-name=ld gives a path.
2113 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2114 echo "configure:2115: checking for ld used by GCC" >&5
2115 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2117 # Accept absolute paths.
2119 test -z "$LD" && LD="$ac_prog"
2122 # If it fails, then pretend we aren't using GCC.
2126 # If it is relative, then search for the first ld in PATH.
2130 elif test "$with_gnu_ld" = yes; then
2131 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2132 echo "configure:2133: checking for GNU ld" >&5
2134 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2135 echo "configure:2136: checking for non-GNU ld" >&5
2137 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 if test -z "$LD"; then
2141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2142 for ac_dir in $PATH; do
2143 test -z "$ac_dir" && ac_dir=.
2144 if test -f "$ac_dir/$ac_prog"; then
2145 ac_cv_path_LD="$ac_dir/$ac_prog"
2146 # Check to see if the program is GNU ld. I'd rather use --version,
2147 # but apparently some GNU ld's only accept -v.
2148 # Break only if it was the GNU/non-GNU ld that we prefer.
2149 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2150 test "$with_gnu_ld" != no && break
2152 test "$with_gnu_ld" != yes && break
2158 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2163 if test -n "$LD"; then
2164 echo "$ac_t""$LD" 1>&6
2166 echo "$ac_t""no" 1>&6
2168 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2170 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2171 echo "configure:2172: checking if the linker ($LD) is GNU ld" >&5
2172 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2176 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2177 ac_cv_prog_gnu_ld=yes
2179 ac_cv_prog_gnu_ld=no
2183 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2186 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2187 echo "configure:2188: checking for BSD-compatible nm" >&5
2188 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2193 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2197 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2198 test -z "$ac_dir" && ac_dir=.
2199 if test -f $ac_dir/nm; then
2200 # Check to see if the nm accepts a BSD-compat flag.
2201 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2202 # nm: unknown option "B" ignored
2203 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2204 ac_cv_path_NM="$ac_dir/nm -B"
2205 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2206 ac_cv_path_NM="$ac_dir/nm -p"
2208 ac_cv_path_NM="$ac_dir/nm"
2214 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2220 echo "$ac_t""$NM" 1>&6
2223 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2224 echo "configure:2225: checking whether ln -s works" >&5
2225 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2229 if ln -s X conftestdata 2>/dev/null
2232 ac_cv_prog_LN_S="ln -s"
2237 LN_S="$ac_cv_prog_LN_S"
2238 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2239 echo "$ac_t""yes" 1>&6
2241 echo "$ac_t""no" 1>&6
2244 # Always use our own libtool.
2245 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2247 # Check for any special flags to pass to ltconfig.
2249 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2250 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2251 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2252 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2253 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2255 # Some flags need to be propagated to the compiler or linker for good
2259 # Find out which ABI we are using.
2260 echo '#line 2261 "configure"' > conftest.$ac_ext
2261 if { (eval echo configure:2262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2262 case "`/usr/bin/file conftest.o`" in
2278 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2279 CFLAGS="$CFLAGS -belf"
2283 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2284 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2285 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2286 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2287 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2288 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2291 for ac_prog in mawk gawk nawk awk
2293 # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2296 echo "configure:2297: checking for $ac_word" >&5
2297 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 if test -n "$AWK"; then
2301 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2305 for ac_dir in $ac_dummy; do
2306 test -z "$ac_dir" && ac_dir=.
2307 if test -f $ac_dir/$ac_word; then
2308 ac_cv_prog_AWK="$ac_prog"
2315 AWK="$ac_cv_prog_AWK"
2316 if test -n "$AWK"; then
2317 echo "$ac_t""$AWK" 1>&6
2319 echo "$ac_t""no" 1>&6
2322 test -n "$AWK" && break
2325 # test for ln hardlink support
2326 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2327 echo "configure:2328: checking whether ln works" >&5
2328 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 rm -f conftest.src conftest.dst
2332 echo "conftest" > conftest.src
2333 if ln conftest.src conftest.dst 2>/dev/null
2335 ol_cv_prog_LN_H="ln"
2337 ol_cv_prog_LN_H="cp"
2339 rm -f conftest.src conftest.dst
2342 LN_H="$ol_cv_prog_LN_H"
2343 if test "$ol_cv_prog_LN_H" = "ln"; then
2344 echo "$ac_t""yes" 1>&6
2346 echo "$ac_t""no" 1>&6
2349 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2350 echo "configure:2351: checking whether ln -s works" >&5
2351 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2355 if ln -s X conftestdata 2>/dev/null
2358 ac_cv_prog_LN_S="ln -s"
2363 LN_S="$ac_cv_prog_LN_S"
2364 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2365 echo "$ac_t""yes" 1>&6
2367 echo "$ac_t""no" 1>&6
2371 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2375 # Extract the first word of "sendmail", so it can be a program name with args.
2376 set dummy sendmail; ac_word=$2
2377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2378 echo "configure:2379: checking for $ac_word" >&5
2379 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2384 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2387 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2391 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2392 for ac_dir in $ac_dummy; do
2393 test -z "$ac_dir" && ac_dir=.
2394 if test -f $ac_dir/$ac_word; then
2395 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2400 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2404 SENDMAIL="$ac_cv_path_SENDMAIL"
2405 if test -n "$SENDMAIL"; then
2406 echo "$ac_t""$SENDMAIL" 1>&6
2408 echo "$ac_t""no" 1>&6
2411 # Extract the first word of "vi", so it can be a program name with args.
2412 set dummy vi; ac_word=$2
2413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2414 echo "configure:2415: checking for $ac_word" >&5
2415 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2416 echo $ac_n "(cached) $ac_c" 1>&6
2420 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2423 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2427 ac_dummy="$PATH:/usr/ucb"
2428 for ac_dir in $ac_dummy; do
2429 test -z "$ac_dir" && ac_dir=.
2430 if test -f $ac_dir/$ac_word; then
2431 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2436 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2440 EDITOR="$ac_cv_path_EDITOR"
2441 if test -n "$EDITOR"; then
2442 echo "$ac_t""$EDITOR" 1>&6
2444 echo "$ac_t""no" 1>&6
2447 # Extract the first word of "finger", so it can be a program name with args.
2448 set dummy finger; ac_word=$2
2449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2450 echo "configure:2451: checking for $ac_word" >&5
2451 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2456 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2459 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2463 ac_dummy="$PATH:/usr/ucb"
2464 for ac_dir in $ac_dummy; do
2465 test -z "$ac_dir" && ac_dir=.
2466 if test -f $ac_dir/$ac_word; then
2467 ac_cv_path_FINGER="$ac_dir/$ac_word"
2472 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2476 FINGER="$ac_cv_path_FINGER"
2477 if test -n "$FINGER"; then
2478 echo "$ac_t""$FINGER" 1>&6
2480 echo "$ac_t""no" 1>&6
2485 if test $ol_enable_modules != no ; then
2486 # Extract the first word of "glib-config", so it can be a program name with args.
2487 set dummy glib-config; ac_word=$2
2488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2489 echo "configure:2490: checking for $ac_word" >&5
2490 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 case "$GLIBCONFIG" in
2495 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2498 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2503 for ac_dir in $ac_dummy; do
2504 test -z "$ac_dir" && ac_dir=.
2505 if test -f $ac_dir/$ac_word; then
2506 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2514 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2515 if test -n "$GLIBCONFIG"; then
2516 echo "$ac_t""$GLIBCONFIG" 1>&6
2518 echo "$ac_t""no" 1>&6
2522 if test "no$GLIBCONFIG" = "no" ; then
2523 if test $ol_enable_modules = yes ; then
2524 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2528 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2529 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2530 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2537 if test $ol_enable_perl != no ; then
2538 # Extract the first word of "perl", so it can be a program name with args.
2539 set dummy perl; ac_word=$2
2540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_word" >&5
2542 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2547 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2550 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2555 for ac_dir in $ac_dummy; do
2556 test -z "$ac_dir" && ac_dir=.
2557 if test -f $ac_dir/$ac_word; then
2558 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2563 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2567 PERLBIN="$ac_cv_path_PERLBIN"
2568 if test -n "$PERLBIN"; then
2569 echo "$ac_t""$PERLBIN" 1>&6
2571 echo "$ac_t""no" 1>&6
2575 if test "no$PERLBIN" = "no" ; then
2576 if test $ol_enable_perl = yes ; then
2577 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2581 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2582 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2588 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2589 echo "configure:2590: checking how to run the C preprocessor" >&5
2590 # On Suns, sometimes $CPP names a directory.
2591 if test -n "$CPP" && test -d "$CPP"; then
2594 if test -z "$CPP"; then
2595 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 # This must be in double quotes, not single quotes, because CPP may get
2599 # substituted into the Makefile and "${CC-cc}" will confuse make.
2601 # On the NeXT, cc -E runs the code through the compiler's parser,
2602 # not just through cpp.
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2610 { (eval echo configure:2611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2612 if test -z "$ac_err"; then
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2619 CPP="${CC-cc} -E -traditional-cpp"
2620 cat > conftest.$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2627 { (eval echo configure:2628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2629 if test -z "$ac_err"; then
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2636 CPP="${CC-cc} -nologo -E"
2637 cat > conftest.$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2644 { (eval echo configure:2645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2646 if test -z "$ac_err"; then
2650 echo "configure: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2660 ac_cv_prog_CPP="$CPP"
2662 CPP="$ac_cv_prog_CPP"
2664 ac_cv_prog_CPP="$CPP"
2666 echo "$ac_t""$CPP" 1>&6
2669 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2670 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2672 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2673 echo "configure: warning: programs compiled here do run here..." 1>&2
2674 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2676 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2677 echo "configure: warning: programs compiled here do not run here..." 1>&2
2678 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2681 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2682 echo "configure:2683: checking for AIX" >&5
2683 cat > conftest.$ac_ext <<EOF
2684 #line 2685 "configure"
2685 #include "confdefs.h"
2691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2692 egrep "yes" >/dev/null 2>&1; then
2694 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2695 #define _ALL_SOURCE 1
2700 echo "$ac_t""no" 1>&6
2705 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2706 echo "configure:2707: checking for POSIXized ISC" >&5
2707 if test -d /etc/conf/kconfig.d &&
2708 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2710 echo "$ac_t""yes" 1>&6
2711 ISC=yes # If later tests want to check for ISC.
2712 cat >> confdefs.h <<\EOF
2713 #define _POSIX_SOURCE 1
2716 if test "$GCC" = yes; then
2722 echo "$ac_t""no" 1>&6
2726 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2727 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2728 echo "configure:2729: checking for minix/config.h" >&5
2729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
2735 #include <minix/config.h>
2737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2738 { (eval echo configure:2739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2740 if test -z "$ac_err"; then
2742 eval "ac_cv_header_$ac_safe=yes"
2745 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2748 eval "ac_cv_header_$ac_safe=no"
2752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2753 echo "$ac_t""yes" 1>&6
2756 echo "$ac_t""no" 1>&6
2760 if test "$MINIX" = yes; then
2761 cat >> confdefs.h <<\EOF
2762 #define _POSIX_SOURCE 1
2765 cat >> confdefs.h <<\EOF
2766 #define _POSIX_1_SOURCE 2
2769 cat >> confdefs.h <<\EOF
2776 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2777 echo "configure:2778: checking for be_app in -lbe" >&5
2778 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 ac_save_LIBS="$LIBS"
2783 LIBS="-lbe -lroot -lnet $LIBS"
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 /* Override any gcc2 internal prototype to avoid an error. */
2788 /* We use char because int might match the return type of a gcc2
2789 builtin and then its argument prototype would still apply. */
2796 if { (eval echo configure:2797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2798 eval "ac_cv_lib_$ac_lib_var=yes"
2800 echo "configure: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2803 eval "ac_cv_lib_$ac_lib_var=no"
2806 LIBS="$ac_save_LIBS"
2809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2810 echo "$ac_t""yes" 1>&6
2811 LIBS="$LIBS -lbe -lroot -lnet"
2813 echo "$ac_t""no" 1>&6
2818 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2819 echo "configure:2820: checking for Cygwin environment" >&5
2820 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2830 #define __CYGWIN__ __CYGWIN32__
2835 if { (eval echo configure:2836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2839 echo "configure: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2848 echo "$ac_t""$ac_cv_cygwin" 1>&6
2850 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2851 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2852 echo "configure:2853: checking for mingw32 environment" >&5
2853 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2856 cat > conftest.$ac_ext <<EOF
2857 #line 2858 "configure"
2858 #include "confdefs.h"
2864 if { (eval echo configure:2865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2868 echo "configure: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2877 echo "$ac_t""$ac_cv_mingw32" 1>&6
2879 test "$ac_cv_mingw32" = yes && MINGW32=yes
2882 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2883 echo "configure:2884: checking for executable suffix" >&5
2884 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2887 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2891 echo 'int main () { return 0; }' > conftest.$ac_ext
2893 if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2894 for file in conftest.*; do
2896 *.c | *.o | *.obj) ;;
2897 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2901 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2904 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2909 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2910 echo "$ac_t""${ac_cv_exeext}" 1>&6
2913 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2914 echo "configure:2915: checking for object suffix" >&5
2915 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2919 echo 'int i = 1;' > conftest.$ac_ext
2920 if { (eval echo configure:2921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2921 for ac_file in conftest.*; do
2924 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2928 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2933 echo "$ac_t""$ac_cv_objext" 1>&6
2934 OBJEXT=$ac_cv_objext
2935 ac_objext=$ac_cv_objext
2938 cat >> confdefs.h <<EOF
2939 #define EXEEXT "${EXEEXT}"
2946 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2947 echo "configure:2948: checking for ${CC-cc} option to accept ANSI C" >&5
2948 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 am_cv_prog_cc_stdc=no
2953 # Don't try gcc -ansi; that turns off useful extensions and
2954 # breaks some systems' header files.
2955 # AIX -qlanglvl=ansi
2956 # Ultrix and OSF/1 -std1
2957 # HP-UX -Aa -D_HPUX_SOURCE
2958 # SVR4 -Xc -D__EXTENSIONS__
2959 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2961 CC="$ac_save_CC $ac_arg"
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2967 #include <sys/types.h>
2968 #include <sys/stat.h>
2969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2970 struct buf { int x; };
2971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2972 static char *e (p, i)
2978 static char *f (char * (*g) (char **, int), char **p, ...)
2983 s = g (p, va_arg (v,int));
2987 int test (int i, double x);
2988 struct s1 {int (*f) (int a);};
2989 struct s2 {int (*f) (double a);};
2990 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2996 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3000 if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3002 am_cv_prog_cc_stdc="$ac_arg"; break
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3013 if test -z "$am_cv_prog_cc_stdc"; then
3014 echo "$ac_t""none needed" 1>&6
3016 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3018 case "x$am_cv_prog_cc_stdc" in
3020 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3023 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3024 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
3030 echo $ac_n "checking for socket""... $ac_c" 1>&6
3031 echo "configure:3032: checking for socket" >&5
3032 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3035 cat > conftest.$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3038 /* System header to define __stub macros and hopefully few prototypes,
3039 which can conflict with char socket(); below. */
3041 /* Override any gcc2 internal prototype to avoid an error. */
3042 /* We use char because int might match the return type of a gcc2
3043 builtin and then its argument prototype would still apply. */
3048 /* The GNU C library defines this for functions which it implements
3049 to always fail with ENOSYS. Some functions are actually named
3050 something starting with __ and the normal name is an alias. */
3051 #if defined (__stub_socket) || defined (__stub___socket)
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3061 eval "ac_cv_func_socket=yes"
3063 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3066 eval "ac_cv_func_socket=no"
3071 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3072 echo "$ac_t""yes" 1>&6
3075 echo "$ac_t""no" 1>&6
3077 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3078 echo "configure:3079: checking for main in -lsocket" >&5
3079 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 ac_save_LIBS="$LIBS"
3084 LIBS="-lsocket $LIBS"
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3095 eval "ac_cv_lib_$ac_lib_var=yes"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3100 eval "ac_cv_lib_$ac_lib_var=no"
3103 LIBS="$ac_save_LIBS"
3106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3110 cat >> confdefs.h <<EOF
3111 #define $ac_tr_lib 1
3114 LIBS="-lsocket $LIBS"
3117 echo "$ac_t""no" 1>&6
3120 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3121 echo "configure:3122: checking for main in -lnet" >&5
3122 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 ac_save_LIBS="$LIBS"
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3136 if { (eval echo configure:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3138 eval "ac_cv_lib_$ac_lib_var=yes"
3140 echo "configure: failed program was:" >&5
3141 cat conftest.$ac_ext >&5
3143 eval "ac_cv_lib_$ac_lib_var=no"
3146 LIBS="$ac_save_LIBS"
3149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3150 echo "$ac_t""yes" 1>&6
3151 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3152 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3153 cat >> confdefs.h <<EOF
3154 #define $ac_tr_lib 1
3160 echo "$ac_t""no" 1>&6
3163 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3164 echo "configure:3165: checking for socket in -lnet" >&5
3165 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 ac_save_LIBS="$LIBS"
3171 cat > conftest.$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3174 /* Override any gcc2 internal prototype to avoid an error. */
3175 /* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3183 if { (eval echo configure:3184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3185 eval "ac_cv_lib_$ac_lib_var=yes"
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3190 eval "ac_cv_lib_$ac_lib_var=no"
3193 LIBS="$ac_save_LIBS"
3196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3197 echo "$ac_t""yes" 1>&6
3198 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3199 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3200 cat >> confdefs.h <<EOF
3201 #define $ac_tr_lib 1
3207 echo "$ac_t""no" 1>&6
3210 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3211 echo "configure:3212: checking for main in -lnsl_s" >&5
3212 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 ac_save_LIBS="$LIBS"
3217 LIBS="-lnsl_s $LIBS"
3218 cat > conftest.$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3226 if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3228 eval "ac_cv_lib_$ac_lib_var=yes"
3230 echo "configure: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3233 eval "ac_cv_lib_$ac_lib_var=no"
3236 LIBS="$ac_save_LIBS"
3239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3240 echo "$ac_t""yes" 1>&6
3241 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3242 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3243 cat >> confdefs.h <<EOF
3244 #define $ac_tr_lib 1
3247 LIBS="-lnsl_s $LIBS"
3250 echo "$ac_t""no" 1>&6
3253 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3254 echo "configure:3255: checking for main in -lnsl" >&5
3255 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 ac_save_LIBS="$LIBS"
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3269 if { (eval echo configure:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3271 eval "ac_cv_lib_$ac_lib_var=yes"
3273 echo "configure: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3276 eval "ac_cv_lib_$ac_lib_var=no"
3279 LIBS="$ac_save_LIBS"
3282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3283 echo "$ac_t""yes" 1>&6
3284 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3285 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3286 cat >> confdefs.h <<EOF
3287 #define $ac_tr_lib 1
3293 echo "$ac_t""no" 1>&6
3296 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3297 echo "configure:3298: checking for socket in -linet" >&5
3298 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 ac_save_LIBS="$LIBS"
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 /* Override any gcc2 internal prototype to avoid an error. */
3308 /* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
3316 if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3318 eval "ac_cv_lib_$ac_lib_var=yes"
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3323 eval "ac_cv_lib_$ac_lib_var=no"
3326 LIBS="$ac_save_LIBS"
3329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3330 echo "$ac_t""yes" 1>&6
3331 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3332 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3333 cat >> confdefs.h <<EOF
3334 #define $ac_tr_lib 1
3340 echo "$ac_t""no" 1>&6
3343 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3344 echo "configure:3345: checking for main in -lgen" >&5
3345 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 ac_save_LIBS="$LIBS"
3351 cat > conftest.$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3359 if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3361 eval "ac_cv_lib_$ac_lib_var=yes"
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3366 eval "ac_cv_lib_$ac_lib_var=no"
3369 LIBS="$ac_save_LIBS"
3372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3373 echo "$ac_t""yes" 1>&6
3374 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3375 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3376 cat >> confdefs.h <<EOF
3377 #define $ac_tr_lib 1
3383 echo "$ac_t""no" 1>&6
3390 for ac_func in res_search
3392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3393 echo "configure:3394: checking for $ac_func" >&5
3394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 /* System header to define __stub macros and hopefully few prototypes,
3401 which can conflict with char $ac_func(); below. */
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3410 /* The GNU C library defines this for functions which it implements
3411 to always fail with ENOSYS. Some functions are actually named
3412 something starting with __ and the normal name is an alias. */
3413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3421 if { (eval echo configure:3422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3423 eval "ac_cv_func_$ac_func=yes"
3425 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3428 eval "ac_cv_func_$ac_func=no"
3433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3436 cat >> confdefs.h <<EOF
3437 #define $ac_tr_func 1
3441 echo "$ac_t""no" 1>&6
3445 if test $ac_cv_func_res_search = "no" ; then
3446 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3447 echo "configure:3448: checking for res_search in -lbind" >&5
3448 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 ac_save_LIBS="$LIBS"
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 /* Override any gcc2 internal prototype to avoid an error. */
3458 /* We use char because int might match the return type of a gcc2
3459 builtin and then its argument prototype would still apply. */
3466 if { (eval echo configure:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3468 eval "ac_cv_lib_$ac_lib_var=yes"
3470 echo "configure: failed program was:" >&5
3471 cat conftest.$ac_ext >&5
3473 eval "ac_cv_lib_$ac_lib_var=no"
3476 LIBS="$ac_save_LIBS"
3479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3480 echo "$ac_t""yes" 1>&6
3481 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3482 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3483 cat >> confdefs.h <<EOF
3484 #define $ac_tr_lib 1
3490 echo "$ac_t""no" 1>&6
3493 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3494 cat >> confdefs.h <<\EOF
3495 #define HAVE_RES_SEARCH 1
3499 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3500 echo "configure:3501: checking for res_search in -lresolv" >&5
3501 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 ac_save_LIBS="$LIBS"
3506 LIBS="-lresolv $LIBS"
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 /* Override any gcc2 internal prototype to avoid an error. */
3511 /* We use char because int might match the return type of a gcc2
3512 builtin and then its argument prototype would still apply. */
3519 if { (eval echo configure:3520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3521 eval "ac_cv_lib_$ac_lib_var=yes"
3523 echo "configure: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3526 eval "ac_cv_lib_$ac_lib_var=no"
3529 LIBS="$ac_save_LIBS"
3532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3533 echo "$ac_t""yes" 1>&6
3534 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3535 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3536 cat >> confdefs.h <<EOF
3537 #define $ac_tr_lib 1
3540 LIBS="-lresolv $LIBS"
3543 echo "$ac_t""no" 1>&6
3546 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3547 cat >> confdefs.h <<\EOF
3548 #define HAVE_RES_SEARCH 1
3555 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3556 echo "configure:3557: checking for sigset in -lV3" >&5
3557 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3561 ac_save_LIBS="$LIBS"
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3566 /* Override any gcc2 internal prototype to avoid an error. */
3567 /* We use char because int might match the return type of a gcc2
3568 builtin and then its argument prototype would still apply. */
3575 if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3577 eval "ac_cv_lib_$ac_lib_var=yes"
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3582 eval "ac_cv_lib_$ac_lib_var=no"
3585 LIBS="$ac_save_LIBS"
3588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3589 echo "$ac_t""yes" 1>&6
3590 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3591 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3592 cat >> confdefs.h <<EOF
3593 #define $ac_tr_lib 1
3599 echo "$ac_t""no" 1>&6
3603 for ac_hdr in regex.h
3605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3607 echo "configure:3608: checking for $ac_hdr" >&5
3608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3611 cat > conftest.$ac_ext <<EOF
3612 #line 3613 "configure"
3613 #include "confdefs.h"
3616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3617 { (eval echo configure:3618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3619 if test -z "$ac_err"; then
3621 eval "ac_cv_header_$ac_safe=yes"
3624 echo "configure: failed program was:" >&5
3625 cat conftest.$ac_ext >&5
3627 eval "ac_cv_header_$ac_safe=no"
3631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3632 echo "$ac_t""yes" 1>&6
3633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3634 cat >> confdefs.h <<EOF
3635 #define $ac_tr_hdr 1
3639 echo "$ac_t""no" 1>&6
3643 if test "$ac_cv_header_regex_h" != yes ; then
3644 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
3646 echo $ac_n "checking for regfree""... $ac_c" 1>&6
3647 echo "configure:3648: checking for regfree" >&5
3648 if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3651 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3654 /* System header to define __stub macros and hopefully few prototypes,
3655 which can conflict with char regfree(); below. */
3657 /* Override any gcc2 internal prototype to avoid an error. */
3658 /* We use char because int might match the return type of a gcc2
3659 builtin and then its argument prototype would still apply. */
3664 /* The GNU C library defines this for functions which it implements
3665 to always fail with ENOSYS. Some functions are actually named
3666 something starting with __ and the normal name is an alias. */
3667 #if defined (__stub_regfree) || defined (__stub___regfree)
3675 if { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3677 eval "ac_cv_func_regfree=yes"
3679 echo "configure: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3682 eval "ac_cv_func_regfree=no"
3687 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
3688 echo "$ac_t""yes" 1>&6
3691 echo "$ac_t""no" 1>&6
3692 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
3696 echo $ac_n "checking for select""... $ac_c" 1>&6
3697 echo "configure:3698: checking for select" >&5
3698 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3701 cat > conftest.$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3704 /* System header to define __stub macros and hopefully few prototypes,
3705 which can conflict with char select(); below. */
3707 /* Override any gcc2 internal prototype to avoid an error. */
3708 /* We use char because int might match the return type of a gcc2
3709 builtin and then its argument prototype would still apply. */
3714 /* The GNU C library defines this for functions which it implements
3715 to always fail with ENOSYS. Some functions are actually named
3716 something starting with __ and the normal name is an alias. */
3717 #if defined (__stub_select) || defined (__stub___select)
3725 if { (eval echo configure:3726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3727 eval "ac_cv_func_select=yes"
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3732 eval "ac_cv_func_select=no"
3737 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3738 echo "$ac_t""yes" 1>&6
3741 echo "$ac_t""no" 1>&6
3742 { echo "configure: error: select() required." 1>&2; exit 1; }
3746 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3747 echo "configure:3748: checking types of arguments for select()" >&5
3748 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3751 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3755 echo $ac_n "(cached) $ac_c" 1>&6
3757 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3758 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3759 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #ifdef HAVE_SYS_TYPES_H
3764 #include <sys/types.h>
3766 #ifdef HAVE_SYS_TIME_H
3767 #include <sys/time.h>
3769 #ifdef HAVE_SYS_SELECT_H
3770 #include <sys/select.h>
3772 #ifdef HAVE_SYS_SOCKET_H
3773 #include <sys/socket.h>
3775 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
3780 if { (eval echo configure:3781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3782 ac_not_found=no ; break 3
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3799 if test "$ac_not_found" = yes; then
3800 ac_cv_func_select_arg1=int
3801 ac_cv_func_select_arg234='int *'
3802 ac_cv_func_select_arg5='struct timeval *'
3804 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3805 cat >> confdefs.h <<EOF
3806 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3809 cat >> confdefs.h <<EOF
3810 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3813 cat >> confdefs.h <<EOF
3814 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3821 if test $ol_enable_ldapd != no ; then
3822 echo "configure: warning: ldapd support deprecated. Manual intervention required." 1>&2
3824 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3825 echo "configure:3826: checking for main in -lxtpp" >&5
3826 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 ac_save_LIBS="$LIBS"
3831 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3840 if { (eval echo configure:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3842 eval "ac_cv_lib_$ac_lib_var=yes"
3844 echo "configure: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3847 eval "ac_cv_lib_$ac_lib_var=no"
3850 LIBS="$ac_save_LIBS"
3853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3857 cat >> confdefs.h <<\EOF
3861 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3864 echo "$ac_t""no" 1>&6
3868 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3869 echo "configure:3870: checking for main in -ldsap" >&5
3870 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3874 ac_save_LIBS="$LIBS"
3875 LIBS="-ldsap -lisode $LIBS"
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3886 eval "ac_cv_lib_$ac_lib_var=yes"
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 eval "ac_cv_lib_$ac_lib_var=no"
3894 LIBS="$ac_save_LIBS"
3897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3898 echo "$ac_t""yes" 1>&6
3901 cat >> confdefs.h <<\EOF
3905 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3908 echo "$ac_t""no" 1>&6
3912 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3913 echo "configure:3914: checking for main in -lisode" >&5
3914 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3918 ac_save_LIBS="$LIBS"
3919 LIBS="-lisode $LIBS"
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3928 if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3930 eval "ac_cv_lib_$ac_lib_var=yes"
3932 echo "configure: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3935 eval "ac_cv_lib_$ac_lib_var=no"
3938 LIBS="$ac_save_LIBS"
3941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3942 echo "$ac_t""yes" 1>&6
3945 cat >> confdefs.h <<\EOF
3946 #define HAVE_ISODE 1
3949 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3952 echo "$ac_t""no" 1>&6
3958 if test $ol_link_isode != no; then
3959 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3960 echo "configure:3961: checking for main in -lpp" >&5
3961 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 ac_save_LIBS="$LIBS"
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3975 if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3977 eval "ac_cv_lib_$ac_lib_var=yes"
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3982 eval "ac_cv_lib_$ac_lib_var=no"
3985 LIBS="$ac_save_LIBS"
3988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3991 cat >> confdefs.h <<\EOF
3995 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3998 echo "$ac_t""no" 1>&6
4003 # Extract the first word of "pepsy", so it can be a program name with args.
4004 set dummy pepsy; ac_word=$2
4005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4006 echo "configure:4007: checking for $ac_word" >&5
4007 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4012 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
4015 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
4018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4020 for ac_dir in $ac_dummy; do
4021 test -z "$ac_dir" && ac_dir=.
4022 if test -f $ac_dir/$ac_word; then
4023 ac_cv_path_PEPSY="$ac_dir/$ac_word"
4031 PEPSY="$ac_cv_path_PEPSY"
4032 if test -n "$PEPSY"; then
4033 echo "$ac_t""$PEPSY" 1>&6
4035 echo "$ac_t""no" 1>&6
4042 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
4043 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
4045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4047 echo "configure:4048: checking for $ac_hdr" >&5
4048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4057 { (eval echo configure:4058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4059 if test -z "$ac_err"; then
4061 eval "ac_cv_header_$ac_safe=yes"
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4067 eval "ac_cv_header_$ac_safe=no"
4071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4072 echo "$ac_t""yes" 1>&6
4073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4074 cat >> confdefs.h <<EOF
4075 #define $ac_tr_hdr 1
4079 echo "$ac_t""no" 1>&6
4084 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4085 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4086 echo "configure:4087: checking for main in -lkrb4" >&5
4087 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4091 ac_save_LIBS="$LIBS"
4092 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4101 if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4103 eval "ac_cv_lib_$ac_lib_var=yes"
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4108 eval "ac_cv_lib_$ac_lib_var=no"
4111 LIBS="$ac_save_LIBS"
4114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4115 echo "$ac_t""yes" 1>&6
4118 echo "$ac_t""no" 1>&6
4123 if test $have_k5 = yes ; then
4124 ol_with_kerberos=found
4125 ol_link_kerberos=yes
4127 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4129 LIBS="$KRB_LIBS $LIBS"
4131 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4132 echo "configure:4133: checking for des_debug in Kerberos libraries" >&5
4133 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4138 LIBS="$KRB_LIBS $LIBS"
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4143 #include <kerberosIV/krb.h>
4144 #include <kerberosIV/des.h>
4145 extern int des_debug;
4153 if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4155 ol_cv_var_des_debug=yes
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4160 ol_cv_var_des_debug=no
4167 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4169 if test $ol_cv_var_des_debug = yes ; then
4170 cat >> confdefs.h <<\EOF
4171 #define HAVE_DES_DEBUG 1
4181 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4182 for ac_hdr in krb.h des.h
4184 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4186 echo "configure:4187: checking for $ac_hdr" >&5
4187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4196 { (eval echo configure:4197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4198 if test -z "$ac_err"; then
4200 eval "ac_cv_header_$ac_safe=yes"
4203 echo "configure: failed program was:" >&5
4204 cat conftest.$ac_ext >&5
4206 eval "ac_cv_header_$ac_safe=no"
4210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4211 echo "$ac_t""yes" 1>&6
4212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4213 cat >> confdefs.h <<EOF
4214 #define $ac_tr_hdr 1
4218 echo "$ac_t""no" 1>&6
4223 if test $ac_cv_header_krb_h = yes ; then
4224 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4225 echo "configure:4226: checking for main in -lkrb" >&5
4226 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4228 echo $ac_n "(cached) $ac_c" 1>&6
4230 ac_save_LIBS="$LIBS"
4231 LIBS="-lkrb -ldes $LIBS"
4232 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure"
4234 #include "confdefs.h"
4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4242 eval "ac_cv_lib_$ac_lib_var=yes"
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4247 eval "ac_cv_lib_$ac_lib_var=no"
4250 LIBS="$ac_save_LIBS"
4253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4254 echo "$ac_t""yes" 1>&6
4257 echo "$ac_t""no" 1>&6
4262 if test $have_k4 = yes ; then
4263 ol_with_kerberos=found
4264 ol_link_kerberos=yes
4266 KRB_LIBS="-lkrb -ldes"
4271 if test $ol_link_kerberos = yes ; then
4272 cat >> confdefs.h <<\EOF
4273 #define HAVE_KERBEROS 1
4279 if test $ol_with_tls != no ; then
4283 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4285 echo "configure:4286: checking for $ac_hdr" >&5
4286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4295 { (eval echo configure:4296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4297 if test -z "$ac_err"; then
4299 eval "ac_cv_header_$ac_safe=yes"
4302 echo "configure: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4305 eval "ac_cv_header_$ac_safe=no"
4309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4310 echo "$ac_t""yes" 1>&6
4311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4312 cat >> confdefs.h <<EOF
4313 #define $ac_tr_hdr 1
4317 echo "$ac_t""no" 1>&6
4322 if test $ac_cv_header_ssl_h = yes ; then
4323 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4324 echo "configure:4325: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4325 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4329 ac_save_LIBS="$LIBS"
4330 LIBS="-lssl -lcrypto $LIBS"
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 /* Override any gcc2 internal prototype to avoid an error. */
4335 /* We use char because int might match the return type of a gcc2
4336 builtin and then its argument prototype would still apply. */
4337 char SSLeay_add_ssl_algorithms();
4340 SSLeay_add_ssl_algorithms()
4343 if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4345 eval "ac_cv_lib_$ac_lib_var=yes"
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4350 eval "ac_cv_lib_$ac_lib_var=no"
4353 LIBS="$ac_save_LIBS"
4356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4357 echo "$ac_t""yes" 1>&6
4361 echo "$ac_t""no" 1>&6
4366 if test $have_ssleay = no ; then
4367 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4368 echo "configure:4369: checking for ssl3_accept in -lssl" >&5
4369 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 ac_save_LIBS="$LIBS"
4374 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4375 cat > conftest.$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4389 eval "ac_cv_lib_$ac_lib_var=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 eval "ac_cv_lib_$ac_lib_var=no"
4397 LIBS="$ac_save_LIBS"
4400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4405 echo "$ac_t""no" 1>&6
4411 if test $have_ssleay = yes ; then
4415 cat >> confdefs.h <<\EOF
4416 #define HAVE_SSLEAY 1
4420 if test $need_rsaref = yes; then
4421 cat >> confdefs.h <<\EOF
4422 #define HAVE_RSAREF 1
4426 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4428 TLS_LIBS="-lssl -lcrypto"
4434 if test $ol_link_tls = yes ; then
4435 cat >> confdefs.h <<\EOF
4443 gethostbyname_r gethostbyaddr_r \
4446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4447 echo "configure:4448: checking for $ac_func" >&5
4448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4454 /* System header to define __stub macros and hopefully few prototypes,
4455 which can conflict with char $ac_func(); below. */
4457 /* Override any gcc2 internal prototype to avoid an error. */
4458 /* We use char because int might match the return type of a gcc2
4459 builtin and then its argument prototype would still apply. */
4464 /* The GNU C library defines this for functions which it implements
4465 to always fail with ENOSYS. Some functions are actually named
4466 something starting with __ and the normal name is an alias. */
4467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4475 if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4477 eval "ac_cv_func_$ac_func=yes"
4479 echo "configure: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4482 eval "ac_cv_func_$ac_func=no"
4487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4488 echo "$ac_t""yes" 1>&6
4489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4490 cat >> confdefs.h <<EOF
4491 #define $ac_tr_func 1
4495 echo "$ac_t""no" 1>&6
4500 if test "$ac_cv_func_ctime_r" = no ; then
4501 ol_cv_func_ctime_r_nargs=0
4503 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4504 echo "configure:4505: checking number of arguments of ctime_r" >&5
4505 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4506 echo $ac_n "(cached) $ac_c" 1>&6
4508 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4513 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4516 if { (eval echo configure:4517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4518 ol_cv_func_ctime_r_nargs=3
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4523 cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4528 time_t ti; char *buffer; ctime_r(&ti,buffer);
4531 if { (eval echo configure:4532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4533 ol_cv_func_ctime_r_nargs=2
4535 echo "configure: failed program was:" >&5
4536 cat conftest.$ac_ext >&5
4538 ol_cv_func_ctime_r_nargs=0
4545 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4546 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4547 cat >> confdefs.h <<EOF
4548 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4555 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4556 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4557 echo "configure:4558: checking number of arguments of gethostbyname_r" >&5
4558 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 #include <sys/types.h>
4565 #include <sys/socket.h>
4566 #include <netinet/in.h>
4568 #define BUFSIZE (sizeof(struct hostent)+10)
4570 struct hostent hent; char buffer[BUFSIZE];
4571 int bufsize=BUFSIZE;int h_errno;
4572 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4573 buffer, bufsize, &h_errno);
4576 if { (eval echo configure:4577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4578 ol_cv_func_gethostbyname_r_nargs=5
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4583 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4586 #include <sys/types.h>
4587 #include <sys/socket.h>
4588 #include <netinet/in.h>
4590 #define BUFSIZE (sizeof(struct hostent)+10)
4592 struct hostent hent;struct hostent *rhent;
4593 char buffer[BUFSIZE];
4594 int bufsize=BUFSIZE;int h_errno;
4595 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4599 if { (eval echo configure:4600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4601 ol_cv_func_gethostbyname_r_nargs=6
4603 echo "configure: failed program was:" >&5
4604 cat conftest.$ac_ext >&5
4606 ol_cv_func_gethostbyname_r_nargs=0
4613 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4614 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4615 cat >> confdefs.h <<EOF
4616 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4622 ol_cv_func_gethostbyname_r_nargs=0
4625 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4626 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4627 echo "configure:4628: checking number of arguments of gethostbyaddr_r" >&5
4628 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 cat > conftest.$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4634 #include <sys/types.h>
4635 #include <sys/socket.h>
4636 #include <netinet/in.h>
4638 #define BUFSIZE (sizeof(struct hostent)+10)
4640 struct hostent hent; char buffer[BUFSIZE];
4642 size_t alen=sizeof(struct in_addr);
4643 int bufsize=BUFSIZE;int h_errno;
4644 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4645 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4648 if { (eval echo configure:4649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4650 ol_cv_func_gethostbyaddr_r_nargs=7
4652 echo "configure: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4655 cat > conftest.$ac_ext <<EOF
4656 #line 4657 "configure"
4657 #include "confdefs.h"
4658 #include <sys/types.h>
4659 #include <sys/socket.h>
4660 #include <netinet/in.h>
4662 #define BUFSIZE (sizeof(struct hostent)+10)
4664 struct hostent hent;
4665 struct hostent *rhent; char buffer[BUFSIZE];
4667 size_t alen=sizeof(struct in_addr);
4668 int bufsize=BUFSIZE;int h_errno;
4669 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4670 alen, AF_INET, &hent, buffer, bufsize,
4674 if { (eval echo configure:4675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4676 ol_cv_func_gethostbyaddr_r_nargs=8
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4681 ol_cv_func_gethostbyaddr_r_nargs=0
4688 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4689 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4690 cat >> confdefs.h <<EOF
4691 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4697 ol_cv_func_gethostbyaddr_r_nargs=0
4700 if test "$ac_cv_func_ctime_r" = yes \
4701 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4702 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4703 -a "$ac_cv_func_gethostbyname_r" = yes \
4704 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4705 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4706 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4707 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4708 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4711 cat >> confdefs.h <<\EOF
4712 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4718 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4719 -o $ol_with_threads = posix ; then
4721 for ac_hdr in pthread.h sched.h
4723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4725 echo "configure:4726: checking for $ac_hdr" >&5
4726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4727 echo $ac_n "(cached) $ac_c" 1>&6
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4735 { (eval echo configure:4736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4737 if test -z "$ac_err"; then
4739 eval "ac_cv_header_$ac_safe=yes"
4742 echo "configure: failed program was:" >&5
4743 cat conftest.$ac_ext >&5
4745 eval "ac_cv_header_$ac_safe=no"
4749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4750 echo "$ac_t""yes" 1>&6
4751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4752 cat >> confdefs.h <<EOF
4753 #define $ac_tr_hdr 1
4757 echo "$ac_t""no" 1>&6
4762 if test $ac_cv_header_pthread_h = yes ; then
4763 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4764 echo "configure:4765: checking POSIX thread version" >&5
4765 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4769 cat > conftest.$ac_ext <<EOF
4770 #line 4771 "configure"
4771 #include "confdefs.h"
4773 # include <pthread.h>
4774 /* this check could be improved */
4775 # ifdef PTHREAD_ONCE_INIT
4776 pthread_version_final
4780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4781 egrep "pthread_version_final" >/dev/null 2>&1; then
4783 ol_pthread_final=yes
4791 cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4795 # include <pthread.h>
4796 /* this check could be improved */
4797 # ifdef pthread_once_init
4798 pthread_version_draft4
4802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4803 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4805 ol_pthread_draft4=yes
4808 ol_pthread_draft4=no
4813 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4814 ol_cv_pthread_version=final
4815 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4816 ol_cv_pthread_version=draft4
4818 ol_cv_pthread_version=unknown
4823 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4826 if test $ol_cv_pthread_version = final ; then
4827 cat >> confdefs.h <<\EOF
4828 #define HAVE_PTHREADS_FINAL 1
4831 elif test $ol_cv_pthread_version = draft4 ; then
4832 cat >> confdefs.h <<\EOF
4833 #define HAVE_PTHREADS_D4 1
4837 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4840 # consider threads found
4841 ol_with_threads=found
4844 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4845 echo "configure:4846: checking for LinuxThreads pthread.h" >&5
4846 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4852 #include <pthread.h>
4854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4855 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
4857 ol_cv_header_linux_threads=yes
4860 ol_cv_header_linux_threads=no
4867 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
4868 if test $ol_cv_header_linux_threads = yes; then
4869 cat >> confdefs.h <<\EOF
4870 #define HAVE_LINUX_THREADS 1
4877 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4878 echo "configure:4879: checking for pthread_create in default libraries" >&5
4879 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4883 if test "$cross_compiling" = yes; then
4884 ol_cv_pthread_create=yes
4886 cat > conftest.$ac_ext <<EOF
4887 #line 4888 "configure"
4888 #include "confdefs.h"
4890 #include <pthread.h>
4892 #define NULL (void*)0
4895 static void *task(p)
4898 return (void *) (p == NULL);
4901 int main(argc, argv)
4908 /* make sure pthread_create() isn't just a stub */
4909 #if HAVE_PTHREADS_D4
4910 status = pthread_create(&t, pthread_attr_default, task, NULL);
4912 status = pthread_create(&t, NULL, task, NULL);
4915 if( status ) return status;
4917 /* make sure pthread_detach() isn't just a stub */
4918 #if HAVE_PTHREADS_D4
4919 status = pthread_detach( &t );
4921 status = pthread_detach( t );
4924 if( status ) return status;
4930 if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4932 ol_cv_pthread_create=yes
4934 echo "configure: failed program was:" >&5
4935 cat conftest.$ac_ext >&5
4937 ol_cv_pthread_create=no
4944 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4946 if test $ol_cv_pthread_create != no ; then
4947 ol_link_threads=posix
4951 # Pthread try link: -mt (ol_cv_pthread_mt)
4952 if test "$ol_link_threads" = no ; then
4954 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
4955 echo "configure:4956: checking for pthread link with -mt" >&5
4956 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4968 #include <pthread.h>
4970 #define NULL (void*)0
4977 #if HAVE_PTHREADS_D4
4978 pthread_create(&t, pthread_attr_default, NULL, NULL);
4979 pthread_detach( &t );
4981 pthread_create(&t, NULL, NULL, NULL);
4982 pthread_detach( t );
4984 #ifdef HAVE_LINUX_THREADS
4985 pthread_kill_other_threads_np();
4990 if { (eval echo configure:4991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4992 ol_cv_pthread_mt=yes
4994 echo "configure: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
5006 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
5008 if test $ol_cv_pthread_mt = yes ; then
5009 ol_link_pthreads="-mt"
5010 ol_link_threads=posix
5014 # Pthread try link: -kthread (ol_cv_pthread_kthread)
5015 if test "$ol_link_threads" = no ; then
5017 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
5018 echo "configure:5019: checking for pthread link with -kthread" >&5
5019 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5025 LIBS="-kthread $LIBS"
5027 cat > conftest.$ac_ext <<EOF
5028 #line 5029 "configure"
5029 #include "confdefs.h"
5031 #include <pthread.h>
5033 #define NULL (void*)0
5040 #if HAVE_PTHREADS_D4
5041 pthread_create(&t, pthread_attr_default, NULL, NULL);
5042 pthread_detach( &t );
5044 pthread_create(&t, NULL, NULL, NULL);
5045 pthread_detach( t );
5047 #ifdef HAVE_LINUX_THREADS
5048 pthread_kill_other_threads_np();
5053 if { (eval echo configure:5054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5055 ol_cv_pthread_kthread=yes
5057 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5060 ol_cv_pthread_kthread=no
5069 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5071 if test $ol_cv_pthread_kthread = yes ; then
5072 ol_link_pthreads="-kthread"
5073 ol_link_threads=posix
5077 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5078 if test "$ol_link_threads" = no ; then
5080 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5081 echo "configure:5082: checking for pthread link with -pthread" >&5
5082 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5088 LIBS="-pthread $LIBS"
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5094 #include <pthread.h>
5096 #define NULL (void*)0
5103 #if HAVE_PTHREADS_D4
5104 pthread_create(&t, pthread_attr_default, NULL, NULL);
5105 pthread_detach( &t );
5107 pthread_create(&t, NULL, NULL, NULL);
5108 pthread_detach( t );
5110 #ifdef HAVE_LINUX_THREADS
5111 pthread_kill_other_threads_np();
5116 if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5118 ol_cv_pthread_pthread=yes
5120 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5123 ol_cv_pthread_pthread=no
5132 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5134 if test $ol_cv_pthread_pthread = yes ; then
5135 ol_link_pthreads="-pthread"
5136 ol_link_threads=posix
5140 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5141 if test "$ol_link_threads" = no ; then
5143 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5144 echo "configure:5145: checking for pthread link with -pthreads" >&5
5145 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5146 echo $ac_n "(cached) $ac_c" 1>&6
5151 LIBS="-pthreads $LIBS"
5153 cat > conftest.$ac_ext <<EOF
5154 #line 5155 "configure"
5155 #include "confdefs.h"
5157 #include <pthread.h>
5159 #define NULL (void*)0
5166 #if HAVE_PTHREADS_D4
5167 pthread_create(&t, pthread_attr_default, NULL, NULL);
5168 pthread_detach( &t );
5170 pthread_create(&t, NULL, NULL, NULL);
5171 pthread_detach( t );
5173 #ifdef HAVE_LINUX_THREADS
5174 pthread_kill_other_threads_np();
5179 if { (eval echo configure:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5181 ol_cv_pthread_pthreads=yes
5183 echo "configure: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5186 ol_cv_pthread_pthreads=no
5195 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5197 if test $ol_cv_pthread_pthreads = yes ; then
5198 ol_link_pthreads="-pthreads"
5199 ol_link_threads=posix
5203 # Pthread try link: -thread (ol_cv_pthread_thread)
5204 if test "$ol_link_threads" = no ; then
5206 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5207 echo "configure:5208: checking for pthread link with -thread" >&5
5208 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5214 LIBS="-thread $LIBS"
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5220 #include <pthread.h>
5222 #define NULL (void*)0
5229 #if HAVE_PTHREADS_D4
5230 pthread_create(&t, pthread_attr_default, NULL, NULL);
5231 pthread_detach( &t );
5233 pthread_create(&t, NULL, NULL, NULL);
5234 pthread_detach( t );
5236 #ifdef HAVE_LINUX_THREADS
5237 pthread_kill_other_threads_np();
5242 if { (eval echo configure:5243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5244 ol_cv_pthread_thread=yes
5246 echo "configure: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5249 ol_cv_pthread_thread=no
5258 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5260 if test $ol_cv_pthread_thread = yes ; then
5261 ol_link_pthreads="-thread"
5262 ol_link_threads=posix
5267 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5268 if test "$ol_link_threads" = no ; then
5269 # try -lpthread -lmach -lexc -lc_r
5270 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5271 echo "configure:5272: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5272 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5278 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5280 cat > conftest.$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5284 #include <pthread.h>
5286 #define NULL (void*)0
5293 #if HAVE_PTHREADS_D4
5294 pthread_create(&t, pthread_attr_default, NULL, NULL);
5295 pthread_detach( &t );
5297 pthread_create(&t, NULL, NULL, NULL);
5298 pthread_detach( t );
5300 #ifdef HAVE_LINUX_THREADS
5301 pthread_kill_other_threads_np();
5306 if { (eval echo configure:5307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5308 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5310 echo "configure: failed program was:" >&5
5311 cat conftest.$ac_ext >&5
5313 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5322 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5324 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5325 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5326 ol_link_threads=posix
5330 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5331 if test "$ol_link_threads" = no ; then
5332 # try -lpthread -lmach -lexc
5333 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5334 echo "configure:5335: checking for pthread link with -lpthread -lmach -lexc" >&5
5335 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5336 echo $ac_n "(cached) $ac_c" 1>&6
5341 LIBS="-lpthread -lmach -lexc $LIBS"
5343 cat > conftest.$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5347 #include <pthread.h>
5349 #define NULL (void*)0
5356 #if HAVE_PTHREADS_D4
5357 pthread_create(&t, pthread_attr_default, NULL, NULL);
5358 pthread_detach( &t );
5360 pthread_create(&t, NULL, NULL, NULL);
5361 pthread_detach( t );
5363 #ifdef HAVE_LINUX_THREADS
5364 pthread_kill_other_threads_np();
5369 if { (eval echo configure:5370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5371 ol_cv_pthread_lpthread_lmach_lexc=yes
5373 echo "configure: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5376 ol_cv_pthread_lpthread_lmach_lexc=no
5385 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5387 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5388 ol_link_pthreads="-lpthread -lmach -lexc"
5389 ol_link_threads=posix
5394 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5395 if test "$ol_link_threads" = no ; then
5396 # try -lpthread -Wl,-woff,85
5397 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5398 echo "configure:5399: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5399 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5400 echo $ac_n "(cached) $ac_c" 1>&6
5405 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5407 cat > conftest.$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5411 #include <pthread.h>
5413 #define NULL (void*)0
5420 #if HAVE_PTHREADS_D4
5421 pthread_create(&t, pthread_attr_default, NULL, NULL);
5422 pthread_detach( &t );
5424 pthread_create(&t, NULL, NULL, NULL);
5425 pthread_detach( t );
5427 #ifdef HAVE_LINUX_THREADS
5428 pthread_kill_other_threads_np();
5433 if { (eval echo configure:5434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 ol_cv_pthread_lib_lpthread_woff=yes
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5440 ol_cv_pthread_lib_lpthread_woff=no
5449 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5451 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5452 ol_link_pthreads="-lpthread -Wl,-woff,85"
5453 ol_link_threads=posix
5458 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5459 if test "$ol_link_threads" = no ; then
5461 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5462 echo "configure:5463: checking for pthread link with -lpthread" >&5
5463 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5469 LIBS="-lpthread $LIBS"
5471 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5475 #include <pthread.h>
5477 #define NULL (void*)0
5484 #if HAVE_PTHREADS_D4
5485 pthread_create(&t, pthread_attr_default, NULL, NULL);
5486 pthread_detach( &t );
5488 pthread_create(&t, NULL, NULL, NULL);
5489 pthread_detach( t );
5491 #ifdef HAVE_LINUX_THREADS
5492 pthread_kill_other_threads_np();
5497 if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5499 ol_cv_pthread_lpthread=yes
5501 echo "configure: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5504 ol_cv_pthread_lpthread=no
5513 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5515 if test $ol_cv_pthread_lpthread = yes ; then
5516 ol_link_pthreads="-lpthread"
5517 ol_link_threads=posix
5521 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5522 if test "$ol_link_threads" = no ; then
5524 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5525 echo "configure:5526: checking for pthread link with -lc_r" >&5
5526 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5527 echo $ac_n "(cached) $ac_c" 1>&6
5534 cat > conftest.$ac_ext <<EOF
5535 #line 5536 "configure"
5536 #include "confdefs.h"
5538 #include <pthread.h>
5540 #define NULL (void*)0
5547 #if HAVE_PTHREADS_D4
5548 pthread_create(&t, pthread_attr_default, NULL, NULL);
5549 pthread_detach( &t );
5551 pthread_create(&t, NULL, NULL, NULL);
5552 pthread_detach( t );
5554 #ifdef HAVE_LINUX_THREADS
5555 pthread_kill_other_threads_np();
5560 if { (eval echo configure:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5562 ol_cv_pthread_lc_r=yes
5564 echo "configure: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5567 ol_cv_pthread_lc_r=no
5576 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5578 if test $ol_cv_pthread_lc_r = yes ; then
5579 ol_link_pthreads="-lc_r"
5580 ol_link_threads=posix
5585 # Pthread try link: -threads (ol_cv_pthread_threads)
5586 if test "$ol_link_threads" = no ; then
5588 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5589 echo "configure:5590: checking for pthread link with -threads" >&5
5590 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5591 echo $ac_n "(cached) $ac_c" 1>&6
5596 LIBS="-threads $LIBS"
5598 cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5602 #include <pthread.h>
5604 #define NULL (void*)0
5611 #if HAVE_PTHREADS_D4
5612 pthread_create(&t, pthread_attr_default, NULL, NULL);
5613 pthread_detach( &t );
5615 pthread_create(&t, NULL, NULL, NULL);
5616 pthread_detach( t );
5618 #ifdef HAVE_LINUX_THREADS
5619 pthread_kill_other_threads_np();
5624 if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5626 ol_cv_pthread_threads=yes
5628 echo "configure: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5631 ol_cv_pthread_threads=no
5640 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5642 if test $ol_cv_pthread_threads = yes ; then
5643 ol_link_pthreads="-threads"
5644 ol_link_threads=posix
5649 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5650 if test "$ol_link_threads" = no ; then
5651 # try -lpthreads -lmach -lexc -lc_r
5652 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5653 echo "configure:5654: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5654 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5655 echo $ac_n "(cached) $ac_c" 1>&6
5660 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5662 cat > conftest.$ac_ext <<EOF
5663 #line 5664 "configure"
5664 #include "confdefs.h"
5666 #include <pthread.h>
5668 #define NULL (void*)0
5675 #if HAVE_PTHREADS_D4
5676 pthread_create(&t, pthread_attr_default, NULL, NULL);
5677 pthread_detach( &t );
5679 pthread_create(&t, NULL, NULL, NULL);
5680 pthread_detach( t );
5682 #ifdef HAVE_LINUX_THREADS
5683 pthread_kill_other_threads_np();
5688 if { (eval echo configure:5689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5690 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5692 echo "configure: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5695 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5704 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5706 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5707 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5708 ol_link_threads=posix
5712 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5713 if test "$ol_link_threads" = no ; then
5714 # try -lpthreads -lmach -lexc
5715 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5716 echo "configure:5717: checking for pthread link with -lpthreads -lmach -lexc" >&5
5717 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5723 LIBS="-lpthreads -lmach -lexc $LIBS"
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5729 #include <pthread.h>
5731 #define NULL (void*)0
5738 #if HAVE_PTHREADS_D4
5739 pthread_create(&t, pthread_attr_default, NULL, NULL);
5740 pthread_detach( &t );
5742 pthread_create(&t, NULL, NULL, NULL);
5743 pthread_detach( t );
5745 #ifdef HAVE_LINUX_THREADS
5746 pthread_kill_other_threads_np();
5751 if { (eval echo configure:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5753 ol_cv_pthread_lpthreads_lmach_lexc=yes
5755 echo "configure: failed program was:" >&5
5756 cat conftest.$ac_ext >&5
5758 ol_cv_pthread_lpthreads_lmach_lexc=no
5767 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5769 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5770 ol_link_pthreads="-lpthreads -lmach -lexc"
5771 ol_link_threads=posix
5775 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5776 if test "$ol_link_threads" = no ; then
5777 # try -lpthreads -lexc
5778 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5779 echo "configure:5780: checking for pthread link with -lpthreads -lexc" >&5
5780 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5781 echo $ac_n "(cached) $ac_c" 1>&6
5786 LIBS="-lpthreads -lexc $LIBS"
5788 cat > conftest.$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5792 #include <pthread.h>
5794 #define NULL (void*)0
5801 #if HAVE_PTHREADS_D4
5802 pthread_create(&t, pthread_attr_default, NULL, NULL);
5803 pthread_detach( &t );
5805 pthread_create(&t, NULL, NULL, NULL);
5806 pthread_detach( t );
5808 #ifdef HAVE_LINUX_THREADS
5809 pthread_kill_other_threads_np();
5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5816 ol_cv_pthread_lpthreads_lexc=yes
5818 echo "configure: failed program was:" >&5
5819 cat conftest.$ac_ext >&5
5821 ol_cv_pthread_lpthreads_lexc=no
5830 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5832 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5833 ol_link_pthreads="-lpthreads -lexc"
5834 ol_link_threads=posix
5839 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5840 if test "$ol_link_threads" = no ; then
5842 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5843 echo "configure:5844: checking for pthread link with -lpthreads" >&5
5844 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5850 LIBS="-lpthreads $LIBS"
5852 cat > conftest.$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5856 #include <pthread.h>
5858 #define NULL (void*)0
5865 #if HAVE_PTHREADS_D4
5866 pthread_create(&t, pthread_attr_default, NULL, NULL);
5867 pthread_detach( &t );
5869 pthread_create(&t, NULL, NULL, NULL);
5870 pthread_detach( t );
5872 #ifdef HAVE_LINUX_THREADS
5873 pthread_kill_other_threads_np();
5878 if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880 ol_cv_pthread_lib_lpthreads=yes
5882 echo "configure: failed program was:" >&5
5883 cat conftest.$ac_ext >&5
5885 ol_cv_pthread_lib_lpthreads=no
5894 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
5896 if test $ol_cv_pthread_lib_lpthreads = yes ; then
5897 ol_link_pthreads="-lpthreads"
5898 ol_link_threads=posix
5903 if test $ol_link_threads != no ; then
5904 cat >> confdefs.h <<\EOF
5905 #define HAVE_PTHREADS 1
5909 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
5911 save_CPPFLAGS="$CPPFLAGS"
5913 LIBS="$LTHREAD_LIBS $LIBS"
5915 for ac_func in sched_yield pthread_yield
5917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5918 echo "configure:5919: checking for $ac_func" >&5
5919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5922 cat > conftest.$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5925 /* System header to define __stub macros and hopefully few prototypes,
5926 which can conflict with char $ac_func(); below. */
5928 /* Override any gcc2 internal prototype to avoid an error. */
5929 /* We use char because int might match the return type of a gcc2
5930 builtin and then its argument prototype would still apply. */
5935 /* The GNU C library defines this for functions which it implements
5936 to always fail with ENOSYS. Some functions are actually named
5937 something starting with __ and the normal name is an alias. */
5938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5946 if { (eval echo configure:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5948 eval "ac_cv_func_$ac_func=yes"
5950 echo "configure: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5953 eval "ac_cv_func_$ac_func=no"
5958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5959 echo "$ac_t""yes" 1>&6
5960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5961 cat >> confdefs.h <<EOF
5962 #define $ac_tr_func 1
5966 echo "$ac_t""no" 1>&6
5971 if test $ac_cv_func_sched_yield = no -a \
5972 $ac_cv_func_pthread_yield = no ; then
5973 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5974 echo "configure:5975: checking for sched_yield in -lrt" >&5
5975 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5979 ac_save_LIBS="$LIBS"
5981 cat > conftest.$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 /* Override any gcc2 internal prototype to avoid an error. */
5985 /* We use char because int might match the return type of a gcc2
5986 builtin and then its argument prototype would still apply. */
5993 if { (eval echo configure:5994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5995 eval "ac_cv_lib_$ac_lib_var=yes"
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
6000 eval "ac_cv_lib_$ac_lib_var=no"
6003 LIBS="$ac_save_LIBS"
6006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6007 echo "$ac_t""yes" 1>&6
6008 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
6009 cat >> confdefs.h <<\EOF
6010 #define HAVE_SCHED_YIELD 1
6013 ac_cv_func_sched_yield=yes
6015 echo "$ac_t""no" 1>&6
6016 ac_cv_func_sched_yield=no
6020 if test $ac_cv_func_sched_yield = no -a \
6021 $ac_cv_func_pthread_yield = no ; then
6022 for ac_func in thr_yield
6024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6025 echo "configure:6026: checking for $ac_func" >&5
6026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6027 echo $ac_n "(cached) $ac_c" 1>&6
6029 cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6032 /* System header to define __stub macros and hopefully few prototypes,
6033 which can conflict with char $ac_func(); below. */
6035 /* Override any gcc2 internal prototype to avoid an error. */
6036 /* We use char because int might match the return type of a gcc2
6037 builtin and then its argument prototype would still apply. */
6042 /* The GNU C library defines this for functions which it implements
6043 to always fail with ENOSYS. Some functions are actually named
6044 something starting with __ and the normal name is an alias. */
6045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6053 if { (eval echo configure:6054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6055 eval "ac_cv_func_$ac_func=yes"
6057 echo "configure: failed program was:" >&5
6058 cat conftest.$ac_ext >&5
6060 eval "ac_cv_func_$ac_func=no"
6065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6066 echo "$ac_t""yes" 1>&6
6067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6068 cat >> confdefs.h <<EOF
6069 #define $ac_tr_func 1
6073 echo "$ac_t""no" 1>&6
6078 if test $ac_cv_func_sched_yield = no -a \
6079 $ac_cv_func_pthread_yield = no -a \
6080 "$ac_cv_func_thr_yield" = no ; then
6081 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6084 for ac_func in pthread_kill
6086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6087 echo "configure:6088: checking for $ac_func" >&5
6088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 /* System header to define __stub macros and hopefully few prototypes,
6095 which can conflict with char $ac_func(); below. */
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6104 /* The GNU C library defines this for functions which it implements
6105 to always fail with ENOSYS. Some functions are actually named
6106 something starting with __ and the normal name is an alias. */
6107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6117 eval "ac_cv_func_$ac_func=yes"
6119 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6122 eval "ac_cv_func_$ac_func=no"
6127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6128 echo "$ac_t""yes" 1>&6
6129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6130 cat >> confdefs.h <<EOF
6131 #define $ac_tr_func 1
6135 echo "$ac_t""no" 1>&6
6140 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6141 echo "configure:6142: checking for pthread_detach with <pthread.h>" >&5
6142 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6146 cat > conftest.$ac_ext <<EOF
6147 #line 6148 "configure"
6148 #include "confdefs.h"
6150 #include <pthread.h>
6152 #define NULL (void*)0
6156 pthread_detach(NULL);
6159 if { (eval echo configure:6160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6161 ol_cv_func_pthread_detach=yes
6163 echo "configure: failed program was:" >&5
6164 cat conftest.$ac_ext >&5
6166 ol_cv_func_pthread_detach=no
6172 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6174 if test $ol_cv_func_pthread_detach = no ; then
6175 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6178 cat >> confdefs.h <<\EOF
6179 #define HAVE_PTHREAD_DETACH 1
6184 pthread_setconcurrency \
6185 pthread_getconcurrency \
6186 thr_setconcurrency \
6187 thr_getconcurrency \
6190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6191 echo "configure:6192: checking for $ac_func" >&5
6192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6193 echo $ac_n "(cached) $ac_c" 1>&6
6195 cat > conftest.$ac_ext <<EOF
6196 #line 6197 "configure"
6197 #include "confdefs.h"
6198 /* System header to define __stub macros and hopefully few prototypes,
6199 which can conflict with char $ac_func(); below. */
6201 /* Override any gcc2 internal prototype to avoid an error. */
6202 /* We use char because int might match the return type of a gcc2
6203 builtin and then its argument prototype would still apply. */
6208 /* The GNU C library defines this for functions which it implements
6209 to always fail with ENOSYS. Some functions are actually named
6210 something starting with __ and the normal name is an alias. */
6211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6219 if { (eval echo configure:6220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6221 eval "ac_cv_func_$ac_func=yes"
6223 echo "configure: failed program was:" >&5
6224 cat conftest.$ac_ext >&5
6226 eval "ac_cv_func_$ac_func=no"
6231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6232 echo "$ac_t""yes" 1>&6
6233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6234 cat >> confdefs.h <<EOF
6235 #define $ac_tr_func 1
6239 echo "$ac_t""no" 1>&6
6245 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6246 echo "configure:6247: checking for pthread_kill_other_threads_np" >&5
6247 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
6250 cat > conftest.$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6253 /* System header to define __stub macros and hopefully few prototypes,
6254 which can conflict with char pthread_kill_other_threads_np(); below. */
6256 /* Override any gcc2 internal prototype to avoid an error. */
6257 /* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */
6259 char pthread_kill_other_threads_np();
6263 /* The GNU C library defines this for functions which it implements
6264 to always fail with ENOSYS. Some functions are actually named
6265 something starting with __ and the normal name is an alias. */
6266 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6269 pthread_kill_other_threads_np();
6274 if { (eval echo configure:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6276 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6278 echo "configure: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6281 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6286 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6287 echo "$ac_t""yes" 1>&6
6290 echo "$ac_t""no" 1>&6
6293 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6294 echo "configure:6295: checking for LinuxThreads implementation" >&5
6295 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6296 echo $ac_n "(cached) $ac_c" 1>&6
6298 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6301 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6306 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6307 echo "configure:6308: checking for LinuxThreads consistency" >&5
6308 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6309 echo $ac_n "(cached) $ac_c" 1>&6
6312 if test $ol_cv_header_linux_threads = yes -a \
6313 $ol_cv_sys_linux_threads = yes; then
6314 ol_cv_linux_threads=yes
6315 elif test $ol_cv_header_linux_threads = no -a \
6316 $ol_cv_sys_linux_threads = no; then
6317 ol_cv_linux_threads=no
6319 ol_cv_linux_threads=error
6324 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6327 if test $ol_cv_linux_threads = error; then
6328 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6331 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6332 echo "configure:6333: checking if pthread_create() works" >&5
6333 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6334 echo $ac_n "(cached) $ac_c" 1>&6
6337 if test "$cross_compiling" = yes; then
6338 ol_cv_pthread_create_works=yes
6340 cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure"
6342 #include "confdefs.h"
6344 #include <pthread.h>
6346 #define NULL (void*)0
6349 static void *task(p)
6352 return (void *) (p == NULL);
6355 int main(argc, argv)
6360 #if HAVE_PTHREADS_D4
6361 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6363 exit(pthread_create(&t, NULL, task, NULL));
6368 if { (eval echo configure:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6370 ol_cv_pthread_create_works=yes
6372 echo "configure: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6375 ol_cv_pthread_create_works=no
6382 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6384 if test $ol_cv_pthread_create_works = no ; then
6385 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6388 if test $ol_with_yielding_select = auto ; then
6389 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6390 echo "configure:6391: checking if select yields when using pthreads" >&5
6391 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6392 echo $ac_n "(cached) $ac_c" 1>&6
6395 if test "$cross_compiling" = yes; then
6397 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6399 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6403 #include <sys/types.h>
6404 #include <sys/time.h>
6406 #include <pthread.h>
6408 #define NULL (void*) 0
6411 static int fildes[2];
6413 static void *task(p)
6425 FD_SET(fildes[0], &rfds);
6427 /* we're not interested in any fds */
6428 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6435 exit(0); /* if we exit here, the select blocked the whole process */
6438 int main(argc, argv)
6444 /* create a pipe to select */
6445 if(pipe(&fildes[0])) {
6450 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6451 (void) pthread_setconcurrency(2);
6453 #ifdef HAVE_THR_SETCONCURRENCY
6454 /* Set Solaris LWP concurrency to 2 */
6455 thr_setconcurrency(2);
6459 #if HAVE_PTHREADS_D4
6460 pthread_create(&t, pthread_attr_default, task, NULL);
6462 pthread_create(&t, NULL, task, NULL);
6465 #if HAVE_SCHED_YIELD
6466 sched_yield(); /* make sure task runs first */
6468 #ifdef HAVE_PTHREAD_YIELD
6469 pthread_yield(); /* make sure task runs first */
6476 if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6478 ol_cv_pthread_select_yields=no
6480 echo "configure: failed program was:" >&5
6481 cat conftest.$ac_ext >&5
6483 ol_cv_pthread_select_yields=yes
6490 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6492 if test $ol_cv_pthread_select_yields = yes ; then
6493 ol_with_yielding_select=yes
6497 CPPFLAGS="$save_CPPFLAGS"
6500 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6504 if test $ol_with_threads = posix ; then
6505 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6509 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6510 -o $ol_with_threads = mach ; then
6512 for ac_hdr in mach/cthreads.h
6514 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6515 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6516 echo "configure:6517: checking for $ac_hdr" >&5
6517 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6518 echo $ac_n "(cached) $ac_c" 1>&6
6520 cat > conftest.$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6526 { (eval echo configure:6527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6528 if test -z "$ac_err"; then
6530 eval "ac_cv_header_$ac_safe=yes"
6533 echo "configure: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6536 eval "ac_cv_header_$ac_safe=no"
6540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6541 echo "$ac_t""yes" 1>&6
6542 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6543 cat >> confdefs.h <<EOF
6544 #define $ac_tr_hdr 1
6548 echo "$ac_t""no" 1>&6
6552 if test $ac_cv_header_mach_cthreads_h = yes ; then
6553 ol_with_threads=found
6555 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6556 echo "configure:6557: checking for cthread_fork" >&5
6557 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6560 cat > conftest.$ac_ext <<EOF
6561 #line 6562 "configure"
6562 #include "confdefs.h"
6563 /* System header to define __stub macros and hopefully few prototypes,
6564 which can conflict with char cthread_fork(); below. */
6566 /* Override any gcc2 internal prototype to avoid an error. */
6567 /* We use char because int might match the return type of a gcc2
6568 builtin and then its argument prototype would still apply. */
6569 char cthread_fork();
6573 /* The GNU C library defines this for functions which it implements
6574 to always fail with ENOSYS. Some functions are actually named
6575 something starting with __ and the normal name is an alias. */
6576 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6584 if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6586 eval "ac_cv_func_cthread_fork=yes"
6588 echo "configure: failed program was:" >&5
6589 cat conftest.$ac_ext >&5
6591 eval "ac_cv_func_cthread_fork=no"
6596 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6597 echo "$ac_t""yes" 1>&6
6600 echo "$ac_t""no" 1>&6
6604 if test $ol_link_threads = no ; then
6605 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6606 echo "configure:6607: checking for cthread_fork with -all_load" >&5
6607 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6
6612 LIBS="-all_load $LIBS"
6613 cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6616 #include <mach/cthreads.h>
6619 cthread_fork((void *)0, (void *)0);
6623 if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6625 ol_cv_cthread_all_load=yes
6627 echo "configure: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6630 ol_cv_cthread_all_load=no
6637 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6639 if test $ol_cv_cthread_all_load = yes ; then
6640 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6641 ol_link_threads=mach
6645 if test $ol_link_threads != no ; then
6646 : check for cthread specific functionality here
6647 cat >> confdefs.h <<\EOF
6648 #define HAVE_MACH_CTHREADS 1
6652 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6656 if test $ol_with_threads = mach ; then
6657 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6661 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6662 -o $ol_with_threads = lwp ; then
6664 for ac_hdr in thread.h synch.h
6666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6668 echo "configure:6669: checking for $ac_hdr" >&5
6669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6678 { (eval echo configure:6679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6680 if test -z "$ac_err"; then
6682 eval "ac_cv_header_$ac_safe=yes"
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 eval "ac_cv_header_$ac_safe=no"
6692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6693 echo "$ac_t""yes" 1>&6
6694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6695 cat >> confdefs.h <<EOF
6696 #define $ac_tr_hdr 1
6700 echo "$ac_t""no" 1>&6
6704 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6705 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6706 echo "configure:6707: checking for thr_create in -lthread" >&5
6707 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6709 echo $ac_n "(cached) $ac_c" 1>&6
6711 ac_save_LIBS="$LIBS"
6712 LIBS="-lthread $LIBS"
6713 cat > conftest.$ac_ext <<EOF
6714 #line 6715 "configure"
6715 #include "confdefs.h"
6716 /* Override any gcc2 internal prototype to avoid an error. */
6717 /* We use char because int might match the return type of a gcc2
6718 builtin and then its argument prototype would still apply. */
6725 if { (eval echo configure:6726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6727 eval "ac_cv_lib_$ac_lib_var=yes"
6729 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6732 eval "ac_cv_lib_$ac_lib_var=no"
6735 LIBS="$ac_save_LIBS"
6738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6739 echo "$ac_t""yes" 1>&6
6742 echo "$ac_t""no" 1>&6
6747 if test $have_thr = yes ; then
6748 cat >> confdefs.h <<\EOF
6752 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6755 if test $ol_with_yielding_select = auto ; then
6756 ol_with_yielding_select=yes
6760 thr_setconcurrency \
6761 thr_getconcurrency \
6764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6765 echo "configure:6766: checking for $ac_func" >&5
6766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6767 echo $ac_n "(cached) $ac_c" 1>&6
6769 cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6772 /* System header to define __stub macros and hopefully few prototypes,
6773 which can conflict with char $ac_func(); below. */
6775 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6782 /* The GNU C library defines this for functions which it implements
6783 to always fail with ENOSYS. Some functions are actually named
6784 something starting with __ and the normal name is an alias. */
6785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6793 if { (eval echo configure:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6795 eval "ac_cv_func_$ac_func=yes"
6797 echo "configure: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6800 eval "ac_cv_func_$ac_func=no"
6805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6806 echo "$ac_t""yes" 1>&6
6807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6808 cat >> confdefs.h <<EOF
6809 #define $ac_tr_func 1
6813 echo "$ac_t""no" 1>&6
6820 for ac_hdr in lwp/lwp.h
6822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6824 echo "configure:6825: checking for $ac_hdr" >&5
6825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6834 { (eval echo configure:6835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6836 if test -z "$ac_err"; then
6838 eval "ac_cv_header_$ac_safe=yes"
6841 echo "configure: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6844 eval "ac_cv_header_$ac_safe=no"
6848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6849 echo "$ac_t""yes" 1>&6
6850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6851 cat >> confdefs.h <<EOF
6852 #define $ac_tr_hdr 1
6856 echo "$ac_t""no" 1>&6
6860 if test $ac_cv_header_lwp_lwp_h = yes ; then
6861 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6862 echo "configure:6863: checking for lwp_create in -llwp" >&5
6863 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6865 echo $ac_n "(cached) $ac_c" 1>&6
6867 ac_save_LIBS="$LIBS"
6869 cat > conftest.$ac_ext <<EOF
6870 #line 6871 "configure"
6871 #include "confdefs.h"
6872 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6881 if { (eval echo configure:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6883 eval "ac_cv_lib_$ac_lib_var=yes"
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6888 eval "ac_cv_lib_$ac_lib_var=no"
6891 LIBS="$ac_save_LIBS"
6894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6895 echo "$ac_t""yes" 1>&6
6898 echo "$ac_t""no" 1>&6
6903 if test $have_lwp = yes ; then
6904 cat >> confdefs.h <<\EOF
6908 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6911 if test $ol_with_yielding_select = auto ; then
6912 ol_with_yielding_select=no
6918 if test $ol_with_yielding_select = yes ; then
6919 cat >> confdefs.h <<\EOF
6920 #define HAVE_YIELDING_SELECT 1
6925 if test $ol_with_threads = manual ; then
6928 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6930 for ac_hdr in pthread.h sched.h
6932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6934 echo "configure:6935: checking for $ac_hdr" >&5
6935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6936 echo $ac_n "(cached) $ac_c" 1>&6
6938 cat > conftest.$ac_ext <<EOF
6939 #line 6940 "configure"
6940 #include "confdefs.h"
6943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6944 { (eval echo configure:6945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6946 if test -z "$ac_err"; then
6948 eval "ac_cv_header_$ac_safe=yes"
6951 echo "configure: failed program was:" >&5
6952 cat conftest.$ac_ext >&5
6954 eval "ac_cv_header_$ac_safe=no"
6958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6959 echo "$ac_t""yes" 1>&6
6960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6961 cat >> confdefs.h <<EOF
6962 #define $ac_tr_hdr 1
6966 echo "$ac_t""no" 1>&6
6970 for ac_func in sched_yield pthread_yield
6972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6973 echo "configure:6974: checking for $ac_func" >&5
6974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6975 echo $ac_n "(cached) $ac_c" 1>&6
6977 cat > conftest.$ac_ext <<EOF
6978 #line 6979 "configure"
6979 #include "confdefs.h"
6980 /* System header to define __stub macros and hopefully few prototypes,
6981 which can conflict with char $ac_func(); below. */
6983 /* Override any gcc2 internal prototype to avoid an error. */
6984 /* We use char because int might match the return type of a gcc2
6985 builtin and then its argument prototype would still apply. */
6990 /* The GNU C library defines this for functions which it implements
6991 to always fail with ENOSYS. Some functions are actually named
6992 something starting with __ and the normal name is an alias. */
6993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7001 if { (eval echo configure:7002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7003 eval "ac_cv_func_$ac_func=yes"
7005 echo "configure: failed program was:" >&5
7006 cat conftest.$ac_ext >&5
7008 eval "ac_cv_func_$ac_func=no"
7013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7014 echo "$ac_t""yes" 1>&6
7015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7016 cat >> confdefs.h <<EOF
7017 #define $ac_tr_func 1
7021 echo "$ac_t""no" 1>&6
7026 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7027 echo "configure:7028: checking for LinuxThreads pthread.h" >&5
7028 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
7029 echo $ac_n "(cached) $ac_c" 1>&6
7031 cat > conftest.$ac_ext <<EOF
7032 #line 7033 "configure"
7033 #include "confdefs.h"
7034 #include <pthread.h>
7036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7037 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7039 ol_cv_header_linux_threads=yes
7042 ol_cv_header_linux_threads=no
7049 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7050 if test $ol_cv_header_linux_threads = yes; then
7051 cat >> confdefs.h <<\EOF
7052 #define HAVE_LINUX_THREADS 1
7058 for ac_hdr in mach/cthreads.h
7060 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7061 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7062 echo "configure:7063: checking for $ac_hdr" >&5
7063 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7064 echo $ac_n "(cached) $ac_c" 1>&6
7066 cat > conftest.$ac_ext <<EOF
7067 #line 7068 "configure"
7068 #include "confdefs.h"
7071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7072 { (eval echo configure:7073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7074 if test -z "$ac_err"; then
7076 eval "ac_cv_header_$ac_safe=yes"
7079 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7082 eval "ac_cv_header_$ac_safe=no"
7086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7087 echo "$ac_t""yes" 1>&6
7088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7089 cat >> confdefs.h <<EOF
7090 #define $ac_tr_hdr 1
7094 echo "$ac_t""no" 1>&6
7098 for ac_hdr in lwp/lwp.h
7100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7102 echo "configure:7103: checking for $ac_hdr" >&5
7103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7104 echo $ac_n "(cached) $ac_c" 1>&6
7106 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7112 { (eval echo configure:7113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7114 if test -z "$ac_err"; then
7116 eval "ac_cv_header_$ac_safe=yes"
7119 echo "configure: failed program was:" >&5
7120 cat conftest.$ac_ext >&5
7122 eval "ac_cv_header_$ac_safe=no"
7126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7127 echo "$ac_t""yes" 1>&6
7128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7129 cat >> confdefs.h <<EOF
7130 #define $ac_tr_hdr 1
7134 echo "$ac_t""no" 1>&6
7138 for ac_hdr in thread.h synch.h
7140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7142 echo "configure:7143: checking for $ac_hdr" >&5
7143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7144 echo $ac_n "(cached) $ac_c" 1>&6
7146 cat > conftest.$ac_ext <<EOF
7147 #line 7148 "configure"
7148 #include "confdefs.h"
7151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7152 { (eval echo configure:7153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7154 if test -z "$ac_err"; then
7156 eval "ac_cv_header_$ac_safe=yes"
7159 echo "configure: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7162 eval "ac_cv_header_$ac_safe=no"
7166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7167 echo "$ac_t""yes" 1>&6
7168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7169 cat >> confdefs.h <<EOF
7170 #define $ac_tr_hdr 1
7174 echo "$ac_t""no" 1>&6
7180 if test $ol_link_threads != no ; then
7181 cat >> confdefs.h <<\EOF
7185 cat >> confdefs.h <<\EOF
7186 #define _REENTRANT 1
7189 cat >> confdefs.h <<\EOF
7190 #define THREAD_SAFE 1
7193 cat >> confdefs.h <<\EOF
7194 #define _THREAD_SAFE 1
7197 cat >> confdefs.h <<\EOF
7198 #define THREADSAFE 1
7201 cat >> confdefs.h <<\EOF
7202 #define _THREADSAFE 1
7206 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7207 echo "configure:7208: checking for thread specific errno" >&5
7208 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7209 echo $ac_n "(cached) $ac_c" 1>&6
7212 cat > conftest.$ac_ext <<EOF
7213 #line 7214 "configure"
7214 #include "confdefs.h"
7220 if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7222 ol_cv_errno_thread_specific=yes
7224 echo "configure: failed program was:" >&5
7225 cat conftest.$ac_ext >&5
7227 ol_cv_errno_thread_specific=no
7233 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7235 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
7236 echo "configure:7237: checking for thread specific h_errno" >&5
7237 if eval "test \"`echo '$''{'ol_cv_h_errno_thread_specific'+set}'`\" = set"; then
7238 echo $ac_n "(cached) $ac_c" 1>&6
7241 cat > conftest.$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7249 if { (eval echo configure:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7251 ol_cv_h_errno_thread_specific=yes
7253 echo "configure: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7256 ol_cv_h_errno_thread_specific=no
7262 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
7264 if test $ol_cv_errno_thread_specific != yes \
7265 -o $ol_cv_h_errno_thread_specific != yes ; then
7266 LIBS="$LTHREAD_LIBS $LIBS"
7272 if test $ol_link_threads = no ; then
7273 if test $ol_with_threads = yes ; then
7274 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7277 if test $ol_with_threads = auto ; then
7278 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7282 cat >> confdefs.h <<\EOF
7283 #define NO_THREADS 1
7289 if test $ol_link_threads != no ; then
7290 cat >> confdefs.h <<\EOF
7291 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7298 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7299 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7300 echo "configure:7301: checking for DB2 library" >&5
7301 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7302 echo $ac_n "(cached) $ac_c" 1>&6
7305 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7306 echo "configure:7307: checking for db_open in -ldb" >&5
7307 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7311 ac_save_LIBS="$LIBS"
7313 cat > conftest.$ac_ext <<EOF
7314 #line 7315 "configure"
7315 #include "confdefs.h"
7316 /* Override any gcc2 internal prototype to avoid an error. */
7317 /* We use char because int might match the return type of a gcc2
7318 builtin and then its argument prototype would still apply. */
7325 if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7327 eval "ac_cv_lib_$ac_lib_var=yes"
7329 echo "configure: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7332 eval "ac_cv_lib_$ac_lib_var=no"
7335 LIBS="$ac_save_LIBS"
7338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7339 echo "$ac_t""yes" 1>&6
7342 echo "$ac_t""no" 1>&6
7350 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7356 echo "configure:7357: checking for $ac_hdr" >&5
7357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7358 echo $ac_n "(cached) $ac_c" 1>&6
7360 cat > conftest.$ac_ext <<EOF
7361 #line 7362 "configure"
7362 #include "confdefs.h"
7365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7366 { (eval echo configure:7367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7368 if test -z "$ac_err"; then
7370 eval "ac_cv_header_$ac_safe=yes"
7373 echo "configure: failed program was:" >&5
7374 cat conftest.$ac_ext >&5
7376 eval "ac_cv_header_$ac_safe=no"
7380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7381 echo "$ac_t""yes" 1>&6
7382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7383 cat >> confdefs.h <<EOF
7384 #define $ac_tr_hdr 1
7388 echo "$ac_t""no" 1>&6
7392 if test $ac_cv_header_db_h = yes ; then
7393 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7394 echo "configure:7395: checking if db.h is DB2" >&5
7395 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7396 echo $ac_n "(cached) $ac_c" 1>&6
7399 cat > conftest.$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7404 /* this check could be improved */
7405 # ifdef DB_VERSION_MAJOR
7406 # if DB_VERSION_MAJOR == 2
7412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7413 egrep "__db_version_2" >/dev/null 2>&1; then
7415 ol_cv_header_db2=yes
7424 echo "$ac_t""$ol_cv_header_db2" 1>&6
7431 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7432 echo "configure:7433: checking for Berkeley DB2" >&5
7433 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7434 echo $ac_n "(cached) $ac_c" 1>&6
7437 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7438 ol_cv_berkeley_db2=no
7440 ol_cv_berkeley_db2=yes
7445 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7446 if test $ol_cv_berkeley_db2 = yes ; then
7447 cat >> confdefs.h <<\EOF
7448 #define HAVE_BERKELEY_DB2 1
7454 if test $ol_cv_berkeley_db2 = yes ; then
7456 ol_with_ldbm_api=db2
7458 if test $ol_with_ldbm_type = hash ; then
7459 cat >> confdefs.h <<\EOF
7460 #define LDBM_USE_DBHASH 1
7464 cat >> confdefs.h <<\EOF
7465 #define LDBM_USE_DBBTREE 1
7470 if test $ol_cv_lib_db2 != yes ; then
7471 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7477 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7481 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7482 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7483 echo "configure:7484: checking for Berkeley DB library" >&5
7484 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7488 for ac_hdr in db1/db.h
7490 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7491 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7492 echo "configure:7493: checking for $ac_hdr" >&5
7493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7496 cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7502 { (eval echo configure:7503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7504 if test -z "$ac_err"; then
7506 eval "ac_cv_header_$ac_safe=yes"
7509 echo "configure: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7512 eval "ac_cv_header_$ac_safe=no"
7516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7517 echo "$ac_t""yes" 1>&6
7518 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7519 cat >> confdefs.h <<EOF
7520 #define $ac_tr_hdr 1
7524 echo "$ac_t""no" 1>&6
7529 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7530 echo "configure:7531: checking for dbopen" >&5
7531 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7532 echo $ac_n "(cached) $ac_c" 1>&6
7534 cat > conftest.$ac_ext <<EOF
7535 #line 7536 "configure"
7536 #include "confdefs.h"
7537 /* System header to define __stub macros and hopefully few prototypes,
7538 which can conflict with char dbopen(); below. */
7540 /* Override any gcc2 internal prototype to avoid an error. */
7541 /* We use char because int might match the return type of a gcc2
7542 builtin and then its argument prototype would still apply. */
7547 /* The GNU C library defines this for functions which it implements
7548 to always fail with ENOSYS. Some functions are actually named
7549 something starting with __ and the normal name is an alias. */
7550 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7558 if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7560 eval "ac_cv_func_dbopen=yes"
7562 echo "configure: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7565 eval "ac_cv_func_dbopen=no"
7570 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7571 echo "$ac_t""yes" 1>&6
7574 echo "$ac_t""no" 1>&6
7576 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
7577 echo "configure:7578: checking for dbopen in -ldb1" >&5
7578 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
7579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7580 echo $ac_n "(cached) $ac_c" 1>&6
7582 ac_save_LIBS="$LIBS"
7584 cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7587 /* Override any gcc2 internal prototype to avoid an error. */
7588 /* We use char because int might match the return type of a gcc2
7589 builtin and then its argument prototype would still apply. */
7596 if { (eval echo configure:7597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7598 eval "ac_cv_lib_$ac_lib_var=yes"
7600 echo "configure: failed program was:" >&5
7601 cat conftest.$ac_ext >&5
7603 eval "ac_cv_lib_$ac_lib_var=no"
7606 LIBS="$ac_save_LIBS"
7609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7613 echo "$ac_t""no" 1>&6
7615 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7616 echo "configure:7617: checking for dbopen in -ldb" >&5
7617 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7619 echo $ac_n "(cached) $ac_c" 1>&6
7621 ac_save_LIBS="$LIBS"
7623 cat > conftest.$ac_ext <<EOF
7624 #line 7625 "configure"
7625 #include "confdefs.h"
7626 /* Override any gcc2 internal prototype to avoid an error. */
7627 /* We use char because int might match the return type of a gcc2
7628 builtin and then its argument prototype would still apply. */
7635 if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7637 eval "ac_cv_lib_$ac_lib_var=yes"
7639 echo "configure: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7642 eval "ac_cv_lib_$ac_lib_var=no"
7645 LIBS="$ac_save_LIBS"
7648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7649 echo "$ac_t""yes" 1>&6
7652 echo "$ac_t""no" 1>&6
7666 echo "$ac_t""$ol_cv_lib_db" 1>&6
7669 for ac_hdr in db_185.h
7671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7673 echo "configure:7674: checking for $ac_hdr" >&5
7674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7675 echo $ac_n "(cached) $ac_c" 1>&6
7677 cat > conftest.$ac_ext <<EOF
7678 #line 7679 "configure"
7679 #include "confdefs.h"
7682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7683 { (eval echo configure:7684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7685 if test -z "$ac_err"; then
7687 eval "ac_cv_header_$ac_safe=yes"
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7693 eval "ac_cv_header_$ac_safe=no"
7697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7698 echo "$ac_t""yes" 1>&6
7699 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7700 cat >> confdefs.h <<EOF
7701 #define $ac_tr_hdr 1
7705 echo "$ac_t""no" 1>&6
7709 if test "$ol_cv_header_db2" = yes ; then
7711 ol_cv_header_db=$ac_cv_header_db_185_h
7713 ol_cv_header_db=$ac_cv_header_db_h
7718 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7719 echo "configure:7720: checking for Berkeley DB" >&5
7720 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7721 echo $ac_n "(cached) $ac_c" 1>&6
7724 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7725 ol_cv_berkeley_db=no
7727 ol_cv_berkeley_db=yes
7732 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7733 if test $ol_cv_berkeley_db = yes ; then
7734 cat >> confdefs.h <<\EOF
7735 #define HAVE_BERKELEY_DB 1
7741 if test $ol_cv_berkeley_db = yes ; then
7745 if test $ol_with_ldbm_type = hash ; then
7746 cat >> confdefs.h <<\EOF
7747 #define LDBM_USE_DBHASH 1
7751 cat >> confdefs.h <<\EOF
7752 #define LDBM_USE_DBBTREE 1
7757 if test $ol_cv_lib_db != yes ; then
7758 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7763 if test $ol_with_ldbm_api = manual ; then
7766 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7768 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7772 echo "configure:7773: checking for $ac_hdr" >&5
7773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7776 cat > conftest.$ac_ext <<EOF
7777 #line 7778 "configure"
7778 #include "confdefs.h"
7781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7782 { (eval echo configure:7783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7784 if test -z "$ac_err"; then
7786 eval "ac_cv_header_$ac_safe=yes"
7789 echo "configure: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7792 eval "ac_cv_header_$ac_safe=no"
7796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7797 echo "$ac_t""yes" 1>&6
7798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7799 cat >> confdefs.h <<EOF
7800 #define $ac_tr_hdr 1
7804 echo "$ac_t""no" 1>&6
7810 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7811 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7812 ol_with_ldbm_api=none
7815 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7816 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7817 echo "configure:7818: checking for MDBM library" >&5
7818 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7822 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7823 echo "configure:7824: checking for mdbm_set_chain" >&5
7824 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7825 echo $ac_n "(cached) $ac_c" 1>&6
7827 cat > conftest.$ac_ext <<EOF
7828 #line 7829 "configure"
7829 #include "confdefs.h"
7830 /* System header to define __stub macros and hopefully few prototypes,
7831 which can conflict with char mdbm_set_chain(); below. */
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 mdbm_set_chain();
7840 /* The GNU C library defines this for functions which it implements
7841 to always fail with ENOSYS. Some functions are actually named
7842 something starting with __ and the normal name is an alias. */
7843 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7851 if { (eval echo configure:7852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7853 eval "ac_cv_func_mdbm_set_chain=yes"
7855 echo "configure: failed program was:" >&5
7856 cat conftest.$ac_ext >&5
7858 eval "ac_cv_func_mdbm_set_chain=no"
7863 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
7864 echo "$ac_t""yes" 1>&6
7867 echo "$ac_t""no" 1>&6
7869 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
7870 echo "configure:7871: checking for mdbm_set_chain in -lmdbm" >&5
7871 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
7872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7873 echo $ac_n "(cached) $ac_c" 1>&6
7875 ac_save_LIBS="$LIBS"
7877 cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure"
7879 #include "confdefs.h"
7880 /* Override any gcc2 internal prototype to avoid an error. */
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883 char mdbm_set_chain();
7889 if { (eval echo configure:7890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7891 eval "ac_cv_lib_$ac_lib_var=yes"
7893 echo "configure: failed program was:" >&5
7894 cat conftest.$ac_ext >&5
7896 eval "ac_cv_lib_$ac_lib_var=no"
7899 LIBS="$ac_save_LIBS"
7902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7903 echo "$ac_t""yes" 1>&6
7904 ol_cv_lib_mdbm=-lmdbm
7906 echo "$ac_t""no" 1>&6
7917 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
7920 for ac_hdr in mdbm.h
7922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7924 echo "configure:7925: checking for $ac_hdr" >&5
7925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7934 { (eval echo configure:7935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7936 if test -z "$ac_err"; then
7938 eval "ac_cv_header_$ac_safe=yes"
7941 echo "configure: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7944 eval "ac_cv_header_$ac_safe=no"
7948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7949 echo "$ac_t""yes" 1>&6
7950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7951 cat >> confdefs.h <<EOF
7952 #define $ac_tr_hdr 1
7956 echo "$ac_t""no" 1>&6
7960 echo $ac_n "checking for db""... $ac_c" 1>&6
7961 echo "configure:7962: checking for db" >&5
7962 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7966 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
7974 echo "$ac_t""$ol_cv_mdbm" 1>&6
7975 if test $ol_cv_mdbm = yes ; then
7976 cat >> confdefs.h <<\EOF
7983 if test $ol_cv_mdbm = yes ; then
7985 ol_with_ldbm_api=mdbm
7986 if test $ol_cv_lib_mdbm != yes ; then
7987 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
7992 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7993 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7994 echo "configure:7995: checking for GDBM library" >&5
7995 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7996 echo $ac_n "(cached) $ac_c" 1>&6
7999 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
8000 echo "configure:8001: checking for gdbm_open" >&5
8001 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
8002 echo $ac_n "(cached) $ac_c" 1>&6
8004 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* System header to define __stub macros and hopefully few prototypes,
8008 which can conflict with char gdbm_open(); below. */
8010 /* Override any gcc2 internal prototype to avoid an error. */
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8017 /* The GNU C library defines this for functions which it implements
8018 to always fail with ENOSYS. Some functions are actually named
8019 something starting with __ and the normal name is an alias. */
8020 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
8028 if { (eval echo configure:8029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8030 eval "ac_cv_func_gdbm_open=yes"
8032 echo "configure: failed program was:" >&5
8033 cat conftest.$ac_ext >&5
8035 eval "ac_cv_func_gdbm_open=no"
8040 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
8041 echo "$ac_t""yes" 1>&6
8044 echo "$ac_t""no" 1>&6
8046 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
8047 echo "configure:8048: checking for gdbm_open in -lgdbm" >&5
8048 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
8049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8052 ac_save_LIBS="$LIBS"
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8068 eval "ac_cv_lib_$ac_lib_var=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 eval "ac_cv_lib_$ac_lib_var=no"
8076 LIBS="$ac_save_LIBS"
8079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8081 ol_cv_lib_gdbm=-lgdbm
8083 echo "$ac_t""no" 1>&6
8094 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8097 for ac_hdr in gdbm.h
8099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8101 echo "configure:8102: checking for $ac_hdr" >&5
8102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8105 cat > conftest.$ac_ext <<EOF
8106 #line 8107 "configure"
8107 #include "confdefs.h"
8110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8111 { (eval echo configure:8112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8113 if test -z "$ac_err"; then
8115 eval "ac_cv_header_$ac_safe=yes"
8118 echo "configure: failed program was:" >&5
8119 cat conftest.$ac_ext >&5
8121 eval "ac_cv_header_$ac_safe=no"
8125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8126 echo "$ac_t""yes" 1>&6
8127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8128 cat >> confdefs.h <<EOF
8129 #define $ac_tr_hdr 1
8133 echo "$ac_t""no" 1>&6
8137 echo $ac_n "checking for db""... $ac_c" 1>&6
8138 echo "configure:8139: checking for db" >&5
8139 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8140 echo $ac_n "(cached) $ac_c" 1>&6
8143 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8151 echo "$ac_t""$ol_cv_gdbm" 1>&6
8152 if test $ol_cv_gdbm = yes ; then
8153 cat >> confdefs.h <<\EOF
8160 if test $ol_cv_gdbm = yes ; then
8162 ol_with_ldbm_api=gdbm
8164 if test $ol_cv_lib_gdbm != yes ; then
8165 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8170 if test $ol_with_ldbm_api = auto ; then
8171 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8172 elif test $ol_with_ldbm_api = ndbm ; then
8173 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8174 echo "configure:8175: checking for NDBM library" >&5
8175 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8176 echo $ac_n "(cached) $ac_c" 1>&6
8179 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8180 echo "configure:8181: checking for dbm_open" >&5
8181 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8182 echo $ac_n "(cached) $ac_c" 1>&6
8184 cat > conftest.$ac_ext <<EOF
8185 #line 8186 "configure"
8186 #include "confdefs.h"
8187 /* System header to define __stub macros and hopefully few prototypes,
8188 which can conflict with char dbm_open(); below. */
8190 /* Override any gcc2 internal prototype to avoid an error. */
8191 /* We use char because int might match the return type of a gcc2
8192 builtin and then its argument prototype would still apply. */
8197 /* The GNU C library defines this for functions which it implements
8198 to always fail with ENOSYS. Some functions are actually named
8199 something starting with __ and the normal name is an alias. */
8200 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8208 if { (eval echo configure:8209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8210 eval "ac_cv_func_dbm_open=yes"
8212 echo "configure: failed program was:" >&5
8213 cat conftest.$ac_ext >&5
8215 eval "ac_cv_func_dbm_open=no"
8220 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8221 echo "$ac_t""yes" 1>&6
8224 echo "$ac_t""no" 1>&6
8226 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8227 echo "configure:8228: checking for dbm_open in -lndbm" >&5
8228 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8232 ac_save_LIBS="$LIBS"
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237 /* Override any gcc2 internal prototype to avoid an error. */
8238 /* We use char because int might match the return type of a gcc2
8239 builtin and then its argument prototype would still apply. */
8246 if { (eval echo configure:8247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8248 eval "ac_cv_lib_$ac_lib_var=yes"
8250 echo "configure: failed program was:" >&5
8251 cat conftest.$ac_ext >&5
8253 eval "ac_cv_lib_$ac_lib_var=no"
8256 LIBS="$ac_save_LIBS"
8259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8260 echo "$ac_t""yes" 1>&6
8261 ol_cv_lib_ndbm=-lndbm
8263 echo "$ac_t""no" 1>&6
8265 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8266 echo "configure:8267: checking for dbm_open in -ldbm" >&5
8267 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8269 echo $ac_n "(cached) $ac_c" 1>&6
8271 ac_save_LIBS="$LIBS"
8273 cat > conftest.$ac_ext <<EOF
8274 #line 8275 "configure"
8275 #include "confdefs.h"
8276 /* Override any gcc2 internal prototype to avoid an error. */
8277 /* We use char because int might match the return type of a gcc2
8278 builtin and then its argument prototype would still apply. */
8285 if { (eval echo configure:8286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8287 eval "ac_cv_lib_$ac_lib_var=yes"
8289 echo "configure: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8292 eval "ac_cv_lib_$ac_lib_var=no"
8295 LIBS="$ac_save_LIBS"
8298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8299 echo "$ac_t""yes" 1>&6
8300 ol_cv_lib_ndbm=-ldbm
8302 echo "$ac_t""no" 1>&6
8315 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8318 for ac_hdr in ndbm.h
8320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8322 echo "configure:8323: checking for $ac_hdr" >&5
8323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8324 echo $ac_n "(cached) $ac_c" 1>&6
8326 cat > conftest.$ac_ext <<EOF
8327 #line 8328 "configure"
8328 #include "confdefs.h"
8331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8332 { (eval echo configure:8333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8334 if test -z "$ac_err"; then
8336 eval "ac_cv_header_$ac_safe=yes"
8339 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8342 eval "ac_cv_header_$ac_safe=no"
8346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8347 echo "$ac_t""yes" 1>&6
8348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8349 cat >> confdefs.h <<EOF
8350 #define $ac_tr_hdr 1
8354 echo "$ac_t""no" 1>&6
8358 echo $ac_n "checking for db""... $ac_c" 1>&6
8359 echo "configure:8360: checking for db" >&5
8360 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8361 echo $ac_n "(cached) $ac_c" 1>&6
8364 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8372 echo "$ac_t""$ol_cv_ndbm" 1>&6
8373 if test $ol_cv_ndbm = yes ; then
8374 cat >> confdefs.h <<\EOF
8381 if test $ol_cv_ndbm = yes ; then
8383 ol_with_ldbm_api=ndbm
8385 if test $ol_cv_lib_ndbm != yes ; then
8386 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8391 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8392 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8393 if test $ol_enable_ldbm = yes ; then
8394 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8397 echo "configure: warning: disabling LDBM" 1>&2
8401 if test $ol_enable_wrappers != no ; then
8402 for ac_hdr in tcpd.h
8404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8406 echo "configure:8407: checking for $ac_hdr" >&5
8407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8408 echo $ac_n "(cached) $ac_c" 1>&6
8410 cat > conftest.$ac_ext <<EOF
8411 #line 8412 "configure"
8412 #include "confdefs.h"
8415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8416 { (eval echo configure:8417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8418 if test -z "$ac_err"; then
8420 eval "ac_cv_header_$ac_safe=yes"
8423 echo "configure: failed program was:" >&5
8424 cat conftest.$ac_ext >&5
8426 eval "ac_cv_header_$ac_safe=no"
8430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8431 echo "$ac_t""yes" 1>&6
8432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8433 cat >> confdefs.h <<EOF
8434 #define $ac_tr_hdr 1
8438 echo "$ac_t""no" 1>&6
8443 if test $ac_cv_header_tcpd_h != yes ; then
8446 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8447 echo "configure:8448: checking for main in -lwrap" >&5
8448 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8450 echo $ac_n "(cached) $ac_c" 1>&6
8452 ac_save_LIBS="$LIBS"
8454 cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure"
8456 #include "confdefs.h"
8462 if { (eval echo configure:8463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8464 eval "ac_cv_lib_$ac_lib_var=yes"
8466 echo "configure: failed program was:" >&5
8467 cat conftest.$ac_ext >&5
8469 eval "ac_cv_lib_$ac_lib_var=no"
8472 LIBS="$ac_save_LIBS"
8475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8476 echo "$ac_t""yes" 1>&6
8479 echo "$ac_t""no" 1>&6
8485 if test $have_wrappers = yes ; then
8486 cat >> confdefs.h <<\EOF
8490 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8492 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8493 echo "configure:8494: checking for main in -lnsl" >&5
8494 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8496 echo $ac_n "(cached) $ac_c" 1>&6
8498 ac_save_LIBS="$LIBS"
8500 cat > conftest.$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8508 if { (eval echo configure:8509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8510 eval "ac_cv_lib_$ac_lib_var=yes"
8512 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8515 eval "ac_cv_lib_$ac_lib_var=no"
8518 LIBS="$ac_save_LIBS"
8521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8522 echo "$ac_t""yes" 1>&6
8523 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8524 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8525 cat >> confdefs.h <<EOF
8526 #define $ac_tr_lib 1
8532 echo "$ac_t""no" 1>&6
8536 echo "configure: warning: could not find -lwrap" 1>&2
8537 if test $ol_enable_wrappers = yes ; then
8538 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8541 echo "configure: warning: disabling wrappers support" 1>&2
8542 ol_enable_wrappers=no
8546 if test $ol_enable_syslog != no ; then
8547 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8548 echo "configure:8549: checking for openlog" >&5
8549 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8550 echo $ac_n "(cached) $ac_c" 1>&6
8552 cat > conftest.$ac_ext <<EOF
8553 #line 8554 "configure"
8554 #include "confdefs.h"
8555 /* System header to define __stub macros and hopefully few prototypes,
8556 which can conflict with char openlog(); below. */
8558 /* Override any gcc2 internal prototype to avoid an error. */
8559 /* We use char because int might match the return type of a gcc2
8560 builtin and then its argument prototype would still apply. */
8565 /* The GNU C library defines this for functions which it implements
8566 to always fail with ENOSYS. Some functions are actually named
8567 something starting with __ and the normal name is an alias. */
8568 #if defined (__stub_openlog) || defined (__stub___openlog)
8576 if { (eval echo configure:8577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8578 eval "ac_cv_func_openlog=yes"
8580 echo "configure: failed program was:" >&5
8581 cat conftest.$ac_ext >&5
8583 eval "ac_cv_func_openlog=no"
8588 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8589 echo "$ac_t""yes" 1>&6
8592 echo "$ac_t""no" 1>&6
8595 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8596 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8598 ol_enable_syslog=$ac_cv_func_openlog
8601 if test $ol_enable_dmalloc != no ; then
8602 for ac_hdr in dmalloc.h
8604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8606 echo "configure:8607: checking for $ac_hdr" >&5
8607 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8608 echo $ac_n "(cached) $ac_c" 1>&6
8610 cat > conftest.$ac_ext <<EOF
8611 #line 8612 "configure"
8612 #include "confdefs.h"
8615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8616 { (eval echo configure:8617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8618 if test -z "$ac_err"; then
8620 eval "ac_cv_header_$ac_safe=yes"
8623 echo "configure: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8626 eval "ac_cv_header_$ac_safe=no"
8630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8631 echo "$ac_t""yes" 1>&6
8632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8633 cat >> confdefs.h <<EOF
8634 #define $ac_tr_hdr 1
8638 echo "$ac_t""no" 1>&6
8642 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8643 echo "configure:8644: checking for dmalloc_shutdown in -ldmalloc" >&5
8644 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8646 echo $ac_n "(cached) $ac_c" 1>&6
8648 ac_save_LIBS="$LIBS"
8649 LIBS="-ldmalloc $LIBS"
8650 cat > conftest.$ac_ext <<EOF
8651 #line 8652 "configure"
8652 #include "confdefs.h"
8653 /* Override any gcc2 internal prototype to avoid an error. */
8654 /* We use char because int might match the return type of a gcc2
8655 builtin and then its argument prototype would still apply. */
8656 char dmalloc_shutdown();
8662 if { (eval echo configure:8663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8664 eval "ac_cv_lib_$ac_lib_var=yes"
8666 echo "configure: failed program was:" >&5
8667 cat conftest.$ac_ext >&5
8669 eval "ac_cv_lib_$ac_lib_var=no"
8672 LIBS="$ac_save_LIBS"
8675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8676 echo "$ac_t""yes" 1>&6
8677 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8678 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8679 cat >> confdefs.h <<EOF
8680 #define $ac_tr_lib 1
8683 LIBS="-ldmalloc $LIBS"
8686 echo "$ac_t""no" 1>&6
8691 if test $ol_enable_tcl != no ; then
8694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8696 echo "configure:8697: checking for $ac_hdr" >&5
8697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8700 cat > conftest.$ac_ext <<EOF
8701 #line 8702 "configure"
8702 #include "confdefs.h"
8705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8706 { (eval echo configure:8707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8708 if test -z "$ac_err"; then
8710 eval "ac_cv_header_$ac_safe=yes"
8713 echo "configure: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8716 eval "ac_cv_header_$ac_safe=no"
8720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8721 echo "$ac_t""yes" 1>&6
8722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8723 cat >> confdefs.h <<EOF
8724 #define $ac_tr_hdr 1
8728 echo "$ac_t""no" 1>&6
8733 if test $ac_cv_header_tcl_h != yes ; then
8736 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8737 echo "configure:8738: checking for main in -ltcl" >&5
8738 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
8739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8740 echo $ac_n "(cached) $ac_c" 1>&6
8742 ac_save_LIBS="$LIBS"
8744 cat > conftest.$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8752 if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8754 eval "ac_cv_lib_$ac_lib_var=yes"
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8759 eval "ac_cv_lib_$ac_lib_var=no"
8762 LIBS="$ac_save_LIBS"
8765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8766 echo "$ac_t""yes" 1>&6
8767 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8769 echo "$ac_t""no" 1>&6
8774 if test $have_tcl != yes; then
8775 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8776 echo "configure:8777: checking for main in -ltcl7.6" >&5
8777 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8779 echo $ac_n "(cached) $ac_c" 1>&6
8781 ac_save_LIBS="$LIBS"
8782 LIBS="-ltcl7.6 $LIBS"
8783 cat > conftest.$ac_ext <<EOF
8784 #line 8785 "configure"
8785 #include "confdefs.h"
8791 if { (eval echo configure:8792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8793 eval "ac_cv_lib_$ac_lib_var=yes"
8795 echo "configure: failed program was:" >&5
8796 cat conftest.$ac_ext >&5
8798 eval "ac_cv_lib_$ac_lib_var=no"
8801 LIBS="$ac_save_LIBS"
8804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8805 echo "$ac_t""yes" 1>&6
8806 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8808 echo "$ac_t""no" 1>&6
8814 if test $have_tcl != yes; then
8815 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8816 echo "configure:8817: checking for main in -ltcl8.0" >&5
8817 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8819 echo $ac_n "(cached) $ac_c" 1>&6
8821 ac_save_LIBS="$LIBS"
8822 LIBS="-ltcl8.0 $LIBS"
8823 cat > conftest.$ac_ext <<EOF
8824 #line 8825 "configure"
8825 #include "confdefs.h"
8831 if { (eval echo configure:8832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8833 eval "ac_cv_lib_$ac_lib_var=yes"
8835 echo "configure: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8838 eval "ac_cv_lib_$ac_lib_var=no"
8841 LIBS="$ac_save_LIBS"
8844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8845 echo "$ac_t""yes" 1>&6
8846 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8848 echo "$ac_t""no" 1>&6
8855 if test $have_tcl != yes ; then
8856 echo "configure: warning: could not find -ltcl" 1>&2
8857 if test $ol_enable_tcl = yes ; then
8858 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
8865 # ud needs termcap (should insert check here)
8867 for ac_hdr in termcap.h ncurses.h
8869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8871 echo "configure:8872: checking for $ac_hdr" >&5
8872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8875 cat > conftest.$ac_ext <<EOF
8876 #line 8877 "configure"
8877 #include "confdefs.h"
8880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8881 { (eval echo configure:8882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8883 if test -z "$ac_err"; then
8885 eval "ac_cv_header_$ac_safe=yes"
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8891 eval "ac_cv_header_$ac_safe=no"
8895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8896 echo "$ac_t""yes" 1>&6
8897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8898 cat >> confdefs.h <<EOF
8899 #define $ac_tr_hdr 1
8903 echo "$ac_t""no" 1>&6
8908 if test $ol_link_termcap = no ; then
8909 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
8910 echo "configure:8911: checking for tputs in -ltermcap" >&5
8911 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
8912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8913 echo $ac_n "(cached) $ac_c" 1>&6
8915 ac_save_LIBS="$LIBS"
8916 LIBS="-ltermcap $LIBS"
8917 cat > conftest.$ac_ext <<EOF
8918 #line 8919 "configure"
8919 #include "confdefs.h"
8920 /* Override any gcc2 internal prototype to avoid an error. */
8921 /* We use char because int might match the return type of a gcc2
8922 builtin and then its argument prototype would still apply. */
8929 if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8931 eval "ac_cv_lib_$ac_lib_var=yes"
8933 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8936 eval "ac_cv_lib_$ac_lib_var=no"
8939 LIBS="$ac_save_LIBS"
8942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8943 echo "$ac_t""yes" 1>&6
8946 echo "$ac_t""no" 1>&6
8950 if test $have_termcap = yes ; then
8951 cat >> confdefs.h <<\EOF
8952 #define HAVE_TERMCAP 1
8956 TERMCAP_LIBS=-ltermcap
8960 if test $ol_link_termcap = no ; then
8961 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
8962 echo "configure:8963: checking for initscr in -lncurses" >&5
8963 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
8964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8965 echo $ac_n "(cached) $ac_c" 1>&6
8967 ac_save_LIBS="$LIBS"
8968 LIBS="-lncurses $LIBS"
8969 cat > conftest.$ac_ext <<EOF
8970 #line 8971 "configure"
8971 #include "confdefs.h"
8972 /* Override any gcc2 internal prototype to avoid an error. */
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8981 if { (eval echo configure:8982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8983 eval "ac_cv_lib_$ac_lib_var=yes"
8985 echo "configure: failed program was:" >&5
8986 cat conftest.$ac_ext >&5
8988 eval "ac_cv_lib_$ac_lib_var=no"
8991 LIBS="$ac_save_LIBS"
8994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8995 echo "$ac_t""yes" 1>&6
8998 echo "$ac_t""no" 1>&6
9002 if test $have_ncurses = yes ; then
9003 cat >> confdefs.h <<\EOF
9004 #define HAVE_NCURSES 1
9008 TERMCAP_LIBS=-lncurses
9012 if test $ol_link_termcap = no ; then
9013 cat >> confdefs.h <<\EOF
9014 #define NO_TERMCAP 1
9021 if test $ol_with_readline != no ; then
9022 for ac_hdr in readline/readline.h readline/history.h
9024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9026 echo "configure:9027: checking for $ac_hdr" >&5
9027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9028 echo $ac_n "(cached) $ac_c" 1>&6
9030 cat > conftest.$ac_ext <<EOF
9031 #line 9032 "configure"
9032 #include "confdefs.h"
9035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9036 { (eval echo configure:9037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9038 if test -z "$ac_err"; then
9040 eval "ac_cv_header_$ac_safe=yes"
9043 echo "configure: failed program was:" >&5
9044 cat conftest.$ac_ext >&5
9046 eval "ac_cv_header_$ac_safe=no"
9050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9051 echo "$ac_t""yes" 1>&6
9052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9053 cat >> confdefs.h <<EOF
9054 #define $ac_tr_hdr 1
9058 echo "$ac_t""no" 1>&6
9063 if test $ac_cv_header_readline_readline_h = yes ; then
9065 LIBS="$TERMCAP_LIBS $LIBS"
9066 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
9067 echo "configure:9068: checking for readline in -lreadline" >&5
9068 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
9069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9070 echo $ac_n "(cached) $ac_c" 1>&6
9072 ac_save_LIBS="$LIBS"
9073 LIBS="-lreadline $LIBS"
9074 cat > conftest.$ac_ext <<EOF
9075 #line 9076 "configure"
9076 #include "confdefs.h"
9077 /* Override any gcc2 internal prototype to avoid an error. */
9078 /* We use char because int might match the return type of a gcc2
9079 builtin and then its argument prototype would still apply. */
9086 if { (eval echo configure:9087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9088 eval "ac_cv_lib_$ac_lib_var=yes"
9090 echo "configure: failed program was:" >&5
9091 cat conftest.$ac_ext >&5
9093 eval "ac_cv_lib_$ac_lib_var=no"
9096 LIBS="$ac_save_LIBS"
9099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9100 echo "$ac_t""yes" 1>&6
9103 echo "$ac_t""no" 1>&6
9109 if test $have_readline = yes ; then
9110 ol_with_readline=found
9111 ol_link_readline=yes
9113 READLINE_LIBS="-lreadline"
9118 if test $ol_link_readline = yes ; then
9119 cat >> confdefs.h <<\EOF
9120 #define HAVE_READLINE 1
9126 # FreeBSD (and others) have crypt(3) in -lcrypt
9127 if test $ol_enable_crypt != no ; then
9128 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9129 echo "configure:9130: checking for crypt" >&5
9130 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9131 echo $ac_n "(cached) $ac_c" 1>&6
9133 cat > conftest.$ac_ext <<EOF
9134 #line 9135 "configure"
9135 #include "confdefs.h"
9136 /* System header to define __stub macros and hopefully few prototypes,
9137 which can conflict with char crypt(); below. */
9139 /* Override any gcc2 internal prototype to avoid an error. */
9140 /* We use char because int might match the return type of a gcc2
9141 builtin and then its argument prototype would still apply. */
9146 /* The GNU C library defines this for functions which it implements
9147 to always fail with ENOSYS. Some functions are actually named
9148 something starting with __ and the normal name is an alias. */
9149 #if defined (__stub_crypt) || defined (__stub___crypt)
9157 if { (eval echo configure:9158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9159 eval "ac_cv_func_crypt=yes"
9161 echo "configure: failed program was:" >&5
9162 cat conftest.$ac_ext >&5
9164 eval "ac_cv_func_crypt=no"
9169 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9170 echo "$ac_t""yes" 1>&6
9173 echo "$ac_t""no" 1>&6
9175 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9176 echo "configure:9177: checking for crypt in -lcrypt" >&5
9177 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9179 echo $ac_n "(cached) $ac_c" 1>&6
9181 ac_save_LIBS="$LIBS"
9182 LIBS="-lcrypt $LIBS"
9183 cat > conftest.$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9186 /* Override any gcc2 internal prototype to avoid an error. */
9187 /* We use char because int might match the return type of a gcc2
9188 builtin and then its argument prototype would still apply. */
9195 if { (eval echo configure:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9197 eval "ac_cv_lib_$ac_lib_var=yes"
9199 echo "configure: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9202 eval "ac_cv_lib_$ac_lib_var=no"
9205 LIBS="$ac_save_LIBS"
9208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9209 echo "$ac_t""yes" 1>&6
9210 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9213 echo "$ac_t""no" 1>&6
9220 if test $have_crypt = yes ; then
9221 cat >> confdefs.h <<\EOF
9222 #define HAVE_CRYPT 1
9226 echo "configure: warning: could not find crypt" 1>&2
9227 if test $ol_enable_crypt = yes ; then
9228 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9231 echo "configure: warning: disabling crypt support" 1>&2
9236 # FreeBSD (and others) have setproctitle(3) in -lutil
9237 if test $ol_enable_proctitle != no ; then
9238 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9239 echo "configure:9240: checking for setproctitle" >&5
9240 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9241 echo $ac_n "(cached) $ac_c" 1>&6
9243 cat > conftest.$ac_ext <<EOF
9244 #line 9245 "configure"
9245 #include "confdefs.h"
9246 /* System header to define __stub macros and hopefully few prototypes,
9247 which can conflict with char setproctitle(); below. */
9249 /* Override any gcc2 internal prototype to avoid an error. */
9250 /* We use char because int might match the return type of a gcc2
9251 builtin and then its argument prototype would still apply. */
9252 char setproctitle();
9256 /* The GNU C library defines this for functions which it implements
9257 to always fail with ENOSYS. Some functions are actually named
9258 something starting with __ and the normal name is an alias. */
9259 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9267 if { (eval echo configure:9268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9269 eval "ac_cv_func_setproctitle=yes"
9271 echo "configure: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9274 eval "ac_cv_func_setproctitle=no"
9279 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9280 echo "$ac_t""yes" 1>&6
9281 have_setproctitle=yes
9283 echo "$ac_t""no" 1>&6
9285 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9286 echo "configure:9287: checking for setproctitle in -lutil" >&5
9287 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9289 echo $ac_n "(cached) $ac_c" 1>&6
9291 ac_save_LIBS="$LIBS"
9293 cat > conftest.$ac_ext <<EOF
9294 #line 9295 "configure"
9295 #include "confdefs.h"
9296 /* Override any gcc2 internal prototype to avoid an error. */
9297 /* We use char because int might match the return type of a gcc2
9298 builtin and then its argument prototype would still apply. */
9299 char setproctitle();
9305 if { (eval echo configure:9306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9307 eval "ac_cv_lib_$ac_lib_var=yes"
9309 echo "configure: failed program was:" >&5
9310 cat conftest.$ac_ext >&5
9312 eval "ac_cv_lib_$ac_lib_var=no"
9315 LIBS="$ac_save_LIBS"
9318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9319 echo "$ac_t""yes" 1>&6
9320 have_setproctitle=yes
9321 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9323 echo "$ac_t""no" 1>&6
9324 have_setproctitle=no
9325 LIBOBJS="$LIBOBJS setproctitle.o"
9331 if test $have_setproctitle = yes ; then
9332 cat >> confdefs.h <<\EOF
9333 #define HAVE_SETPROCTITLE 1
9340 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9341 echo "configure:9342: checking for EBCDIC" >&5
9342 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9343 echo $ac_n "(cached) $ac_c" 1>&6
9346 cat > conftest.$ac_ext <<EOF
9347 #line 9348 "configure"
9348 #include "confdefs.h"
9351 #include <__ASCII__/generate_error.h>
9355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9356 { (eval echo configure:9357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9358 if test -z "$ac_err"; then
9360 ol_cv_cpp_ebcdic=yes
9363 echo "configure: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9371 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9372 if test $ol_cv_cpp_ebcdic = yes ; then
9373 cat >> confdefs.h <<\EOF
9374 #define HAVE_EBCDIC 1
9379 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9380 echo "configure:9381: checking for ANSI C header files" >&5
9381 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9382 echo $ac_n "(cached) $ac_c" 1>&6
9384 cat > conftest.$ac_ext <<EOF
9385 #line 9386 "configure"
9386 #include "confdefs.h"
9392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9393 { (eval echo configure:9394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9395 if test -z "$ac_err"; then
9397 ol_cv_header_stdc=yes
9400 echo "configure: failed program was:" >&5
9401 cat conftest.$ac_ext >&5
9403 ol_cv_header_stdc=no
9407 if test $ol_cv_header_stdc = yes; then
9408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9409 cat > conftest.$ac_ext <<EOF
9410 #line 9411 "configure"
9411 #include "confdefs.h"
9414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9415 egrep "memchr" >/dev/null 2>&1; then
9419 ol_cv_header_stdc=no
9425 if test $ol_cv_header_stdc = yes; then
9426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9427 cat > conftest.$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9433 egrep "free" >/dev/null 2>&1; then
9437 ol_cv_header_stdc=no
9443 if test $ol_cv_header_stdc = yes; then
9444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9445 if test "$cross_compiling" = yes; then
9448 cat > conftest.$ac_ext <<EOF
9449 #line 9450 "configure"
9450 #include "confdefs.h"
9453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9456 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9457 || ('j' <= (c) && (c) <= 'r') \
9458 || ('s' <= (c) && (c) <= 'z'))
9459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9462 int main () { int i; for (i = 0; i < 256; i++)
9463 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9467 if { (eval echo configure:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9474 ol_cv_header_stdc=no
9482 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9483 if test $ol_cv_header_stdc = yes; then
9484 cat >> confdefs.h <<\EOF
9485 #define STDC_HEADERS 1
9489 ac_cv_header_stdc=disable
9492 if test $ol_cv_header_stdc != yes; then
9493 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9497 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9500 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9501 echo "configure:9502: checking for $ac_hdr that defines DIR" >&5
9502 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9503 echo $ac_n "(cached) $ac_c" 1>&6
9505 cat > conftest.$ac_ext <<EOF
9506 #line 9507 "configure"
9507 #include "confdefs.h"
9508 #include <sys/types.h>
9514 if { (eval echo configure:9515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9516 eval "ac_cv_header_dirent_$ac_safe=yes"
9518 echo "configure: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9521 eval "ac_cv_header_dirent_$ac_safe=no"
9525 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9526 echo "$ac_t""yes" 1>&6
9527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9528 cat >> confdefs.h <<EOF
9529 #define $ac_tr_hdr 1
9531 ac_header_dirent=$ac_hdr; break
9533 echo "$ac_t""no" 1>&6
9536 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9537 if test $ac_header_dirent = dirent.h; then
9538 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9539 echo "configure:9540: checking for opendir in -ldir" >&5
9540 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9542 echo $ac_n "(cached) $ac_c" 1>&6
9544 ac_save_LIBS="$LIBS"
9546 cat > conftest.$ac_ext <<EOF
9547 #line 9548 "configure"
9548 #include "confdefs.h"
9549 /* Override any gcc2 internal prototype to avoid an error. */
9550 /* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9558 if { (eval echo configure:9559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9560 eval "ac_cv_lib_$ac_lib_var=yes"
9562 echo "configure: failed program was:" >&5
9563 cat conftest.$ac_ext >&5
9565 eval "ac_cv_lib_$ac_lib_var=no"
9568 LIBS="$ac_save_LIBS"
9571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9572 echo "$ac_t""yes" 1>&6
9575 echo "$ac_t""no" 1>&6
9579 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9580 echo "configure:9581: checking for opendir in -lx" >&5
9581 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9583 echo $ac_n "(cached) $ac_c" 1>&6
9585 ac_save_LIBS="$LIBS"
9587 cat > conftest.$ac_ext <<EOF
9588 #line 9589 "configure"
9589 #include "confdefs.h"
9590 /* Override any gcc2 internal prototype to avoid an error. */
9591 /* We use char because int might match the return type of a gcc2
9592 builtin and then its argument prototype would still apply. */
9599 if { (eval echo configure:9600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9601 eval "ac_cv_lib_$ac_lib_var=yes"
9603 echo "configure: failed program was:" >&5
9604 cat conftest.$ac_ext >&5
9606 eval "ac_cv_lib_$ac_lib_var=no"
9609 LIBS="$ac_save_LIBS"
9612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9613 echo "$ac_t""yes" 1>&6
9616 echo "$ac_t""no" 1>&6
9621 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9622 echo "configure:9623: checking for sys/wait.h that is POSIX.1 compatible" >&5
9623 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9624 echo $ac_n "(cached) $ac_c" 1>&6
9626 cat > conftest.$ac_ext <<EOF
9627 #line 9628 "configure"
9628 #include "confdefs.h"
9629 #include <sys/types.h>
9630 #include <sys/wait.h>
9632 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9635 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9640 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9643 if { (eval echo configure:9644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9645 ac_cv_header_sys_wait_h=yes
9647 echo "configure: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9650 ac_cv_header_sys_wait_h=no
9655 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9656 if test $ac_cv_header_sys_wait_h = yes; then
9657 cat >> confdefs.h <<\EOF
9658 #define HAVE_SYS_WAIT_H 1
9663 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9664 echo "configure:9665: checking POSIX termios" >&5
9665 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9666 echo $ac_n "(cached) $ac_c" 1>&6
9668 cat > conftest.$ac_ext <<EOF
9669 #line 9670 "configure"
9670 #include "confdefs.h"
9671 #include <sys/types.h>
9673 #include <termios.h>
9675 /* SunOS 4.0.3 has termios.h but not the library calls. */
9679 if { (eval echo configure:9680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9681 am_cv_sys_posix_termios=yes
9683 echo "configure: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9686 am_cv_sys_posix_termios=no
9691 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9694 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9695 echo "configure:9696: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9696 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9697 echo $ac_n "(cached) $ac_c" 1>&6
9699 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9701 gwinsz_in_termios_h=no
9702 if test $am_cv_sys_posix_termios = yes; then
9703 cat > conftest.$ac_ext <<EOF
9704 #line 9705 "configure"
9705 #include "confdefs.h"
9706 #include <sys/types.h>
9707 # include <termios.h>
9713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9714 egrep "yes" >/dev/null 2>&1; then
9716 gwinsz_in_termios_h=yes
9722 if test $gwinsz_in_termios_h = no; then
9723 cat > conftest.$ac_ext <<EOF
9724 #line 9725 "configure"
9725 #include "confdefs.h"
9726 #include <sys/types.h>
9727 # include <sys/ioctl.h>
9733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9734 egrep "yes" >/dev/null 2>&1; then
9736 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9744 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9745 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9746 cat >> confdefs.h <<\EOF
9747 #define GWINSZ_IN_SYS_IOCTL 1
9752 if test $am_cv_sys_posix_termios = yes ; then
9753 cat >> confdefs.h <<\EOF
9754 #define HAVE_POSIX_TERMIOS 1
9799 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9801 echo "configure:9802: checking for $ac_hdr" >&5
9802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9811 { (eval echo configure:9812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9813 if test -z "$ac_err"; then
9815 eval "ac_cv_header_$ac_safe=yes"
9818 echo "configure: failed program was:" >&5
9819 cat conftest.$ac_ext >&5
9821 eval "ac_cv_header_$ac_safe=no"
9825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9826 echo "$ac_t""yes" 1>&6
9827 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9828 cat >> confdefs.h <<EOF
9829 #define $ac_tr_hdr 1
9833 echo "$ac_t""no" 1>&6
9838 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9839 echo "configure:9840: checking for uid_t in sys/types.h" >&5
9840 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9843 cat > conftest.$ac_ext <<EOF
9844 #line 9845 "configure"
9845 #include "confdefs.h"
9846 #include <sys/types.h>
9848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9849 egrep "uid_t" >/dev/null 2>&1; then
9851 ac_cv_type_uid_t=yes
9860 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9861 if test $ac_cv_type_uid_t = no; then
9862 cat >> confdefs.h <<\EOF
9866 cat >> confdefs.h <<\EOF
9872 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
9873 echo "configure:9874: checking type of array argument to getgroups" >&5
9874 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9877 if test "$cross_compiling" = yes; then
9878 ac_cv_type_getgroups=cross
9880 cat > conftest.$ac_ext <<EOF
9881 #line 9882 "configure"
9882 #include "confdefs.h"
9884 /* Thanks to Mike Rendell for this test. */
9885 #include <sys/types.h>
9888 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9893 union { gid_t gval; long lval; } val;
9896 for (i = 0; i < NGID; i++)
9897 gidset[i] = val.gval;
9898 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9900 /* Exit non-zero if getgroups seems to require an array of ints. This
9901 happens when gid_t is short but getgroups modifies an array of ints. */
9902 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9906 if { (eval echo configure:9907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9908 ac_cv_type_getgroups=gid_t
9910 echo "configure: failed program was:" >&5
9911 cat conftest.$ac_ext >&5
9913 ac_cv_type_getgroups=int
9918 if test $ac_cv_type_getgroups = cross; then
9919 cat > conftest.$ac_ext <<EOF
9920 #line 9921 "configure"
9921 #include "confdefs.h"
9924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9925 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9927 ac_cv_type_getgroups=gid_t
9930 ac_cv_type_getgroups=int
9937 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
9938 cat >> confdefs.h <<EOF
9939 #define GETGROUPS_T $ac_cv_type_getgroups
9942 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9943 echo "configure:9944: checking for ANSI C header files" >&5
9944 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9945 echo $ac_n "(cached) $ac_c" 1>&6
9947 cat > conftest.$ac_ext <<EOF
9948 #line 9949 "configure"
9949 #include "confdefs.h"
9955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9956 { (eval echo configure:9957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9958 if test -z "$ac_err"; then
9960 ac_cv_header_stdc=yes
9963 echo "configure: failed program was:" >&5
9964 cat conftest.$ac_ext >&5
9966 ac_cv_header_stdc=no
9970 if test $ac_cv_header_stdc = yes; then
9971 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9972 cat > conftest.$ac_ext <<EOF
9973 #line 9974 "configure"
9974 #include "confdefs.h"
9977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9978 egrep "memchr" >/dev/null 2>&1; then
9982 ac_cv_header_stdc=no
9988 if test $ac_cv_header_stdc = yes; then
9989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9990 cat > conftest.$ac_ext <<EOF
9991 #line 9992 "configure"
9992 #include "confdefs.h"
9995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9996 egrep "free" >/dev/null 2>&1; then
10000 ac_cv_header_stdc=no
10006 if test $ac_cv_header_stdc = yes; then
10007 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10008 if test "$cross_compiling" = yes; then
10011 cat > conftest.$ac_ext <<EOF
10012 #line 10013 "configure"
10013 #include "confdefs.h"
10015 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10016 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10018 int main () { int i; for (i = 0; i < 256; i++)
10019 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10023 if { (eval echo configure:10024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10027 echo "configure: failed program was:" >&5
10028 cat conftest.$ac_ext >&5
10030 ac_cv_header_stdc=no
10038 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10039 if test $ac_cv_header_stdc = yes; then
10040 cat >> confdefs.h <<\EOF
10041 #define STDC_HEADERS 1
10046 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10047 echo "configure:10048: checking for mode_t" >&5
10048 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
10049 echo $ac_n "(cached) $ac_c" 1>&6
10051 cat > conftest.$ac_ext <<EOF
10052 #line 10053 "configure"
10053 #include "confdefs.h"
10054 #include <sys/types.h>
10056 #include <stdlib.h>
10057 #include <stddef.h>
10060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10061 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10063 ac_cv_type_mode_t=yes
10066 ac_cv_type_mode_t=no
10071 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
10072 if test $ac_cv_type_mode_t = no; then
10073 cat >> confdefs.h <<\EOF
10079 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10080 echo "configure:10081: checking for off_t" >&5
10081 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
10082 echo $ac_n "(cached) $ac_c" 1>&6
10084 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10087 #include <sys/types.h>
10089 #include <stdlib.h>
10090 #include <stddef.h>
10093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10094 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10096 ac_cv_type_off_t=yes
10099 ac_cv_type_off_t=no
10104 echo "$ac_t""$ac_cv_type_off_t" 1>&6
10105 if test $ac_cv_type_off_t = no; then
10106 cat >> confdefs.h <<\EOF
10112 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10113 echo "configure:10114: checking for pid_t" >&5
10114 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
10115 echo $ac_n "(cached) $ac_c" 1>&6
10117 cat > conftest.$ac_ext <<EOF
10118 #line 10119 "configure"
10119 #include "confdefs.h"
10120 #include <sys/types.h>
10122 #include <stdlib.h>
10123 #include <stddef.h>
10126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10127 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10129 ac_cv_type_pid_t=yes
10132 ac_cv_type_pid_t=no
10137 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10138 if test $ac_cv_type_pid_t = no; then
10139 cat >> confdefs.h <<\EOF
10145 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10146 echo "configure:10147: checking for ptrdiff_t" >&5
10147 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10148 echo $ac_n "(cached) $ac_c" 1>&6
10150 cat > conftest.$ac_ext <<EOF
10151 #line 10152 "configure"
10152 #include "confdefs.h"
10153 #include <stddef.h>
10158 if { (eval echo configure:10159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10160 am_cv_type_ptrdiff_t=yes
10162 echo "configure: failed program was:" >&5
10163 cat conftest.$ac_ext >&5
10165 am_cv_type_ptrdiff_t=no
10170 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10171 if test $am_cv_type_ptrdiff_t = yes; then
10172 cat >> confdefs.h <<\EOF
10173 #define HAVE_PTRDIFF_T 1
10178 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10179 echo "configure:10180: checking return type of signal handlers" >&5
10180 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10181 echo $ac_n "(cached) $ac_c" 1>&6
10183 cat > conftest.$ac_ext <<EOF
10184 #line 10185 "configure"
10185 #include "confdefs.h"
10186 #include <sys/types.h>
10187 #include <signal.h>
10192 extern "C" void (*signal (int, void (*)(int)))(int);
10194 void (*signal ()) ();
10201 if { (eval echo configure:10202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10203 ac_cv_type_signal=void
10205 echo "configure: failed program was:" >&5
10206 cat conftest.$ac_ext >&5
10208 ac_cv_type_signal=int
10213 echo "$ac_t""$ac_cv_type_signal" 1>&6
10214 cat >> confdefs.h <<EOF
10215 #define RETSIGTYPE $ac_cv_type_signal
10219 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10220 echo "configure:10221: checking for sig_atomic_t" >&5
10221 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10222 echo $ac_n "(cached) $ac_c" 1>&6
10224 cat > conftest.$ac_ext <<EOF
10225 #line 10226 "configure"
10226 #include "confdefs.h"
10227 #include <signal.h>
10229 sig_atomic_t atomic;
10232 if { (eval echo configure:10233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10234 ol_cv_type_sig_atomic_t=yes
10236 echo "configure: failed program was:" >&5
10237 cat conftest.$ac_ext >&5
10239 ol_cv_type_sig_atomic_t=no
10244 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10245 if test $ol_cv_type_sig_atomic_t = no; then
10246 cat >> confdefs.h <<\EOF
10247 #define sig_atomic_t int
10252 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10253 echo "configure:10254: checking for size_t" >&5
10254 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10255 echo $ac_n "(cached) $ac_c" 1>&6
10257 cat > conftest.$ac_ext <<EOF
10258 #line 10259 "configure"
10259 #include "confdefs.h"
10260 #include <sys/types.h>
10262 #include <stdlib.h>
10263 #include <stddef.h>
10266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10267 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10269 ac_cv_type_size_t=yes
10272 ac_cv_type_size_t=no
10277 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10278 if test $ac_cv_type_size_t = no; then
10279 cat >> confdefs.h <<\EOF
10280 #define size_t unsigned
10285 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10286 echo "configure:10287: checking for st_blksize in struct stat" >&5
10287 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10288 echo $ac_n "(cached) $ac_c" 1>&6
10290 cat > conftest.$ac_ext <<EOF
10291 #line 10292 "configure"
10292 #include "confdefs.h"
10293 #include <sys/types.h>
10294 #include <sys/stat.h>
10296 struct stat s; s.st_blksize;
10299 if { (eval echo configure:10300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10301 ac_cv_struct_st_blksize=yes
10303 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10306 ac_cv_struct_st_blksize=no
10311 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10312 if test $ac_cv_struct_st_blksize = yes; then
10313 cat >> confdefs.h <<\EOF
10314 #define HAVE_ST_BLKSIZE 1
10319 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10320 echo "configure:10321: checking whether time.h and sys/time.h may both be included" >&5
10321 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10324 cat > conftest.$ac_ext <<EOF
10325 #line 10326 "configure"
10326 #include "confdefs.h"
10327 #include <sys/types.h>
10328 #include <sys/time.h>
10334 if { (eval echo configure:10335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10336 ac_cv_header_time=yes
10338 echo "configure: failed program was:" >&5
10339 cat conftest.$ac_ext >&5
10341 ac_cv_header_time=no
10346 echo "$ac_t""$ac_cv_header_time" 1>&6
10347 if test $ac_cv_header_time = yes; then
10348 cat >> confdefs.h <<\EOF
10349 #define TIME_WITH_SYS_TIME 1
10354 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10355 echo "configure:10356: checking whether struct tm is in sys/time.h or time.h" >&5
10356 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10357 echo $ac_n "(cached) $ac_c" 1>&6
10359 cat > conftest.$ac_ext <<EOF
10360 #line 10361 "configure"
10361 #include "confdefs.h"
10362 #include <sys/types.h>
10365 struct tm *tp; tp->tm_sec;
10368 if { (eval echo configure:10369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10370 ac_cv_struct_tm=time.h
10372 echo "configure: failed program was:" >&5
10373 cat conftest.$ac_ext >&5
10375 ac_cv_struct_tm=sys/time.h
10380 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10381 if test $ac_cv_struct_tm = sys/time.h; then
10382 cat >> confdefs.h <<\EOF
10383 #define TM_IN_SYS_TIME 1
10388 # test for pw_gecos in struct passwd
10389 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10390 echo "configure:10391: checking struct passwd for pw_gecos" >&5
10391 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10392 echo $ac_n "(cached) $ac_c" 1>&6
10395 cat > conftest.$ac_ext <<EOF
10396 #line 10397 "configure"
10397 #include "confdefs.h"
10402 pwd.pw_gecos = pwd.pw_name;
10406 if { (eval echo configure:10407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10408 ol_cv_struct_passwd_pw_gecos=yes
10410 echo "configure: failed program was:" >&5
10411 cat conftest.$ac_ext >&5
10413 ol_cv_struct_passwd_pw_gecos=no
10418 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10419 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10420 cat >> confdefs.h <<\EOF
10421 #define HAVE_PW_GECOS 1
10428 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10429 echo "configure:10430: checking if toupper() requires islower()" >&5
10430 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10431 echo $ac_n "(cached) $ac_c" 1>&6
10434 if test "$cross_compiling" = yes; then
10435 ol_cv_c_upper_lower=safe
10437 cat > conftest.$ac_ext <<EOF
10438 #line 10439 "configure"
10439 #include "confdefs.h"
10444 if ('C' == toupper('C'))
10450 if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10452 ol_cv_c_upper_lower=no
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10457 ol_cv_c_upper_lower=yes
10464 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10465 if test $ol_cv_c_upper_lower != no ; then
10466 cat >> confdefs.h <<\EOF
10467 #define C_UPPER_LOWER 1
10472 echo $ac_n "checking for working const""... $ac_c" 1>&6
10473 echo "configure:10474: checking for working const" >&5
10474 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10477 cat > conftest.$ac_ext <<EOF
10478 #line 10479 "configure"
10479 #include "confdefs.h"
10483 /* Ultrix mips cc rejects this. */
10484 typedef int charset[2]; const charset x;
10485 /* SunOS 4.1.1 cc rejects this. */
10486 char const *const *ccp;
10488 /* NEC SVR4.0.2 mips cc rejects this. */
10489 struct point {int x, y;};
10490 static struct point const zero = {0,0};
10491 /* AIX XL C 1.02.0.0 rejects this.
10492 It does not let you subtract one const X* pointer from another in an arm
10493 of an if-expression whose if-part is not a constant expression */
10494 const char *g = "string";
10495 ccp = &g + (g ? g-g : 0);
10496 /* HPUX 7.0 cc rejects these. */
10499 ccp = (char const *const *) p;
10500 { /* SCO 3.2v4 cc rejects this. */
10502 char const *s = 0 ? (char *) 0 : (char const *) 0;
10506 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10507 int x[] = {25, 17};
10508 const int *foo = &x[0];
10511 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10512 typedef const int *iptr;
10516 { /* AIX XL C 1.02.0.0 rejects this saying
10517 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10518 struct s { int j; const int *ap[3]; };
10519 struct s *b; b->j = 5;
10521 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10522 const int foo = 10;
10527 if { (eval echo configure:10528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10531 echo "configure: failed program was:" >&5
10532 cat conftest.$ac_ext >&5
10539 echo "$ac_t""$ac_cv_c_const" 1>&6
10540 if test $ac_cv_c_const = no; then
10541 cat >> confdefs.h <<\EOF
10547 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10548 echo "configure:10549: checking if compiler understands volatile" >&5
10549 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10550 echo $ac_n "(cached) $ac_c" 1>&6
10552 cat > conftest.$ac_ext <<EOF
10553 #line 10554 "configure"
10554 #include "confdefs.h"
10557 volatile int a; int * volatile b = x ? &y : &z;
10558 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10562 if { (eval echo configure:10563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10564 ol_cv_c_volatile=yes
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10569 ol_cv_c_volatile=no
10574 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10575 if test $ol_cv_c_volatile = yes; then
10578 cat >> confdefs.h <<\EOF
10585 if test $cross_compiling = yes ; then
10586 cat >> confdefs.h <<\EOF
10587 #define CROSS_COMPILING 1
10591 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10592 echo "configure:10593: checking whether byte ordering is bigendian" >&5
10593 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10594 echo $ac_n "(cached) $ac_c" 1>&6
10596 ac_cv_c_bigendian=unknown
10597 # See if sys/param.h defines the BYTE_ORDER macro.
10598 cat > conftest.$ac_ext <<EOF
10599 #line 10600 "configure"
10600 #include "confdefs.h"
10601 #include <sys/types.h>
10602 #include <sys/param.h>
10605 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10606 bogus endian macros
10610 if { (eval echo configure:10611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10612 # It does; now see whether it defined to BIG_ENDIAN or not.
10613 cat > conftest.$ac_ext <<EOF
10614 #line 10615 "configure"
10615 #include "confdefs.h"
10616 #include <sys/types.h>
10617 #include <sys/param.h>
10620 #if BYTE_ORDER != BIG_ENDIAN
10625 if { (eval echo configure:10626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10627 ac_cv_c_bigendian=yes
10629 echo "configure: failed program was:" >&5
10630 cat conftest.$ac_ext >&5
10632 ac_cv_c_bigendian=no
10636 echo "configure: failed program was:" >&5
10637 cat conftest.$ac_ext >&5
10640 if test $ac_cv_c_bigendian = unknown; then
10641 if test "$cross_compiling" = yes; then
10642 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10644 cat > conftest.$ac_ext <<EOF
10645 #line 10646 "configure"
10646 #include "confdefs.h"
10648 /* Are we little or big endian? From Harbison&Steele. */
10652 char c[sizeof (long)];
10655 exit (u.c[sizeof (long) - 1] == 1);
10658 if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10660 ac_cv_c_bigendian=no
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10665 ac_cv_c_bigendian=yes
10673 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10674 if test $ac_cv_c_bigendian = yes; then
10675 cat >> confdefs.h <<\EOF
10676 #define WORDS_BIGENDIAN 1
10681 echo $ac_n "checking size of short""... $ac_c" 1>&6
10682 echo "configure:10683: checking size of short" >&5
10683 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10684 echo $ac_n "(cached) $ac_c" 1>&6
10686 if test "$cross_compiling" = yes; then
10687 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10689 cat > conftest.$ac_ext <<EOF
10690 #line 10691 "configure"
10691 #include "confdefs.h"
10695 FILE *f=fopen("conftestval", "w");
10697 fprintf(f, "%d\n", sizeof(short));
10701 if { (eval echo configure:10702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10703 ac_cv_sizeof_short=`cat conftestval`
10705 echo "configure: failed program was:" >&5
10706 cat conftest.$ac_ext >&5
10708 ac_cv_sizeof_short=0
10714 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10715 cat >> confdefs.h <<EOF
10716 #define SIZEOF_SHORT $ac_cv_sizeof_short
10720 echo $ac_n "checking size of int""... $ac_c" 1>&6
10721 echo "configure:10722: checking size of int" >&5
10722 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10723 echo $ac_n "(cached) $ac_c" 1>&6
10725 if test "$cross_compiling" = yes; then
10726 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10728 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10734 FILE *f=fopen("conftestval", "w");
10736 fprintf(f, "%d\n", sizeof(int));
10740 if { (eval echo configure:10741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10742 ac_cv_sizeof_int=`cat conftestval`
10744 echo "configure: failed program was:" >&5
10745 cat conftest.$ac_ext >&5
10753 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10754 cat >> confdefs.h <<EOF
10755 #define SIZEOF_INT $ac_cv_sizeof_int
10759 echo $ac_n "checking size of long""... $ac_c" 1>&6
10760 echo "configure:10761: checking size of long" >&5
10761 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10762 echo $ac_n "(cached) $ac_c" 1>&6
10764 if test "$cross_compiling" = yes; then
10765 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10767 cat > conftest.$ac_ext <<EOF
10768 #line 10769 "configure"
10769 #include "confdefs.h"
10773 FILE *f=fopen("conftestval", "w");
10775 fprintf(f, "%d\n", sizeof(long));
10779 if { (eval echo configure:10780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10781 ac_cv_sizeof_long=`cat conftestval`
10783 echo "configure: failed program was:" >&5
10784 cat conftest.$ac_ext >&5
10786 ac_cv_sizeof_long=0
10792 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10793 cat >> confdefs.h <<EOF
10794 #define SIZEOF_LONG $ac_cv_sizeof_long
10800 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10801 echo "configure:10802: checking for 8-bit clean memcmp" >&5
10802 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10803 echo $ac_n "(cached) $ac_c" 1>&6
10805 if test "$cross_compiling" = yes; then
10806 ac_cv_func_memcmp_clean=no
10808 cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10814 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10815 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10819 if { (eval echo configure:10820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10821 ac_cv_func_memcmp_clean=yes
10823 echo "configure: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10826 ac_cv_func_memcmp_clean=no
10833 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10834 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10836 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10837 echo "configure:10838: checking for strftime" >&5
10838 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10839 echo $ac_n "(cached) $ac_c" 1>&6
10841 cat > conftest.$ac_ext <<EOF
10842 #line 10843 "configure"
10843 #include "confdefs.h"
10844 /* System header to define __stub macros and hopefully few prototypes,
10845 which can conflict with char strftime(); below. */
10846 #include <assert.h>
10847 /* Override any gcc2 internal prototype to avoid an error. */
10848 /* We use char because int might match the return type of a gcc2
10849 builtin and then its argument prototype would still apply. */
10854 /* The GNU C library defines this for functions which it implements
10855 to always fail with ENOSYS. Some functions are actually named
10856 something starting with __ and the normal name is an alias. */
10857 #if defined (__stub_strftime) || defined (__stub___strftime)
10865 if { (eval echo configure:10866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10867 eval "ac_cv_func_strftime=yes"
10869 echo "configure: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10872 eval "ac_cv_func_strftime=no"
10877 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
10878 echo "$ac_t""yes" 1>&6
10879 cat >> confdefs.h <<\EOF
10880 #define HAVE_STRFTIME 1
10884 echo "$ac_t""no" 1>&6
10885 # strftime is in -lintl on SCO UNIX.
10886 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
10887 echo "configure:10888: checking for strftime in -lintl" >&5
10888 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
10889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10890 echo $ac_n "(cached) $ac_c" 1>&6
10892 ac_save_LIBS="$LIBS"
10893 LIBS="-lintl $LIBS"
10894 cat > conftest.$ac_ext <<EOF
10895 #line 10896 "configure"
10896 #include "confdefs.h"
10897 /* Override any gcc2 internal prototype to avoid an error. */
10898 /* We use char because int might match the return type of a gcc2
10899 builtin and then its argument prototype would still apply. */
10906 if { (eval echo configure:10907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10908 eval "ac_cv_lib_$ac_lib_var=yes"
10910 echo "configure: failed program was:" >&5
10911 cat conftest.$ac_ext >&5
10913 eval "ac_cv_lib_$ac_lib_var=no"
10916 LIBS="$ac_save_LIBS"
10919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10920 echo "$ac_t""yes" 1>&6
10921 cat >> confdefs.h <<\EOF
10922 #define HAVE_STRFTIME 1
10925 LIBS="-lintl $LIBS"
10927 echo "$ac_t""no" 1>&6
10933 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10934 echo "configure:10935: checking for vprintf" >&5
10935 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10936 echo $ac_n "(cached) $ac_c" 1>&6
10938 cat > conftest.$ac_ext <<EOF
10939 #line 10940 "configure"
10940 #include "confdefs.h"
10941 /* System header to define __stub macros and hopefully few prototypes,
10942 which can conflict with char vprintf(); below. */
10943 #include <assert.h>
10944 /* Override any gcc2 internal prototype to avoid an error. */
10945 /* We use char because int might match the return type of a gcc2
10946 builtin and then its argument prototype would still apply. */
10951 /* The GNU C library defines this for functions which it implements
10952 to always fail with ENOSYS. Some functions are actually named
10953 something starting with __ and the normal name is an alias. */
10954 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10962 if { (eval echo configure:10963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10964 eval "ac_cv_func_vprintf=yes"
10966 echo "configure: failed program was:" >&5
10967 cat conftest.$ac_ext >&5
10969 eval "ac_cv_func_vprintf=no"
10974 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10975 echo "$ac_t""yes" 1>&6
10976 cat >> confdefs.h <<\EOF
10977 #define HAVE_VPRINTF 1
10981 echo "$ac_t""no" 1>&6
10984 if test "$ac_cv_func_vprintf" != yes; then
10985 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10986 echo "configure:10987: checking for _doprnt" >&5
10987 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10993 /* System header to define __stub macros and hopefully few prototypes,
10994 which can conflict with char _doprnt(); below. */
10995 #include <assert.h>
10996 /* Override any gcc2 internal prototype to avoid an error. */
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
11003 /* The GNU C library defines this for functions which it implements
11004 to always fail with ENOSYS. Some functions are actually named
11005 something starting with __ and the normal name is an alias. */
11006 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11014 if { (eval echo configure:11015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11016 eval "ac_cv_func__doprnt=yes"
11018 echo "configure: failed program was:" >&5
11019 cat conftest.$ac_ext >&5
11021 eval "ac_cv_func__doprnt=no"
11026 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11027 echo "$ac_t""yes" 1>&6
11028 cat >> confdefs.h <<\EOF
11029 #define HAVE_DOPRNT 1
11033 echo "$ac_t""no" 1>&6
11039 if test $ac_cv_func_vprintf = yes ; then
11040 for ac_func in vsnprintf vsprintf
11042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11043 echo "configure:11044: checking for $ac_func" >&5
11044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11045 echo $ac_n "(cached) $ac_c" 1>&6
11047 cat > conftest.$ac_ext <<EOF
11048 #line 11049 "configure"
11049 #include "confdefs.h"
11050 /* System header to define __stub macros and hopefully few prototypes,
11051 which can conflict with char $ac_func(); below. */
11052 #include <assert.h>
11053 /* Override any gcc2 internal prototype to avoid an error. */
11054 /* We use char because int might match the return type of a gcc2
11055 builtin and then its argument prototype would still apply. */
11060 /* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11071 if { (eval echo configure:11072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11073 eval "ac_cv_func_$ac_func=yes"
11075 echo "configure: failed program was:" >&5
11076 cat conftest.$ac_ext >&5
11078 eval "ac_cv_func_$ac_func=no"
11083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11084 echo "$ac_t""yes" 1>&6
11085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11086 cat >> confdefs.h <<EOF
11087 #define $ac_tr_func 1
11091 echo "$ac_t""no" 1>&6
11138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11139 echo "configure:11140: checking for $ac_func" >&5
11140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11141 echo $ac_n "(cached) $ac_c" 1>&6
11143 cat > conftest.$ac_ext <<EOF
11144 #line 11145 "configure"
11145 #include "confdefs.h"
11146 /* System header to define __stub macros and hopefully few prototypes,
11147 which can conflict with char $ac_func(); below. */
11148 #include <assert.h>
11149 /* Override any gcc2 internal prototype to avoid an error. */
11150 /* We use char because int might match the return type of a gcc2
11151 builtin and then its argument prototype would still apply. */
11156 /* The GNU C library defines this for functions which it implements
11157 to always fail with ENOSYS. Some functions are actually named
11158 something starting with __ and the normal name is an alias. */
11159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11167 if { (eval echo configure:11168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11169 eval "ac_cv_func_$ac_func=yes"
11171 echo "configure: failed program was:" >&5
11172 cat conftest.$ac_ext >&5
11174 eval "ac_cv_func_$ac_func=no"
11179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11180 echo "$ac_t""yes" 1>&6
11181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11182 cat >> confdefs.h <<EOF
11183 #define $ac_tr_func 1
11187 echo "$ac_t""no" 1>&6
11192 for ac_func in getopt tempnam
11194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11195 echo "configure:11196: checking for $ac_func" >&5
11196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11197 echo $ac_n "(cached) $ac_c" 1>&6
11199 cat > conftest.$ac_ext <<EOF
11200 #line 11201 "configure"
11201 #include "confdefs.h"
11202 /* System header to define __stub macros and hopefully few prototypes,
11203 which can conflict with char $ac_func(); below. */
11204 #include <assert.h>
11205 /* Override any gcc2 internal prototype to avoid an error. */
11206 /* We use char because int might match the return type of a gcc2
11207 builtin and then its argument prototype would still apply. */
11212 /* The GNU C library defines this for functions which it implements
11213 to always fail with ENOSYS. Some functions are actually named
11214 something starting with __ and the normal name is an alias. */
11215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11223 if { (eval echo configure:11224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11225 eval "ac_cv_func_$ac_func=yes"
11227 echo "configure: failed program was:" >&5
11228 cat conftest.$ac_ext >&5
11230 eval "ac_cv_func_$ac_func=no"
11235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11236 echo "$ac_t""yes" 1>&6
11237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11238 cat >> confdefs.h <<EOF
11239 #define $ac_tr_func 1
11243 echo "$ac_t""no" 1>&6
11244 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11250 # Check Configuration
11252 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11253 echo "configure:11254: checking declaration of sys_errlist" >&5
11254 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11255 echo $ac_n "(cached) $ac_c" 1>&6
11258 cat > conftest.$ac_ext <<EOF
11259 #line 11260 "configure"
11260 #include "confdefs.h"
11263 #include <sys/types.h>
11266 char *c = (char *) *sys_errlist
11269 if { (eval echo configure:11270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11271 ol_cv_dcl_sys_errlist=yes
11273 echo "configure: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11276 ol_cv_dcl_sys_errlist=no
11281 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11282 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11283 if test $ol_cv_dcl_sys_errlist = no ; then
11284 cat >> confdefs.h <<\EOF
11285 #define DECL_SYS_ERRLIST 1
11288 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11289 echo "configure:11290: checking existence of sys_errlist" >&5
11290 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11294 cat > conftest.$ac_ext <<EOF
11295 #line 11296 "configure"
11296 #include "confdefs.h"
11299 char *c = (char *) *sys_errlist
11302 if { (eval echo configure:11303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11304 ol_cv_have_sys_errlist=yes
11306 echo "configure: failed program was:" >&5
11307 cat conftest.$ac_ext >&5
11309 ol_cv_have_sys_errlist=no
11314 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11315 if test $ol_cv_have_sys_errlist = yes ; then
11316 cat >> confdefs.h <<\EOF
11317 #define HAVE_SYS_ERRLIST 1
11325 if test "$ol_enable_debug" != no ; then
11326 cat >> confdefs.h <<\EOF
11327 #define LDAP_DEBUG 1
11331 if test "$ol_enable_syslog" = yes ; then
11332 cat >> confdefs.h <<\EOF
11333 #define LDAP_SYSLOG 1
11337 if test "$ol_enable_libui" = yes ; then
11338 cat >> confdefs.h <<\EOF
11339 #define LDAP_LIBUI 1
11343 if test "$ol_enable_cache" = no ; then
11344 cat >> confdefs.h <<\EOF
11345 #define LDAP_NOCACHE 1
11349 if test "$ol_enable_dns" != no ; then
11350 cat >> confdefs.h <<\EOF
11351 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11355 if test "$ol_enable_proctitle" != no ; then
11356 cat >> confdefs.h <<\EOF
11357 #define LDAP_PROCTITLE 1
11361 if test "$ol_enable_referrals" != no ; then
11362 cat >> confdefs.h <<\EOF
11363 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11367 if test "$ol_enable_cldap" != no ; then
11368 cat >> confdefs.h <<\EOF
11369 #define LDAP_CONNECTIONLESS 1
11374 if test "$ol_enable_aclgroups" != no ; then
11375 cat >> confdefs.h <<\EOF
11376 #define SLAPD_ACLGROUPS 1
11380 if test "$ol_enable_crypt" != no ; then
11381 cat >> confdefs.h <<\EOF
11382 #define SLAPD_CRYPT 1
11386 if test "$ol_enable_cleartext" != no ; then
11387 cat >> confdefs.h <<\EOF
11388 #define SLAPD_CLEARTEXT 1
11392 if test "$ol_enable_phonetic" != no ; then
11393 cat >> confdefs.h <<\EOF
11394 #define SLAPD_PHONETIC 1
11398 if test "$ol_enable_rlookups" != no ; then
11399 cat >> confdefs.h <<\EOF
11400 #define SLAPD_RLOOKUPS 1
11405 if test "$ol_link_modules" != no ; then
11406 cat >> confdefs.h <<\EOF
11407 #define SLAPD_MODULES 1
11413 if test "$ol_link_bdb2" != no ; then
11414 cat >> confdefs.h <<\EOF
11415 #define SLAPD_BDB2 1
11422 if test "$ol_enable_ldap" != no ; then
11423 cat >> confdefs.h <<\EOF
11424 #define SLAPD_LDAP 1
11431 if test "$ol_link_ldbm" != no ; then
11432 cat >> confdefs.h <<\EOF
11433 #define SLAPD_LDBM 1
11440 if test "$ol_enable_passwd" != no ; then
11441 cat >> confdefs.h <<\EOF
11442 #define SLAPD_PASSWD 1
11449 if test "$ol_link_perl" != no ; then
11450 cat >> confdefs.h <<\EOF
11451 #define SLAPD_PERL 1
11458 if test "$ol_enable_shell" != no ; then
11459 cat >> confdefs.h <<\EOF
11460 #define SLAPD_SHELL 1
11467 if test "$ol_enable_tcl" != no ; then
11468 cat >> confdefs.h <<\EOF
11469 #define SLAPD_TCL 1
11476 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11477 $BUILD_SLAPD = yes ; then
11481 if test "$ol_link_isode" != no ; then
11519 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11522 # Let make expand exec_prefix.
11523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11525 # Any assignment to VPATH causes Sun make to only execute
11526 # the first set of double-colon rules, so remove it if not needed.
11527 # If there is a colon in the path, we need to keep it.
11528 if test "x$srcdir" = x.; then
11529 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11532 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11534 DEFS=-DHAVE_CONFIG_H
11536 # Without the "./", some shells look in PATH for config.status.
11537 : ${CONFIG_STATUS=./config.status}
11539 echo creating $CONFIG_STATUS
11540 rm -f $CONFIG_STATUS
11541 cat > $CONFIG_STATUS <<EOF
11543 # Generated automatically by configure.
11544 # Run this file to recreate the current configuration.
11545 # This directory was configured as follows,
11546 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11548 # $0 $ac_configure_args
11550 # Compiler output produced by configure, useful for debugging
11551 # configure, is in ./config.log if it exists.
11553 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11556 case "\$ac_option" in
11557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11558 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11559 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11560 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11561 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11563 -help | --help | --hel | --he | --h)
11564 echo "\$ac_cs_usage"; exit 0 ;;
11565 *) echo "\$ac_cs_usage"; exit 1 ;;
11569 ac_given_srcdir=$srcdir
11570 ac_given_INSTALL="$INSTALL"
11572 trap 'rm -fr `echo "\
11573 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11574 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11575 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11576 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11577 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11578 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11579 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11580 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11581 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11582 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11583 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11584 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11585 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11586 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11587 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11588 include/Makefile:build/top.mk:include/Makefile.in \
11589 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11590 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11591 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11592 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11593 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11594 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11595 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11596 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11597 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11598 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11599 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11600 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11601 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11602 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11603 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11604 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11605 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11606 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11607 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11608 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11609 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11610 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11611 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11612 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11613 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11614 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11615 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11617 cat >> $CONFIG_STATUS <<EOF
11619 # Protect against being on the right side of a sed subst in config.status.
11620 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11621 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11625 s%@CFLAGS@%$CFLAGS%g
11626 s%@CPPFLAGS@%$CPPFLAGS%g
11627 s%@CXXFLAGS@%$CXXFLAGS%g
11628 s%@FFLAGS@%$FFLAGS%g
11630 s%@LDFLAGS@%$LDFLAGS%g
11632 s%@exec_prefix@%$exec_prefix%g
11633 s%@prefix@%$prefix%g
11634 s%@program_transform_name@%$program_transform_name%g
11635 s%@bindir@%$bindir%g
11636 s%@sbindir@%$sbindir%g
11637 s%@libexecdir@%$libexecdir%g
11638 s%@datadir@%$datadir%g
11639 s%@sysconfdir@%$sysconfdir%g
11640 s%@sharedstatedir@%$sharedstatedir%g
11641 s%@localstatedir@%$localstatedir%g
11642 s%@libdir@%$libdir%g
11643 s%@includedir@%$includedir%g
11644 s%@oldincludedir@%$oldincludedir%g
11645 s%@infodir@%$infodir%g
11646 s%@mandir@%$mandir%g
11647 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11648 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11649 s%@INSTALL_DATA@%$INSTALL_DATA%g
11650 s%@PACKAGE@%$PACKAGE%g
11651 s%@VERSION@%$VERSION%g
11652 s%@ACLOCAL@%$ACLOCAL%g
11653 s%@AUTOCONF@%$AUTOCONF%g
11654 s%@AUTOMAKE@%$AUTOMAKE%g
11655 s%@AUTOHEADER@%$AUTOHEADER%g
11656 s%@MAKEINFO@%$MAKEINFO%g
11657 s%@SET_MAKE@%$SET_MAKE%g
11658 s%@top_builddir@%$top_builddir%g
11659 s%@ldap_subdir@%$ldap_subdir%g
11661 s%@host_alias@%$host_alias%g
11662 s%@host_cpu@%$host_cpu%g
11663 s%@host_vendor@%$host_vendor%g
11664 s%@host_os@%$host_os%g
11665 s%@RANLIB@%$RANLIB%g
11670 s%@LIBTOOL@%$LIBTOOL%g
11673 s%@SENDMAIL@%$SENDMAIL%g
11674 s%@EDITOR@%$EDITOR%g
11675 s%@FINGER@%$FINGER%g
11676 s%@GLIBCONFIG@%$GLIBCONFIG%g
11677 s%@PERLBIN@%$PERLBIN%g
11679 s%@EXEEXT@%$EXEEXT%g
11680 s%@OBJEXT@%$OBJEXT%g
11682 s%@LIBOBJS@%$LIBOBJS%g
11683 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11684 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11685 s%@BUILD_BDB2@%$BUILD_BDB2%g
11686 s%@BUILD_LDAP@%$BUILD_LDAP%g
11687 s%@BUILD_LDBM@%$BUILD_LDBM%g
11688 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11689 s%@BUILD_PERL@%$BUILD_PERL%g
11690 s%@BUILD_SHELL@%$BUILD_SHELL%g
11691 s%@BUILD_TCL@%$BUILD_TCL%g
11692 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11693 s%@LDAP_LIBS@%$LDAP_LIBS%g
11694 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11695 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11696 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11697 s%@LDBM_LIBS@%$LDBM_LIBS%g
11698 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11699 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11700 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
11701 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
11702 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11703 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11704 s%@KRB_LIBS@%$KRB_LIBS%g
11705 s%@READLINE_LIBS@%$READLINE_LIBS%g
11706 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11707 s%@TLS_LIBS@%$TLS_LIBS%g
11712 cat >> $CONFIG_STATUS <<\EOF
11714 # Split the substitutions into bite-sized pieces for seds with
11715 # small command number limits, like on Digital OSF/1 and HP-UX.
11716 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11717 ac_file=1 # Number of current file.
11718 ac_beg=1 # First line for current file.
11719 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11722 while $ac_more_lines; do
11723 if test $ac_beg -gt 1; then
11724 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11726 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11728 if test ! -s conftest.s$ac_file; then
11729 ac_more_lines=false
11730 rm -f conftest.s$ac_file
11732 if test -z "$ac_sed_cmds"; then
11733 ac_sed_cmds="sed -f conftest.s$ac_file"
11735 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11737 ac_file=`expr $ac_file + 1`
11739 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11742 if test -z "$ac_sed_cmds"; then
11747 cat >> $CONFIG_STATUS <<EOF
11749 CONFIG_FILES=\${CONFIG_FILES-"\
11750 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11751 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11752 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11753 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11754 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11755 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11756 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11757 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11758 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11759 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11760 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11761 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11762 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11763 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11764 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11765 include/Makefile:build/top.mk:include/Makefile.in \
11766 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11767 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11768 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11769 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11770 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11771 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11772 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11773 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11774 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11775 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11776 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11777 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11778 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11779 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11780 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11781 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11782 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11783 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11784 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11785 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11786 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11787 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11788 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11789 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11790 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11791 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11794 cat >> $CONFIG_STATUS <<\EOF
11795 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11798 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11799 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11800 *) ac_file_in="${ac_file}.in" ;;
11803 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11805 # Remove last slash and all that follows it. Not all systems have dirname.
11806 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11807 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11808 # The file is in a subdirectory.
11809 test ! -d "$ac_dir" && mkdir "$ac_dir"
11810 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11811 # A "../" for each directory in $ac_dir_suffix.
11812 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11814 ac_dir_suffix= ac_dots=
11817 case "$ac_given_srcdir" in
11819 if test -z "$ac_dots"; then top_srcdir=.
11820 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11821 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11822 *) # Relative path.
11823 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11824 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11827 case "$ac_given_INSTALL" in
11828 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11829 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11832 echo creating "$ac_file"
11834 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11836 *Makefile*) ac_comsub="1i\\
11837 # $configure_input" ;;
11841 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11843 s%@configure_input@%$configure_input%g
11844 s%@srcdir@%$srcdir%g
11845 s%@top_srcdir@%$top_srcdir%g
11846 s%@INSTALL@%$INSTALL%g
11847 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11851 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11852 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11854 # ac_d sets the value in "#define NAME VALUE" lines.
11855 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11856 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11859 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11860 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11861 ac_uB='\([ ]\)%\1#\2define\3'
11864 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11865 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11866 ac_eB='$%\1#\2define\3'
11870 if test "${CONFIG_HEADERS+set}" != set; then
11872 cat >> $CONFIG_STATUS <<EOF
11873 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
11875 cat >> $CONFIG_STATUS <<\EOF
11877 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11878 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11880 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11881 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11882 *) ac_file_in="${ac_file}.in" ;;
11885 echo creating $ac_file
11887 rm -f conftest.frag conftest.in conftest.out
11888 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11889 cat $ac_file_inputs > conftest.in
11893 # Transform confdefs.h into a sed script conftest.vals that substitutes
11894 # the proper values into config.h.in to produce config.h. And first:
11895 # Protect against being on the right side of a sed subst in config.status.
11896 # Protect against being in an unquoted here document in config.status.
11897 rm -f conftest.vals
11898 cat > conftest.hdr <<\EOF
11901 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11905 sed -n -f conftest.hdr confdefs.h > conftest.vals
11908 # This sed command replaces #undef with comments. This is necessary, for
11909 # example, in the case of _POSIX_SOURCE, which is predefined and required
11910 # on some systems where configure will not decide to define it.
11911 cat >> conftest.vals <<\EOF
11912 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11915 # Break up conftest.vals because some shells have a limit on
11916 # the size of here documents, and old seds have small limits too.
11918 rm -f conftest.tail
11921 ac_lines=`grep -c . conftest.vals`
11922 # grep -c gives empty output for an empty file on some AIX systems.
11923 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11924 # Write a limited-size here document to conftest.frag.
11925 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11926 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11928 sed -f conftest.frag conftest.in > conftest.out
11930 mv conftest.out conftest.in
11931 ' >> $CONFIG_STATUS
11932 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11933 rm -f conftest.vals
11934 mv conftest.tail conftest.vals
11936 rm -f conftest.vals
11938 cat >> $CONFIG_STATUS <<\EOF
11939 rm -f conftest.frag conftest.h
11940 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11941 cat conftest.in >> conftest.h
11943 if cmp -s $ac_file conftest.h 2>/dev/null; then
11944 echo "$ac_file is unchanged"
11947 # Remove last slash and all that follows it. Not all systems have dirname.
11948 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11949 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11950 # The file is in a subdirectory.
11951 test ! -d "$ac_dir" && mkdir "$ac_dir"
11954 mv conftest.h $ac_file
11959 cat >> $CONFIG_STATUS <<EOF
11962 cat >> $CONFIG_STATUS <<\EOF
11965 echo Please \"make depend\" to build dependencies
11969 chmod +x $CONFIG_STATUS
11970 rm -fr confdefs* $ac_clean_files
11971 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1