3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --enable-debug enable debugging (yes)"
18 --enable-proctitle enable proctitle support (yes)"
20 --enable-libui enable library user interface (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable dns support (no)"
26 --enable-referrals enable referrals (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --with-kerberos use Kerberos (auto)"
32 --with-threads use threads (auto)"
34 --with-preemptive thread implementation is preemptive (auto)"
36 --enable-ldapd enable building ldapd (no)"
38 --enable-slapd enable building slapd (yes)"
40 --enable-aclgroups enable ACL group support (auto)"
42 --enable-crypt enable crypt(3) passwords (auto)"
44 --enable-md5 enable MD5 passwords (auto)"
46 --enable-sha1 enable SHA1 passwords (auto)"
48 --enable-wrappers enable tcp wrapper support (no)"
50 --enable-phonetic enable phonetic/soundex (no)"
52 --enable-rlookups enable reverse lookups (auto)"
54 --enable-ldbm enable ldbm backend (yes)"
56 --with-ldbm-api use LDBM API (auto)"
58 --with-ldbm-type use LDBM type (auto)"
60 --enable-passwd enable passwd backend (no)"
62 --enable-shell enable shell backend (no)"
64 --enable-slurpd enable building slurpd (auto)"
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file=./config.cache
79 program_transform_name=s,x,x,
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 infodir='${prefix}/info'
98 mandir='${prefix}/man'
100 # Initialize some other variables.
103 # Maximum number of lines to put in a shell here document.
110 # If the previous option needs an argument, assign it.
111 if test -n "$ac_prev"; then
112 eval "$ac_prev=\$ac_option"
118 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 # Accept the important Cygnus configure options, so we can diagnose typos.
126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129 bindir="$ac_optarg" ;;
131 -build | --build | --buil | --bui | --bu)
133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134 build="$ac_optarg" ;;
136 -cache-file | --cache-file | --cache-fil | --cache-fi \
137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138 ac_prev=cache_file ;;
139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141 cache_file="$ac_optarg" ;;
143 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147 datadir="$ac_optarg" ;;
149 -disable-* | --disable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}=no" ;;
158 -enable-* | --enable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}='$ac_optarg'" ;;
171 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173 | --exec | --exe | --ex)
174 ac_prev=exec_prefix ;;
175 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177 | --exec=* | --exe=* | --ex=*)
178 exec_prefix="$ac_optarg" ;;
180 -gas | --gas | --ga | --g)
181 # Obsolete; use --with-gas.
184 -help | --help | --hel | --he)
185 # Omit some internal or obsolete options to make the list less imposing.
186 # This message is too long to be a string in the A/UX 3.1 sh.
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
191 --cache-file=FILE cache test results in FILE
192 --help print this message
193 --no-create do not create output files
194 --quiet, --silent do not print \`checking...' messages
195 --version print the version of autoconf that created configure
196 Directory and file names:
197 --prefix=PREFIX install architecture-independent files in PREFIX
199 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201 --bindir=DIR user executables in DIR [EPREFIX/bin]
202 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
203 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
204 --datadir=DIR read-only architecture-independent data in DIR
206 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
207 --sharedstatedir=DIR modifiable architecture-independent data in DIR
209 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
210 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
211 --includedir=DIR C header files in DIR [PREFIX/include]
212 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
213 --infodir=DIR info documentation in DIR [PREFIX/info]
214 --mandir=DIR man documentation in DIR [PREFIX/man]
215 --srcdir=DIR find the sources in DIR [configure dir or ..]
216 --program-prefix=PREFIX prepend PREFIX to installed program names
217 --program-suffix=SUFFIX append SUFFIX to installed program names
218 --program-transform-name=PROGRAM
219 run sed PROGRAM on installed program names
223 --build=BUILD configure for building on BUILD [BUILD=HOST]
224 --host=HOST configure for HOST [guessed]
225 --target=TARGET configure for TARGET [TARGET=HOST]
226 Features and packages:
227 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
228 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
229 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
230 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
231 --x-includes=DIR X include files are in DIR
232 --x-libraries=DIR X library files are in DIR
234 if test -n "$ac_help"; then
235 echo "--enable and --with options recognized:$ac_help"
239 -host | --host | --hos | --ho)
241 -host=* | --host=* | --hos=* | --ho=*)
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir="$ac_optarg" ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir="$ac_optarg" ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
259 libdir="$ac_optarg" ;;
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir="$ac_optarg" ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir="$ac_optarg" ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280 mandir="$ac_optarg" ;;
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir="$ac_optarg" ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306 prefix="$ac_optarg" ;;
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix="$ac_optarg" ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix="$ac_optarg" ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name="$ac_optarg" ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir="$ac_optarg" ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir="$ac_optarg" ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368 srcdir="$ac_optarg" ;;
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir="$ac_optarg" ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target="$ac_optarg" ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers)
386 echo "configure generated by autoconf version 2.12"
390 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}='$ac_optarg'" ;;
402 -without-* | --without-*)
403 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}=no" ;;
412 # Obsolete; use --with-x.
415 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416 | --x-incl | --x-inc | --x-in | --x-i)
417 ac_prev=x_includes ;;
418 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420 x_includes="$ac_optarg" ;;
422 -x-libraries | --x-libraries | --x-librarie | --x-librari \
423 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424 ac_prev=x_libraries ;;
425 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427 x_libraries="$ac_optarg" ;;
429 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434 echo "configure: warning: $ac_option: invalid host type" 1>&2
436 if test "x$nonopt" != xNONE; then
437 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445 if test -n "$ac_prev"; then
446 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451 # File descriptor usage:
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478 | --no-cr | --no-c) ;;
479 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 # Only set these to C if already set. These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
493 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
504 ac_unique_file=include/ldap.h
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508 ac_srcdir_defaulted=yes
509 # Try the directory containing this script, then its parent.
511 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514 if test ! -r $srcdir/$ac_unique_file; then
518 ac_srcdir_defaulted=no
520 if test ! -r $srcdir/$ac_unique_file; then
521 if test "$ac_srcdir_defaulted" = yes; then
522 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$CONFIG_SITE"; then
531 if test "x$prefix" != xNONE; then
532 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 for ac_site_file in $CONFIG_SITE; do
538 if test -r "$ac_site_file"; then
539 echo "loading site script $ac_site_file"
544 if test -r "$cache_file"; then
545 echo "loading cache $cache_file"
548 echo "creating cache $cache_file"
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp='$CPP $CPPFLAGS'
555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling=$ac_cv_prog_cc_cross
559 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
560 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
561 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='\c' ac_t=
573 for ac_dir in build $srcdir/build; do
574 if test -f $ac_dir/install-sh; then
576 ac_install_sh="$ac_aux_dir/install-sh -c"
578 elif test -f $ac_dir/install.sh; then
580 ac_install_sh="$ac_aux_dir/install.sh -c"
584 if test -z "$ac_aux_dir"; then
585 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
587 ac_config_guess=$ac_aux_dir/config.guess
588 ac_config_sub=$ac_aux_dir/config.sub
589 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
591 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
592 echo "configure:593: checking configure arguments" >&5
595 # OpenLDAP --enable-debug
596 # Check whether --enable-debug or --disable-debug was given.
597 if test "${enable_debug+set}" = set; then
598 enableval="$enable_debug"
601 for ol_val in auto yes no ; do
602 if test "$enableval" = "$ol_val" ; then
606 if test "$ol_arg" = "invalid" ; then
607 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
609 ol_enable_debug="$ol_arg"
612 ol_enable_debug="yes"
615 # OpenLDAP --enable-proctitle
616 # Check whether --enable-proctitle or --disable-proctitle was given.
617 if test "${enable_proctitle+set}" = set; then
618 enableval="$enable_proctitle"
621 for ol_val in auto yes no ; do
622 if test "$enableval" = "$ol_val" ; then
626 if test "$ol_arg" = "invalid" ; then
627 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
629 ol_enable_proctitle="$ol_arg"
632 ol_enable_proctitle="yes"
634 # end --enable-proctitle
635 # OpenLDAP --enable-libui
636 # Check whether --enable-libui or --disable-libui was given.
637 if test "${enable_libui+set}" = set; then
638 enableval="$enable_libui"
641 for ol_val in auto yes no ; do
642 if test "$enableval" = "$ol_val" ; then
646 if test "$ol_arg" = "invalid" ; then
647 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
649 ol_enable_libui="$ol_arg"
652 ol_enable_libui="yes"
655 # OpenLDAP --enable-cache
656 # Check whether --enable-cache or --disable-cache was given.
657 if test "${enable_cache+set}" = set; then
658 enableval="$enable_cache"
661 for ol_val in auto yes no ; do
662 if test "$enableval" = "$ol_val" ; then
666 if test "$ol_arg" = "invalid" ; then
667 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
669 ol_enable_cache="$ol_arg"
672 ol_enable_cache="yes"
675 # OpenLDAP --enable-dns
676 # Check whether --enable-dns or --disable-dns was given.
677 if test "${enable_dns+set}" = set; then
678 enableval="$enable_dns"
681 for ol_val in auto yes no ; do
682 if test "$enableval" = "$ol_val" ; then
686 if test "$ol_arg" = "invalid" ; then
687 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
689 ol_enable_dns="$ol_arg"
695 # OpenLDAP --enable-referrals
696 # Check whether --enable-referrals or --disable-referrals was given.
697 if test "${enable_referrals+set}" = set; then
698 enableval="$enable_referrals"
701 for ol_val in auto yes no ; do
702 if test "$enableval" = "$ol_val" ; then
706 if test "$ol_arg" = "invalid" ; then
707 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
709 ol_enable_referrals="$ol_arg"
712 ol_enable_referrals="yes"
714 # end --enable-referrals
715 # OpenLDAP --enable-cldap
716 # Check whether --enable-cldap or --disable-cldap was given.
717 if test "${enable_cldap+set}" = set; then
718 enableval="$enable_cldap"
721 for ol_val in auto yes no ; do
722 if test "$enableval" = "$ol_val" ; then
726 if test "$ol_arg" = "invalid" ; then
727 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
729 ol_enable_cldap="$ol_arg"
736 # OpenLDAP --with-kerberos
737 # Check whether --with-kerberos or --without-kerberos was given.
738 if test "${with_kerberos+set}" = set; then
739 withval="$with_kerberos"
742 for ol_val in auto k5 k4 afs yes no ; do
743 if test "$withval" = "$ol_val" ; then
747 if test "$ol_arg" = "invalid" ; then
748 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
750 ol_with_kerberos="$ol_arg"
753 ol_with_kerberos="auto"
755 # end --with-kerberos
757 # OpenLDAP --with-threads
758 # Check whether --with-threads or --without-threads was given.
759 if test "${with_threads+set}" = set; then
760 withval="$with_threads"
763 for ol_val in auto posix mach lwp yes no manual ; do
764 if test "$withval" = "$ol_val" ; then
768 if test "$ol_arg" = "invalid" ; then
769 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
771 ol_with_threads="$ol_arg"
774 ol_with_threads="auto"
778 # OpenLDAP --with-preemptive
779 # Check whether --with-preemptive or --without-preemptive was given.
780 if test "${with_preemptive+set}" = set; then
781 withval="$with_preemptive"
784 for ol_val in auto yes no manual ; do
785 if test "$withval" = "$ol_val" ; then
789 if test "$ol_arg" = "invalid" ; then
790 { echo "configure: error: bad value $withval for --with-preemptive" 1>&2; exit 1; }
792 ol_with_preemptive="$ol_arg"
795 ol_with_preemptive="auto"
797 # end --with-preemptive
801 # OpenLDAP --enable-ldapd
802 # Check whether --enable-ldapd or --disable-ldapd was given.
803 if test "${enable_ldapd+set}" = set; then
804 enableval="$enable_ldapd"
807 for ol_val in auto yes no ; do
808 if test "$enableval" = "$ol_val" ; then
812 if test "$ol_arg" = "invalid" ; then
813 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
815 ol_enable_ldapd="$ol_arg"
822 # OpenLDAP --enable-slapd
823 # Check whether --enable-slapd or --disable-slapd was given.
824 if test "${enable_slapd+set}" = set; then
825 enableval="$enable_slapd"
828 for ol_val in auto yes no ; do
829 if test "$enableval" = "$ol_val" ; then
833 if test "$ol_arg" = "invalid" ; then
834 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
836 ol_enable_slapd="$ol_arg"
839 ol_enable_slapd="yes"
842 # OpenLDAP --enable-aclgroups
843 # Check whether --enable-aclgroups or --disable-aclgroups was given.
844 if test "${enable_aclgroups+set}" = set; then
845 enableval="$enable_aclgroups"
848 for ol_val in auto yes no ; do
849 if test "$enableval" = "$ol_val" ; then
853 if test "$ol_arg" = "invalid" ; then
854 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
856 ol_enable_aclgroups="$ol_arg"
859 ol_enable_aclgroups="auto"
861 # end --enable-aclgroups
862 # OpenLDAP --enable-crypt
863 # Check whether --enable-crypt or --disable-crypt was given.
864 if test "${enable_crypt+set}" = set; then
865 enableval="$enable_crypt"
868 for ol_val in auto yes no ; do
869 if test "$enableval" = "$ol_val" ; then
873 if test "$ol_arg" = "invalid" ; then
874 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
876 ol_enable_crypt="$ol_arg"
879 ol_enable_crypt="auto"
882 # OpenLDAP --enable-md5
883 # Check whether --enable-md5 or --disable-md5 was given.
884 if test "${enable_md5+set}" = set; then
885 enableval="$enable_md5"
888 for ol_val in auto yes no ; do
889 if test "$enableval" = "$ol_val" ; then
893 if test "$ol_arg" = "invalid" ; then
894 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
896 ol_enable_md5="$ol_arg"
902 # OpenLDAP --enable-sha1
903 # Check whether --enable-sha1 or --disable-sha1 was given.
904 if test "${enable_sha1+set}" = set; then
905 enableval="$enable_sha1"
908 for ol_val in auto yes no ; do
909 if test "$enableval" = "$ol_val" ; then
913 if test "$ol_arg" = "invalid" ; then
914 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
916 ol_enable_sha1="$ol_arg"
919 ol_enable_sha1="auto"
922 # OpenLDAP --enable-wrappers
923 # Check whether --enable-wrappers or --disable-wrappers was given.
924 if test "${enable_wrappers+set}" = set; then
925 enableval="$enable_wrappers"
928 for ol_val in auto yes no ; do
929 if test "$enableval" = "$ol_val" ; then
933 if test "$ol_arg" = "invalid" ; then
934 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
936 ol_enable_wrappers="$ol_arg"
939 ol_enable_wrappers="no"
941 # end --enable-wrappers
942 # OpenLDAP --enable-phonetic
943 # Check whether --enable-phonetic or --disable-phonetic was given.
944 if test "${enable_phonetic+set}" = set; then
945 enableval="$enable_phonetic"
948 for ol_val in auto yes no ; do
949 if test "$enableval" = "$ol_val" ; then
953 if test "$ol_arg" = "invalid" ; then
954 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
956 ol_enable_phonetic="$ol_arg"
959 ol_enable_phonetic="no"
961 # end --enable-phonetic
962 # OpenLDAP --enable-rlookups
963 # Check whether --enable-rlookups or --disable-rlookups was given.
964 if test "${enable_rlookups+set}" = set; then
965 enableval="$enable_rlookups"
968 for ol_val in auto yes no ; do
969 if test "$enableval" = "$ol_val" ; then
973 if test "$ol_arg" = "invalid" ; then
974 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
976 ol_enable_rlookups="$ol_arg"
979 ol_enable_rlookups="auto"
981 # end --enable-rlookups
983 # OpenLDAP --enable-ldbm
984 # Check whether --enable-ldbm or --disable-ldbm was given.
985 if test "${enable_ldbm+set}" = set; then
986 enableval="$enable_ldbm"
989 for ol_val in auto yes no ; do
990 if test "$enableval" = "$ol_val" ; then
994 if test "$ol_arg" = "invalid" ; then
995 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
997 ol_enable_ldbm="$ol_arg"
1000 ol_enable_ldbm="yes"
1003 # OpenLDAP --with-ldbm_api
1004 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1005 if test "${with_ldbm_api+set}" = set; then
1006 withval="$with_ldbm_api"
1009 for ol_val in auto db2 db gdbm ndbm manual ; do
1010 if test "$withval" = "$ol_val" ; then
1014 if test "$ol_arg" = "invalid" ; then
1015 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1017 ol_with_ldbm_api="$ol_arg"
1020 ol_with_ldbm_api="auto"
1022 # end --with-ldbm_api
1024 # OpenLDAP --with-ldbm_type
1025 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1026 if test "${with_ldbm_type+set}" = set; then
1027 withval="$with_ldbm_type"
1030 for ol_val in auto btree hash ; do
1031 if test "$withval" = "$ol_val" ; then
1035 if test "$ol_arg" = "invalid" ; then
1036 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1038 ol_with_ldbm_type="$ol_arg"
1041 ol_with_ldbm_type="auto"
1043 # end --with-ldbm_type
1046 # OpenLDAP --enable-passwd
1047 # Check whether --enable-passwd or --disable-passwd was given.
1048 if test "${enable_passwd+set}" = set; then
1049 enableval="$enable_passwd"
1052 for ol_val in auto yes no ; do
1053 if test "$enableval" = "$ol_val" ; then
1057 if test "$ol_arg" = "invalid" ; then
1058 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1060 ol_enable_passwd="$ol_arg"
1063 ol_enable_passwd="no"
1065 # end --enable-passwd
1066 # OpenLDAP --enable-shell
1067 # Check whether --enable-shell or --disable-shell was given.
1068 if test "${enable_shell+set}" = set; then
1069 enableval="$enable_shell"
1072 for ol_val in auto yes no ; do
1073 if test "$enableval" = "$ol_val" ; then
1077 if test "$ol_arg" = "invalid" ; then
1078 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1080 ol_enable_shell="$ol_arg"
1083 ol_enable_shell="no"
1085 # end --enable-shell
1087 # OpenLDAP --enable-slurpd
1088 # Check whether --enable-slurpd or --disable-slurpd was given.
1089 if test "${enable_slurpd+set}" = set; then
1090 enableval="$enable_slurpd"
1093 for ol_val in auto yes no ; do
1094 if test "$enableval" = "$ol_val" ; then
1098 if test "$ol_arg" = "invalid" ; then
1099 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1101 ol_enable_slurpd="$ol_arg"
1104 ol_enable_slurpd="auto"
1106 # end --enable-slurpd
1108 if test $ol_enable_slapd = no ; then
1109 if test $ol_enable_ldbm = yes ; then
1110 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1112 if test $ol_enable_passwd = yes ; then
1113 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1115 if test $ol_enable_shell = yes ; then
1116 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1118 if test $ol_enable_aclgroups = yes ; then
1119 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1121 if test $ol_enable_crypt = yes ; then
1122 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2
1124 if test $ol_enable_md5 = yes ; then
1125 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2
1127 if test $ol_enable_sha1 = yes ; then
1128 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2
1130 if test $ol_enable_wrappers = yes ; then
1131 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1133 if test $ol_enable_phonetic = yes ; then
1134 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1136 if test $ol_enable_rlookups = yes ; then
1137 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1139 if test $ol_with_ldbm_api != auto ; then
1140 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1142 if test $ol_with_ldbm_type != auto ; then
1143 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1145 if test $ol_enable_slurpd = yes ; then
1146 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1149 # force settings to no
1153 ol_enable_aclgroups=no
1157 ol_enable_wrappers=no
1158 ol_enable_phonetic=no
1159 ol_enable_rlookups=no
1161 ol_with_ldbm_type=no
1164 elif test $ol_enable_ldbm = no ; then
1166 if test $ol_with_ldbm_api != auto ; then
1167 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1170 if test $ol_with_ldbm_type != auto ; then
1171 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1174 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1175 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1179 ol_with_ldbm_type=no
1183 if test $ol_with_ldbm_api = gdbm -a \
1184 $ol_with_ldbm_type = btree ; then
1185 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1187 if test $ol_with_ldbm_api = ndbm -a \
1188 $ol_with_ldbm_type = btree ; then
1189 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1193 if test $ol_enable_slurpd = yes ; then
1194 if test $ol_with_threads = no ; then
1195 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1199 echo "$ac_t""done" 1>&6
1223 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1224 echo "configure:1225: checking whether ln -s works" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1229 if ln -s X conftestdata 2>/dev/null
1232 ac_cv_prog_LN_S="ln -s"
1237 LN_S="$ac_cv_prog_LN_S"
1238 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1239 echo "$ac_t""yes" 1>&6
1241 echo "$ac_t""no" 1>&6
1244 # Find a good install program. We prefer a C program (faster),
1245 # so one script is as good as another. But avoid the broken or
1246 # incompatible versions:
1247 # SysV /etc/install, /usr/sbin/install
1248 # SunOS /usr/etc/install
1249 # IRIX /sbin/install
1251 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1252 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1253 # ./install, which can be erroneously created by make from ./install.sh.
1254 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1255 echo "configure:1256: checking for a BSD compatible install" >&5
1256 if test -z "$INSTALL"; then
1257 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1261 for ac_dir in $PATH; do
1262 # Account for people who put trailing slashes in PATH elements.
1264 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1266 # OSF1 and SCO ODT 3.0 have their own names for install.
1267 for ac_prog in ginstall installbsd scoinst install; do
1268 if test -f $ac_dir/$ac_prog; then
1269 if test $ac_prog = install &&
1270 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1271 # AIX install. It has an incompatible calling convention.
1272 # OSF/1 installbsd also uses dspmsg, but is usable.
1275 ac_cv_path_install="$ac_dir/$ac_prog -c"
1286 if test "${ac_cv_path_install+set}" = set; then
1287 INSTALL="$ac_cv_path_install"
1289 # As a last resort, use the slow shell script. We don't cache a
1290 # path for INSTALL within a source directory, because that will
1291 # break other packages using the cache if that directory is
1292 # removed, or if the path is relative.
1293 INSTALL="$ac_install_sh"
1296 echo "$ac_t""$INSTALL" 1>&6
1298 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1299 # It thinks the first close brace ends the variable substitution.
1300 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1302 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1304 # Extract the first word of "ranlib", so it can be a program name with args.
1305 set dummy ranlib; ac_word=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1311 if test -n "$RANLIB"; then
1312 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1315 for ac_dir in $PATH; do
1316 test -z "$ac_dir" && ac_dir=.
1317 if test -f $ac_dir/$ac_word; then
1318 ac_cv_prog_RANLIB="ranlib"
1323 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1326 RANLIB="$ac_cv_prog_RANLIB"
1327 if test -n "$RANLIB"; then
1328 echo "$ac_t""$RANLIB" 1>&6
1330 echo "$ac_t""no" 1>&6
1333 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1334 echo "configure:1335: checking whether ${MAKE-make} sets \${MAKE}" >&5
1335 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1336 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 cat > conftestmake <<\EOF
1341 @echo 'ac_maketemp="${MAKE}"'
1343 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1344 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1345 if test -n "$ac_maketemp"; then
1346 eval ac_cv_prog_make_${ac_make}_set=yes
1348 eval ac_cv_prog_make_${ac_make}_set=no
1352 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1353 echo "$ac_t""yes" 1>&6
1356 echo "$ac_t""no" 1>&6
1357 SET_MAKE="MAKE=${MAKE-make}"
1361 # Extract the first word of "sendmail", so it can be a program name with args.
1362 set dummy sendmail; ac_word=$2
1363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1364 echo "configure:1365: checking for $ac_word" >&5
1365 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1370 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
1373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1374 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
1375 test -z "$ac_dir" && ac_dir=.
1376 if test -f $ac_dir/$ac_word; then
1377 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
1382 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
1386 SENDMAIL="$ac_cv_path_SENDMAIL"
1387 if test -n "$SENDMAIL"; then
1388 echo "$ac_t""$SENDMAIL" 1>&6
1390 echo "$ac_t""no" 1>&6
1393 # Extract the first word of "vi", so it can be a program name with args.
1394 set dummy vi; ac_word=$2
1395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_word" >&5
1397 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1402 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
1405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1406 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1407 test -z "$ac_dir" && ac_dir=.
1408 if test -f $ac_dir/$ac_word; then
1409 ac_cv_path_EDITOR="$ac_dir/$ac_word"
1414 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
1418 EDITOR="$ac_cv_path_EDITOR"
1419 if test -n "$EDITOR"; then
1420 echo "$ac_t""$EDITOR" 1>&6
1422 echo "$ac_t""no" 1>&6
1425 # Extract the first word of "finger", so it can be a program name with args.
1426 set dummy finger; ac_word=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 echo "configure:1429: checking for $ac_word" >&5
1429 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1434 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
1437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1438 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1439 test -z "$ac_dir" && ac_dir=.
1440 if test -f $ac_dir/$ac_word; then
1441 ac_cv_path_FINGER="$ac_dir/$ac_word"
1446 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
1450 FINGER="$ac_cv_path_FINGER"
1451 if test -n "$FINGER"; then
1452 echo "$ac_t""$FINGER" 1>&6
1454 echo "$ac_t""no" 1>&6
1458 # Extract the first word of "gcc", so it can be a program name with args.
1459 set dummy gcc; ac_word=$2
1460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1461 echo "configure:1462: checking for $ac_word" >&5
1462 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 if test -n "$CC"; then
1466 ac_cv_prog_CC="$CC" # Let the user override the test.
1468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1469 for ac_dir in $PATH; do
1470 test -z "$ac_dir" && ac_dir=.
1471 if test -f $ac_dir/$ac_word; then
1480 if test -n "$CC"; then
1481 echo "$ac_t""$CC" 1>&6
1483 echo "$ac_t""no" 1>&6
1486 if test -z "$CC"; then
1487 # Extract the first word of "cc", so it can be a program name with args.
1488 set dummy cc; ac_word=$2
1489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1490 echo "configure:1491: checking for $ac_word" >&5
1491 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 if test -n "$CC"; then
1495 ac_cv_prog_CC="$CC" # Let the user override the test.
1497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1499 for ac_dir in $PATH; do
1500 test -z "$ac_dir" && ac_dir=.
1501 if test -f $ac_dir/$ac_word; then
1502 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1503 ac_prog_rejected=yes
1511 if test $ac_prog_rejected = yes; then
1512 # We found a bogon in the path, so make sure we never use it.
1513 set dummy $ac_cv_prog_CC
1515 if test $# -gt 0; then
1516 # We chose a different compiler from the bogus one.
1517 # However, it has the same basename, so the bogon will be chosen
1518 # first if we set CC to just the basename; use the full file name.
1520 set dummy "$ac_dir/$ac_word" "$@"
1528 if test -n "$CC"; then
1529 echo "$ac_t""$CC" 1>&6
1531 echo "$ac_t""no" 1>&6
1534 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1537 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1538 echo "configure:1539: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1544 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1545 cross_compiling=$ac_cv_prog_cc_cross
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1552 if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1553 ac_cv_prog_cc_works=yes
1554 # If we can't run a trivial program, we are probably using a cross compiler.
1555 if (./conftest; exit) 2>/dev/null; then
1556 ac_cv_prog_cc_cross=no
1558 ac_cv_prog_cc_cross=yes
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1563 ac_cv_prog_cc_works=no
1567 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1568 if test $ac_cv_prog_cc_works = no; then
1569 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1571 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1572 echo "configure:1573: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1573 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1574 cross_compiling=$ac_cv_prog_cc_cross
1576 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1577 echo "configure:1578: checking whether we are using GNU C" >&5
1578 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 cat > conftest.c <<EOF
1586 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1593 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1595 if test $ac_cv_prog_gcc = yes; then
1597 ac_test_CFLAGS="${CFLAGS+set}"
1598 ac_save_CFLAGS="$CFLAGS"
1600 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1601 echo "configure:1602: checking whether ${CC-cc} accepts -g" >&5
1602 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 echo 'void f(){}' > conftest.c
1606 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1615 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1616 if test "$ac_test_CFLAGS" = set; then
1617 CFLAGS="$ac_save_CFLAGS"
1618 elif test $ac_cv_prog_cc_g = yes; then
1625 test "${CFLAGS+set}" = set || CFLAGS="-g"
1628 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1629 echo "configure:1630: checking how to run the C preprocessor" >&5
1630 # On Suns, sometimes $CPP names a directory.
1631 if test -n "$CPP" && test -d "$CPP"; then
1634 if test -z "$CPP"; then
1635 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 # This must be in double quotes, not single quotes, because CPP may get
1639 # substituted into the Makefile and "${CC-cc}" will confuse make.
1641 # On the NeXT, cc -E runs the code through the compiler's parser,
1642 # not just through cpp.
1643 cat > conftest.$ac_ext <<EOF
1644 #line 1645 "configure"
1645 #include "confdefs.h"
1649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1650 { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1651 ac_err=`grep -v '^ *+' conftest.out`
1652 if test -z "$ac_err"; then
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1659 CPP="${CC-cc} -E -traditional-cpp"
1660 cat > conftest.$ac_ext <<EOF
1661 #line 1662 "configure"
1662 #include "confdefs.h"
1666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1667 { (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1668 ac_err=`grep -v '^ *+' conftest.out`
1669 if test -z "$ac_err"; then
1673 echo "configure: failed program was:" >&5
1674 cat conftest.$ac_ext >&5
1681 ac_cv_prog_CPP="$CPP"
1683 CPP="$ac_cv_prog_CPP"
1685 ac_cv_prog_CPP="$CPP"
1687 echo "$ac_t""$CPP" 1>&6
1689 if test $ac_cv_prog_gcc = yes; then
1690 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1691 echo "configure:1692: checking whether ${CC-cc} needs -traditional" >&5
1692 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1695 ac_pattern="Autoconf.*'x'"
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1703 egrep "$ac_pattern" >/dev/null 2>&1; then
1705 ac_cv_prog_gcc_traditional=yes
1708 ac_cv_prog_gcc_traditional=no
1713 if test $ac_cv_prog_gcc_traditional = no; then
1714 cat > conftest.$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1721 egrep "$ac_pattern" >/dev/null 2>&1; then
1723 ac_cv_prog_gcc_traditional=yes
1730 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1731 if test $ac_cv_prog_gcc_traditional = yes; then
1732 CC="$CC -traditional"
1737 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1738 echo "configure:1739: checking for AIX" >&5
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1748 egrep "yes" >/dev/null 2>&1; then
1750 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1751 #define _ALL_SOURCE 1
1756 echo "$ac_t""no" 1>&6
1761 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1762 echo "configure:1763: checking for POSIXized ISC" >&5
1763 if test -d /etc/conf/kconfig.d &&
1764 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1766 echo "$ac_t""yes" 1>&6
1767 ISC=yes # If later tests want to check for ISC.
1768 cat >> confdefs.h <<\EOF
1769 #define _POSIX_SOURCE 1
1772 if test "$GCC" = yes; then
1778 echo "$ac_t""no" 1>&6
1782 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1783 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1784 echo "configure:1785: checking for minix/config.h" >&5
1785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 #include <minix/config.h>
1793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1794 { (eval echo configure:1795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1795 ac_err=`grep -v '^ *+' conftest.out`
1796 if test -z "$ac_err"; then
1798 eval "ac_cv_header_$ac_safe=yes"
1801 echo "configure: failed program was:" >&5
1802 cat conftest.$ac_ext >&5
1804 eval "ac_cv_header_$ac_safe=no"
1808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1809 echo "$ac_t""yes" 1>&6
1812 echo "$ac_t""no" 1>&6
1816 if test "$MINIX" = yes; then
1817 cat >> confdefs.h <<\EOF
1818 #define _POSIX_SOURCE 1
1821 cat >> confdefs.h <<\EOF
1822 #define _POSIX_1_SOURCE 2
1825 cat >> confdefs.h <<\EOF
1834 echo $ac_n "checking for socket""... $ac_c" 1>&6
1835 echo "configure:1836: checking for socket" >&5
1836 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1839 cat > conftest.$ac_ext <<EOF
1840 #line 1841 "configure"
1841 #include "confdefs.h"
1842 /* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char socket(); below. */
1845 /* Override any gcc2 internal prototype to avoid an error. */
1846 /* We use char because int might match the return type of a gcc2
1847 builtin and then its argument prototype would still apply. */
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined (__stub_socket) || defined (__stub___socket)
1863 if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1865 eval "ac_cv_func_socket=yes"
1867 echo "configure: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1870 eval "ac_cv_func_socket=no"
1875 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1876 echo "$ac_t""yes" 1>&6
1879 echo "$ac_t""no" 1>&6
1881 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1882 echo "configure:1883: checking for main in -lsocket" >&5
1883 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 ac_save_LIBS="$LIBS"
1888 LIBS="-lsocket $LIBS"
1889 cat > conftest.$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1897 if { (eval echo configure:1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1899 eval "ac_cv_lib_$ac_lib_var=yes"
1901 echo "configure: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1904 eval "ac_cv_lib_$ac_lib_var=no"
1907 LIBS="$ac_save_LIBS"
1910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1911 echo "$ac_t""yes" 1>&6
1912 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1913 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1914 cat >> confdefs.h <<EOF
1915 #define $ac_tr_lib 1
1918 LIBS="-lsocket $LIBS"
1921 echo "$ac_t""no" 1>&6
1924 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
1925 echo "configure:1926: checking for main in -lnet" >&5
1926 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
1927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1930 ac_save_LIBS="$LIBS"
1932 cat > conftest.$ac_ext <<EOF
1933 #line 1934 "configure"
1934 #include "confdefs.h"
1940 if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1942 eval "ac_cv_lib_$ac_lib_var=yes"
1944 echo "configure: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1947 eval "ac_cv_lib_$ac_lib_var=no"
1950 LIBS="$ac_save_LIBS"
1953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1954 echo "$ac_t""yes" 1>&6
1955 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1956 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1957 cat >> confdefs.h <<EOF
1958 #define $ac_tr_lib 1
1964 echo "$ac_t""no" 1>&6
1967 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
1968 echo "configure:1969: checking for main in -lnsl_s" >&5
1969 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
1970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1973 ac_save_LIBS="$LIBS"
1974 LIBS="-lnsl_s $LIBS"
1975 cat > conftest.$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1983 if { (eval echo configure:1984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1985 eval "ac_cv_lib_$ac_lib_var=yes"
1987 echo "configure: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1990 eval "ac_cv_lib_$ac_lib_var=no"
1993 LIBS="$ac_save_LIBS"
1996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1997 echo "$ac_t""yes" 1>&6
1998 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2000 cat >> confdefs.h <<EOF
2001 #define $ac_tr_lib 1
2004 LIBS="-lnsl_s $LIBS"
2007 echo "$ac_t""no" 1>&6
2010 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2011 echo "configure:2012: checking for main in -lnsl" >&5
2012 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2016 ac_save_LIBS="$LIBS"
2018 cat > conftest.$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2026 if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2028 eval "ac_cv_lib_$ac_lib_var=yes"
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2033 eval "ac_cv_lib_$ac_lib_var=no"
2036 LIBS="$ac_save_LIBS"
2039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2040 echo "$ac_t""yes" 1>&6
2041 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2042 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2043 cat >> confdefs.h <<EOF
2044 #define $ac_tr_lib 1
2050 echo "$ac_t""no" 1>&6
2053 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2054 echo "configure:2055: checking for socket in -linet" >&5
2055 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2059 ac_save_LIBS="$LIBS"
2061 cat > conftest.$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 /* Override any gcc2 internal prototype to avoid an error. */
2065 /* We use char because int might match the return type of a gcc2
2066 builtin and then its argument prototype would still apply. */
2073 if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2075 eval "ac_cv_lib_$ac_lib_var=yes"
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2080 eval "ac_cv_lib_$ac_lib_var=no"
2083 LIBS="$ac_save_LIBS"
2086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2087 echo "$ac_t""yes" 1>&6
2088 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2089 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2090 cat >> confdefs.h <<EOF
2091 #define $ac_tr_lib 1
2097 echo "$ac_t""no" 1>&6
2100 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2101 echo "configure:2102: checking for main in -lgen" >&5
2102 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 ac_save_LIBS="$LIBS"
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2116 if { (eval echo configure:2117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2118 eval "ac_cv_lib_$ac_lib_var=yes"
2120 echo "configure: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2123 eval "ac_cv_lib_$ac_lib_var=no"
2126 LIBS="$ac_save_LIBS"
2129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2130 echo "$ac_t""yes" 1>&6
2131 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2132 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2133 cat >> confdefs.h <<EOF
2134 #define $ac_tr_lib 1
2140 echo "$ac_t""no" 1>&6
2147 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2148 echo "configure:2149: checking for sigset in -lV3" >&5
2149 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 ac_save_LIBS="$LIBS"
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 /* Override any gcc2 internal prototype to avoid an error. */
2159 /* We use char because int might match the return type of a gcc2
2160 builtin and then its argument prototype would still apply. */
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2169 eval "ac_cv_lib_$ac_lib_var=yes"
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2174 eval "ac_cv_lib_$ac_lib_var=no"
2177 LIBS="$ac_save_LIBS"
2180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2181 echo "$ac_t""yes" 1>&6
2182 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2183 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2184 cat >> confdefs.h <<EOF
2185 #define $ac_tr_lib 1
2191 echo "$ac_t""no" 1>&6
2195 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
2196 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
2198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_hdr" >&5
2201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2210 { (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2211 ac_err=`grep -v '^ *+' conftest.out`
2212 if test -z "$ac_err"; then
2214 eval "ac_cv_header_$ac_safe=yes"
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 eval "ac_cv_header_$ac_safe=no"
2224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2225 echo "$ac_t""yes" 1>&6
2226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2227 cat >> confdefs.h <<EOF
2228 #define $ac_tr_hdr 1
2232 echo "$ac_t""no" 1>&6
2237 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
2238 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
2239 echo "configure:2240: checking for main in -lkrb4" >&5
2240 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
2241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 ac_save_LIBS="$LIBS"
2245 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2254 if { (eval echo configure:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2256 eval "ac_cv_lib_$ac_lib_var=yes"
2258 echo "configure: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2261 eval "ac_cv_lib_$ac_lib_var=no"
2264 LIBS="$ac_save_LIBS"
2267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2268 echo "$ac_t""yes" 1>&6
2271 echo "$ac_t""no" 1>&6
2276 if test $have_k5 = yes ; then
2277 ol_with_kerberos=found
2278 ol_link_kerberos=yes
2280 cat >> confdefs.h <<\EOF
2281 #define HAVE_KERBEROS 1
2285 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
2289 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
2290 for ac_hdr in krb.h des.h
2292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2294 echo "configure:2295: checking for $ac_hdr" >&5
2295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 cat > conftest.$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2304 { (eval echo configure:2305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2305 ac_err=`grep -v '^ *+' conftest.out`
2306 if test -z "$ac_err"; then
2308 eval "ac_cv_header_$ac_safe=yes"
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2314 eval "ac_cv_header_$ac_safe=no"
2318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2319 echo "$ac_t""yes" 1>&6
2320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2321 cat >> confdefs.h <<EOF
2322 #define $ac_tr_hdr 1
2326 echo "$ac_t""no" 1>&6
2331 if test $ac_cv_header_krb_h = yes ; then
2332 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
2333 echo "configure:2334: checking for main in -lkrb" >&5
2334 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
2335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 ac_save_LIBS="$LIBS"
2339 LIBS="-lkrb -ldes $LIBS"
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2348 if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2350 eval "ac_cv_lib_$ac_lib_var=yes"
2352 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2355 eval "ac_cv_lib_$ac_lib_var=no"
2358 LIBS="$ac_save_LIBS"
2361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2362 echo "$ac_t""yes" 1>&6
2365 echo "$ac_t""no" 1>&6
2370 if test $have_k4 = yes ; then
2371 ol_with_kerberos=found
2372 ol_link_kerberos=yes
2374 cat >> confdefs.h <<\EOF
2375 #define HAVE_KERBEROS 1
2379 KRB_LIBS="-lkrb -ldes"
2386 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
2387 for ac_hdr in pthread.h sched.h
2389 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2390 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2391 echo "configure:2392: checking for $ac_hdr" >&5
2392 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2401 { (eval echo configure:2402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2402 ac_err=`grep -v '^ *+' conftest.out`
2403 if test -z "$ac_err"; then
2405 eval "ac_cv_header_$ac_safe=yes"
2408 echo "configure: failed program was:" >&5
2409 cat conftest.$ac_ext >&5
2411 eval "ac_cv_header_$ac_safe=no"
2415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2416 echo "$ac_t""yes" 1>&6
2417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2418 cat >> confdefs.h <<EOF
2419 #define $ac_tr_hdr 1
2423 echo "$ac_t""no" 1>&6
2428 if test $ac_cv_header_pthread_h = yes ; then
2429 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
2430 echo "configure:2431: checking POSIX thread version" >&5
2431 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2439 # include <pthread.h>
2440 /* this check could be improved */
2441 # ifdef PTHREAD_ONCE_INIT
2446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2447 egrep "final" >/dev/null 2>&1; then
2449 ol_pthread_final=yes
2457 cat > conftest.$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2461 # include <pthread.h>
2462 /* this check could be improved */
2463 # ifdef pthread_once_init
2468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2469 egrep "draft4" >/dev/null 2>&1; then
2471 ol_pthread_draft4=yes
2474 ol_pthread_draft4=no
2479 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
2480 ol_cv_pthread_version=final
2481 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
2482 ol_cv_pthread_version=draft4
2484 ol_cv_pthread_version=unknown
2489 echo "$ac_t""$ol_cv_pthread_version" 1>&6
2492 if test $ol_cv_pthread_version = final ; then
2493 cat >> confdefs.h <<\EOF
2494 #define HAVE_PTHREADS_FINAL 1
2497 elif test $ol_cv_pthread_version = draft4 ; then
2498 cat >> confdefs.h <<\EOF
2499 #define HAVE_PTHREADS_D4 1
2503 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
2506 # consider threads found
2507 ol_with_threads=found
2510 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
2511 echo "configure:2512: checking for LinuxThreads" >&5
2512 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2516 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
2517 if test "$res" -gt 0 ; then
2518 ol_cv_linux_threads=yes
2520 ol_cv_linux_threads=no
2525 echo "$ac_t""$ol_cv_linux_threads" 1>&6
2528 if test $ol_cv_linux_threads = yes ; then
2529 cat >> confdefs.h <<\EOF
2530 #define HAVE_LINUX_THREADS 1
2536 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2537 echo "configure:2538: checking for pthread_create" >&5
2538 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2544 /* System header to define __stub macros and hopefully few prototypes,
2545 which can conflict with char pthread_create(); below. */
2547 /* Override any gcc2 internal prototype to avoid an error. */
2548 /* We use char because int might match the return type of a gcc2
2549 builtin and then its argument prototype would still apply. */
2550 char pthread_create();
2554 /* The GNU C library defines this for functions which it implements
2555 to always fail with ENOSYS. Some functions are actually named
2556 something starting with __ and the normal name is an alias. */
2557 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
2565 if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2567 eval "ac_cv_func_pthread_create=yes"
2569 echo "configure: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2572 eval "ac_cv_func_pthread_create=no"
2577 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2578 echo "$ac_t""yes" 1>&6
2581 echo "$ac_t""no" 1>&6
2585 if test $ol_link_threads = no ; then
2586 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
2587 echo "configure:2588: checking for pthread_create with -pthread" >&5
2588 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2593 LIBS="-pthread $LIBS"
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 #include <pthread.h>
2600 pthread_create((pthread_t*) 0,
2601 (pthread_attr_t*) 0, 0, 0);
2605 if { (eval echo configure:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2607 ol_cv_pthread_flag=yes
2609 echo "configure: failed program was:" >&5
2610 cat conftest.$ac_ext >&5
2612 ol_cv_pthread_flag=no
2619 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
2621 if test $ol_cv_pthread_flag = yes ; then
2622 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
2623 ol_link_threads=posix
2627 if test $ol_link_threads = no ; then
2629 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2630 echo "configure:2631: checking for pthread_create in -lpthread" >&5
2631 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 ac_save_LIBS="$LIBS"
2636 LIBS="-lpthread $LIBS"
2637 cat > conftest.$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2640 /* Override any gcc2 internal prototype to avoid an error. */
2641 /* We use char because int might match the return type of a gcc2
2642 builtin and then its argument prototype would still apply. */
2643 char pthread_create();
2649 if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2651 eval "ac_cv_lib_$ac_lib_var=yes"
2653 echo "configure: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2656 eval "ac_cv_lib_$ac_lib_var=no"
2659 LIBS="$ac_save_LIBS"
2662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2663 echo "$ac_t""yes" 1>&6
2665 ol_link_threads=posix
2666 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
2668 echo "$ac_t""no" 1>&6
2674 if test $ol_link_threads = no ; then
2676 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2677 echo "configure:2678: checking for pthread_create in -lc_r" >&5
2678 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2682 ac_save_LIBS="$LIBS"
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 /* Override any gcc2 internal prototype to avoid an error. */
2688 /* We use char because int might match the return type of a gcc2
2689 builtin and then its argument prototype would still apply. */
2690 char pthread_create();
2696 if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2698 eval "ac_cv_lib_$ac_lib_var=yes"
2700 echo "configure: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2703 eval "ac_cv_lib_$ac_lib_var=no"
2706 LIBS="$ac_save_LIBS"
2709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2712 ol_link_threads=posix
2713 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
2715 echo "$ac_t""no" 1>&6
2721 if test $ol_link_threads = no ; then
2723 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2724 echo "configure:2725: checking for pthread_create in -lpthread" >&5
2725 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 ac_save_LIBS="$LIBS"
2730 LIBS="-lpthread if test $ol_with_preemptive = auto ; then
2731 ol_with_preemptive=yes
2733 -lmach -lexc -lc $LIBS"
2734 cat > conftest.$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2737 /* Override any gcc2 internal prototype to avoid an error. */
2738 /* We use char because int might match the return type of a gcc2
2739 builtin and then its argument prototype would still apply. */
2740 char pthread_create();
2746 if { (eval echo configure:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2748 eval "ac_cv_lib_$ac_lib_var=yes"
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2753 eval "ac_cv_lib_$ac_lib_var=no"
2756 LIBS="$ac_save_LIBS"
2759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2760 echo "$ac_t""yes" 1>&6
2762 cat >> confdefs.h <<\EOF
2766 ol_link_threads=posix
2767 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc"
2769 echo "$ac_t""no" 1>&6
2775 if test $ol_link_threads != no ; then
2776 cat >> confdefs.h <<\EOF
2777 #define HAVE_PTHREADS 1
2781 save_CPPFLAGS="$CPPFLAGS"
2783 LIBS="$LTHREAD_LIBS $LIBS"
2785 for ac_func in sched_yield pthread_yield
2787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2788 echo "configure:2789: checking for $ac_func" >&5
2789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795 /* System header to define __stub macros and hopefully few prototypes,
2796 which can conflict with char $ac_func(); below. */
2798 /* Override any gcc2 internal prototype to avoid an error. */
2799 /* We use char because int might match the return type of a gcc2
2800 builtin and then its argument prototype would still apply. */
2805 /* The GNU C library defines this for functions which it implements
2806 to always fail with ENOSYS. Some functions are actually named
2807 something starting with __ and the normal name is an alias. */
2808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2816 if { (eval echo configure:2817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2818 eval "ac_cv_func_$ac_func=yes"
2820 echo "configure: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2823 eval "ac_cv_func_$ac_func=no"
2828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2829 echo "$ac_t""yes" 1>&6
2830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2831 cat >> confdefs.h <<EOF
2832 #define $ac_tr_func 1
2836 echo "$ac_t""no" 1>&6
2841 if test $ac_cv_func_sched_yield = no -a \
2842 $ac_cv_func_pthread_yield = no ; then
2843 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
2844 echo "configure:2845: checking for sched_yield in -lrt" >&5
2845 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
2846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 ac_save_LIBS="$LIBS"
2851 cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2854 /* Override any gcc2 internal prototype to avoid an error. */
2855 /* We use char because int might match the return type of a gcc2
2856 builtin and then its argument prototype would still apply. */
2863 if { (eval echo configure:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2865 eval "ac_cv_lib_$ac_lib_var=yes"
2867 echo "configure: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2870 eval "ac_cv_lib_$ac_lib_var=no"
2873 LIBS="$ac_save_LIBS"
2876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2877 echo "$ac_t""yes" 1>&6
2878 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
2879 cat >> confdefs.h <<\EOF
2880 #define HAVE_SCHED_YIELD 1
2883 ac_cv_func_sched_yield=yes
2885 echo "$ac_t""no" 1>&6
2886 ac_cv_func_sched_yield=no
2890 if test $ac_cv_func_sched_yield = no -a \
2891 $ac_cv_func_pthread_yield = no ; then
2892 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
2893 echo "configure:2894: checking for sched_yield in -lposix4" >&5
2894 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
2895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 ac_save_LIBS="$LIBS"
2899 LIBS="-lposix4 $LIBS"
2900 cat > conftest.$ac_ext <<EOF
2901 #line 2902 "configure"
2902 #include "confdefs.h"
2903 /* Override any gcc2 internal prototype to avoid an error. */
2904 /* We use char because int might match the return type of a gcc2
2905 builtin and then its argument prototype would still apply. */
2912 if { (eval echo configure:2913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2914 eval "ac_cv_lib_$ac_lib_var=yes"
2916 echo "configure: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2919 eval "ac_cv_lib_$ac_lib_var=no"
2922 LIBS="$ac_save_LIBS"
2925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2926 echo "$ac_t""yes" 1>&6
2927 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
2928 cat >> confdefs.h <<\EOF
2929 #define HAVE_SCHED_YIELD 1
2932 ac_cv_func_sched_yield=yes
2934 echo "$ac_t""no" 1>&6
2935 ac_cv_func_sched_yield=no
2939 if test $ac_cv_func_sched_yield = no -a \
2940 $ac_cv_func_pthread_yield = no ; then
2941 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
2942 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
2945 for ac_func in pthread_kill
2947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2948 echo "configure:2949: checking for $ac_func" >&5
2949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 /* System header to define __stub macros and hopefully few prototypes,
2956 which can conflict with char $ac_func(); below. */
2958 /* Override any gcc2 internal prototype to avoid an error. */
2959 /* We use char because int might match the return type of a gcc2
2960 builtin and then its argument prototype would still apply. */
2965 /* The GNU C library defines this for functions which it implements
2966 to always fail with ENOSYS. Some functions are actually named
2967 something starting with __ and the normal name is an alias. */
2968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2976 if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2978 eval "ac_cv_func_$ac_func=yes"
2980 echo "configure: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2983 eval "ac_cv_func_$ac_func=no"
2988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2989 echo "$ac_t""yes" 1>&6
2990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2991 cat >> confdefs.h <<EOF
2992 #define $ac_tr_func 1
2996 echo "$ac_t""no" 1>&6
3001 if test $ol_with_preemptive = auto ; then
3002 echo $ac_n "checking for preemptive Pthread implementation""... $ac_c" 1>&6
3003 echo "configure:3004: checking for preemptive Pthread implementation" >&5
3004 if test "$cross_compiling" = yes; then
3006 { echo "configure: error: crossing compiling: use --with-preemptive=yes|no|manual" 1>&2; exit 1; }
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3012 #include <sys/types.h>
3013 #include <sys/time.h>
3015 #include <pthread.h>
3027 select(0, NULL, NULL, NULL, &tv);
3031 select(0, NULL, NULL, NULL, &tv);
3033 exit(1); /* if we exit here, the select blocked the whole process */
3037 int argc; char **argv;
3040 pthread_create(&t, NULL, (void *) task, NULL);
3042 #if HAVE_SCHED_YIELD
3043 sched_yield(); /* make sure task runs first */
3045 #if defined(HAVE_PTHREAD_YIELD)
3046 pthread_yield(); /* make sure task runs first */
3053 if { (eval echo configure:3054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3055 ol_pthread_preemptive=yes
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3060 ol_pthread_preemptive=no
3065 echo "$ac_t""$ol_pthread_preemptive" 1>&6
3067 if test $ol_pthread_preemptive = yes ; then
3068 cat >> confdefs.h <<\EOF
3069 #define HAVE_PREEMPTIVE_PTHREADS 1
3072 ol_with_preemptive=yes
3076 CPPFLAGS="$save_CPPFLAGS"
3079 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
3083 if test $ol_with_threads = posix ; then
3084 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
3088 if test $ol_with_threads = auto -o $ol_with_threads = mach ; then
3089 for ac_hdr in mach/cthreads.h
3091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3093 echo "configure:3094: checking for $ac_hdr" >&5
3094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3103 { (eval echo configure:3104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3104 ac_err=`grep -v '^ *+' conftest.out`
3105 if test -z "$ac_err"; then
3107 eval "ac_cv_header_$ac_safe=yes"
3110 echo "configure: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3113 eval "ac_cv_header_$ac_safe=no"
3117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3118 echo "$ac_t""yes" 1>&6
3119 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3120 cat >> confdefs.h <<EOF
3121 #define $ac_tr_hdr 1
3125 echo "$ac_t""no" 1>&6
3129 if test $ac_cv_header_mach_cthreads_h = yes ; then
3130 ol_with_threads=found
3132 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
3133 echo "configure:3134: checking for cthread_fork" >&5
3134 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3137 cat > conftest.$ac_ext <<EOF
3138 #line 3139 "configure"
3139 #include "confdefs.h"
3140 /* System header to define __stub macros and hopefully few prototypes,
3141 which can conflict with char cthread_fork(); below. */
3143 /* Override any gcc2 internal prototype to avoid an error. */
3144 /* We use char because int might match the return type of a gcc2
3145 builtin and then its argument prototype would still apply. */
3146 char cthread_fork();
3150 /* The GNU C library defines this for functions which it implements
3151 to always fail with ENOSYS. Some functions are actually named
3152 something starting with __ and the normal name is an alias. */
3153 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
3161 if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3163 eval "ac_cv_func_cthread_fork=yes"
3165 echo "configure: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3168 eval "ac_cv_func_cthread_fork=no"
3173 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
3174 echo "$ac_t""yes" 1>&6
3177 echo "$ac_t""no" 1>&6
3181 if test $ol_link_threads = no ; then
3182 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
3183 echo "configure:3184: checking for cthread_fork with -all_load" >&5
3184 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3189 LIBS="-all_load $LIBS"
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 #include <mach/cthreads.h>
3196 cthread_fork((void *)0, (void *)0);
3200 if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3202 ol_cv_cthread_all_load=yes
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3207 ol_cv_cthread_all_load=no
3214 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
3216 if test $ol_cv_cthread_all_load = yes ; then
3217 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
3218 ol_link_threads=mach
3222 if test $ol_link_threads != no ; then
3223 : check for cthread specific functionality here
3225 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
3229 if test $ol_with_threads = mach ; then
3230 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
3234 if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
3235 for ac_hdr in thread.h synch.h
3237 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3239 echo "configure:3240: checking for $ac_hdr" >&5
3240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3249 { (eval echo configure:3250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3250 ac_err=`grep -v '^ *+' conftest.out`
3251 if test -z "$ac_err"; then
3253 eval "ac_cv_header_$ac_safe=yes"
3256 echo "configure: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3259 eval "ac_cv_header_$ac_safe=no"
3263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3264 echo "$ac_t""yes" 1>&6
3265 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3266 cat >> confdefs.h <<EOF
3267 #define $ac_tr_hdr 1
3271 echo "$ac_t""no" 1>&6
3275 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
3276 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
3277 echo "configure:3278: checking for thr_create in -lthread" >&5
3278 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
3279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3282 ac_save_LIBS="$LIBS"
3283 LIBS="-lthread $LIBS"
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 /* Override any gcc2 internal prototype to avoid an error. */
3288 /* We use char because int might match the return type of a gcc2
3289 builtin and then its argument prototype would still apply. */
3296 if { (eval echo configure:3297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3298 eval "ac_cv_lib_$ac_lib_var=yes"
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3303 eval "ac_cv_lib_$ac_lib_var=no"
3306 LIBS="$ac_save_LIBS"
3309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3310 echo "$ac_t""yes" 1>&6
3313 echo "$ac_t""no" 1>&6
3318 if test $have_lwp = yes ; then
3319 cat >> confdefs.h <<\EOF
3323 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3325 if test $ol_with_preemptive = auto ; then
3326 ol_with_preemptive=yes
3331 for ac_hdr in lwp/lwp.h
3333 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3334 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3335 echo "configure:3336: checking for $ac_hdr" >&5
3336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3345 { (eval echo configure:3346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3346 ac_err=`grep -v '^ *+' conftest.out`
3347 if test -z "$ac_err"; then
3349 eval "ac_cv_header_$ac_safe=yes"
3352 echo "configure: failed program was:" >&5
3353 cat conftest.$ac_ext >&5
3355 eval "ac_cv_header_$ac_safe=no"
3359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3360 echo "$ac_t""yes" 1>&6
3361 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3362 cat >> confdefs.h <<EOF
3363 #define $ac_tr_hdr 1
3367 echo "$ac_t""no" 1>&6
3371 if test $ac_cv_header_lwp_lwp_h = yes ; then
3372 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
3373 echo "configure:3374: checking for lwp_create in -llwp" >&5
3374 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
3375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3378 ac_save_LIBS="$LIBS"
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3383 /* Override any gcc2 internal prototype to avoid an error. */
3384 /* We use char because int might match the return type of a gcc2
3385 builtin and then its argument prototype would still apply. */
3392 if { (eval echo configure:3393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3394 eval "ac_cv_lib_$ac_lib_var=yes"
3396 echo "configure: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3399 eval "ac_cv_lib_$ac_lib_var=no"
3402 LIBS="$ac_save_LIBS"
3405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3406 echo "$ac_t""yes" 1>&6
3409 echo "$ac_t""no" 1>&6
3414 if test $have_lwp = yes ; then
3415 cat >> confdefs.h <<\EOF
3419 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3421 if test $ol_with_preemptive = auto ; then
3422 ol_with_preemptive=no
3428 if test $ol_with_preemptive = yes ; then
3429 cat >> confdefs.h <<\EOF
3430 #define PREEMPTIVE_THREADS 1
3435 if test $ol_with_threads = manual ; then
3436 $ol_link_threads=yes
3438 echo "configure: warning: thread defines and link options must be set manually" 1>&2
3440 for ac_hdr in pthread.h sched.h
3442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3444 echo "configure:3445: checking for $ac_hdr" >&5
3445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3454 { (eval echo configure:3455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3455 ac_err=`grep -v '^ *+' conftest.out`
3456 if test -z "$ac_err"; then
3458 eval "ac_cv_header_$ac_safe=yes"
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3464 eval "ac_cv_header_$ac_safe=no"
3468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3469 echo "$ac_t""yes" 1>&6
3470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3471 cat >> confdefs.h <<EOF
3472 #define $ac_tr_hdr 1
3476 echo "$ac_t""no" 1>&6
3480 for ac_func in sched_yield pthread_yield
3482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3483 echo "configure:3484: checking for $ac_func" >&5
3484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 /* System header to define __stub macros and hopefully few prototypes,
3491 which can conflict with char $ac_func(); below. */
3493 /* Override any gcc2 internal prototype to avoid an error. */
3494 /* We use char because int might match the return type of a gcc2
3495 builtin and then its argument prototype would still apply. */
3500 /* The GNU C library defines this for functions which it implements
3501 to always fail with ENOSYS. Some functions are actually named
3502 something starting with __ and the normal name is an alias. */
3503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3511 if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3513 eval "ac_cv_func_$ac_func=yes"
3515 echo "configure: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3518 eval "ac_cv_func_$ac_func=no"
3523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3524 echo "$ac_t""yes" 1>&6
3525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3526 cat >> confdefs.h <<EOF
3527 #define $ac_tr_func 1
3531 echo "$ac_t""no" 1>&6
3536 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3537 echo "configure:3538: checking for LinuxThreads" >&5
3538 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3542 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3543 if test "$res" -gt 0 ; then
3544 ol_cv_linux_threads=yes
3546 ol_cv_linux_threads=no
3551 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3554 for ac_hdr in mach/cthreads.h
3556 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3557 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3558 echo "configure:3559: checking for $ac_hdr" >&5
3559 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3568 { (eval echo configure:3569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3569 ac_err=`grep -v '^ *+' conftest.out`
3570 if test -z "$ac_err"; then
3572 eval "ac_cv_header_$ac_safe=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 eval "ac_cv_header_$ac_safe=no"
3582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6
3584 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3585 cat >> confdefs.h <<EOF
3586 #define $ac_tr_hdr 1
3590 echo "$ac_t""no" 1>&6
3594 for ac_hdr in lwp/lwp.h
3596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3598 echo "configure:3599: checking for $ac_hdr" >&5
3599 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3608 { (eval echo configure:3609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3609 ac_err=`grep -v '^ *+' conftest.out`
3610 if test -z "$ac_err"; then
3612 eval "ac_cv_header_$ac_safe=yes"
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3618 eval "ac_cv_header_$ac_safe=no"
3622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3623 echo "$ac_t""yes" 1>&6
3624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3625 cat >> confdefs.h <<EOF
3626 #define $ac_tr_hdr 1
3630 echo "$ac_t""no" 1>&6
3634 for ac_hdr in thread.h synch.h
3636 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3638 echo "configure:3639: checking for $ac_hdr" >&5
3639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3642 cat > conftest.$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3648 { (eval echo configure:3649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3649 ac_err=`grep -v '^ *+' conftest.out`
3650 if test -z "$ac_err"; then
3652 eval "ac_cv_header_$ac_safe=yes"
3655 echo "configure: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3658 eval "ac_cv_header_$ac_safe=no"
3662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3663 echo "$ac_t""yes" 1>&6
3664 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3665 cat >> confdefs.h <<EOF
3666 #define $ac_tr_hdr 1
3670 echo "$ac_t""no" 1>&6
3676 if test $ol_link_threads = no ; then
3677 if test $ol_with_threads = yes ; then
3678 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
3681 if test $ol_with_threads = auto ; then
3682 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
3683 $ol_with_threads = no
3686 cat >> confdefs.h <<\EOF
3687 #define NO_THREADS 1
3690 cat >> confdefs.h <<\EOF
3691 #define PREEMPTIVE_THREADS 1
3698 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
3699 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
3700 echo "configure:3701: checking for DB2 library" >&5
3701 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3705 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
3706 echo "configure:3707: checking for db_open in -ldb" >&5
3707 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
3708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3711 ac_save_LIBS="$LIBS"
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3716 /* Override any gcc2 internal prototype to avoid an error. */
3717 /* We use char because int might match the return type of a gcc2
3718 builtin and then its argument prototype would still apply. */
3725 if { (eval echo configure:3726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3727 eval "ac_cv_lib_$ac_lib_var=yes"
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3732 eval "ac_cv_lib_$ac_lib_var=no"
3735 LIBS="$ac_save_LIBS"
3738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3739 echo "$ac_t""yes" 1>&6
3742 echo "$ac_t""no" 1>&6
3750 echo "$ac_t""$ol_cv_lib_db2" 1>&6
3754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3756 echo "configure:3757: checking for $ac_hdr" >&5
3757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3766 { (eval echo configure:3767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3767 ac_err=`grep -v '^ *+' conftest.out`
3768 if test -z "$ac_err"; then
3770 eval "ac_cv_header_$ac_safe=yes"
3773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3776 eval "ac_cv_header_$ac_safe=no"
3780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3781 echo "$ac_t""yes" 1>&6
3782 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3783 cat >> confdefs.h <<EOF
3784 #define $ac_tr_hdr 1
3788 echo "$ac_t""no" 1>&6
3792 if test $ac_cv_header_db_h = yes ; then
3793 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
3794 echo "configure:3795: checking if db.h is DB2" >&5
3795 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3804 /* this check could be improved */
3805 # ifdef DB_VERSION_MAJOR
3806 # if DB_VERSION_MAJOR == 2
3812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3813 egrep "__db_version_2" >/dev/null 2>&1; then
3815 ol_cv_header_db2=yes
3824 echo "$ac_t""$ol_cv_header_db2" 1>&6
3831 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
3832 echo "configure:3833: checking for Berkeley DB2" >&5
3833 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3837 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
3838 ol_cv_berkeley_db2=no
3840 ol_cv_berkeley_db2=yes
3845 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
3846 if test $ol_cv_berkeley_db2 = yes ; then
3847 cat >> confdefs.h <<\EOF
3848 #define HAVE_BERKELEY_DB2 1
3854 if test $ol_cv_berkeley_db2 = yes ; then
3856 ol_with_ldbm_api=db2
3858 if test $ol_with_ldbm_type = hash ; then
3859 cat >> confdefs.h <<\EOF
3860 #define LDBM_USE_DBHASH 1
3864 cat >> confdefs.h <<\EOF
3865 #define LDBM_USE_DBBTREE 1
3870 if test $ol_cv_lib_db2 != yes ; then
3871 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
3876 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
3877 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
3878 echo "configure:3879: checking for Berkeley DB library" >&5
3879 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3883 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
3884 echo "configure:3885: checking for dbopen" >&5
3885 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3891 /* System header to define __stub macros and hopefully few prototypes,
3892 which can conflict with char dbopen(); below. */
3894 /* Override any gcc2 internal prototype to avoid an error. */
3895 /* We use char because int might match the return type of a gcc2
3896 builtin and then its argument prototype would still apply. */
3901 /* The GNU C library defines this for functions which it implements
3902 to always fail with ENOSYS. Some functions are actually named
3903 something starting with __ and the normal name is an alias. */
3904 #if defined (__stub_dbopen) || defined (__stub___dbopen)
3912 if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3914 eval "ac_cv_func_dbopen=yes"
3916 echo "configure: failed program was:" >&5
3917 cat conftest.$ac_ext >&5
3919 eval "ac_cv_func_dbopen=no"
3924 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
3925 echo "$ac_t""yes" 1>&6
3928 echo "$ac_t""no" 1>&6
3930 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
3931 echo "configure:3932: checking for dbopen in -ldb" >&5
3932 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
3933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3936 ac_save_LIBS="$LIBS"
3938 cat > conftest.$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3941 /* Override any gcc2 internal prototype to avoid an error. */
3942 /* We use char because int might match the return type of a gcc2
3943 builtin and then its argument prototype would still apply. */
3950 if { (eval echo configure:3951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3952 eval "ac_cv_lib_$ac_lib_var=yes"
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3957 eval "ac_cv_lib_$ac_lib_var=no"
3960 LIBS="$ac_save_LIBS"
3963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3964 echo "$ac_t""yes" 1>&6
3967 echo "$ac_t""no" 1>&6
3978 echo "$ac_t""$ol_cv_lib_db" 1>&6
3981 for ac_hdr in db_185.h
3983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3985 echo "configure:3986: checking for $ac_hdr" >&5
3986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3987 echo $ac_n "(cached) $ac_c" 1>&6
3989 cat > conftest.$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3995 { (eval echo configure:3996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3996 ac_err=`grep -v '^ *+' conftest.out`
3997 if test -z "$ac_err"; then
3999 eval "ac_cv_header_$ac_safe=yes"
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4005 eval "ac_cv_header_$ac_safe=no"
4009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4012 cat >> confdefs.h <<EOF
4013 #define $ac_tr_hdr 1
4017 echo "$ac_t""no" 1>&6
4021 if test $ol_cv_header_db2 = yes ; then
4023 ol_cv_header_db=$ac_cv_header_db_185_h
4025 ol_cv_header_db=$ac_cv_header_db_h
4030 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
4031 echo "configure:4032: checking for Berkeley DB" >&5
4032 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4036 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
4037 ol_cv_berkeley_db=no
4039 ol_cv_berkeley_db=yes
4044 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
4045 if test $ol_cv_berkeley_db = yes ; then
4046 cat >> confdefs.h <<\EOF
4047 #define HAVE_BERKELEY_DB 1
4053 if test $ol_cv_berkeley_db = yes ; then
4057 if test $ol_with_ldbm_type = hash ; then
4058 cat >> confdefs.h <<\EOF
4059 #define LDBM_USE_DBHASH 1
4063 cat >> confdefs.h <<\EOF
4064 #define LDBM_USE_DBBTREE 1
4069 if test $ol_cv_lib_db != yes ; then
4070 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
4075 if test $ol_with_ldbm_api = manual ; then
4078 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
4080 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
4082 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4084 echo "configure:4085: checking for $ac_hdr" >&5
4085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4094 { (eval echo configure:4095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4095 ac_err=`grep -v '^ *+' conftest.out`
4096 if test -z "$ac_err"; then
4098 eval "ac_cv_header_$ac_safe=yes"
4101 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
4104 eval "ac_cv_header_$ac_safe=no"
4108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4110 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4111 cat >> confdefs.h <<EOF
4112 #define $ac_tr_hdr 1
4116 echo "$ac_t""no" 1>&6
4122 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
4123 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
4124 $ol_with_ldbm_api=none
4127 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
4128 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
4129 echo "configure:4130: checking for GDBM library" >&5
4130 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4134 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
4135 echo "configure:4136: checking for gdbm_open" >&5
4136 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4142 /* System header to define __stub macros and hopefully few prototypes,
4143 which can conflict with char gdbm_open(); below. */
4145 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4152 /* The GNU C library defines this for functions which it implements
4153 to always fail with ENOSYS. Some functions are actually named
4154 something starting with __ and the normal name is an alias. */
4155 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4165 eval "ac_cv_func_gdbm_open=yes"
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4170 eval "ac_cv_func_gdbm_open=no"
4175 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
4176 echo "$ac_t""yes" 1>&6
4179 echo "$ac_t""no" 1>&6
4181 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
4182 echo "configure:4183: checking for gdbm_open in -lgdbm" >&5
4183 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
4184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4187 ac_save_LIBS="$LIBS"
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4192 /* Override any gcc2 internal prototype to avoid an error. */
4193 /* We use char because int might match the return type of a gcc2
4194 builtin and then its argument prototype would still apply. */
4201 if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4203 eval "ac_cv_lib_$ac_lib_var=yes"
4205 echo "configure: failed program was:" >&5
4206 cat conftest.$ac_ext >&5
4208 eval "ac_cv_lib_$ac_lib_var=no"
4211 LIBS="$ac_save_LIBS"
4214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4215 echo "$ac_t""yes" 1>&6
4216 ol_cv_lib_gdbm=-lgdbm
4218 echo "$ac_t""no" 1>&6
4229 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
4232 for ac_hdr in gdbm.h
4234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4236 echo "configure:4237: checking for $ac_hdr" >&5
4237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4246 { (eval echo configure:4247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4247 ac_err=`grep -v '^ *+' conftest.out`
4248 if test -z "$ac_err"; then
4250 eval "ac_cv_header_$ac_safe=yes"
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4256 eval "ac_cv_header_$ac_safe=no"
4260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4261 echo "$ac_t""yes" 1>&6
4262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4263 cat >> confdefs.h <<EOF
4264 #define $ac_tr_hdr 1
4268 echo "$ac_t""no" 1>&6
4272 echo $ac_n "checking for db""... $ac_c" 1>&6
4273 echo "configure:4274: checking for db" >&5
4274 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4278 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
4286 echo "$ac_t""$ol_cv_gdbm" 1>&6
4287 if test $ol_cv_gdbm = yes ; then
4288 cat >> confdefs.h <<\EOF
4295 if test $ol_cv_gdbm = yes ; then
4297 ol_with_ldbm_api=gdbm
4299 if test $ol_cv_lib_gdbm != yes ; then
4300 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
4305 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
4306 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
4307 echo "configure:4308: checking for NDBM library" >&5
4308 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4312 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
4313 echo "configure:4314: checking for dbm_open" >&5
4314 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4317 cat > conftest.$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4320 /* System header to define __stub macros and hopefully few prototypes,
4321 which can conflict with char dbm_open(); below. */
4323 /* Override any gcc2 internal prototype to avoid an error. */
4324 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */
4330 /* The GNU C library defines this for functions which it implements
4331 to always fail with ENOSYS. Some functions are actually named
4332 something starting with __ and the normal name is an alias. */
4333 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
4341 if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4343 eval "ac_cv_func_dbm_open=yes"
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4348 eval "ac_cv_func_dbm_open=no"
4353 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4357 echo "$ac_t""no" 1>&6
4359 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
4360 echo "configure:4361: checking for dbm_open in -lndbm" >&5
4361 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
4362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4365 ac_save_LIBS="$LIBS"
4367 cat > conftest.$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4370 /* Override any gcc2 internal prototype to avoid an error. */
4371 /* We use char because int might match the return type of a gcc2
4372 builtin and then its argument prototype would still apply. */
4379 if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4381 eval "ac_cv_lib_$ac_lib_var=yes"
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4386 eval "ac_cv_lib_$ac_lib_var=no"
4389 LIBS="$ac_save_LIBS"
4392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4393 echo "$ac_t""yes" 1>&6
4394 ol_cv_lib_ndbm=-lndbm
4396 echo "$ac_t""no" 1>&6
4398 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
4399 echo "configure:4400: checking for dbm_open in -ldbm" >&5
4400 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
4401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 ac_save_LIBS="$LIBS"
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 /* Override any gcc2 internal prototype to avoid an error. */
4410 /* We use char because int might match the return type of a gcc2
4411 builtin and then its argument prototype would still apply. */
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4420 eval "ac_cv_lib_$ac_lib_var=yes"
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4425 eval "ac_cv_lib_$ac_lib_var=no"
4428 LIBS="$ac_save_LIBS"
4431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4432 echo "$ac_t""yes" 1>&6
4433 ol_cv_lib_ndbm=-ldbm
4435 echo "$ac_t""no" 1>&6
4448 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
4451 for ac_hdr in ndbm.h
4453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4455 echo "configure:4456: checking for $ac_hdr" >&5
4456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 cat > conftest.$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4465 { (eval echo configure:4466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4466 ac_err=`grep -v '^ *+' conftest.out`
4467 if test -z "$ac_err"; then
4469 eval "ac_cv_header_$ac_safe=yes"
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4475 eval "ac_cv_header_$ac_safe=no"
4479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4482 cat >> confdefs.h <<EOF
4483 #define $ac_tr_hdr 1
4487 echo "$ac_t""no" 1>&6
4491 echo $ac_n "checking for db""... $ac_c" 1>&6
4492 echo "configure:4493: checking for db" >&5
4493 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4497 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
4505 echo "$ac_t""$ol_cv_ndbm" 1>&6
4506 if test $ol_cv_ndbm = yes ; then
4507 cat >> confdefs.h <<\EOF
4514 if test $ol_cv_ndbm = yes ; then
4516 ol_with_ldbm_api=ndbm
4518 if test $ol_with_ldbm_api = ndbm ; then
4519 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
4522 if test $ol_cv_lib_ndbm != yes ; then
4523 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
4528 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
4529 echo "configure: warning: could not find suitable LDBM backend" 1>&2
4530 if test $ol_enable_ldbm = yes ; then
4531 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
4534 echo "configure: warning: disabling LDBM" 1>&2
4538 if test $ol_enable_wrappers = yes ; then
4539 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
4540 echo "configure:4541: checking for hosts_access in -lwrap" >&5
4541 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
4542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4543 echo $ac_n "(cached) $ac_c" 1>&6
4545 ac_save_LIBS="$LIBS"
4547 cat > conftest.$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4550 /* Override any gcc2 internal prototype to avoid an error. */
4551 /* We use char because int might match the return type of a gcc2
4552 builtin and then its argument prototype would still apply. */
4553 char hosts_access();
4559 if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4561 eval "ac_cv_lib_$ac_lib_var=yes"
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4566 eval "ac_cv_lib_$ac_lib_var=no"
4569 LIBS="$ac_save_LIBS"
4572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4573 echo "$ac_t""yes" 1>&6
4576 echo "$ac_t""no" 1>&6
4581 if test $have_wrappers = yes ; then
4582 cat >> confdefs.h <<\EOF
4586 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
4588 echo "configure: warning: could not find -lwrap" 1>&2
4589 if test $ol_enable_wrappers = yes ; then
4590 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
4593 echo "configure: warning: disabling wrappers support" 1>&2
4594 ol_enable_wrappers=no
4599 # ud needs termcap (should insert check here)
4601 for ac_hdr in termcap.h ncurses.h
4603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_hdr" >&5
4606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4615 { (eval echo configure:4616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4616 ac_err=`grep -v '^ *+' conftest.out`
4617 if test -z "$ac_err"; then
4619 eval "ac_cv_header_$ac_safe=yes"
4622 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4625 eval "ac_cv_header_$ac_safe=no"
4629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4630 echo "$ac_t""yes" 1>&6
4631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4632 cat >> confdefs.h <<EOF
4633 #define $ac_tr_hdr 1
4637 echo "$ac_t""no" 1>&6
4642 if test $ol_link_termcap = no ; then
4643 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
4644 echo "configure:4645: checking for tputs in -ltermcap" >&5
4645 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
4646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4649 ac_save_LIBS="$LIBS"
4650 LIBS="-ltermcap $LIBS"
4651 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 /* Override any gcc2 internal prototype to avoid an error. */
4655 /* We use char because int might match the return type of a gcc2
4656 builtin and then its argument prototype would still apply. */
4663 if { (eval echo configure:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4665 eval "ac_cv_lib_$ac_lib_var=yes"
4667 echo "configure: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4670 eval "ac_cv_lib_$ac_lib_var=no"
4673 LIBS="$ac_save_LIBS"
4676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4677 echo "$ac_t""yes" 1>&6
4680 echo "$ac_t""no" 1>&6
4684 if test $have_termcap = yes ; then
4685 cat >> confdefs.h <<\EOF
4686 #define HAVE_TERMCAP 1
4690 TERMCAP_LIBS=-ltermcap
4694 if test $ol_link_termcap = no ; then
4695 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
4696 echo "configure:4697: checking for initscr in -lncurses" >&5
4697 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
4698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4701 ac_save_LIBS="$LIBS"
4702 LIBS="-lncurses $LIBS"
4703 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4715 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4717 eval "ac_cv_lib_$ac_lib_var=yes"
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4722 eval "ac_cv_lib_$ac_lib_var=no"
4725 LIBS="$ac_save_LIBS"
4728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4729 echo "$ac_t""yes" 1>&6
4732 echo "$ac_t""no" 1>&6
4736 if test $have_ncurses = yes ; then
4737 cat >> confdefs.h <<\EOF
4738 #define HAVE_NCURSES 1
4742 TERMCAP_LIBS=-lncurses
4746 if test $ol_link_termcap = no ; then
4747 cat >> confdefs.h <<\EOF
4748 #define NO_TERMCAP 1
4754 # FreeBSD (and others) have crypt(3) in -lcrypt
4755 if test $ol_enable_crypt != no ; then
4756 echo $ac_n "checking for crypt""... $ac_c" 1>&6
4757 echo "configure:4758: checking for crypt" >&5
4758 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764 /* System header to define __stub macros and hopefully few prototypes,
4765 which can conflict with char crypt(); below. */
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4774 /* The GNU C library defines this for functions which it implements
4775 to always fail with ENOSYS. Some functions are actually named
4776 something starting with __ and the normal name is an alias. */
4777 #if defined (__stub_crypt) || defined (__stub___crypt)
4785 if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4787 eval "ac_cv_func_crypt=yes"
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4792 eval "ac_cv_func_crypt=no"
4797 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4801 echo "$ac_t""no" 1>&6
4803 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4804 echo "configure:4805: checking for crypt in -lcrypt" >&5
4805 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4807 echo $ac_n "(cached) $ac_c" 1>&6
4809 ac_save_LIBS="$LIBS"
4810 LIBS="-lcrypt $LIBS"
4811 cat > conftest.$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4814 /* Override any gcc2 internal prototype to avoid an error. */
4815 /* We use char because int might match the return type of a gcc2
4816 builtin and then its argument prototype would still apply. */
4823 if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4825 eval "ac_cv_lib_$ac_lib_var=yes"
4827 echo "configure: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4830 eval "ac_cv_lib_$ac_lib_var=no"
4833 LIBS="$ac_save_LIBS"
4836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4837 echo "$ac_t""yes" 1>&6
4838 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
4841 echo "$ac_t""no" 1>&6
4848 if test $have_crypt = yes ; then
4849 cat >> confdefs.h <<\EOF
4850 #define HAVE_CRYPT 1
4854 echo "configure: warning: could not find crypt" 1>&2
4855 if test $ol_enable_crypt = yes ; then
4856 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
4859 echo "configure: warning: disabling crypt support" 1>&2
4864 # FreeBSD (and others) have setproctitle(3) in -lutil
4865 if test $ol_enable_proctitle != no ; then
4866 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
4867 echo "configure:4868: checking for setproctitle" >&5
4868 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4871 cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4874 /* System header to define __stub macros and hopefully few prototypes,
4875 which can conflict with char setproctitle(); below. */
4877 /* Override any gcc2 internal prototype to avoid an error. */
4878 /* We use char because int might match the return type of a gcc2
4879 builtin and then its argument prototype would still apply. */
4880 char setproctitle();
4884 /* The GNU C library defines this for functions which it implements
4885 to always fail with ENOSYS. Some functions are actually named
4886 something starting with __ and the normal name is an alias. */
4887 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4897 eval "ac_cv_func_setproctitle=yes"
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4902 eval "ac_cv_func_setproctitle=no"
4907 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
4908 echo "$ac_t""yes" 1>&6
4909 have_setproctitle=yes
4911 echo "$ac_t""no" 1>&6
4913 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
4914 echo "configure:4915: checking for setproctitle in -lutil" >&5
4915 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
4916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4919 ac_save_LIBS="$LIBS"
4921 cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4924 /* Override any gcc2 internal prototype to avoid an error. */
4925 /* We use char because int might match the return type of a gcc2
4926 builtin and then its argument prototype would still apply. */
4927 char setproctitle();
4933 if { (eval echo configure:4934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4935 eval "ac_cv_lib_$ac_lib_var=yes"
4937 echo "configure: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4940 eval "ac_cv_lib_$ac_lib_var=no"
4943 LIBS="$ac_save_LIBS"
4946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4947 echo "$ac_t""yes" 1>&6
4948 have_setproctitle=yes
4949 LUTIL_LIBS="$LUTIL_LIBS -lutil"
4951 echo "$ac_t""no" 1>&6
4952 have_setproctitle=no
4953 LIBOBJS="$LIBOBJS setproctitle.o"
4959 if test $have_setproctitle = yes ; then
4960 cat >> confdefs.h <<\EOF
4961 #define HAVE_SETPROCTITLE 1
4967 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4968 echo "configure:4969: checking for ANSI C header files" >&5
4969 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4970 echo $ac_n "(cached) $ac_c" 1>&6
4972 cat > conftest.$ac_ext <<EOF
4973 #line 4974 "configure"
4974 #include "confdefs.h"
4980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4981 { (eval echo configure:4982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4982 ac_err=`grep -v '^ *+' conftest.out`
4983 if test -z "$ac_err"; then
4985 ac_cv_header_stdc=yes
4988 echo "configure: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
4991 ac_cv_header_stdc=no
4995 if test $ac_cv_header_stdc = yes; then
4996 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4997 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5003 egrep "memchr" >/dev/null 2>&1; then
5007 ac_cv_header_stdc=no
5013 if test $ac_cv_header_stdc = yes; then
5014 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5015 cat > conftest.$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5021 egrep "free" >/dev/null 2>&1; then
5025 ac_cv_header_stdc=no
5031 if test $ac_cv_header_stdc = yes; then
5032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5033 if test "$cross_compiling" = yes; then
5036 cat > conftest.$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5040 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5041 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5043 int main () { int i; for (i = 0; i < 256; i++)
5044 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5048 if { (eval echo configure:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5052 echo "configure: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5055 ac_cv_header_stdc=no
5063 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5064 if test $ac_cv_header_stdc = yes; then
5065 cat >> confdefs.h <<\EOF
5066 #define STDC_HEADERS 1
5072 if test $ac_cv_header_stdc != yes; then
5073 echo "configure: warning: could not locate Standard C headers" 1>&2
5077 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5080 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5081 echo "configure:5082: checking for $ac_hdr that defines DIR" >&5
5082 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5085 cat > conftest.$ac_ext <<EOF
5086 #line 5087 "configure"
5087 #include "confdefs.h"
5088 #include <sys/types.h>
5094 if { (eval echo configure:5095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5096 eval "ac_cv_header_dirent_$ac_safe=yes"
5098 echo "configure: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5101 eval "ac_cv_header_dirent_$ac_safe=no"
5105 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5106 echo "$ac_t""yes" 1>&6
5107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5108 cat >> confdefs.h <<EOF
5109 #define $ac_tr_hdr 1
5111 ac_header_dirent=$ac_hdr; break
5113 echo "$ac_t""no" 1>&6
5116 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5117 if test $ac_header_dirent = dirent.h; then
5118 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5119 echo "configure:5120: checking for opendir in -ldir" >&5
5120 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5124 ac_save_LIBS="$LIBS"
5126 cat > conftest.$ac_ext <<EOF
5127 #line 5128 "configure"
5128 #include "confdefs.h"
5129 /* Override any gcc2 internal prototype to avoid an error. */
5130 /* We use char because int might match the return type of a gcc2
5131 builtin and then its argument prototype would still apply. */
5138 if { (eval echo configure:5139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5140 eval "ac_cv_lib_$ac_lib_var=yes"
5142 echo "configure: failed program was:" >&5
5143 cat conftest.$ac_ext >&5
5145 eval "ac_cv_lib_$ac_lib_var=no"
5148 LIBS="$ac_save_LIBS"
5151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5152 echo "$ac_t""yes" 1>&6
5155 echo "$ac_t""no" 1>&6
5159 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5160 echo "configure:5161: checking for opendir in -lx" >&5
5161 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 ac_save_LIBS="$LIBS"
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5170 /* Override any gcc2 internal prototype to avoid an error. */
5171 /* We use char because int might match the return type of a gcc2
5172 builtin and then its argument prototype would still apply. */
5179 if { (eval echo configure:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5181 eval "ac_cv_lib_$ac_lib_var=yes"
5183 echo "configure: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5186 eval "ac_cv_lib_$ac_lib_var=no"
5189 LIBS="$ac_save_LIBS"
5192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5193 echo "$ac_t""yes" 1>&6
5196 echo "$ac_t""no" 1>&6
5201 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5202 echo "configure:5203: checking for sys/wait.h that is POSIX.1 compatible" >&5
5203 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 #include <sys/types.h>
5210 #include <sys/wait.h>
5212 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5215 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5220 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5223 if { (eval echo configure:5224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5225 ac_cv_header_sys_wait_h=yes
5227 echo "configure: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5230 ac_cv_header_sys_wait_h=no
5235 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5236 if test $ac_cv_header_sys_wait_h = yes; then
5237 cat >> confdefs.h <<\EOF
5238 #define HAVE_SYS_WAIT_H 1
5269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5271 echo "configure:5272: checking for $ac_hdr" >&5
5272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5275 cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5281 { (eval echo configure:5282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5282 ac_err=`grep -v '^ *+' conftest.out`
5283 if test -z "$ac_err"; then
5285 eval "ac_cv_header_$ac_safe=yes"
5288 echo "configure: failed program was:" >&5
5289 cat conftest.$ac_ext >&5
5291 eval "ac_cv_header_$ac_safe=no"
5295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5296 echo "$ac_t""yes" 1>&6
5297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5298 cat >> confdefs.h <<EOF
5299 #define $ac_tr_hdr 1
5303 echo "$ac_t""no" 1>&6
5308 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5309 echo "configure:5310: checking for uid_t in sys/types.h" >&5
5310 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5311 echo $ac_n "(cached) $ac_c" 1>&6
5313 cat > conftest.$ac_ext <<EOF
5314 #line 5315 "configure"
5315 #include "confdefs.h"
5316 #include <sys/types.h>
5318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5319 egrep "uid_t" >/dev/null 2>&1; then
5321 ac_cv_type_uid_t=yes
5330 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5331 if test $ac_cv_type_uid_t = no; then
5332 cat >> confdefs.h <<\EOF
5336 cat >> confdefs.h <<\EOF
5342 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
5343 echo "configure:5344: checking type of array argument to getgroups" >&5
5344 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
5345 echo $ac_n "(cached) $ac_c" 1>&6
5347 if test "$cross_compiling" = yes; then
5348 ac_cv_type_getgroups=cross
5350 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5354 /* Thanks to Mike Rendell for this test. */
5355 #include <sys/types.h>
5358 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5363 union { gid_t gval; long lval; } val;
5366 for (i = 0; i < NGID; i++)
5367 gidset[i] = val.gval;
5368 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5370 /* Exit non-zero if getgroups seems to require an array of ints. This
5371 happens when gid_t is short but getgroups modifies an array of ints. */
5372 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5376 if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5378 ac_cv_type_getgroups=gid_t
5380 echo "configure: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5383 ac_cv_type_getgroups=int
5388 if test $ac_cv_type_getgroups = cross; then
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
5397 ac_cv_type_getgroups=gid_t
5400 ac_cv_type_getgroups=int
5407 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
5408 cat >> confdefs.h <<EOF
5409 #define GETGROUPS_T $ac_cv_type_getgroups
5413 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5414 echo "configure:5415: checking for mode_t" >&5
5415 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5416 echo $ac_n "(cached) $ac_c" 1>&6
5418 cat > conftest.$ac_ext <<EOF
5419 #line 5420 "configure"
5420 #include "confdefs.h"
5421 #include <sys/types.h>
5427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5428 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5430 ac_cv_type_mode_t=yes
5433 ac_cv_type_mode_t=no
5438 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5439 if test $ac_cv_type_mode_t = no; then
5440 cat >> confdefs.h <<\EOF
5446 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5447 echo "configure:5448: checking for off_t" >&5
5448 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5449 echo $ac_n "(cached) $ac_c" 1>&6
5451 cat > conftest.$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5454 #include <sys/types.h>
5460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5461 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5463 ac_cv_type_off_t=yes
5471 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5472 if test $ac_cv_type_off_t = no; then
5473 cat >> confdefs.h <<\EOF
5479 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5480 echo "configure:5481: checking for pid_t" >&5
5481 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5482 echo $ac_n "(cached) $ac_c" 1>&6
5484 cat > conftest.$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5487 #include <sys/types.h>
5493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5494 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5496 ac_cv_type_pid_t=yes
5504 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5505 if test $ac_cv_type_pid_t = no; then
5506 cat >> confdefs.h <<\EOF
5512 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5513 echo "configure:5514: checking return type of signal handlers" >&5
5514 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5517 cat > conftest.$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5520 #include <sys/types.h>
5526 extern "C" void (*signal (int, void (*)(int)))(int);
5528 void (*signal ()) ();
5535 if { (eval echo configure:5536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5537 ac_cv_type_signal=void
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5542 ac_cv_type_signal=int
5547 echo "$ac_t""$ac_cv_type_signal" 1>&6
5548 cat >> confdefs.h <<EOF
5549 #define RETSIGTYPE $ac_cv_type_signal
5553 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5554 echo "configure:5555: checking for size_t" >&5
5555 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5556 echo $ac_n "(cached) $ac_c" 1>&6
5558 cat > conftest.$ac_ext <<EOF
5559 #line 5560 "configure"
5560 #include "confdefs.h"
5561 #include <sys/types.h>
5567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5568 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5570 ac_cv_type_size_t=yes
5573 ac_cv_type_size_t=no
5578 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5579 if test $ac_cv_type_size_t = no; then
5580 cat >> confdefs.h <<\EOF
5581 #define size_t unsigned
5586 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5587 echo "configure:5588: checking for uid_t in sys/types.h" >&5
5588 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5591 cat > conftest.$ac_ext <<EOF
5592 #line 5593 "configure"
5593 #include "confdefs.h"
5594 #include <sys/types.h>
5596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5597 egrep "uid_t" >/dev/null 2>&1; then
5599 ac_cv_type_uid_t=yes
5608 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5609 if test $ac_cv_type_uid_t = no; then
5610 cat >> confdefs.h <<\EOF
5614 cat >> confdefs.h <<\EOF
5620 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5621 echo "configure:5622: checking for st_blksize in struct stat" >&5
5622 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5623 echo $ac_n "(cached) $ac_c" 1>&6
5625 cat > conftest.$ac_ext <<EOF
5626 #line 5627 "configure"
5627 #include "confdefs.h"
5628 #include <sys/types.h>
5629 #include <sys/stat.h>
5631 struct stat s; s.st_blksize;
5634 if { (eval echo configure:5635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5636 ac_cv_struct_st_blksize=yes
5638 echo "configure: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5641 ac_cv_struct_st_blksize=no
5646 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5647 if test $ac_cv_struct_st_blksize = yes; then
5648 cat >> confdefs.h <<\EOF
5649 #define HAVE_ST_BLKSIZE 1
5654 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5655 echo "configure:5656: checking whether time.h and sys/time.h may both be included" >&5
5656 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5657 echo $ac_n "(cached) $ac_c" 1>&6
5659 cat > conftest.$ac_ext <<EOF
5660 #line 5661 "configure"
5661 #include "confdefs.h"
5662 #include <sys/types.h>
5663 #include <sys/time.h>
5669 if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5671 ac_cv_header_time=yes
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 ac_cv_header_time=no
5681 echo "$ac_t""$ac_cv_header_time" 1>&6
5682 if test $ac_cv_header_time = yes; then
5683 cat >> confdefs.h <<\EOF
5684 #define TIME_WITH_SYS_TIME 1
5689 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5690 echo "configure:5691: checking whether struct tm is in sys/time.h or time.h" >&5
5691 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5692 echo $ac_n "(cached) $ac_c" 1>&6
5694 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5697 #include <sys/types.h>
5700 struct tm *tp; tp->tm_sec;
5703 if { (eval echo configure:5704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5705 ac_cv_struct_tm=time.h
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 ac_cv_struct_tm=sys/time.h
5715 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5716 if test $ac_cv_struct_tm = sys/time.h; then
5717 cat >> confdefs.h <<\EOF
5718 #define TM_IN_SYS_TIME 1
5725 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
5726 echo "configure:5727: checking if toupper() requires islower()" >&5
5727 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
5728 echo $ac_n "(cached) $ac_c" 1>&6
5731 if test "$cross_compiling" = yes; then
5732 ol_cv_c_upper_lower=safe
5734 cat > conftest.$ac_ext <<EOF
5735 #line 5736 "configure"
5736 #include "confdefs.h"
5741 if ('C' == toupper('C'))
5747 if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5749 ol_cv_c_upper_lower=no
5751 echo "configure: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5754 ol_cv_c_upper_lower=yes
5761 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
5762 if test $ol_cv_c_upper_lower != no ; then
5763 cat >> confdefs.h <<\EOF
5764 #define C_UPPER_LOWER 1
5769 echo $ac_n "checking for working const""... $ac_c" 1>&6
5770 echo "configure:5771: checking for working const" >&5
5771 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5772 echo $ac_n "(cached) $ac_c" 1>&6
5774 cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5780 /* Ultrix mips cc rejects this. */
5781 typedef int charset[2]; const charset x;
5782 /* SunOS 4.1.1 cc rejects this. */
5783 char const *const *ccp;
5785 /* NEC SVR4.0.2 mips cc rejects this. */
5786 struct point {int x, y;};
5787 static struct point const zero = {0,0};
5788 /* AIX XL C 1.02.0.0 rejects this.
5789 It does not let you subtract one const X* pointer from another in an arm
5790 of an if-expression whose if-part is not a constant expression */
5791 const char *g = "string";
5792 ccp = &g + (g ? g-g : 0);
5793 /* HPUX 7.0 cc rejects these. */
5796 ccp = (char const *const *) p;
5797 { /* SCO 3.2v4 cc rejects this. */
5799 char const *s = 0 ? (char *) 0 : (char const *) 0;
5803 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5805 const int *foo = &x[0];
5808 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5809 typedef const int *iptr;
5813 { /* AIX XL C 1.02.0.0 rejects this saying
5814 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5815 struct s { int j; const int *ap[3]; };
5816 struct s *b; b->j = 5;
5818 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5824 if { (eval echo configure:5825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5836 echo "$ac_t""$ac_cv_c_const" 1>&6
5837 if test $ac_cv_c_const = no; then
5838 cat >> confdefs.h <<\EOF
5846 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
5847 echo "configure:5848: checking for 8-bit clean memcmp" >&5
5848 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 if test "$cross_compiling" = yes; then
5852 ac_cv_func_memcmp_clean=no
5854 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5860 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5861 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
5865 if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5867 ac_cv_func_memcmp_clean=yes
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5872 ac_cv_func_memcmp_clean=no
5879 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
5880 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
5882 echo $ac_n "checking for strftime""... $ac_c" 1>&6
5883 echo "configure:5884: checking for strftime" >&5
5884 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5887 cat > conftest.$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5890 /* System header to define __stub macros and hopefully few prototypes,
5891 which can conflict with char strftime(); below. */
5893 /* Override any gcc2 internal prototype to avoid an error. */
5894 /* We use char because int might match the return type of a gcc2
5895 builtin and then its argument prototype would still apply. */
5900 /* The GNU C library defines this for functions which it implements
5901 to always fail with ENOSYS. Some functions are actually named
5902 something starting with __ and the normal name is an alias. */
5903 #if defined (__stub_strftime) || defined (__stub___strftime)
5911 if { (eval echo configure:5912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5913 eval "ac_cv_func_strftime=yes"
5915 echo "configure: failed program was:" >&5
5916 cat conftest.$ac_ext >&5
5918 eval "ac_cv_func_strftime=no"
5923 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5925 cat >> confdefs.h <<\EOF
5926 #define HAVE_STRFTIME 1
5930 echo "$ac_t""no" 1>&6
5931 # strftime is in -lintl on SCO UNIX.
5932 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
5933 echo "configure:5934: checking for strftime in -lintl" >&5
5934 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
5935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 ac_save_LIBS="$LIBS"
5940 cat > conftest.$ac_ext <<EOF
5941 #line 5942 "configure"
5942 #include "confdefs.h"
5943 /* Override any gcc2 internal prototype to avoid an error. */
5944 /* We use char because int might match the return type of a gcc2
5945 builtin and then its argument prototype would still apply. */
5952 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5954 eval "ac_cv_lib_$ac_lib_var=yes"
5956 echo "configure: failed program was:" >&5
5957 cat conftest.$ac_ext >&5
5959 eval "ac_cv_lib_$ac_lib_var=no"
5962 LIBS="$ac_save_LIBS"
5965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5966 echo "$ac_t""yes" 1>&6
5967 cat >> confdefs.h <<\EOF
5968 #define HAVE_STRFTIME 1
5973 echo "$ac_t""no" 1>&6
5978 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
5979 echo "configure:5980: checking for vprintf" >&5
5980 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5981 echo $ac_n "(cached) $ac_c" 1>&6
5983 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure"
5985 #include "confdefs.h"
5986 /* System header to define __stub macros and hopefully few prototypes,
5987 which can conflict with char vprintf(); below. */
5989 /* Override any gcc2 internal prototype to avoid an error. */
5990 /* We use char because int might match the return type of a gcc2
5991 builtin and then its argument prototype would still apply. */
5996 /* The GNU C library defines this for functions which it implements
5997 to always fail with ENOSYS. Some functions are actually named
5998 something starting with __ and the normal name is an alias. */
5999 #if defined (__stub_vprintf) || defined (__stub___vprintf)
6007 if { (eval echo configure:6008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6009 eval "ac_cv_func_vprintf=yes"
6011 echo "configure: failed program was:" >&5
6012 cat conftest.$ac_ext >&5
6014 eval "ac_cv_func_vprintf=no"
6019 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
6020 echo "$ac_t""yes" 1>&6
6021 cat >> confdefs.h <<\EOF
6022 #define HAVE_VPRINTF 1
6026 echo "$ac_t""no" 1>&6
6029 if test "$ac_cv_func_vprintf" != yes; then
6030 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6031 echo "configure:6032: checking for _doprnt" >&5
6032 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6035 cat > conftest.$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6038 /* System header to define __stub macros and hopefully few prototypes,
6039 which can conflict with char _doprnt(); below. */
6041 /* Override any gcc2 internal prototype to avoid an error. */
6042 /* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */
6048 /* The GNU C library defines this for functions which it implements
6049 to always fail with ENOSYS. Some functions are actually named
6050 something starting with __ and the normal name is an alias. */
6051 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6059 if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6061 eval "ac_cv_func__doprnt=yes"
6063 echo "configure: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6066 eval "ac_cv_func__doprnt=no"
6071 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
6072 echo "$ac_t""yes" 1>&6
6073 cat >> confdefs.h <<\EOF
6074 #define HAVE_DOPRNT 1
6078 echo "$ac_t""no" 1>&6
6083 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
6084 echo "configure:6085: checking for wait3 that fills in rusage" >&5
6085 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
6086 echo $ac_n "(cached) $ac_c" 1>&6
6088 if test "$cross_compiling" = yes; then
6089 ac_cv_func_wait3_rusage=no
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 #include <sys/types.h>
6095 #include <sys/time.h>
6096 #include <sys/resource.h>
6098 /* HP-UX has wait3 but does not fill in rusage at all. */
6102 /* Use a field that we can force nonzero --
6103 voluntary context switches.
6104 For systems like NeXT and OSF/1 that don't set it,
6105 also use the system CPU time. And page faults (I/O) for Linux. */
6107 r.ru_stime.tv_sec = 0;
6108 r.ru_stime.tv_usec = 0;
6109 r.ru_majflt = r.ru_minflt = 0;
6111 case 0: /* Child. */
6112 sleep(1); /* Give up the CPU. */
6114 case -1: _exit(0); /* What can we do? */
6115 default: /* Parent. */
6117 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
6118 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
6119 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
6123 if { (eval echo configure:6124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6125 ac_cv_func_wait3_rusage=yes
6127 echo "configure: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6130 ac_cv_func_wait3_rusage=no
6137 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
6138 if test $ac_cv_func_wait3_rusage = yes; then
6139 cat >> confdefs.h <<\EOF
6140 #define HAVE_WAIT3 1
6176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6177 echo "configure:6178: checking for $ac_func" >&5
6178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6179 echo $ac_n "(cached) $ac_c" 1>&6
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 /* System header to define __stub macros and hopefully few prototypes,
6185 which can conflict with char $ac_func(); below. */
6187 /* Override any gcc2 internal prototype to avoid an error. */
6188 /* We use char because int might match the return type of a gcc2
6189 builtin and then its argument prototype would still apply. */
6194 /* The GNU C library defines this for functions which it implements
6195 to always fail with ENOSYS. Some functions are actually named
6196 something starting with __ and the normal name is an alias. */
6197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6205 if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6207 eval "ac_cv_func_$ac_func=yes"
6209 echo "configure: failed program was:" >&5
6210 cat conftest.$ac_ext >&5
6212 eval "ac_cv_func_$ac_func=no"
6217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6218 echo "$ac_t""yes" 1>&6
6219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6220 cat >> confdefs.h <<EOF
6221 #define $ac_tr_func 1
6225 echo "$ac_t""no" 1>&6
6230 for ac_func in getopt strdup tempnam
6232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6233 echo "configure:6234: checking for $ac_func" >&5
6234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6235 echo $ac_n "(cached) $ac_c" 1>&6
6237 cat > conftest.$ac_ext <<EOF
6238 #line 6239 "configure"
6239 #include "confdefs.h"
6240 /* System header to define __stub macros and hopefully few prototypes,
6241 which can conflict with char $ac_func(); below. */
6243 /* Override any gcc2 internal prototype to avoid an error. */
6244 /* We use char because int might match the return type of a gcc2
6245 builtin and then its argument prototype would still apply. */
6250 /* The GNU C library defines this for functions which it implements
6251 to always fail with ENOSYS. Some functions are actually named
6252 something starting with __ and the normal name is an alias. */
6253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6261 if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6263 eval "ac_cv_func_$ac_func=yes"
6265 echo "configure: failed program was:" >&5
6266 cat conftest.$ac_ext >&5
6268 eval "ac_cv_func_$ac_func=no"
6273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6274 echo "$ac_t""yes" 1>&6
6275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6276 cat >> confdefs.h <<EOF
6277 #define $ac_tr_func 1
6281 echo "$ac_t""no" 1>&6
6282 LIBOBJS="$LIBOBJS ${ac_func}.o"
6288 # Check Configuration
6290 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
6291 echo "configure:6292: checking declaration of sys_errlist" >&5
6292 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6296 cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6301 #include <sys/types.h>
6304 char *c = (char *) *sys_errlist
6307 if { (eval echo configure:6308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6309 ol_cv_dcl_sys_errlist=yes
6311 echo "configure: failed program was:" >&5
6312 cat conftest.$ac_ext >&5
6314 ol_cv_dcl_sys_errlist=no
6319 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
6321 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
6322 if test $ol_cv_dcl_sys_errlist = no ; then
6323 cat >> confdefs.h <<\EOF
6324 #define DECL_SYS_ERRLIST 1
6327 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
6328 echo "configure:6329: checking existence of sys_errlist" >&5
6329 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
6330 echo $ac_n "(cached) $ac_c" 1>&6
6333 cat > conftest.$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6338 char *c = (char *) *sys_errlist
6341 if { (eval echo configure:6342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6343 ol_cv_have_sys_errlist=yes
6345 echo "configure: failed program was:" >&5
6346 cat conftest.$ac_ext >&5
6348 ol_cv_have_sys_errlist=no
6353 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
6358 if test $ol_enable_debug != no ; then
6359 cat >> confdefs.h <<\EOF
6360 #define LDAP_DEBUG 1
6364 if test $ol_enable_libui = yes ; then
6365 cat >> confdefs.h <<\EOF
6366 #define LDAP_LIBUI 1
6370 if test $ol_enable_cache = no ; then
6371 cat >> confdefs.h <<\EOF
6372 #define LDAP_NOCACHE 1
6376 if test $ol_enable_dns != no ; then
6377 cat >> confdefs.h <<\EOF
6382 if test $ol_enable_proctitle != no ; then
6383 cat >> confdefs.h <<\EOF
6384 #define LDAP_PROCTITLE 1
6388 if test $ol_enable_referrals != no ; then
6389 cat >> confdefs.h <<\EOF
6390 #define LDAP_REFERRALS 1
6394 if test $ol_enable_cldap != no ; then
6395 cat >> confdefs.h <<\EOF
6396 #define LDAP_CONNECTIONLESS 1
6401 if test $ol_enable_aclgroups != no ; then
6402 cat >> confdefs.h <<\EOF
6403 #define SLAPD_ACLGROUPS 1
6407 if test $ol_enable_crypt != no ; then
6408 cat >> confdefs.h <<\EOF
6409 #define SLAPD_CRYPT 1
6413 if test $ol_enable_md5 != no ; then
6414 cat >> confdefs.h <<\EOF
6419 if test $ol_enable_sha1 != no ; then
6420 cat >> confdefs.h <<\EOF
6421 #define SLAPD_SHA1 1
6425 if test $ol_enable_phonetic != no ; then
6426 cat >> confdefs.h <<\EOF
6427 #define SLAPD_PHONETIC 1
6431 if test $ol_enable_rlookups != no ; then
6432 cat >> confdefs.h <<\EOF
6433 #define SLAPD_RLOOKUPS 1
6438 if test $ol_link_ldbm != no ; then
6439 cat >> confdefs.h <<\EOF
6440 #define SLAPD_LDBM 1
6447 if test $ol_enable_passwd != no ; then
6448 cat >> confdefs.h <<\EOF
6449 #define SLAPD_PASSWD 1
6456 if test $ol_enable_shell != no ; then
6457 cat >> confdefs.h <<\EOF
6458 #define SLAPD_SHELL 1
6465 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
6466 $BUILD_SLAPD = yes ; then
6493 cat > confcache <<\EOF
6494 # This file is a shell script that caches the results of configure
6495 # tests run on this system so they can be shared between configure
6496 # scripts and configure runs. It is not useful on other systems.
6497 # If it contains results you don't want to keep, you may remove or edit it.
6499 # By default, configure uses ./config.cache as the cache file,
6500 # creating it if it does not exist already. You can give configure
6501 # the --cache-file=FILE option to use a different cache file; that is
6502 # what configure does when it calls configure scripts in
6503 # subdirectories, so they share the cache.
6504 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6505 # config.status only pays attention to the cache file if you give it the
6506 # --recheck option to rerun configure.
6509 # The following way of writing the cache mishandles newlines in values,
6510 # but we know of no workaround that is simple, portable, and efficient.
6511 # So, don't put newlines in cache variables' values.
6512 # Ultrix sh set writes to stderr and can't be redirected directly,
6513 # and sets the high bit in the cache file unless we assign to the vars.
6515 case `(ac_space=' '; set) 2>&1` in
6517 # `set' does not quote correctly, so add quotes (double-quote substitution
6518 # turns \\\\ into \\, and sed turns \\ into \).
6520 -e "s/'/'\\\\''/g" \
6521 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6524 # `set' quotes correctly as required by POSIX, so do not add quotes.
6525 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6528 if cmp -s $cache_file confcache; then
6531 if test -w $cache_file; then
6532 echo "updating cache $cache_file"
6533 cat confcache > $cache_file
6535 echo "not updating unwritable cache $cache_file"
6540 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6542 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6543 # Let make expand exec_prefix.
6544 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6546 # Any assignment to VPATH causes Sun make to only execute
6547 # the first set of double-colon rules, so remove it if not needed.
6548 # If there is a colon in the path, we need to keep it.
6549 if test "x$srcdir" = x.; then
6550 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6553 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6555 DEFS=-DHAVE_CONFIG_H
6557 # Without the "./", some shells look in PATH for config.status.
6558 : ${CONFIG_STATUS=./config.status}
6560 echo creating $CONFIG_STATUS
6561 rm -f $CONFIG_STATUS
6562 cat > $CONFIG_STATUS <<EOF
6564 # Generated automatically by configure.
6565 # Run this file to recreate the current configuration.
6566 # This directory was configured as follows,
6567 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6569 # $0 $ac_configure_args
6571 # Compiler output produced by configure, useful for debugging
6572 # configure, is in ./config.log if it exists.
6574 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6577 case "\$ac_option" in
6578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6579 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6580 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6581 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6582 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6584 -help | --help | --hel | --he | --h)
6585 echo "\$ac_cs_usage"; exit 0 ;;
6586 *) echo "\$ac_cs_usage"; exit 1 ;;
6590 ac_given_srcdir=$srcdir
6591 ac_given_INSTALL="$INSTALL"
6593 trap 'rm -fr `echo "\
6594 Makefile:build/top.mk:Makefile.in:build/dir.mk \
6595 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
6596 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
6597 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
6598 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
6599 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
6600 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
6601 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
6602 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
6603 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
6604 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
6605 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
6606 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
6607 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
6608 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
6609 include/Makefile:build/top.mk:include/Makefile.in \
6610 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
6611 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
6612 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
6613 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
6614 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
6615 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
6616 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
6617 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
6618 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
6619 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
6620 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
6621 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
6622 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
6623 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
6624 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
6625 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
6626 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
6627 tests/Makefile:build/top.mk:tests/Makefile.in \
6628 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6630 cat >> $CONFIG_STATUS <<EOF
6632 # Protect against being on the right side of a sed subst in config.status.
6633 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6634 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6637 s%@CFLAGS@%$CFLAGS%g
6638 s%@CPPFLAGS@%$CPPFLAGS%g
6639 s%@CXXFLAGS@%$CXXFLAGS%g
6641 s%@LDFLAGS@%$LDFLAGS%g
6643 s%@exec_prefix@%$exec_prefix%g
6644 s%@prefix@%$prefix%g
6645 s%@program_transform_name@%$program_transform_name%g
6646 s%@bindir@%$bindir%g
6647 s%@sbindir@%$sbindir%g
6648 s%@libexecdir@%$libexecdir%g
6649 s%@datadir@%$datadir%g
6650 s%@sysconfdir@%$sysconfdir%g
6651 s%@sharedstatedir@%$sharedstatedir%g
6652 s%@localstatedir@%$localstatedir%g
6653 s%@libdir@%$libdir%g
6654 s%@includedir@%$includedir%g
6655 s%@oldincludedir@%$oldincludedir%g
6656 s%@infodir@%$infodir%g
6657 s%@mandir@%$mandir%g
6659 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6660 s%@INSTALL_DATA@%$INSTALL_DATA%g
6661 s%@RANLIB@%$RANLIB%g
6662 s%@SET_MAKE@%$SET_MAKE%g
6663 s%@SENDMAIL@%$SENDMAIL%g
6664 s%@EDITOR@%$EDITOR%g
6665 s%@FINGER@%$FINGER%g
6668 s%@LIBOBJS@%$LIBOBJS%g
6669 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
6670 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
6671 s%@BUILD_LDBM@%$BUILD_LDBM%g
6672 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
6673 s%@BUILD_SHELL@%$BUILD_SHELL%g
6674 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
6675 s%@LDAP_LIBS@%$LDAP_LIBS%g
6676 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
6677 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
6678 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
6679 s%@LDBM_LIBS@%$LDBM_LIBS%g
6680 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
6681 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
6682 s%@KRB_LIBS@%$KRB_LIBS%g
6683 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
6688 cat >> $CONFIG_STATUS <<\EOF
6690 # Split the substitutions into bite-sized pieces for seds with
6691 # small command number limits, like on Digital OSF/1 and HP-UX.
6692 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6693 ac_file=1 # Number of current file.
6694 ac_beg=1 # First line for current file.
6695 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6698 while $ac_more_lines; do
6699 if test $ac_beg -gt 1; then
6700 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6702 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6704 if test ! -s conftest.s$ac_file; then
6706 rm -f conftest.s$ac_file
6708 if test -z "$ac_sed_cmds"; then
6709 ac_sed_cmds="sed -f conftest.s$ac_file"
6711 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6713 ac_file=`expr $ac_file + 1`
6715 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6718 if test -z "$ac_sed_cmds"; then
6723 cat >> $CONFIG_STATUS <<EOF
6725 CONFIG_FILES=\${CONFIG_FILES-"\
6726 Makefile:build/top.mk:Makefile.in:build/dir.mk \
6727 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
6728 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
6729 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
6730 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
6731 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
6732 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
6733 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
6734 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
6735 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
6736 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
6737 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
6738 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
6739 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
6740 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
6741 include/Makefile:build/top.mk:include/Makefile.in \
6742 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
6743 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
6744 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
6745 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
6746 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
6747 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
6748 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
6749 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
6750 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
6751 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
6752 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
6753 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
6754 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
6755 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
6756 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
6757 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
6758 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
6759 tests/Makefile:build/top.mk:tests/Makefile.in \
6762 cat >> $CONFIG_STATUS <<\EOF
6763 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6764 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6766 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6767 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6768 *) ac_file_in="${ac_file}.in" ;;
6771 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6773 # Remove last slash and all that follows it. Not all systems have dirname.
6774 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6775 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6776 # The file is in a subdirectory.
6777 test ! -d "$ac_dir" && mkdir "$ac_dir"
6778 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6779 # A "../" for each directory in $ac_dir_suffix.
6780 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6782 ac_dir_suffix= ac_dots=
6785 case "$ac_given_srcdir" in
6787 if test -z "$ac_dots"; then top_srcdir=.
6788 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6789 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6791 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6792 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6795 case "$ac_given_INSTALL" in
6796 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6797 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6800 echo creating "$ac_file"
6802 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6804 *Makefile*) ac_comsub="1i\\
6805 # $configure_input" ;;
6809 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6811 s%@configure_input@%$configure_input%g
6812 s%@srcdir@%$srcdir%g
6813 s%@top_srcdir@%$top_srcdir%g
6814 s%@INSTALL@%$INSTALL%g
6815 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6819 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6820 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6822 # ac_d sets the value in "#define NAME VALUE" lines.
6823 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6824 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6827 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6828 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6829 ac_uB='\([ ]\)%\1#\2define\3'
6832 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6833 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6834 ac_eB='$%\1#\2define\3'
6838 if test "${CONFIG_HEADERS+set}" != set; then
6840 cat >> $CONFIG_STATUS <<EOF
6841 CONFIG_HEADERS="include/portable.h"
6843 cat >> $CONFIG_STATUS <<\EOF
6845 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6846 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6848 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6849 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6850 *) ac_file_in="${ac_file}.in" ;;
6853 echo creating $ac_file
6855 rm -f conftest.frag conftest.in conftest.out
6856 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6857 cat $ac_file_inputs > conftest.in
6861 # Transform confdefs.h into a sed script conftest.vals that substitutes
6862 # the proper values into config.h.in to produce config.h. And first:
6863 # Protect against being on the right side of a sed subst in config.status.
6864 # Protect against being in an unquoted here document in config.status.
6866 cat > conftest.hdr <<\EOF
6869 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6873 sed -n -f conftest.hdr confdefs.h > conftest.vals
6876 # This sed command replaces #undef with comments. This is necessary, for
6877 # example, in the case of _POSIX_SOURCE, which is predefined and required
6878 # on some systems where configure will not decide to define it.
6879 cat >> conftest.vals <<\EOF
6880 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6883 # Break up conftest.vals because some shells have a limit on
6884 # the size of here documents, and old seds have small limits too.
6889 ac_lines=`grep -c . conftest.vals`
6890 # grep -c gives empty output for an empty file on some AIX systems.
6891 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6892 # Write a limited-size here document to conftest.frag.
6893 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6894 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6896 sed -f conftest.frag conftest.in > conftest.out
6898 mv conftest.out conftest.in
6900 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6902 mv conftest.tail conftest.vals
6906 cat >> $CONFIG_STATUS <<\EOF
6907 rm -f conftest.frag conftest.h
6908 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6909 cat conftest.in >> conftest.h
6911 if cmp -s $ac_file conftest.h 2>/dev/null; then
6912 echo "$ac_file is unchanged"
6915 # Remove last slash and all that follows it. Not all systems have dirname.
6916 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6917 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6918 # The file is in a subdirectory.
6919 test ! -d "$ac_dir" && mkdir "$ac_dir"
6922 mv conftest.h $ac_file
6927 cat >> $CONFIG_STATUS <<EOF
6930 cat >> $CONFIG_STATUS <<\EOF
6933 echo Please \"make depend\" to build dependencies
6937 chmod +x $CONFIG_STATUS
6938 rm -fr confdefs* $ac_clean_files
6939 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1