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 --enable-x-compile enable cross compiling (no)"
32 --with-kerberos use Kerberos (auto)"
34 --with-threads use threads (auto)"
36 --with-preemptive thread implementation is preemptive (auto)"
38 --enable-ldapd enable building ldapd (no)"
40 --enable-slapd enable building slapd (yes)"
42 --enable-aclgroups enable ACL group support (auto)"
44 --enable-crypt enable crypt(3) passwords (auto)"
46 --enable-md5 enable MD5 passwords (auto)"
48 --enable-sha1 enable SHA1 passwords (auto)"
50 --enable-wrappers enable tcp wrapper support (no)"
52 --enable-phonetic enable phonetic/soundex (no)"
54 --enable-rlookups enable reverse lookups (auto)"
56 --enable-ldbm enable ldbm backend (yes)"
58 --with-ldbm-api use LDBM API (auto)"
60 --with-ldbm-type use LDBM type (auto)"
62 --enable-passwd enable passwd backend (no)"
64 --enable-shell enable shell backend (no)"
66 --enable-slurpd enable building slurpd (auto)"
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
72 cache_file=./config.cache
81 program_transform_name=s,x,x,
89 bindir='${exec_prefix}/bin'
90 sbindir='${exec_prefix}/sbin'
91 libexecdir='${exec_prefix}/libexec'
92 datadir='${prefix}/share'
93 sysconfdir='${prefix}/etc'
94 sharedstatedir='${prefix}/com'
95 localstatedir='${prefix}/var'
96 libdir='${exec_prefix}/lib'
97 includedir='${prefix}/include'
98 oldincludedir='/usr/include'
99 infodir='${prefix}/info'
100 mandir='${prefix}/man'
102 # Initialize some other variables.
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
133 -build | --build | --buil | --bui | --bu)
135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136 build="$ac_optarg" ;;
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149 datadir="$ac_optarg" ;;
151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --version print the version of autoconf that created configure
198 Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228 Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
241 -host | --host | --hos | --ho)
243 -host=* | --host=* | --hos=* | --ho=*)
246 -includedir | --includedir | --includedi | --included | --include \
247 | --includ | --inclu | --incl | --inc)
248 ac_prev=includedir ;;
249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250 | --includ=* | --inclu=* | --incl=* | --inc=*)
251 includedir="$ac_optarg" ;;
253 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256 infodir="$ac_optarg" ;;
258 -libdir | --libdir | --libdi | --libd)
260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 libdir="$ac_optarg" ;;
263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264 | --libexe | --libex | --libe)
265 ac_prev=libexecdir ;;
266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267 | --libexe=* | --libex=* | --libe=*)
268 libexecdir="$ac_optarg" ;;
270 -localstatedir | --localstatedir | --localstatedi | --localstated \
271 | --localstate | --localstat | --localsta | --localst \
272 | --locals | --local | --loca | --loc | --lo)
273 ac_prev=localstatedir ;;
274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277 localstatedir="$ac_optarg" ;;
279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 mandir="$ac_optarg" ;;
285 # Obsolete; use --without-fp.
288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298 | --oldin | --oldi | --old | --ol | --o)
299 ac_prev=oldincludedir ;;
300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303 oldincludedir="$ac_optarg" ;;
305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 prefix="$ac_optarg" ;;
310 -program-prefix | --program-prefix | --program-prefi | --program-pref \
311 | --program-pre | --program-pr | --program-p)
312 ac_prev=program_prefix ;;
313 -program-prefix=* | --program-prefix=* | --program-prefi=* \
314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315 program_prefix="$ac_optarg" ;;
317 -program-suffix | --program-suffix | --program-suffi | --program-suff \
318 | --program-suf | --program-su | --program-s)
319 ac_prev=program_suffix ;;
320 -program-suffix=* | --program-suffix=* | --program-suffi=* \
321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322 program_suffix="$ac_optarg" ;;
324 -program-transform-name | --program-transform-name \
325 | --program-transform-nam | --program-transform-na \
326 | --program-transform-n | --program-transform- \
327 | --program-transform | --program-transfor \
328 | --program-transfo | --program-transf \
329 | --program-trans | --program-tran \
330 | --progr-tra | --program-tr | --program-t)
331 ac_prev=program_transform_name ;;
332 -program-transform-name=* | --program-transform-name=* \
333 | --program-transform-nam=* | --program-transform-na=* \
334 | --program-transform-n=* | --program-transform-=* \
335 | --program-transform=* | --program-transfor=* \
336 | --program-transfo=* | --program-transf=* \
337 | --program-trans=* | --program-tran=* \
338 | --progr-tra=* | --program-tr=* | --program-t=*)
339 program_transform_name="$ac_optarg" ;;
341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342 | -silent | --silent | --silen | --sile | --sil)
345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349 sbindir="$ac_optarg" ;;
351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353 | --sharedst | --shareds | --shared | --share | --shar \
355 ac_prev=sharedstatedir ;;
356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360 sharedstatedir="$ac_optarg" ;;
362 -site | --site | --sit)
364 -site=* | --site=* | --sit=*)
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
379 -target | --target | --targe | --targ | --tar | --ta | --t)
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 -version | --version | --versio | --versi | --vers)
388 echo "configure generated by autoconf version 2.12"
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}='$ac_optarg'" ;;
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
414 # Obsolete; use --with-x.
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453 # File descriptor usage:
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490 # Only set these to C if already set. These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
495 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file=include/ldap.h
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516 if test ! -r $srcdir/$ac_unique_file; then
520 ac_srcdir_defaulted=no
522 if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$CONFIG_SITE"; then
533 if test "x$prefix" != xNONE; then
534 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 for ac_site_file in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
546 if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
550 echo "creating cache $cache_file"
555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556 ac_cpp='$CPP $CPPFLAGS'
557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559 cross_compiling=$ac_cv_prog_cc_cross
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
570 ac_n= ac_c='\c' ac_t=
575 for ac_dir in build $srcdir/build; do
576 if test -f $ac_dir/install-sh; then
578 ac_install_sh="$ac_aux_dir/install-sh -c"
580 elif test -f $ac_dir/install.sh; then
582 ac_install_sh="$ac_aux_dir/install.sh -c"
586 if test -z "$ac_aux_dir"; then
587 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
589 ac_config_guess=$ac_aux_dir/config.guess
590 ac_config_sub=$ac_aux_dir/config.sub
591 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
593 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
594 echo "configure:595: checking configure arguments" >&5
597 # OpenLDAP --enable-debug
598 # Check whether --enable-debug or --disable-debug was given.
599 if test "${enable_debug+set}" = set; then
600 enableval="$enable_debug"
603 for ol_val in auto yes no ; do
604 if test "$enableval" = "$ol_val" ; then
608 if test "$ol_arg" = "invalid" ; then
609 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
611 ol_enable_debug="$ol_arg"
614 ol_enable_debug="yes"
617 # OpenLDAP --enable-proctitle
618 # Check whether --enable-proctitle or --disable-proctitle was given.
619 if test "${enable_proctitle+set}" = set; then
620 enableval="$enable_proctitle"
623 for ol_val in auto yes no ; do
624 if test "$enableval" = "$ol_val" ; then
628 if test "$ol_arg" = "invalid" ; then
629 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
631 ol_enable_proctitle="$ol_arg"
634 ol_enable_proctitle="yes"
636 # end --enable-proctitle
637 # OpenLDAP --enable-libui
638 # Check whether --enable-libui or --disable-libui was given.
639 if test "${enable_libui+set}" = set; then
640 enableval="$enable_libui"
643 for ol_val in auto yes no ; do
644 if test "$enableval" = "$ol_val" ; then
648 if test "$ol_arg" = "invalid" ; then
649 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
651 ol_enable_libui="$ol_arg"
654 ol_enable_libui="yes"
657 # OpenLDAP --enable-cache
658 # Check whether --enable-cache or --disable-cache was given.
659 if test "${enable_cache+set}" = set; then
660 enableval="$enable_cache"
663 for ol_val in auto yes no ; do
664 if test "$enableval" = "$ol_val" ; then
668 if test "$ol_arg" = "invalid" ; then
669 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
671 ol_enable_cache="$ol_arg"
674 ol_enable_cache="yes"
677 # OpenLDAP --enable-dns
678 # Check whether --enable-dns or --disable-dns was given.
679 if test "${enable_dns+set}" = set; then
680 enableval="$enable_dns"
683 for ol_val in auto yes no ; do
684 if test "$enableval" = "$ol_val" ; then
688 if test "$ol_arg" = "invalid" ; then
689 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
691 ol_enable_dns="$ol_arg"
697 # OpenLDAP --enable-referrals
698 # Check whether --enable-referrals or --disable-referrals was given.
699 if test "${enable_referrals+set}" = set; then
700 enableval="$enable_referrals"
703 for ol_val in auto yes no ; do
704 if test "$enableval" = "$ol_val" ; then
708 if test "$ol_arg" = "invalid" ; then
709 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
711 ol_enable_referrals="$ol_arg"
714 ol_enable_referrals="yes"
716 # end --enable-referrals
717 # OpenLDAP --enable-cldap
718 # Check whether --enable-cldap or --disable-cldap was given.
719 if test "${enable_cldap+set}" = set; then
720 enableval="$enable_cldap"
723 for ol_val in auto yes no ; do
724 if test "$enableval" = "$ol_val" ; then
728 if test "$ol_arg" = "invalid" ; then
729 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
731 ol_enable_cldap="$ol_arg"
737 # OpenLDAP --enable-x_compile
738 # Check whether --enable-x_compile or --disable-x_compile was given.
739 if test "${enable_x_compile+set}" = set; then
740 enableval="$enable_x_compile"
743 for ol_val in yes no ; do
744 if test "$enableval" = "$ol_val" ; then
748 if test "$ol_arg" = "invalid" ; then
749 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
751 ol_enable_x_compile="$ol_arg"
754 ol_enable_x_compile="no"
756 # end --enable-x_compile
758 # OpenLDAP --with-kerberos
759 # Check whether --with-kerberos or --without-kerberos was given.
760 if test "${with_kerberos+set}" = set; then
761 withval="$with_kerberos"
764 for ol_val in auto k5 k4 afs yes no ; do
765 if test "$withval" = "$ol_val" ; then
769 if test "$ol_arg" = "invalid" ; then
770 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
772 ol_with_kerberos="$ol_arg"
775 ol_with_kerberos="auto"
777 # end --with-kerberos
779 # OpenLDAP --with-threads
780 # Check whether --with-threads or --without-threads was given.
781 if test "${with_threads+set}" = set; then
782 withval="$with_threads"
785 for ol_val in auto posix mach lwp yes no manual ; do
786 if test "$withval" = "$ol_val" ; then
790 if test "$ol_arg" = "invalid" ; then
791 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
793 ol_with_threads="$ol_arg"
796 ol_with_threads="auto"
800 # OpenLDAP --with-preemptive
801 # Check whether --with-preemptive or --without-preemptive was given.
802 if test "${with_preemptive+set}" = set; then
803 withval="$with_preemptive"
806 for ol_val in auto yes no manual ; do
807 if test "$withval" = "$ol_val" ; then
811 if test "$ol_arg" = "invalid" ; then
812 { echo "configure: error: bad value $withval for --with-preemptive" 1>&2; exit 1; }
814 ol_with_preemptive="$ol_arg"
817 ol_with_preemptive="auto"
819 # end --with-preemptive
823 # OpenLDAP --enable-ldapd
824 # Check whether --enable-ldapd or --disable-ldapd was given.
825 if test "${enable_ldapd+set}" = set; then
826 enableval="$enable_ldapd"
829 for ol_val in auto yes no ; do
830 if test "$enableval" = "$ol_val" ; then
834 if test "$ol_arg" = "invalid" ; then
835 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
837 ol_enable_ldapd="$ol_arg"
844 # OpenLDAP --enable-slapd
845 # Check whether --enable-slapd or --disable-slapd was given.
846 if test "${enable_slapd+set}" = set; then
847 enableval="$enable_slapd"
850 for ol_val in auto yes no ; do
851 if test "$enableval" = "$ol_val" ; then
855 if test "$ol_arg" = "invalid" ; then
856 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
858 ol_enable_slapd="$ol_arg"
861 ol_enable_slapd="yes"
864 # OpenLDAP --enable-aclgroups
865 # Check whether --enable-aclgroups or --disable-aclgroups was given.
866 if test "${enable_aclgroups+set}" = set; then
867 enableval="$enable_aclgroups"
870 for ol_val in auto yes no ; do
871 if test "$enableval" = "$ol_val" ; then
875 if test "$ol_arg" = "invalid" ; then
876 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
878 ol_enable_aclgroups="$ol_arg"
881 ol_enable_aclgroups="auto"
883 # end --enable-aclgroups
884 # OpenLDAP --enable-crypt
885 # Check whether --enable-crypt or --disable-crypt was given.
886 if test "${enable_crypt+set}" = set; then
887 enableval="$enable_crypt"
890 for ol_val in auto yes no ; do
891 if test "$enableval" = "$ol_val" ; then
895 if test "$ol_arg" = "invalid" ; then
896 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
898 ol_enable_crypt="$ol_arg"
901 ol_enable_crypt="auto"
904 # OpenLDAP --enable-md5
905 # Check whether --enable-md5 or --disable-md5 was given.
906 if test "${enable_md5+set}" = set; then
907 enableval="$enable_md5"
910 for ol_val in auto yes no ; do
911 if test "$enableval" = "$ol_val" ; then
915 if test "$ol_arg" = "invalid" ; then
916 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
918 ol_enable_md5="$ol_arg"
924 # OpenLDAP --enable-sha1
925 # Check whether --enable-sha1 or --disable-sha1 was given.
926 if test "${enable_sha1+set}" = set; then
927 enableval="$enable_sha1"
930 for ol_val in auto yes no ; do
931 if test "$enableval" = "$ol_val" ; then
935 if test "$ol_arg" = "invalid" ; then
936 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
938 ol_enable_sha1="$ol_arg"
941 ol_enable_sha1="auto"
944 # OpenLDAP --enable-wrappers
945 # Check whether --enable-wrappers or --disable-wrappers was given.
946 if test "${enable_wrappers+set}" = set; then
947 enableval="$enable_wrappers"
950 for ol_val in auto yes no ; do
951 if test "$enableval" = "$ol_val" ; then
955 if test "$ol_arg" = "invalid" ; then
956 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
958 ol_enable_wrappers="$ol_arg"
961 ol_enable_wrappers="no"
963 # end --enable-wrappers
964 # OpenLDAP --enable-phonetic
965 # Check whether --enable-phonetic or --disable-phonetic was given.
966 if test "${enable_phonetic+set}" = set; then
967 enableval="$enable_phonetic"
970 for ol_val in auto yes no ; do
971 if test "$enableval" = "$ol_val" ; then
975 if test "$ol_arg" = "invalid" ; then
976 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
978 ol_enable_phonetic="$ol_arg"
981 ol_enable_phonetic="no"
983 # end --enable-phonetic
984 # OpenLDAP --enable-rlookups
985 # Check whether --enable-rlookups or --disable-rlookups was given.
986 if test "${enable_rlookups+set}" = set; then
987 enableval="$enable_rlookups"
990 for ol_val in auto yes no ; do
991 if test "$enableval" = "$ol_val" ; then
995 if test "$ol_arg" = "invalid" ; then
996 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
998 ol_enable_rlookups="$ol_arg"
1001 ol_enable_rlookups="auto"
1003 # end --enable-rlookups
1005 # OpenLDAP --enable-ldbm
1006 # Check whether --enable-ldbm or --disable-ldbm was given.
1007 if test "${enable_ldbm+set}" = set; then
1008 enableval="$enable_ldbm"
1011 for ol_val in auto yes no ; do
1012 if test "$enableval" = "$ol_val" ; then
1016 if test "$ol_arg" = "invalid" ; then
1017 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1019 ol_enable_ldbm="$ol_arg"
1022 ol_enable_ldbm="yes"
1025 # OpenLDAP --with-ldbm_api
1026 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1027 if test "${with_ldbm_api+set}" = set; then
1028 withval="$with_ldbm_api"
1031 for ol_val in auto db2 db gdbm ndbm manual ; do
1032 if test "$withval" = "$ol_val" ; then
1036 if test "$ol_arg" = "invalid" ; then
1037 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1039 ol_with_ldbm_api="$ol_arg"
1042 ol_with_ldbm_api="auto"
1044 # end --with-ldbm_api
1046 # OpenLDAP --with-ldbm_type
1047 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1048 if test "${with_ldbm_type+set}" = set; then
1049 withval="$with_ldbm_type"
1052 for ol_val in auto btree hash ; do
1053 if test "$withval" = "$ol_val" ; then
1057 if test "$ol_arg" = "invalid" ; then
1058 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1060 ol_with_ldbm_type="$ol_arg"
1063 ol_with_ldbm_type="auto"
1065 # end --with-ldbm_type
1068 # OpenLDAP --enable-passwd
1069 # Check whether --enable-passwd or --disable-passwd was given.
1070 if test "${enable_passwd+set}" = set; then
1071 enableval="$enable_passwd"
1074 for ol_val in auto yes no ; do
1075 if test "$enableval" = "$ol_val" ; then
1079 if test "$ol_arg" = "invalid" ; then
1080 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1082 ol_enable_passwd="$ol_arg"
1085 ol_enable_passwd="no"
1087 # end --enable-passwd
1088 # OpenLDAP --enable-shell
1089 # Check whether --enable-shell or --disable-shell was given.
1090 if test "${enable_shell+set}" = set; then
1091 enableval="$enable_shell"
1094 for ol_val in auto yes no ; do
1095 if test "$enableval" = "$ol_val" ; then
1099 if test "$ol_arg" = "invalid" ; then
1100 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1102 ol_enable_shell="$ol_arg"
1105 ol_enable_shell="no"
1107 # end --enable-shell
1109 # OpenLDAP --enable-slurpd
1110 # Check whether --enable-slurpd or --disable-slurpd was given.
1111 if test "${enable_slurpd+set}" = set; then
1112 enableval="$enable_slurpd"
1115 for ol_val in auto yes no ; do
1116 if test "$enableval" = "$ol_val" ; then
1120 if test "$ol_arg" = "invalid" ; then
1121 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1123 ol_enable_slurpd="$ol_arg"
1126 ol_enable_slurpd="auto"
1128 # end --enable-slurpd
1130 if test $ol_enable_slapd = no ; then
1131 if test $ol_enable_ldbm = yes ; then
1132 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1134 if test $ol_enable_passwd = yes ; then
1135 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1137 if test $ol_enable_shell = yes ; then
1138 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1140 if test $ol_enable_aclgroups = yes ; then
1141 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1143 if test $ol_enable_crypt = yes ; then
1144 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2
1146 if test $ol_enable_md5 = yes ; then
1147 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2
1149 if test $ol_enable_sha1 = yes ; then
1150 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2
1152 if test $ol_enable_wrappers = yes ; then
1153 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1155 if test $ol_enable_phonetic = yes ; then
1156 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1158 if test $ol_enable_rlookups = yes ; then
1159 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1161 if test $ol_with_ldbm_api != auto ; then
1162 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1164 if test $ol_with_ldbm_type != auto ; then
1165 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1167 if test $ol_enable_slurpd = yes ; then
1168 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1171 # force settings to no
1175 ol_enable_aclgroups=no
1179 ol_enable_wrappers=no
1180 ol_enable_phonetic=no
1181 ol_enable_rlookups=no
1183 ol_with_ldbm_type=no
1186 elif test $ol_enable_ldbm = no ; then
1188 if test $ol_with_ldbm_api != auto ; then
1189 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1192 if test $ol_with_ldbm_type != auto ; then
1193 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1196 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1197 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1201 ol_with_ldbm_type=no
1205 if test $ol_with_ldbm_api = gdbm -a \
1206 $ol_with_ldbm_type = btree ; then
1207 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1209 if test $ol_with_ldbm_api = ndbm -a \
1210 $ol_with_ldbm_type = btree ; then
1211 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1215 if test $ol_enable_slurpd = yes ; then
1216 if test $ol_with_threads = no ; then
1217 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1221 echo "$ac_t""done" 1>&6
1245 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether ln -s works" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1251 if ln -s X conftestdata 2>/dev/null
1254 ac_cv_prog_LN_S="ln -s"
1259 LN_S="$ac_cv_prog_LN_S"
1260 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1261 echo "$ac_t""yes" 1>&6
1263 echo "$ac_t""no" 1>&6
1266 # Find a good install program. We prefer a C program (faster),
1267 # so one script is as good as another. But avoid the broken or
1268 # incompatible versions:
1269 # SysV /etc/install, /usr/sbin/install
1270 # SunOS /usr/etc/install
1271 # IRIX /sbin/install
1273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1275 # ./install, which can be erroneously created by make from ./install.sh.
1276 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1277 echo "configure:1278: checking for a BSD compatible install" >&5
1278 if test -z "$INSTALL"; then
1279 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1283 for ac_dir in $PATH; do
1284 # Account for people who put trailing slashes in PATH elements.
1286 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1288 # OSF1 and SCO ODT 3.0 have their own names for install.
1289 for ac_prog in ginstall installbsd scoinst install; do
1290 if test -f $ac_dir/$ac_prog; then
1291 if test $ac_prog = install &&
1292 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1293 # AIX install. It has an incompatible calling convention.
1294 # OSF/1 installbsd also uses dspmsg, but is usable.
1297 ac_cv_path_install="$ac_dir/$ac_prog -c"
1308 if test "${ac_cv_path_install+set}" = set; then
1309 INSTALL="$ac_cv_path_install"
1311 # As a last resort, use the slow shell script. We don't cache a
1312 # path for INSTALL within a source directory, because that will
1313 # break other packages using the cache if that directory is
1314 # removed, or if the path is relative.
1315 INSTALL="$ac_install_sh"
1318 echo "$ac_t""$INSTALL" 1>&6
1320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1321 # It thinks the first close brace ends the variable substitution.
1322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1324 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1326 # Extract the first word of "ranlib", so it can be a program name with args.
1327 set dummy ranlib; ac_word=$2
1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_word" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 if test -n "$RANLIB"; then
1334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1337 for ac_dir in $PATH; do
1338 test -z "$ac_dir" && ac_dir=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_RANLIB="ranlib"
1345 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1348 RANLIB="$ac_cv_prog_RANLIB"
1349 if test -n "$RANLIB"; then
1350 echo "$ac_t""$RANLIB" 1>&6
1352 echo "$ac_t""no" 1>&6
1355 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether ${MAKE-make} sets \${MAKE}" >&5
1357 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1358 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 cat > conftestmake <<\EOF
1363 @echo 'ac_maketemp="${MAKE}"'
1365 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1366 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1367 if test -n "$ac_maketemp"; then
1368 eval ac_cv_prog_make_${ac_make}_set=yes
1370 eval ac_cv_prog_make_${ac_make}_set=no
1374 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1375 echo "$ac_t""yes" 1>&6
1378 echo "$ac_t""no" 1>&6
1379 SET_MAKE="MAKE=${MAKE-make}"
1383 # Extract the first word of "sendmail", so it can be a program name with args.
1384 set dummy sendmail; ac_word=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1392 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
1395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1396 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
1397 test -z "$ac_dir" && ac_dir=.
1398 if test -f $ac_dir/$ac_word; then
1399 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
1404 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
1408 SENDMAIL="$ac_cv_path_SENDMAIL"
1409 if test -n "$SENDMAIL"; then
1410 echo "$ac_t""$SENDMAIL" 1>&6
1412 echo "$ac_t""no" 1>&6
1415 # Extract the first word of "vi", so it can be a program name with args.
1416 set dummy vi; ac_word=$2
1417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1418 echo "configure:1419: checking for $ac_word" >&5
1419 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1424 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1428 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1429 test -z "$ac_dir" && ac_dir=.
1430 if test -f $ac_dir/$ac_word; then
1431 ac_cv_path_EDITOR="$ac_dir/$ac_word"
1436 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
1440 EDITOR="$ac_cv_path_EDITOR"
1441 if test -n "$EDITOR"; then
1442 echo "$ac_t""$EDITOR" 1>&6
1444 echo "$ac_t""no" 1>&6
1447 # Extract the first word of "finger", so it can be a program name with args.
1448 set dummy finger; ac_word=$2
1449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1450 echo "configure:1451: checking for $ac_word" >&5
1451 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1456 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
1459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1460 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1461 test -z "$ac_dir" && ac_dir=.
1462 if test -f $ac_dir/$ac_word; then
1463 ac_cv_path_FINGER="$ac_dir/$ac_word"
1468 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
1472 FINGER="$ac_cv_path_FINGER"
1473 if test -n "$FINGER"; then
1474 echo "$ac_t""$FINGER" 1>&6
1476 echo "$ac_t""no" 1>&6
1480 # Extract the first word of "gcc", so it can be a program name with args.
1481 set dummy gcc; ac_word=$2
1482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1483 echo "configure:1484: checking for $ac_word" >&5
1484 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1491 for ac_dir in $PATH; do
1492 test -z "$ac_dir" && ac_dir=.
1493 if test -f $ac_dir/$ac_word; then
1502 if test -n "$CC"; then
1503 echo "$ac_t""$CC" 1>&6
1505 echo "$ac_t""no" 1>&6
1508 if test -z "$CC"; then
1509 # Extract the first word of "cc", so it can be a program name with args.
1510 set dummy cc; ac_word=$2
1511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1512 echo "configure:1513: checking for $ac_word" >&5
1513 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 if test -n "$CC"; then
1517 ac_cv_prog_CC="$CC" # Let the user override the test.
1519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1521 for ac_dir in $PATH; do
1522 test -z "$ac_dir" && ac_dir=.
1523 if test -f $ac_dir/$ac_word; then
1524 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1525 ac_prog_rejected=yes
1533 if test $ac_prog_rejected = yes; then
1534 # We found a bogon in the path, so make sure we never use it.
1535 set dummy $ac_cv_prog_CC
1537 if test $# -gt 0; then
1538 # We chose a different compiler from the bogus one.
1539 # However, it has the same basename, so the bogon will be chosen
1540 # first if we set CC to just the basename; use the full file name.
1542 set dummy "$ac_dir/$ac_word" "$@"
1550 if test -n "$CC"; then
1551 echo "$ac_t""$CC" 1>&6
1553 echo "$ac_t""no" 1>&6
1556 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1559 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1560 echo "configure:1561: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1564 ac_cpp='$CPP $CPPFLAGS'
1565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1566 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1567 cross_compiling=$ac_cv_prog_cc_cross
1569 cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1575 ac_cv_prog_cc_works=yes
1576 # If we can't run a trivial program, we are probably using a cross compiler.
1577 if (./conftest; exit) 2>/dev/null; then
1578 ac_cv_prog_cc_cross=no
1580 ac_cv_prog_cc_cross=yes
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1585 ac_cv_prog_cc_works=no
1589 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1590 if test $ac_cv_prog_cc_works = no; then
1591 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1593 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1594 echo "configure:1595: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1595 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1596 cross_compiling=$ac_cv_prog_cc_cross
1598 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1599 echo "configure:1600: checking whether we are using GNU C" >&5
1600 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1603 cat > conftest.c <<EOF
1608 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1615 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1617 if test $ac_cv_prog_gcc = yes; then
1619 ac_test_CFLAGS="${CFLAGS+set}"
1620 ac_save_CFLAGS="$CFLAGS"
1622 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1623 echo "configure:1624: checking whether ${CC-cc} accepts -g" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 echo 'void f(){}' > conftest.c
1628 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1637 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1638 if test "$ac_test_CFLAGS" = set; then
1639 CFLAGS="$ac_save_CFLAGS"
1640 elif test $ac_cv_prog_cc_g = yes; then
1647 test "${CFLAGS+set}" = set || CFLAGS="-g"
1651 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
1652 echo "configure: warning: cross compiling.... go for it" 1>&2
1654 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
1655 echo "configure: warning: programs compiled here do run here..." 1>&2
1656 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
1658 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
1659 echo "configure: warning: programs compiled here do not run here..." 1>&2
1660 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
1663 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1664 echo "configure:1665: checking how to run the C preprocessor" >&5
1665 # On Suns, sometimes $CPP names a directory.
1666 if test -n "$CPP" && test -d "$CPP"; then
1669 if test -z "$CPP"; then
1670 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 # This must be in double quotes, not single quotes, because CPP may get
1674 # substituted into the Makefile and "${CC-cc}" will confuse make.
1676 # On the NeXT, cc -E runs the code through the compiler's parser,
1677 # not just through cpp.
1678 cat > conftest.$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1685 { (eval echo configure:1686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1686 ac_err=`grep -v '^ *+' conftest.out`
1687 if test -z "$ac_err"; then
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1694 CPP="${CC-cc} -E -traditional-cpp"
1695 cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1702 { (eval echo configure:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1703 ac_err=`grep -v '^ *+' conftest.out`
1704 if test -z "$ac_err"; then
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1716 ac_cv_prog_CPP="$CPP"
1718 CPP="$ac_cv_prog_CPP"
1720 ac_cv_prog_CPP="$CPP"
1722 echo "$ac_t""$CPP" 1>&6
1724 if test $ac_cv_prog_gcc = yes; then
1725 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1726 echo "configure:1727: checking whether ${CC-cc} needs -traditional" >&5
1727 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 ac_pattern="Autoconf.*'x'"
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1738 egrep "$ac_pattern" >/dev/null 2>&1; then
1740 ac_cv_prog_gcc_traditional=yes
1743 ac_cv_prog_gcc_traditional=no
1748 if test $ac_cv_prog_gcc_traditional = no; then
1749 cat > conftest.$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1756 egrep "$ac_pattern" >/dev/null 2>&1; then
1758 ac_cv_prog_gcc_traditional=yes
1765 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1766 if test $ac_cv_prog_gcc_traditional = yes; then
1767 CC="$CC -traditional"
1771 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1772 echo "configure:1773: checking how to run the C preprocessor" >&5
1773 # On Suns, sometimes $CPP names a directory.
1774 if test -n "$CPP" && test -d "$CPP"; then
1777 if test -z "$CPP"; then
1778 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 # This must be in double quotes, not single quotes, because CPP may get
1782 # substituted into the Makefile and "${CC-cc}" will confuse make.
1784 # On the NeXT, cc -E runs the code through the compiler's parser,
1785 # not just through cpp.
1786 cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1793 { (eval echo configure:1794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1794 ac_err=`grep -v '^ *+' conftest.out`
1795 if test -z "$ac_err"; then
1799 echo "configure: failed program was:" >&5
1800 cat conftest.$ac_ext >&5
1802 CPP="${CC-cc} -E -traditional-cpp"
1803 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1810 { (eval echo configure:1811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1811 ac_err=`grep -v '^ *+' conftest.out`
1812 if test -z "$ac_err"; then
1816 echo "configure: failed program was:" >&5
1817 cat conftest.$ac_ext >&5
1824 ac_cv_prog_CPP="$CPP"
1826 CPP="$ac_cv_prog_CPP"
1828 ac_cv_prog_CPP="$CPP"
1830 echo "$ac_t""$CPP" 1>&6
1834 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1835 echo "configure:1836: checking for AIX" >&5
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1845 egrep "yes" >/dev/null 2>&1; then
1847 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1848 #define _ALL_SOURCE 1
1853 echo "$ac_t""no" 1>&6
1858 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1859 echo "configure:1860: checking for POSIXized ISC" >&5
1860 if test -d /etc/conf/kconfig.d &&
1861 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1863 echo "$ac_t""yes" 1>&6
1864 ISC=yes # If later tests want to check for ISC.
1865 cat >> confdefs.h <<\EOF
1866 #define _POSIX_SOURCE 1
1869 if test "$GCC" = yes; then
1875 echo "$ac_t""no" 1>&6
1879 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1880 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1881 echo "configure:1882: checking for minix/config.h" >&5
1882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1888 #include <minix/config.h>
1890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1891 { (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1892 ac_err=`grep -v '^ *+' conftest.out`
1893 if test -z "$ac_err"; then
1895 eval "ac_cv_header_$ac_safe=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 eval "ac_cv_header_$ac_safe=no"
1905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1909 echo "$ac_t""no" 1>&6
1913 if test "$MINIX" = yes; then
1914 cat >> confdefs.h <<\EOF
1915 #define _POSIX_SOURCE 1
1918 cat >> confdefs.h <<\EOF
1919 #define _POSIX_1_SOURCE 2
1922 cat >> confdefs.h <<\EOF
1931 echo $ac_n "checking for socket""... $ac_c" 1>&6
1932 echo "configure:1933: checking for socket" >&5
1933 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1939 /* System header to define __stub macros and hopefully few prototypes,
1940 which can conflict with char socket(); below. */
1942 /* Override any gcc2 internal prototype to avoid an error. */
1943 /* We use char because int might match the return type of a gcc2
1944 builtin and then its argument prototype would still apply. */
1949 /* The GNU C library defines this for functions which it implements
1950 to always fail with ENOSYS. Some functions are actually named
1951 something starting with __ and the normal name is an alias. */
1952 #if defined (__stub_socket) || defined (__stub___socket)
1960 if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1962 eval "ac_cv_func_socket=yes"
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1967 eval "ac_cv_func_socket=no"
1972 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1973 echo "$ac_t""yes" 1>&6
1976 echo "$ac_t""no" 1>&6
1978 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1979 echo "configure:1980: checking for main in -lsocket" >&5
1980 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1984 ac_save_LIBS="$LIBS"
1985 LIBS="-lsocket $LIBS"
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1994 if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1996 eval "ac_cv_lib_$ac_lib_var=yes"
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2001 eval "ac_cv_lib_$ac_lib_var=no"
2004 LIBS="$ac_save_LIBS"
2007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2008 echo "$ac_t""yes" 1>&6
2009 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2010 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2011 cat >> confdefs.h <<EOF
2012 #define $ac_tr_lib 1
2015 LIBS="-lsocket $LIBS"
2018 echo "$ac_t""no" 1>&6
2021 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2022 echo "configure:2023: checking for main in -lnet" >&5
2023 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 ac_save_LIBS="$LIBS"
2029 cat > conftest.$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2037 if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2039 eval "ac_cv_lib_$ac_lib_var=yes"
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2044 eval "ac_cv_lib_$ac_lib_var=no"
2047 LIBS="$ac_save_LIBS"
2050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2051 echo "$ac_t""yes" 1>&6
2052 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2053 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2054 cat >> confdefs.h <<EOF
2055 #define $ac_tr_lib 1
2061 echo "$ac_t""no" 1>&6
2064 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2065 echo "configure:2066: checking for main in -lnsl_s" >&5
2066 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2070 ac_save_LIBS="$LIBS"
2071 LIBS="-lnsl_s $LIBS"
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2080 if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2082 eval "ac_cv_lib_$ac_lib_var=yes"
2084 echo "configure: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2087 eval "ac_cv_lib_$ac_lib_var=no"
2090 LIBS="$ac_save_LIBS"
2093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2095 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2097 cat >> confdefs.h <<EOF
2098 #define $ac_tr_lib 1
2101 LIBS="-lnsl_s $LIBS"
2104 echo "$ac_t""no" 1>&6
2107 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2108 echo "configure:2109: checking for main in -lnsl" >&5
2109 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 ac_save_LIBS="$LIBS"
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2123 if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2125 eval "ac_cv_lib_$ac_lib_var=yes"
2127 echo "configure: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2130 eval "ac_cv_lib_$ac_lib_var=no"
2133 LIBS="$ac_save_LIBS"
2136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2137 echo "$ac_t""yes" 1>&6
2138 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2139 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2140 cat >> confdefs.h <<EOF
2141 #define $ac_tr_lib 1
2147 echo "$ac_t""no" 1>&6
2150 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2151 echo "configure:2152: checking for socket in -linet" >&5
2152 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 ac_save_LIBS="$LIBS"
2158 cat > conftest.$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2161 /* Override any gcc2 internal prototype to avoid an error. */
2162 /* We use char because int might match the return type of a gcc2
2163 builtin and then its argument prototype would still apply. */
2170 if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2172 eval "ac_cv_lib_$ac_lib_var=yes"
2174 echo "configure: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2177 eval "ac_cv_lib_$ac_lib_var=no"
2180 LIBS="$ac_save_LIBS"
2183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2184 echo "$ac_t""yes" 1>&6
2185 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2187 cat >> confdefs.h <<EOF
2188 #define $ac_tr_lib 1
2194 echo "$ac_t""no" 1>&6
2197 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2198 echo "configure:2199: checking for main in -lgen" >&5
2199 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 ac_save_LIBS="$LIBS"
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2213 if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2215 eval "ac_cv_lib_$ac_lib_var=yes"
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 eval "ac_cv_lib_$ac_lib_var=no"
2223 LIBS="$ac_save_LIBS"
2226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2227 echo "$ac_t""yes" 1>&6
2228 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2230 cat >> confdefs.h <<EOF
2231 #define $ac_tr_lib 1
2237 echo "$ac_t""no" 1>&6
2244 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2245 echo "configure:2246: checking for sigset in -lV3" >&5
2246 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 ac_save_LIBS="$LIBS"
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2255 /* Override any gcc2 internal prototype to avoid an error. */
2256 /* We use char because int might match the return type of a gcc2
2257 builtin and then its argument prototype would still apply. */
2264 if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2266 eval "ac_cv_lib_$ac_lib_var=yes"
2268 echo "configure: failed program was:" >&5
2269 cat conftest.$ac_ext >&5
2271 eval "ac_cv_lib_$ac_lib_var=no"
2274 LIBS="$ac_save_LIBS"
2277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2278 echo "$ac_t""yes" 1>&6
2279 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2280 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2281 cat >> confdefs.h <<EOF
2282 #define $ac_tr_lib 1
2288 echo "$ac_t""no" 1>&6
2292 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
2293 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
2295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_hdr" >&5
2298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2307 { (eval echo configure:2308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2308 ac_err=`grep -v '^ *+' conftest.out`
2309 if test -z "$ac_err"; then
2311 eval "ac_cv_header_$ac_safe=yes"
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2317 eval "ac_cv_header_$ac_safe=no"
2321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2324 cat >> confdefs.h <<EOF
2325 #define $ac_tr_hdr 1
2329 echo "$ac_t""no" 1>&6
2334 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
2335 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
2336 echo "configure:2337: checking for main in -lkrb4" >&5
2337 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
2338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 ac_save_LIBS="$LIBS"
2342 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2353 eval "ac_cv_lib_$ac_lib_var=yes"
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2358 eval "ac_cv_lib_$ac_lib_var=no"
2361 LIBS="$ac_save_LIBS"
2364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2368 echo "$ac_t""no" 1>&6
2373 if test $have_k5 = yes ; then
2374 ol_with_kerberos=found
2375 ol_link_kerberos=yes
2377 cat >> confdefs.h <<\EOF
2378 #define HAVE_KERBEROS 1
2382 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
2386 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
2387 for ac_hdr in krb.h des.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_krb_h = yes ; then
2429 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
2430 echo "configure:2431: checking for main in -lkrb" >&5
2431 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
2432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2435 ac_save_LIBS="$LIBS"
2436 LIBS="-lkrb -ldes $LIBS"
2437 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2445 if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2447 eval "ac_cv_lib_$ac_lib_var=yes"
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2452 eval "ac_cv_lib_$ac_lib_var=no"
2455 LIBS="$ac_save_LIBS"
2458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2462 echo "$ac_t""no" 1>&6
2467 if test $have_k4 = yes ; then
2468 ol_with_kerberos=found
2469 ol_link_kerberos=yes
2471 cat >> confdefs.h <<\EOF
2472 #define HAVE_KERBEROS 1
2476 KRB_LIBS="-lkrb -ldes"
2483 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
2484 for ac_hdr in pthread.h sched.h
2486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2488 echo "configure:2489: checking for $ac_hdr" >&5
2489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 cat > conftest.$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2498 { (eval echo configure:2499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2499 ac_err=`grep -v '^ *+' conftest.out`
2500 if test -z "$ac_err"; then
2502 eval "ac_cv_header_$ac_safe=yes"
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2508 eval "ac_cv_header_$ac_safe=no"
2512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2513 echo "$ac_t""yes" 1>&6
2514 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2515 cat >> confdefs.h <<EOF
2516 #define $ac_tr_hdr 1
2520 echo "$ac_t""no" 1>&6
2525 if test $ac_cv_header_pthread_h = yes ; then
2526 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
2527 echo "configure:2528: checking POSIX thread version" >&5
2528 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2536 # include <pthread.h>
2537 /* this check could be improved */
2538 # ifdef PTHREAD_ONCE_INIT
2543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2544 egrep "final" >/dev/null 2>&1; then
2546 ol_pthread_final=yes
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2558 # include <pthread.h>
2559 /* this check could be improved */
2560 # ifdef pthread_once_init
2565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2566 egrep "draft4" >/dev/null 2>&1; then
2568 ol_pthread_draft4=yes
2571 ol_pthread_draft4=no
2576 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
2577 ol_cv_pthread_version=final
2578 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
2579 ol_cv_pthread_version=draft4
2581 ol_cv_pthread_version=unknown
2586 echo "$ac_t""$ol_cv_pthread_version" 1>&6
2589 if test $ol_cv_pthread_version = final ; then
2590 cat >> confdefs.h <<\EOF
2591 #define HAVE_PTHREADS_FINAL 1
2594 elif test $ol_cv_pthread_version = draft4 ; then
2595 cat >> confdefs.h <<\EOF
2596 #define HAVE_PTHREADS_D4 1
2600 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
2603 # consider threads found
2604 ol_with_threads=found
2607 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
2608 echo "configure:2609: checking for LinuxThreads" >&5
2609 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2613 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
2614 if test "$res" -gt 0 ; then
2615 ol_cv_linux_threads=yes
2617 ol_cv_linux_threads=no
2622 echo "$ac_t""$ol_cv_linux_threads" 1>&6
2625 if test $ol_cv_linux_threads = yes ; then
2626 cat >> confdefs.h <<\EOF
2627 #define HAVE_LINUX_THREADS 1
2633 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2634 echo "configure:2635: checking for pthread_create" >&5
2635 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641 /* System header to define __stub macros and hopefully few prototypes,
2642 which can conflict with char pthread_create(); below. */
2644 /* Override any gcc2 internal prototype to avoid an error. */
2645 /* We use char because int might match the return type of a gcc2
2646 builtin and then its argument prototype would still apply. */
2647 char pthread_create();
2651 /* The GNU C library defines this for functions which it implements
2652 to always fail with ENOSYS. Some functions are actually named
2653 something starting with __ and the normal name is an alias. */
2654 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
2662 if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2664 eval "ac_cv_func_pthread_create=yes"
2666 echo "configure: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2669 eval "ac_cv_func_pthread_create=no"
2674 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2675 echo "$ac_t""yes" 1>&6
2678 echo "$ac_t""no" 1>&6
2682 if test $ol_link_threads = no ; then
2683 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
2684 echo "configure:2685: checking for pthread_create with -pthread" >&5
2685 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2690 LIBS="-pthread $LIBS"
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 #include <pthread.h>
2697 pthread_create((pthread_t*) 0,
2698 (pthread_attr_t*) 0, 0, 0);
2702 if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2704 ol_cv_pthread_flag=yes
2706 echo "configure: failed program was:" >&5
2707 cat conftest.$ac_ext >&5
2709 ol_cv_pthread_flag=no
2716 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
2718 if test $ol_cv_pthread_flag = yes ; then
2719 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
2720 ol_link_threads=posix
2724 if test $ol_link_threads = no ; then
2726 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2727 echo "configure:2728: checking for pthread_create in -lpthread" >&5
2728 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 ac_save_LIBS="$LIBS"
2733 LIBS="-lpthread $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 ol_link_threads=posix
2763 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
2765 echo "$ac_t""no" 1>&6
2771 if test $ol_link_threads = no ; then
2773 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2774 echo "configure:2775: checking for pthread_create in -lc_r" >&5
2775 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 ac_save_LIBS="$LIBS"
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2784 /* Override any gcc2 internal prototype to avoid an error. */
2785 /* We use char because int might match the return type of a gcc2
2786 builtin and then its argument prototype would still apply. */
2787 char pthread_create();
2793 if { (eval echo configure:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2795 eval "ac_cv_lib_$ac_lib_var=yes"
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2800 eval "ac_cv_lib_$ac_lib_var=no"
2803 LIBS="$ac_save_LIBS"
2806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2807 echo "$ac_t""yes" 1>&6
2809 ol_link_threads=posix
2810 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
2812 echo "$ac_t""no" 1>&6
2818 if test $ol_link_threads = no ; then
2820 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2821 echo "configure:2822: checking for pthread_create in -lpthread" >&5
2822 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 ac_save_LIBS="$LIBS"
2827 LIBS="-lpthread -lmach -lexc -lc $LIBS"
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 /* Override any gcc2 internal prototype to avoid an error. */
2832 /* We use char because int might match the return type of a gcc2
2833 builtin and then its argument prototype would still apply. */
2834 char pthread_create();
2840 if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2842 eval "ac_cv_lib_$ac_lib_var=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2847 eval "ac_cv_lib_$ac_lib_var=no"
2850 LIBS="$ac_save_LIBS"
2853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2856 cat >> confdefs.h <<\EOF
2860 ol_link_threads=posix
2861 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc"
2862 if test $ol_with_preemptive = auto ; then
2863 ol_with_preemptive=yes
2867 echo "$ac_t""no" 1>&6
2873 if test $ol_link_threads != no ; then
2874 cat >> confdefs.h <<\EOF
2875 #define HAVE_PTHREADS 1
2879 save_CPPFLAGS="$CPPFLAGS"
2881 LIBS="$LTHREAD_LIBS $LIBS"
2883 for ac_func in sched_yield pthread_yield
2885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2886 echo "configure:2887: checking for $ac_func" >&5
2887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 cat > conftest.$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2893 /* System header to define __stub macros and hopefully few prototypes,
2894 which can conflict with char $ac_func(); below. */
2896 /* Override any gcc2 internal prototype to avoid an error. */
2897 /* We use char because int might match the return type of a gcc2
2898 builtin and then its argument prototype would still apply. */
2903 /* The GNU C library defines this for functions which it implements
2904 to always fail with ENOSYS. Some functions are actually named
2905 something starting with __ and the normal name is an alias. */
2906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2914 if { (eval echo configure:2915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2916 eval "ac_cv_func_$ac_func=yes"
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2921 eval "ac_cv_func_$ac_func=no"
2926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2927 echo "$ac_t""yes" 1>&6
2928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2929 cat >> confdefs.h <<EOF
2930 #define $ac_tr_func 1
2934 echo "$ac_t""no" 1>&6
2939 if test $ac_cv_func_sched_yield = no -a \
2940 $ac_cv_func_pthread_yield = no ; then
2941 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
2942 echo "configure:2943: checking for sched_yield in -lrt" >&5
2943 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
2944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 ac_save_LIBS="$LIBS"
2949 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2952 /* Override any gcc2 internal prototype to avoid an error. */
2953 /* We use char because int might match the return type of a gcc2
2954 builtin and then its argument prototype would still apply. */
2961 if { (eval echo configure:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2963 eval "ac_cv_lib_$ac_lib_var=yes"
2965 echo "configure: failed program was:" >&5
2966 cat conftest.$ac_ext >&5
2968 eval "ac_cv_lib_$ac_lib_var=no"
2971 LIBS="$ac_save_LIBS"
2974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2975 echo "$ac_t""yes" 1>&6
2976 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
2977 cat >> confdefs.h <<\EOF
2978 #define HAVE_SCHED_YIELD 1
2981 ac_cv_func_sched_yield=yes
2983 echo "$ac_t""no" 1>&6
2984 ac_cv_func_sched_yield=no
2988 if test $ac_cv_func_sched_yield = no -a \
2989 $ac_cv_func_pthread_yield = no ; then
2990 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
2991 echo "configure:2992: checking for sched_yield in -lposix4" >&5
2992 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
2993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2996 ac_save_LIBS="$LIBS"
2997 LIBS="-lposix4 $LIBS"
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 /* Override any gcc2 internal prototype to avoid an error. */
3002 /* We use char because int might match the return type of a gcc2
3003 builtin and then its argument prototype would still apply. */
3010 if { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3012 eval "ac_cv_lib_$ac_lib_var=yes"
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3017 eval "ac_cv_lib_$ac_lib_var=no"
3020 LIBS="$ac_save_LIBS"
3023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3024 echo "$ac_t""yes" 1>&6
3025 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
3026 cat >> confdefs.h <<\EOF
3027 #define HAVE_SCHED_YIELD 1
3030 ac_cv_func_sched_yield=yes
3032 echo "$ac_t""no" 1>&6
3033 ac_cv_func_sched_yield=no
3037 if test $ac_cv_func_sched_yield = no -a \
3038 $ac_cv_func_pthread_yield = no ; then
3039 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
3040 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
3043 for ac_func in pthread_kill
3045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3046 echo "configure:3047: checking for $ac_func" >&5
3047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 /* System header to define __stub macros and hopefully few prototypes,
3054 which can conflict with char $ac_func(); below. */
3056 /* Override any gcc2 internal prototype to avoid an error. */
3057 /* We use char because int might match the return type of a gcc2
3058 builtin and then its argument prototype would still apply. */
3063 /* The GNU C library defines this for functions which it implements
3064 to always fail with ENOSYS. Some functions are actually named
3065 something starting with __ and the normal name is an alias. */
3066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3074 if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3076 eval "ac_cv_func_$ac_func=yes"
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3081 eval "ac_cv_func_$ac_func=no"
3086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3087 echo "$ac_t""yes" 1>&6
3088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3089 cat >> confdefs.h <<EOF
3090 #define $ac_tr_func 1
3094 echo "$ac_t""no" 1>&6
3100 pthread_setconcurrency \
3101 thr_setconcurrency \
3104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3105 echo "configure:3106: checking for $ac_func" >&5
3106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 /* System header to define __stub macros and hopefully few prototypes,
3113 which can conflict with char $ac_func(); below. */
3115 /* Override any gcc2 internal prototype to avoid an error. */
3116 /* We use char because int might match the return type of a gcc2
3117 builtin and then its argument prototype would still apply. */
3122 /* The GNU C library defines this for functions which it implements
3123 to always fail with ENOSYS. Some functions are actually named
3124 something starting with __ and the normal name is an alias. */
3125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3133 if { (eval echo configure:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3135 eval "ac_cv_func_$ac_func=yes"
3137 echo "configure: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3140 eval "ac_cv_func_$ac_func=no"
3145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3146 echo "$ac_t""yes" 1>&6
3147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3148 cat >> confdefs.h <<EOF
3149 #define $ac_tr_func 1
3153 echo "$ac_t""no" 1>&6
3158 if test $ol_with_preemptive = auto ; then
3159 echo $ac_n "checking for preemptive Pthread implementation""... $ac_c" 1>&6
3160 echo "configure:3161: checking for preemptive Pthread implementation" >&5
3161 if test "$cross_compiling" = yes; then
3163 { echo "configure: error: crossing compiling: use --with-preemptive=yes|no|manual" 1>&2; exit 1; }
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3169 #include <sys/types.h>
3170 #include <sys/time.h>
3172 #include <pthread.h>
3184 select(0, NULL, NULL, NULL, &tv);
3188 select(0, NULL, NULL, NULL, &tv);
3190 exit(1); /* if we exit here, the select blocked the whole process */
3194 int argc; char **argv;
3198 #ifdef HAVE_PTHREAD_SETCONCURRENCY
3199 (void) pthread_setconcurrency(2);
3200 #elif HAVE_THR_SETCONCURRENCY
3201 /* Set Solaris LWP concurrency to 2 */
3202 thr_setconcurrency(2);
3205 pthread_create(&t, NULL, (void *) task, NULL);
3207 #if HAVE_SCHED_YIELD
3208 sched_yield(); /* make sure task runs first */
3210 #if defined(HAVE_PTHREAD_YIELD)
3211 pthread_yield(); /* make sure task runs first */
3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3220 ol_pthread_preemptive=yes
3222 echo "configure: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3225 ol_pthread_preemptive=no
3230 echo "$ac_t""$ol_pthread_preemptive" 1>&6
3232 if test $ol_pthread_preemptive = yes ; then
3233 cat >> confdefs.h <<\EOF
3234 #define HAVE_PREEMPTIVE_PTHREADS 1
3237 ol_with_preemptive=yes
3242 CPPFLAGS="$save_CPPFLAGS"
3245 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
3249 if test $ol_with_threads = posix ; then
3250 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
3254 if test $ol_with_threads = auto -o $ol_with_threads = mach ; then
3255 for ac_hdr in mach/cthreads.h
3257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3259 echo "configure:3260: checking for $ac_hdr" >&5
3260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3269 { (eval echo configure:3270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3270 ac_err=`grep -v '^ *+' conftest.out`
3271 if test -z "$ac_err"; then
3273 eval "ac_cv_header_$ac_safe=yes"
3276 echo "configure: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3279 eval "ac_cv_header_$ac_safe=no"
3283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3284 echo "$ac_t""yes" 1>&6
3285 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3286 cat >> confdefs.h <<EOF
3287 #define $ac_tr_hdr 1
3291 echo "$ac_t""no" 1>&6
3295 if test $ac_cv_header_mach_cthreads_h = yes ; then
3296 ol_with_threads=found
3298 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
3299 echo "configure:3300: checking for cthread_fork" >&5
3300 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 /* System header to define __stub macros and hopefully few prototypes,
3307 which can conflict with char cthread_fork(); below. */
3309 /* Override any gcc2 internal prototype to avoid an error. */
3310 /* We use char because int might match the return type of a gcc2
3311 builtin and then its argument prototype would still apply. */
3312 char cthread_fork();
3316 /* The GNU C library defines this for functions which it implements
3317 to always fail with ENOSYS. Some functions are actually named
3318 something starting with __ and the normal name is an alias. */
3319 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
3327 if { (eval echo configure:3328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3329 eval "ac_cv_func_cthread_fork=yes"
3331 echo "configure: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3334 eval "ac_cv_func_cthread_fork=no"
3339 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
3340 echo "$ac_t""yes" 1>&6
3343 echo "$ac_t""no" 1>&6
3347 if test $ol_link_threads = no ; then
3348 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
3349 echo "configure:3350: checking for cthread_fork with -all_load" >&5
3350 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3355 LIBS="-all_load $LIBS"
3356 cat > conftest.$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 #include <mach/cthreads.h>
3362 cthread_fork((void *)0, (void *)0);
3366 if { (eval echo configure:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3368 ol_cv_cthread_all_load=yes
3370 echo "configure: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3373 ol_cv_cthread_all_load=no
3380 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
3382 if test $ol_cv_cthread_all_load = yes ; then
3383 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
3384 ol_link_threads=mach
3388 if test $ol_link_threads != no ; then
3389 : check for cthread specific functionality here
3391 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
3395 if test $ol_with_threads = mach ; then
3396 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
3400 if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
3401 for ac_hdr in thread.h synch.h
3403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3405 echo "configure:3406: checking for $ac_hdr" >&5
3406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3415 { (eval echo configure:3416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3416 ac_err=`grep -v '^ *+' conftest.out`
3417 if test -z "$ac_err"; then
3419 eval "ac_cv_header_$ac_safe=yes"
3422 echo "configure: failed program was:" >&5
3423 cat conftest.$ac_ext >&5
3425 eval "ac_cv_header_$ac_safe=no"
3429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3430 echo "$ac_t""yes" 1>&6
3431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3432 cat >> confdefs.h <<EOF
3433 #define $ac_tr_hdr 1
3437 echo "$ac_t""no" 1>&6
3441 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
3442 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
3443 echo "configure:3444: checking for thr_create in -lthread" >&5
3444 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
3445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 ac_save_LIBS="$LIBS"
3449 LIBS="-lthread $LIBS"
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 /* Override any gcc2 internal prototype to avoid an error. */
3454 /* We use char because int might match the return type of a gcc2
3455 builtin and then its argument prototype would still apply. */
3462 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3464 eval "ac_cv_lib_$ac_lib_var=yes"
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3469 eval "ac_cv_lib_$ac_lib_var=no"
3472 LIBS="$ac_save_LIBS"
3475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3479 echo "$ac_t""no" 1>&6
3484 if test $have_lwp = yes ; then
3485 cat >> confdefs.h <<\EOF
3489 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3491 if test $ol_with_preemptive = auto ; then
3492 ol_with_preemptive=yes
3497 for ac_hdr in lwp/lwp.h
3499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3501 echo "configure:3502: checking for $ac_hdr" >&5
3502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3511 { (eval echo configure:3512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3512 ac_err=`grep -v '^ *+' conftest.out`
3513 if test -z "$ac_err"; then
3515 eval "ac_cv_header_$ac_safe=yes"
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3521 eval "ac_cv_header_$ac_safe=no"
3525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3526 echo "$ac_t""yes" 1>&6
3527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3528 cat >> confdefs.h <<EOF
3529 #define $ac_tr_hdr 1
3533 echo "$ac_t""no" 1>&6
3537 if test $ac_cv_header_lwp_lwp_h = yes ; then
3538 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
3539 echo "configure:3540: checking for lwp_create in -llwp" >&5
3540 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
3541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3544 ac_save_LIBS="$LIBS"
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3549 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3558 if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3560 eval "ac_cv_lib_$ac_lib_var=yes"
3562 echo "configure: failed program was:" >&5
3563 cat conftest.$ac_ext >&5
3565 eval "ac_cv_lib_$ac_lib_var=no"
3568 LIBS="$ac_save_LIBS"
3571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3572 echo "$ac_t""yes" 1>&6
3575 echo "$ac_t""no" 1>&6
3580 if test $have_lwp = yes ; then
3581 cat >> confdefs.h <<\EOF
3585 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3587 if test $ol_with_preemptive = auto ; then
3588 ol_with_preemptive=no
3594 if test $ol_with_preemptive = yes ; then
3595 cat >> confdefs.h <<\EOF
3596 #define PREEMPTIVE_THREADS 1
3601 if test $ol_with_threads = manual ; then
3604 echo "configure: warning: thread defines and link options must be set manually" 1>&2
3606 for ac_hdr in pthread.h sched.h
3608 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3610 echo "configure:3611: checking for $ac_hdr" >&5
3611 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3620 { (eval echo configure:3621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3621 ac_err=`grep -v '^ *+' conftest.out`
3622 if test -z "$ac_err"; then
3624 eval "ac_cv_header_$ac_safe=yes"
3627 echo "configure: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3630 eval "ac_cv_header_$ac_safe=no"
3634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3637 cat >> confdefs.h <<EOF
3638 #define $ac_tr_hdr 1
3642 echo "$ac_t""no" 1>&6
3646 for ac_func in sched_yield pthread_yield
3648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3649 echo "configure:3650: checking for $ac_func" >&5
3650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 /* System header to define __stub macros and hopefully few prototypes,
3657 which can conflict with char $ac_func(); below. */
3659 /* Override any gcc2 internal prototype to avoid an error. */
3660 /* We use char because int might match the return type of a gcc2
3661 builtin and then its argument prototype would still apply. */
3666 /* The GNU C library defines this for functions which it implements
3667 to always fail with ENOSYS. Some functions are actually named
3668 something starting with __ and the normal name is an alias. */
3669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3677 if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3679 eval "ac_cv_func_$ac_func=yes"
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3684 eval "ac_cv_func_$ac_func=no"
3689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3690 echo "$ac_t""yes" 1>&6
3691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3692 cat >> confdefs.h <<EOF
3693 #define $ac_tr_func 1
3697 echo "$ac_t""no" 1>&6
3702 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3703 echo "configure:3704: checking for LinuxThreads" >&5
3704 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3708 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3709 if test "$res" -gt 0 ; then
3710 ol_cv_linux_threads=yes
3712 ol_cv_linux_threads=no
3717 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3720 for ac_hdr in mach/cthreads.h
3722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3724 echo "configure:3725: checking for $ac_hdr" >&5
3725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3734 { (eval echo configure:3735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3735 ac_err=`grep -v '^ *+' conftest.out`
3736 if test -z "$ac_err"; then
3738 eval "ac_cv_header_$ac_safe=yes"
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3744 eval "ac_cv_header_$ac_safe=no"
3748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3749 echo "$ac_t""yes" 1>&6
3750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3751 cat >> confdefs.h <<EOF
3752 #define $ac_tr_hdr 1
3756 echo "$ac_t""no" 1>&6
3760 for ac_hdr in lwp/lwp.h
3762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3764 echo "configure:3765: checking for $ac_hdr" >&5
3765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3768 cat > conftest.$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3774 { (eval echo configure:3775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3775 ac_err=`grep -v '^ *+' conftest.out`
3776 if test -z "$ac_err"; then
3778 eval "ac_cv_header_$ac_safe=yes"
3781 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3784 eval "ac_cv_header_$ac_safe=no"
3788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3789 echo "$ac_t""yes" 1>&6
3790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3791 cat >> confdefs.h <<EOF
3792 #define $ac_tr_hdr 1
3796 echo "$ac_t""no" 1>&6
3800 for ac_hdr in thread.h synch.h
3802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3804 echo "configure:3805: checking for $ac_hdr" >&5
3805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6
3808 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3814 { (eval echo configure:3815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3815 ac_err=`grep -v '^ *+' conftest.out`
3816 if test -z "$ac_err"; then
3818 eval "ac_cv_header_$ac_safe=yes"
3821 echo "configure: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3824 eval "ac_cv_header_$ac_safe=no"
3828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3829 echo "$ac_t""yes" 1>&6
3830 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3831 cat >> confdefs.h <<EOF
3832 #define $ac_tr_hdr 1
3836 echo "$ac_t""no" 1>&6
3842 if test $ol_with_threads = yes ; then
3843 cat >> confdefs.h <<\EOF
3844 #define _REENTRANT 1
3847 cat >> confdefs.h <<\EOF
3848 #define _THREAD_SAFE 1
3854 if test $ol_link_threads = no ; then
3855 if test $ol_with_threads = yes ; then
3856 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
3859 if test $ol_with_threads = auto ; then
3860 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
3864 cat >> confdefs.h <<\EOF
3865 #define NO_THREADS 1
3868 cat >> confdefs.h <<\EOF
3869 #define PREEMPTIVE_THREADS 1
3876 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
3877 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
3878 echo "configure:3879: checking for DB2 library" >&5
3879 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3883 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
3884 echo "configure:3885: checking for db_open in -ldb" >&5
3885 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
3886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 ac_save_LIBS="$LIBS"
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
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. */
3903 if { (eval echo configure:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3905 eval "ac_cv_lib_$ac_lib_var=yes"
3907 echo "configure: failed program was:" >&5
3908 cat conftest.$ac_ext >&5
3910 eval "ac_cv_lib_$ac_lib_var=no"
3913 LIBS="$ac_save_LIBS"
3916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3917 echo "$ac_t""yes" 1>&6
3920 echo "$ac_t""no" 1>&6
3928 echo "$ac_t""$ol_cv_lib_db2" 1>&6
3932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3934 echo "configure:3935: checking for $ac_hdr" >&5
3935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 cat > conftest.$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3944 { (eval echo configure:3945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3945 ac_err=`grep -v '^ *+' conftest.out`
3946 if test -z "$ac_err"; then
3948 eval "ac_cv_header_$ac_safe=yes"
3951 echo "configure: failed program was:" >&5
3952 cat conftest.$ac_ext >&5
3954 eval "ac_cv_header_$ac_safe=no"
3958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3959 echo "$ac_t""yes" 1>&6
3960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3961 cat >> confdefs.h <<EOF
3962 #define $ac_tr_hdr 1
3966 echo "$ac_t""no" 1>&6
3970 if test $ac_cv_header_db_h = yes ; then
3971 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
3972 echo "configure:3973: checking if db.h is DB2" >&5
3973 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3977 cat > conftest.$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #include "confdefs.h"
3982 /* this check could be improved */
3983 # ifdef DB_VERSION_MAJOR
3984 # if DB_VERSION_MAJOR == 2
3990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3991 egrep "__db_version_2" >/dev/null 2>&1; then
3993 ol_cv_header_db2=yes
4002 echo "$ac_t""$ol_cv_header_db2" 1>&6
4009 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
4010 echo "configure:4011: checking for Berkeley DB2" >&5
4011 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4015 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
4016 ol_cv_berkeley_db2=no
4018 ol_cv_berkeley_db2=yes
4023 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
4024 if test $ol_cv_berkeley_db2 = yes ; then
4025 cat >> confdefs.h <<\EOF
4026 #define HAVE_BERKELEY_DB2 1
4032 if test $ol_cv_berkeley_db2 = yes ; then
4034 ol_with_ldbm_api=db2
4036 if test $ol_with_ldbm_type = hash ; then
4037 cat >> confdefs.h <<\EOF
4038 #define LDBM_USE_DBHASH 1
4042 cat >> confdefs.h <<\EOF
4043 #define LDBM_USE_DBBTREE 1
4048 if test $ol_cv_lib_db2 != yes ; then
4049 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
4054 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
4055 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
4056 echo "configure:4057: checking for Berkeley DB library" >&5
4057 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4061 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
4062 echo "configure:4063: checking for dbopen" >&5
4063 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4066 cat > conftest.$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4069 /* System header to define __stub macros and hopefully few prototypes,
4070 which can conflict with char dbopen(); below. */
4072 /* Override any gcc2 internal prototype to avoid an error. */
4073 /* We use char because int might match the return type of a gcc2
4074 builtin and then its argument prototype would still apply. */
4079 /* The GNU C library defines this for functions which it implements
4080 to always fail with ENOSYS. Some functions are actually named
4081 something starting with __ and the normal name is an alias. */
4082 #if defined (__stub_dbopen) || defined (__stub___dbopen)
4090 if { (eval echo configure:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4092 eval "ac_cv_func_dbopen=yes"
4094 echo "configure: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4097 eval "ac_cv_func_dbopen=no"
4102 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
4103 echo "$ac_t""yes" 1>&6
4106 echo "$ac_t""no" 1>&6
4108 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
4109 echo "configure:4110: checking for dbopen in -ldb" >&5
4110 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
4111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 ac_save_LIBS="$LIBS"
4116 cat > conftest.$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4119 /* Override any gcc2 internal prototype to avoid an error. */
4120 /* We use char because int might match the return type of a gcc2
4121 builtin and then its argument prototype would still apply. */
4128 if { (eval echo configure:4129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4130 eval "ac_cv_lib_$ac_lib_var=yes"
4132 echo "configure: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4135 eval "ac_cv_lib_$ac_lib_var=no"
4138 LIBS="$ac_save_LIBS"
4141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4142 echo "$ac_t""yes" 1>&6
4145 echo "$ac_t""no" 1>&6
4156 echo "$ac_t""$ol_cv_lib_db" 1>&6
4159 for ac_hdr in db_185.h
4161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4163 echo "configure:4164: checking for $ac_hdr" >&5
4164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4165 echo $ac_n "(cached) $ac_c" 1>&6
4167 cat > conftest.$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4173 { (eval echo configure:4174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4174 ac_err=`grep -v '^ *+' conftest.out`
4175 if test -z "$ac_err"; then
4177 eval "ac_cv_header_$ac_safe=yes"
4180 echo "configure: failed program was:" >&5
4181 cat conftest.$ac_ext >&5
4183 eval "ac_cv_header_$ac_safe=no"
4187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4188 echo "$ac_t""yes" 1>&6
4189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4190 cat >> confdefs.h <<EOF
4191 #define $ac_tr_hdr 1
4195 echo "$ac_t""no" 1>&6
4199 if test $ol_cv_header_db2 = yes ; then
4201 ol_cv_header_db=$ac_cv_header_db_185_h
4203 ol_cv_header_db=$ac_cv_header_db_h
4208 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
4209 echo "configure:4210: checking for Berkeley DB" >&5
4210 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4214 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
4215 ol_cv_berkeley_db=no
4217 ol_cv_berkeley_db=yes
4222 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
4223 if test $ol_cv_berkeley_db = yes ; then
4224 cat >> confdefs.h <<\EOF
4225 #define HAVE_BERKELEY_DB 1
4231 if test $ol_cv_berkeley_db = yes ; then
4235 if test $ol_with_ldbm_type = hash ; then
4236 cat >> confdefs.h <<\EOF
4237 #define LDBM_USE_DBHASH 1
4241 cat >> confdefs.h <<\EOF
4242 #define LDBM_USE_DBBTREE 1
4247 if test $ol_cv_lib_db != yes ; then
4248 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
4253 if test $ol_with_ldbm_api = manual ; then
4256 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
4258 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
4260 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4262 echo "configure:4263: checking for $ac_hdr" >&5
4263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4272 { (eval echo configure:4273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4273 ac_err=`grep -v '^ *+' conftest.out`
4274 if test -z "$ac_err"; then
4276 eval "ac_cv_header_$ac_safe=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4282 eval "ac_cv_header_$ac_safe=no"
4286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4287 echo "$ac_t""yes" 1>&6
4288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4289 cat >> confdefs.h <<EOF
4290 #define $ac_tr_hdr 1
4294 echo "$ac_t""no" 1>&6
4300 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
4301 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
4302 ol_with_ldbm_api=none
4305 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
4306 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
4307 echo "configure:4308: checking for GDBM library" >&5
4308 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4312 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
4313 echo "configure:4314: checking for gdbm_open" >&5
4314 if eval "test \"`echo '$''{'ac_cv_func_gdbm_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 gdbm_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_gdbm_open) || defined (__stub___gdbm_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_gdbm_open=yes"
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4348 eval "ac_cv_func_gdbm_open=no"
4353 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4357 echo "$ac_t""no" 1>&6
4359 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
4360 echo "configure:4361: checking for gdbm_open in -lgdbm" >&5
4361 ac_lib_var=`echo gdbm'_'gdbm_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_gdbm=-lgdbm
4396 echo "$ac_t""no" 1>&6
4407 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
4410 for ac_hdr in gdbm.h
4412 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4413 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4414 echo "configure:4415: checking for $ac_hdr" >&5
4415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4424 { (eval echo configure:4425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4425 ac_err=`grep -v '^ *+' conftest.out`
4426 if test -z "$ac_err"; then
4428 eval "ac_cv_header_$ac_safe=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_header_$ac_safe=no"
4438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4441 cat >> confdefs.h <<EOF
4442 #define $ac_tr_hdr 1
4446 echo "$ac_t""no" 1>&6
4450 echo $ac_n "checking for db""... $ac_c" 1>&6
4451 echo "configure:4452: checking for db" >&5
4452 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
4453 echo $ac_n "(cached) $ac_c" 1>&6
4456 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
4464 echo "$ac_t""$ol_cv_gdbm" 1>&6
4465 if test $ol_cv_gdbm = yes ; then
4466 cat >> confdefs.h <<\EOF
4473 if test $ol_cv_gdbm = yes ; then
4475 ol_with_ldbm_api=gdbm
4477 if test $ol_cv_lib_gdbm != yes ; then
4478 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
4483 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
4484 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
4485 echo "configure:4486: checking for NDBM library" >&5
4486 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4490 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
4491 echo "configure:4492: checking for dbm_open" >&5
4492 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4498 /* System header to define __stub macros and hopefully few prototypes,
4499 which can conflict with char dbm_open(); below. */
4501 /* Override any gcc2 internal prototype to avoid an error. */
4502 /* We use char because int might match the return type of a gcc2
4503 builtin and then its argument prototype would still apply. */
4508 /* The GNU C library defines this for functions which it implements
4509 to always fail with ENOSYS. Some functions are actually named
4510 something starting with __ and the normal name is an alias. */
4511 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
4519 if { (eval echo configure:4520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4521 eval "ac_cv_func_dbm_open=yes"
4523 echo "configure: failed program was:" >&5
4524 cat conftest.$ac_ext >&5
4526 eval "ac_cv_func_dbm_open=no"
4531 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
4532 echo "$ac_t""yes" 1>&6
4535 echo "$ac_t""no" 1>&6
4537 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
4538 echo "configure:4539: checking for dbm_open in -lndbm" >&5
4539 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
4540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4541 echo $ac_n "(cached) $ac_c" 1>&6
4543 ac_save_LIBS="$LIBS"
4545 cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4548 /* Override any gcc2 internal prototype to avoid an error. */
4549 /* We use char because int might match the return type of a gcc2
4550 builtin and then its argument prototype would still apply. */
4557 if { (eval echo configure:4558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4559 eval "ac_cv_lib_$ac_lib_var=yes"
4561 echo "configure: failed program was:" >&5
4562 cat conftest.$ac_ext >&5
4564 eval "ac_cv_lib_$ac_lib_var=no"
4567 LIBS="$ac_save_LIBS"
4570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4571 echo "$ac_t""yes" 1>&6
4572 ol_cv_lib_ndbm=-lndbm
4574 echo "$ac_t""no" 1>&6
4576 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
4577 echo "configure:4578: checking for dbm_open in -ldbm" >&5
4578 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
4579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4582 ac_save_LIBS="$LIBS"
4584 cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4587 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4596 if { (eval echo configure:4597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4598 eval "ac_cv_lib_$ac_lib_var=yes"
4600 echo "configure: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4603 eval "ac_cv_lib_$ac_lib_var=no"
4606 LIBS="$ac_save_LIBS"
4609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4610 echo "$ac_t""yes" 1>&6
4611 ol_cv_lib_ndbm=-ldbm
4613 echo "$ac_t""no" 1>&6
4626 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
4629 for ac_hdr in ndbm.h
4631 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4633 echo "configure:4634: checking for $ac_hdr" >&5
4634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4635 echo $ac_n "(cached) $ac_c" 1>&6
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4643 { (eval echo configure:4644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4644 ac_err=`grep -v '^ *+' conftest.out`
4645 if test -z "$ac_err"; then
4647 eval "ac_cv_header_$ac_safe=yes"
4650 echo "configure: failed program was:" >&5
4651 cat conftest.$ac_ext >&5
4653 eval "ac_cv_header_$ac_safe=no"
4657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4658 echo "$ac_t""yes" 1>&6
4659 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4660 cat >> confdefs.h <<EOF
4661 #define $ac_tr_hdr 1
4665 echo "$ac_t""no" 1>&6
4669 echo $ac_n "checking for db""... $ac_c" 1>&6
4670 echo "configure:4671: checking for db" >&5
4671 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4675 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
4683 echo "$ac_t""$ol_cv_ndbm" 1>&6
4684 if test $ol_cv_ndbm = yes ; then
4685 cat >> confdefs.h <<\EOF
4692 if test $ol_cv_ndbm = yes ; then
4694 ol_with_ldbm_api=ndbm
4696 if test $ol_with_ldbm_api = ndbm ; then
4697 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
4700 if test $ol_cv_lib_ndbm != yes ; then
4701 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
4706 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
4707 echo "configure: warning: could not find suitable LDBM backend" 1>&2
4708 if test $ol_enable_ldbm = yes ; then
4709 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
4712 echo "configure: warning: disabling LDBM" 1>&2
4716 if test $ol_enable_wrappers = yes ; then
4717 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
4718 echo "configure:4719: checking for hosts_access in -lwrap" >&5
4719 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
4720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 ac_save_LIBS="$LIBS"
4725 cat > conftest.$ac_ext <<EOF
4726 #line 4727 "configure"
4727 #include "confdefs.h"
4728 /* Override any gcc2 internal prototype to avoid an error. */
4729 /* We use char because int might match the return type of a gcc2
4730 builtin and then its argument prototype would still apply. */
4731 char hosts_access();
4737 if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4739 eval "ac_cv_lib_$ac_lib_var=yes"
4741 echo "configure: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4744 eval "ac_cv_lib_$ac_lib_var=no"
4747 LIBS="$ac_save_LIBS"
4750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4751 echo "$ac_t""yes" 1>&6
4754 echo "$ac_t""no" 1>&6
4759 if test $have_wrappers = yes ; then
4760 cat >> confdefs.h <<\EOF
4764 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
4766 echo "configure: warning: could not find -lwrap" 1>&2
4767 if test $ol_enable_wrappers = yes ; then
4768 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
4771 echo "configure: warning: disabling wrappers support" 1>&2
4772 ol_enable_wrappers=no
4777 # ud needs termcap (should insert check here)
4779 for ac_hdr in termcap.h ncurses.h
4781 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4782 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4783 echo "configure:4784: checking for $ac_hdr" >&5
4784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4787 cat > conftest.$ac_ext <<EOF
4788 #line 4789 "configure"
4789 #include "confdefs.h"
4792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4793 { (eval echo configure:4794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4794 ac_err=`grep -v '^ *+' conftest.out`
4795 if test -z "$ac_err"; then
4797 eval "ac_cv_header_$ac_safe=yes"
4800 echo "configure: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4803 eval "ac_cv_header_$ac_safe=no"
4807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4808 echo "$ac_t""yes" 1>&6
4809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4810 cat >> confdefs.h <<EOF
4811 #define $ac_tr_hdr 1
4815 echo "$ac_t""no" 1>&6
4820 if test $ol_link_termcap = no ; then
4821 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
4822 echo "configure:4823: checking for tputs in -ltermcap" >&5
4823 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
4824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4827 ac_save_LIBS="$LIBS"
4828 LIBS="-ltermcap $LIBS"
4829 cat > conftest.$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4832 /* Override any gcc2 internal prototype to avoid an error. */
4833 /* We use char because int might match the return type of a gcc2
4834 builtin and then its argument prototype would still apply. */
4841 if { (eval echo configure:4842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4843 eval "ac_cv_lib_$ac_lib_var=yes"
4845 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4848 eval "ac_cv_lib_$ac_lib_var=no"
4851 LIBS="$ac_save_LIBS"
4854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4855 echo "$ac_t""yes" 1>&6
4858 echo "$ac_t""no" 1>&6
4862 if test $have_termcap = yes ; then
4863 cat >> confdefs.h <<\EOF
4864 #define HAVE_TERMCAP 1
4868 TERMCAP_LIBS=-ltermcap
4872 if test $ol_link_termcap = no ; then
4873 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
4874 echo "configure:4875: checking for initscr in -lncurses" >&5
4875 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
4876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4879 ac_save_LIBS="$LIBS"
4880 LIBS="-lncurses $LIBS"
4881 cat > conftest.$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4884 /* Override any gcc2 internal prototype to avoid an error. */
4885 /* We use char because int might match the return type of a gcc2
4886 builtin and then its argument prototype would still apply. */
4893 if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4895 eval "ac_cv_lib_$ac_lib_var=yes"
4897 echo "configure: failed program was:" >&5
4898 cat conftest.$ac_ext >&5
4900 eval "ac_cv_lib_$ac_lib_var=no"
4903 LIBS="$ac_save_LIBS"
4906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4907 echo "$ac_t""yes" 1>&6
4910 echo "$ac_t""no" 1>&6
4914 if test $have_ncurses = yes ; then
4915 cat >> confdefs.h <<\EOF
4916 #define HAVE_NCURSES 1
4920 TERMCAP_LIBS=-lncurses
4924 if test $ol_link_termcap = no ; then
4925 cat >> confdefs.h <<\EOF
4926 #define NO_TERMCAP 1
4932 # FreeBSD (and others) have crypt(3) in -lcrypt
4933 if test $ol_enable_crypt != no ; then
4934 echo $ac_n "checking for crypt""... $ac_c" 1>&6
4935 echo "configure:4936: checking for crypt" >&5
4936 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4939 cat > conftest.$ac_ext <<EOF
4940 #line 4941 "configure"
4941 #include "confdefs.h"
4942 /* System header to define __stub macros and hopefully few prototypes,
4943 which can conflict with char crypt(); below. */
4945 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4952 /* The GNU C library defines this for functions which it implements
4953 to always fail with ENOSYS. Some functions are actually named
4954 something starting with __ and the normal name is an alias. */
4955 #if defined (__stub_crypt) || defined (__stub___crypt)
4963 if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4965 eval "ac_cv_func_crypt=yes"
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4970 eval "ac_cv_func_crypt=no"
4975 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4979 echo "$ac_t""no" 1>&6
4981 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4982 echo "configure:4983: checking for crypt in -lcrypt" >&5
4983 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4987 ac_save_LIBS="$LIBS"
4988 LIBS="-lcrypt $LIBS"
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4992 /* Override any gcc2 internal prototype to avoid an error. */
4993 /* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
5001 if { (eval echo configure:5002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5003 eval "ac_cv_lib_$ac_lib_var=yes"
5005 echo "configure: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5008 eval "ac_cv_lib_$ac_lib_var=no"
5011 LIBS="$ac_save_LIBS"
5014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5015 echo "$ac_t""yes" 1>&6
5016 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
5019 echo "$ac_t""no" 1>&6
5026 if test $have_crypt = yes ; then
5027 cat >> confdefs.h <<\EOF
5028 #define HAVE_CRYPT 1
5032 echo "configure: warning: could not find crypt" 1>&2
5033 if test $ol_enable_crypt = yes ; then
5034 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
5037 echo "configure: warning: disabling crypt support" 1>&2
5042 # FreeBSD (and others) have setproctitle(3) in -lutil
5043 if test $ol_enable_proctitle != no ; then
5044 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
5045 echo "configure:5046: checking for setproctitle" >&5
5046 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
5047 echo $ac_n "(cached) $ac_c" 1>&6
5049 cat > conftest.$ac_ext <<EOF
5050 #line 5051 "configure"
5051 #include "confdefs.h"
5052 /* System header to define __stub macros and hopefully few prototypes,
5053 which can conflict with char setproctitle(); below. */
5055 /* Override any gcc2 internal prototype to avoid an error. */
5056 /* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */
5058 char setproctitle();
5062 /* The GNU C library defines this for functions which it implements
5063 to always fail with ENOSYS. Some functions are actually named
5064 something starting with __ and the normal name is an alias. */
5065 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
5073 if { (eval echo configure:5074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5075 eval "ac_cv_func_setproctitle=yes"
5077 echo "configure: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5080 eval "ac_cv_func_setproctitle=no"
5085 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
5086 echo "$ac_t""yes" 1>&6
5087 have_setproctitle=yes
5089 echo "$ac_t""no" 1>&6
5091 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
5092 echo "configure:5093: checking for setproctitle in -lutil" >&5
5093 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
5094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5097 ac_save_LIBS="$LIBS"
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5102 /* Override any gcc2 internal prototype to avoid an error. */
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5105 char setproctitle();
5111 if { (eval echo configure:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5113 eval "ac_cv_lib_$ac_lib_var=yes"
5115 echo "configure: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
5118 eval "ac_cv_lib_$ac_lib_var=no"
5121 LIBS="$ac_save_LIBS"
5124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5126 have_setproctitle=yes
5127 LUTIL_LIBS="$LUTIL_LIBS -lutil"
5129 echo "$ac_t""no" 1>&6
5130 have_setproctitle=no
5131 LIBOBJS="$LIBOBJS setproctitle.o"
5137 if test $have_setproctitle = yes ; then
5138 cat >> confdefs.h <<\EOF
5139 #define HAVE_SETPROCTITLE 1
5145 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5146 echo "configure:5147: checking for ANSI C header files" >&5
5147 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5148 echo $ac_n "(cached) $ac_c" 1>&6
5150 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5159 { (eval echo configure:5160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5160 ac_err=`grep -v '^ *+' conftest.out`
5161 if test -z "$ac_err"; then
5163 ac_cv_header_stdc=yes
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5169 ac_cv_header_stdc=no
5173 if test $ac_cv_header_stdc = yes; then
5174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5181 egrep "memchr" >/dev/null 2>&1; then
5185 ac_cv_header_stdc=no
5191 if test $ac_cv_header_stdc = yes; then
5192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5199 egrep "free" >/dev/null 2>&1; then
5203 ac_cv_header_stdc=no
5209 if test $ac_cv_header_stdc = yes; then
5210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5211 if test "$cross_compiling" = yes; then
5214 cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5218 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5219 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5221 int main () { int i; for (i = 0; i < 256; i++)
5222 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5226 if { (eval echo configure:5227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5230 echo "configure: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5233 ac_cv_header_stdc=no
5241 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5242 if test $ac_cv_header_stdc = yes; then
5243 cat >> confdefs.h <<\EOF
5244 #define STDC_HEADERS 1
5250 if test $ac_cv_header_stdc != yes; then
5251 echo "configure: warning: could not locate Standard C headers" 1>&2
5255 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5258 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5259 echo "configure:5260: checking for $ac_hdr that defines DIR" >&5
5260 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5263 cat > conftest.$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5266 #include <sys/types.h>
5272 if { (eval echo configure:5273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5274 eval "ac_cv_header_dirent_$ac_safe=yes"
5276 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5279 eval "ac_cv_header_dirent_$ac_safe=no"
5283 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5284 echo "$ac_t""yes" 1>&6
5285 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5286 cat >> confdefs.h <<EOF
5287 #define $ac_tr_hdr 1
5289 ac_header_dirent=$ac_hdr; break
5291 echo "$ac_t""no" 1>&6
5294 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5295 if test $ac_header_dirent = dirent.h; then
5296 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5297 echo "configure:5298: checking for opendir in -ldir" >&5
5298 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 ac_save_LIBS="$LIBS"
5304 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5307 /* Override any gcc2 internal prototype to avoid an error. */
5308 /* We use char because int might match the return type of a gcc2
5309 builtin and then its argument prototype would still apply. */
5316 if { (eval echo configure:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5318 eval "ac_cv_lib_$ac_lib_var=yes"
5320 echo "configure: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5323 eval "ac_cv_lib_$ac_lib_var=no"
5326 LIBS="$ac_save_LIBS"
5329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5330 echo "$ac_t""yes" 1>&6
5333 echo "$ac_t""no" 1>&6
5337 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5338 echo "configure:5339: checking for opendir in -lx" >&5
5339 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5341 echo $ac_n "(cached) $ac_c" 1>&6
5343 ac_save_LIBS="$LIBS"
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 /* Override any gcc2 internal prototype to avoid an error. */
5349 /* We use char because int might match the return type of a gcc2
5350 builtin and then its argument prototype would still apply. */
5357 if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5359 eval "ac_cv_lib_$ac_lib_var=yes"
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5364 eval "ac_cv_lib_$ac_lib_var=no"
5367 LIBS="$ac_save_LIBS"
5370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5371 echo "$ac_t""yes" 1>&6
5374 echo "$ac_t""no" 1>&6
5379 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5380 echo "configure:5381: checking for sys/wait.h that is POSIX.1 compatible" >&5
5381 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5384 cat > conftest.$ac_ext <<EOF
5385 #line 5386 "configure"
5386 #include "confdefs.h"
5387 #include <sys/types.h>
5388 #include <sys/wait.h>
5390 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5393 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5398 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5401 if { (eval echo configure:5402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5403 ac_cv_header_sys_wait_h=yes
5405 echo "configure: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5408 ac_cv_header_sys_wait_h=no
5413 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5414 if test $ac_cv_header_sys_wait_h = yes; then
5415 cat >> confdefs.h <<\EOF
5416 #define HAVE_SYS_WAIT_H 1
5447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5449 echo "configure:5450: checking for $ac_hdr" >&5
5450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5451 echo $ac_n "(cached) $ac_c" 1>&6
5453 cat > conftest.$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5459 { (eval echo configure:5460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5460 ac_err=`grep -v '^ *+' conftest.out`
5461 if test -z "$ac_err"; then
5463 eval "ac_cv_header_$ac_safe=yes"
5466 echo "configure: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5469 eval "ac_cv_header_$ac_safe=no"
5473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5474 echo "$ac_t""yes" 1>&6
5475 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5476 cat >> confdefs.h <<EOF
5477 #define $ac_tr_hdr 1
5481 echo "$ac_t""no" 1>&6
5486 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5487 echo "configure:5488: checking for uid_t in sys/types.h" >&5
5488 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5491 cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5494 #include <sys/types.h>
5496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5497 egrep "uid_t" >/dev/null 2>&1; then
5499 ac_cv_type_uid_t=yes
5508 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5509 if test $ac_cv_type_uid_t = no; then
5510 cat >> confdefs.h <<\EOF
5514 cat >> confdefs.h <<\EOF
5520 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
5521 echo "configure:5522: checking type of array argument to getgroups" >&5
5522 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5525 if test "$cross_compiling" = yes; then
5526 ac_cv_type_getgroups=cross
5528 cat > conftest.$ac_ext <<EOF
5529 #line 5530 "configure"
5530 #include "confdefs.h"
5532 /* Thanks to Mike Rendell for this test. */
5533 #include <sys/types.h>
5536 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5541 union { gid_t gval; long lval; } val;
5544 for (i = 0; i < NGID; i++)
5545 gidset[i] = val.gval;
5546 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5548 /* Exit non-zero if getgroups seems to require an array of ints. This
5549 happens when gid_t is short but getgroups modifies an array of ints. */
5550 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5556 ac_cv_type_getgroups=gid_t
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5561 ac_cv_type_getgroups=int
5566 if test $ac_cv_type_getgroups = cross; then
5567 cat > conftest.$ac_ext <<EOF
5568 #line 5569 "configure"
5569 #include "confdefs.h"
5572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
5575 ac_cv_type_getgroups=gid_t
5578 ac_cv_type_getgroups=int
5585 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
5586 cat >> confdefs.h <<EOF
5587 #define GETGROUPS_T $ac_cv_type_getgroups
5591 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5592 echo "configure:5593: checking for mode_t" >&5
5593 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 #include <sys/types.h>
5605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5606 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5608 ac_cv_type_mode_t=yes
5611 ac_cv_type_mode_t=no
5616 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5617 if test $ac_cv_type_mode_t = no; then
5618 cat >> confdefs.h <<\EOF
5624 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5625 echo "configure:5626: checking for off_t" >&5
5626 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5629 cat > conftest.$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5632 #include <sys/types.h>
5638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5639 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5641 ac_cv_type_off_t=yes
5649 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5650 if test $ac_cv_type_off_t = no; then
5651 cat >> confdefs.h <<\EOF
5657 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5658 echo "configure:5659: checking for pid_t" >&5
5659 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5660 echo $ac_n "(cached) $ac_c" 1>&6
5662 cat > conftest.$ac_ext <<EOF
5663 #line 5664 "configure"
5664 #include "confdefs.h"
5665 #include <sys/types.h>
5671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5672 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5674 ac_cv_type_pid_t=yes
5682 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5683 if test $ac_cv_type_pid_t = no; then
5684 cat >> confdefs.h <<\EOF
5690 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5691 echo "configure:5692: checking return type of signal handlers" >&5
5692 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5693 echo $ac_n "(cached) $ac_c" 1>&6
5695 cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5698 #include <sys/types.h>
5704 extern "C" void (*signal (int, void (*)(int)))(int);
5706 void (*signal ()) ();
5713 if { (eval echo configure:5714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5715 ac_cv_type_signal=void
5717 echo "configure: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5720 ac_cv_type_signal=int
5725 echo "$ac_t""$ac_cv_type_signal" 1>&6
5726 cat >> confdefs.h <<EOF
5727 #define RETSIGTYPE $ac_cv_type_signal
5731 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5732 echo "configure:5733: checking for size_t" >&5
5733 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 #include <sys/types.h>
5745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5746 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5748 ac_cv_type_size_t=yes
5751 ac_cv_type_size_t=no
5756 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5757 if test $ac_cv_type_size_t = no; then
5758 cat >> confdefs.h <<\EOF
5759 #define size_t unsigned
5764 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5765 echo "configure:5766: checking for uid_t in sys/types.h" >&5
5766 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5769 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure"
5771 #include "confdefs.h"
5772 #include <sys/types.h>
5774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5775 egrep "uid_t" >/dev/null 2>&1; then
5777 ac_cv_type_uid_t=yes
5786 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5787 if test $ac_cv_type_uid_t = no; then
5788 cat >> confdefs.h <<\EOF
5792 cat >> confdefs.h <<\EOF
5798 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5799 echo "configure:5800: checking for st_blksize in struct stat" >&5
5800 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5801 echo $ac_n "(cached) $ac_c" 1>&6
5803 cat > conftest.$ac_ext <<EOF
5804 #line 5805 "configure"
5805 #include "confdefs.h"
5806 #include <sys/types.h>
5807 #include <sys/stat.h>
5809 struct stat s; s.st_blksize;
5812 if { (eval echo configure:5813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5814 ac_cv_struct_st_blksize=yes
5816 echo "configure: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5819 ac_cv_struct_st_blksize=no
5824 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5825 if test $ac_cv_struct_st_blksize = yes; then
5826 cat >> confdefs.h <<\EOF
5827 #define HAVE_ST_BLKSIZE 1
5832 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5833 echo "configure:5834: checking whether time.h and sys/time.h may both be included" >&5
5834 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 #include <sys/types.h>
5841 #include <sys/time.h>
5847 if { (eval echo configure:5848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5849 ac_cv_header_time=yes
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5854 ac_cv_header_time=no
5859 echo "$ac_t""$ac_cv_header_time" 1>&6
5860 if test $ac_cv_header_time = yes; then
5861 cat >> confdefs.h <<\EOF
5862 #define TIME_WITH_SYS_TIME 1
5867 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5868 echo "configure:5869: checking whether struct tm is in sys/time.h or time.h" >&5
5869 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5870 echo $ac_n "(cached) $ac_c" 1>&6
5872 cat > conftest.$ac_ext <<EOF
5873 #line 5874 "configure"
5874 #include "confdefs.h"
5875 #include <sys/types.h>
5878 struct tm *tp; tp->tm_sec;
5881 if { (eval echo configure:5882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5883 ac_cv_struct_tm=time.h
5885 echo "configure: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5888 ac_cv_struct_tm=sys/time.h
5893 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5894 if test $ac_cv_struct_tm = sys/time.h; then
5895 cat >> confdefs.h <<\EOF
5896 #define TM_IN_SYS_TIME 1
5903 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
5904 echo "configure:5905: checking if toupper() requires islower()" >&5
5905 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
5906 echo $ac_n "(cached) $ac_c" 1>&6
5909 if test "$cross_compiling" = yes; then
5910 ol_cv_c_upper_lower=safe
5912 cat > conftest.$ac_ext <<EOF
5913 #line 5914 "configure"
5914 #include "confdefs.h"
5919 if ('C' == toupper('C'))
5925 if { (eval echo configure:5926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5927 ol_cv_c_upper_lower=no
5929 echo "configure: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5932 ol_cv_c_upper_lower=yes
5939 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
5940 if test $ol_cv_c_upper_lower != no ; then
5941 cat >> confdefs.h <<\EOF
5942 #define C_UPPER_LOWER 1
5947 echo $ac_n "checking for working const""... $ac_c" 1>&6
5948 echo "configure:5949: checking for working const" >&5
5949 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5950 echo $ac_n "(cached) $ac_c" 1>&6
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5958 /* Ultrix mips cc rejects this. */
5959 typedef int charset[2]; const charset x;
5960 /* SunOS 4.1.1 cc rejects this. */
5961 char const *const *ccp;
5963 /* NEC SVR4.0.2 mips cc rejects this. */
5964 struct point {int x, y;};
5965 static struct point const zero = {0,0};
5966 /* AIX XL C 1.02.0.0 rejects this.
5967 It does not let you subtract one const X* pointer from another in an arm
5968 of an if-expression whose if-part is not a constant expression */
5969 const char *g = "string";
5970 ccp = &g + (g ? g-g : 0);
5971 /* HPUX 7.0 cc rejects these. */
5974 ccp = (char const *const *) p;
5975 { /* SCO 3.2v4 cc rejects this. */
5977 char const *s = 0 ? (char *) 0 : (char const *) 0;
5981 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5983 const int *foo = &x[0];
5986 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5987 typedef const int *iptr;
5991 { /* AIX XL C 1.02.0.0 rejects this saying
5992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5993 struct s { int j; const int *ap[3]; };
5994 struct s *b; b->j = 5;
5996 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6002 if { (eval echo configure:6003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6014 echo "$ac_t""$ac_cv_c_const" 1>&6
6015 if test $ac_cv_c_const = no; then
6016 cat >> confdefs.h <<\EOF
6024 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
6025 echo "configure:6026: checking for 8-bit clean memcmp" >&5
6026 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
6027 echo $ac_n "(cached) $ac_c" 1>&6
6029 if test "$cross_compiling" = yes; then
6030 ac_cv_func_memcmp_clean=no
6032 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6038 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6039 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
6043 if { (eval echo configure:6044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6045 ac_cv_func_memcmp_clean=yes
6047 echo "configure: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6050 ac_cv_func_memcmp_clean=no
6057 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
6058 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
6060 echo $ac_n "checking for strftime""... $ac_c" 1>&6
6061 echo "configure:6062: checking for strftime" >&5
6062 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6065 cat > conftest.$ac_ext <<EOF
6066 #line 6067 "configure"
6067 #include "confdefs.h"
6068 /* System header to define __stub macros and hopefully few prototypes,
6069 which can conflict with char strftime(); below. */
6071 /* Override any gcc2 internal prototype to avoid an error. */
6072 /* We use char because int might match the return type of a gcc2
6073 builtin and then its argument prototype would still apply. */
6078 /* The GNU C library defines this for functions which it implements
6079 to always fail with ENOSYS. Some functions are actually named
6080 something starting with __ and the normal name is an alias. */
6081 #if defined (__stub_strftime) || defined (__stub___strftime)
6089 if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6091 eval "ac_cv_func_strftime=yes"
6093 echo "configure: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6096 eval "ac_cv_func_strftime=no"
6101 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
6102 echo "$ac_t""yes" 1>&6
6103 cat >> confdefs.h <<\EOF
6104 #define HAVE_STRFTIME 1
6108 echo "$ac_t""no" 1>&6
6109 # strftime is in -lintl on SCO UNIX.
6110 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
6111 echo "configure:6112: checking for strftime in -lintl" >&5
6112 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
6113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6114 echo $ac_n "(cached) $ac_c" 1>&6
6116 ac_save_LIBS="$LIBS"
6118 cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6121 /* Override any gcc2 internal prototype to avoid an error. */
6122 /* We use char because int might match the return type of a gcc2
6123 builtin and then its argument prototype would still apply. */
6130 if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6132 eval "ac_cv_lib_$ac_lib_var=yes"
6134 echo "configure: failed program was:" >&5
6135 cat conftest.$ac_ext >&5
6137 eval "ac_cv_lib_$ac_lib_var=no"
6140 LIBS="$ac_save_LIBS"
6143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6144 echo "$ac_t""yes" 1>&6
6145 cat >> confdefs.h <<\EOF
6146 #define HAVE_STRFTIME 1
6151 echo "$ac_t""no" 1>&6
6156 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
6157 echo "configure:6158: checking for vprintf" >&5
6158 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6161 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure"
6163 #include "confdefs.h"
6164 /* System header to define __stub macros and hopefully few prototypes,
6165 which can conflict with char vprintf(); below. */
6167 /* Override any gcc2 internal prototype to avoid an error. */
6168 /* We use char because int might match the return type of a gcc2
6169 builtin and then its argument prototype would still apply. */
6174 /* The GNU C library defines this for functions which it implements
6175 to always fail with ENOSYS. Some functions are actually named
6176 something starting with __ and the normal name is an alias. */
6177 #if defined (__stub_vprintf) || defined (__stub___vprintf)
6185 if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6187 eval "ac_cv_func_vprintf=yes"
6189 echo "configure: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6192 eval "ac_cv_func_vprintf=no"
6197 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
6198 echo "$ac_t""yes" 1>&6
6199 cat >> confdefs.h <<\EOF
6200 #define HAVE_VPRINTF 1
6204 echo "$ac_t""no" 1>&6
6207 if test "$ac_cv_func_vprintf" != yes; then
6208 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6209 echo "configure:6210: checking for _doprnt" >&5
6210 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
6211 echo $ac_n "(cached) $ac_c" 1>&6
6213 cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6216 /* System header to define __stub macros and hopefully few prototypes,
6217 which can conflict with char _doprnt(); below. */
6219 /* Override any gcc2 internal prototype to avoid an error. */
6220 /* We use char because int might match the return type of a gcc2
6221 builtin and then its argument prototype would still apply. */
6226 /* The GNU C library defines this for functions which it implements
6227 to always fail with ENOSYS. Some functions are actually named
6228 something starting with __ and the normal name is an alias. */
6229 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6237 if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6239 eval "ac_cv_func__doprnt=yes"
6241 echo "configure: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6244 eval "ac_cv_func__doprnt=no"
6249 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
6250 echo "$ac_t""yes" 1>&6
6251 cat >> confdefs.h <<\EOF
6252 #define HAVE_DOPRNT 1
6256 echo "$ac_t""no" 1>&6
6262 if test $ac_cv_func_vprintf = yes ; then
6263 for ac_func in vsnprintf
6265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6266 echo "configure:6267: checking for $ac_func" >&5
6267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6268 echo $ac_n "(cached) $ac_c" 1>&6
6270 cat > conftest.$ac_ext <<EOF
6271 #line 6272 "configure"
6272 #include "confdefs.h"
6273 /* System header to define __stub macros and hopefully few prototypes,
6274 which can conflict with char $ac_func(); below. */
6276 /* Override any gcc2 internal prototype to avoid an error. */
6277 /* We use char because int might match the return type of a gcc2
6278 builtin and then its argument prototype would still apply. */
6283 /* The GNU C library defines this for functions which it implements
6284 to always fail with ENOSYS. Some functions are actually named
6285 something starting with __ and the normal name is an alias. */
6286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6294 if { (eval echo configure:6295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6296 eval "ac_cv_func_$ac_func=yes"
6298 echo "configure: failed program was:" >&5
6299 cat conftest.$ac_ext >&5
6301 eval "ac_cv_func_$ac_func=no"
6306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6307 echo "$ac_t""yes" 1>&6
6308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6309 cat >> confdefs.h <<EOF
6310 #define $ac_tr_func 1
6314 echo "$ac_t""no" 1>&6
6320 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
6321 echo "configure:6322: checking for wait3 that fills in rusage" >&5
6322 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6
6325 if test "$cross_compiling" = yes; then
6326 ac_cv_func_wait3_rusage=no
6328 cat > conftest.$ac_ext <<EOF
6329 #line 6330 "configure"
6330 #include "confdefs.h"
6331 #include <sys/types.h>
6332 #include <sys/time.h>
6333 #include <sys/resource.h>
6335 /* HP-UX has wait3 but does not fill in rusage at all. */
6339 /* Use a field that we can force nonzero --
6340 voluntary context switches.
6341 For systems like NeXT and OSF/1 that don't set it,
6342 also use the system CPU time. And page faults (I/O) for Linux. */
6344 r.ru_stime.tv_sec = 0;
6345 r.ru_stime.tv_usec = 0;
6346 r.ru_majflt = r.ru_minflt = 0;
6348 case 0: /* Child. */
6349 sleep(1); /* Give up the CPU. */
6351 case -1: _exit(0); /* What can we do? */
6352 default: /* Parent. */
6354 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
6355 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
6356 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
6360 if { (eval echo configure:6361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6362 ac_cv_func_wait3_rusage=yes
6364 echo "configure: failed program was:" >&5
6365 cat conftest.$ac_ext >&5
6367 ac_cv_func_wait3_rusage=no
6374 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
6375 if test $ac_cv_func_wait3_rusage = yes; then
6376 cat >> confdefs.h <<\EOF
6377 #define HAVE_WAIT3 1
6414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_func" >&5
6416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 /* System header to define __stub macros and hopefully few prototypes,
6423 which can conflict with char $ac_func(); below. */
6425 /* Override any gcc2 internal prototype to avoid an error. */
6426 /* We use char because int might match the return type of a gcc2
6427 builtin and then its argument prototype would still apply. */
6432 /* The GNU C library defines this for functions which it implements
6433 to always fail with ENOSYS. Some functions are actually named
6434 something starting with __ and the normal name is an alias. */
6435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6443 if { (eval echo configure:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6445 eval "ac_cv_func_$ac_func=yes"
6447 echo "configure: failed program was:" >&5
6448 cat conftest.$ac_ext >&5
6450 eval "ac_cv_func_$ac_func=no"
6455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6456 echo "$ac_t""yes" 1>&6
6457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6458 cat >> confdefs.h <<EOF
6459 #define $ac_tr_func 1
6463 echo "$ac_t""no" 1>&6
6468 for ac_func in getopt strdup tempnam
6470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6471 echo "configure:6472: checking for $ac_func" >&5
6472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6473 echo $ac_n "(cached) $ac_c" 1>&6
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 /* System header to define __stub macros and hopefully few prototypes,
6479 which can conflict with char $ac_func(); below. */
6481 /* Override any gcc2 internal prototype to avoid an error. */
6482 /* We use char because int might match the return type of a gcc2
6483 builtin and then its argument prototype would still apply. */
6488 /* The GNU C library defines this for functions which it implements
6489 to always fail with ENOSYS. Some functions are actually named
6490 something starting with __ and the normal name is an alias. */
6491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6499 if { (eval echo configure:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6501 eval "ac_cv_func_$ac_func=yes"
6503 echo "configure: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6506 eval "ac_cv_func_$ac_func=no"
6511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6512 echo "$ac_t""yes" 1>&6
6513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6514 cat >> confdefs.h <<EOF
6515 #define $ac_tr_func 1
6519 echo "$ac_t""no" 1>&6
6520 LIBOBJS="$LIBOBJS ${ac_func}.o"
6526 # Check Configuration
6528 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
6529 echo "configure:6530: checking declaration of sys_errlist" >&5
6530 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6534 cat > conftest.$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6539 #include <sys/types.h>
6542 char *c = (char *) *sys_errlist
6545 if { (eval echo configure:6546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6547 ol_cv_dcl_sys_errlist=yes
6549 echo "configure: failed program was:" >&5
6550 cat conftest.$ac_ext >&5
6552 ol_cv_dcl_sys_errlist=no
6557 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
6559 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
6560 if test $ol_cv_dcl_sys_errlist = no ; then
6561 cat >> confdefs.h <<\EOF
6562 #define DECL_SYS_ERRLIST 1
6565 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
6566 echo "configure:6567: checking existence of sys_errlist" >&5
6567 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
6568 echo $ac_n "(cached) $ac_c" 1>&6
6571 cat > conftest.$ac_ext <<EOF
6572 #line 6573 "configure"
6573 #include "confdefs.h"
6576 char *c = (char *) *sys_errlist
6579 if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6581 ol_cv_have_sys_errlist=yes
6583 echo "configure: failed program was:" >&5
6584 cat conftest.$ac_ext >&5
6586 ol_cv_have_sys_errlist=no
6591 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
6596 if test $ol_enable_debug != no ; then
6597 cat >> confdefs.h <<\EOF
6598 #define LDAP_DEBUG 1
6602 if test $ol_enable_libui = yes ; then
6603 cat >> confdefs.h <<\EOF
6604 #define LDAP_LIBUI 1
6608 if test $ol_enable_cache = no ; then
6609 cat >> confdefs.h <<\EOF
6610 #define LDAP_NOCACHE 1
6614 if test $ol_enable_dns != no ; then
6615 cat >> confdefs.h <<\EOF
6620 if test $ol_enable_proctitle != no ; then
6621 cat >> confdefs.h <<\EOF
6622 #define LDAP_PROCTITLE 1
6626 if test $ol_enable_referrals != no ; then
6627 cat >> confdefs.h <<\EOF
6628 #define LDAP_REFERRALS 1
6632 if test $ol_enable_cldap != no ; then
6633 cat >> confdefs.h <<\EOF
6634 #define LDAP_CONNECTIONLESS 1
6639 if test $ol_enable_aclgroups != no ; then
6640 cat >> confdefs.h <<\EOF
6641 #define SLAPD_ACLGROUPS 1
6645 if test $ol_enable_crypt != no ; then
6646 cat >> confdefs.h <<\EOF
6647 #define SLAPD_CRYPT 1
6651 if test $ol_enable_md5 != no ; then
6652 cat >> confdefs.h <<\EOF
6657 if test $ol_enable_sha1 != no ; then
6658 cat >> confdefs.h <<\EOF
6659 #define SLAPD_SHA1 1
6663 if test $ol_enable_phonetic != no ; then
6664 cat >> confdefs.h <<\EOF
6665 #define SLAPD_PHONETIC 1
6669 if test $ol_enable_rlookups != no ; then
6670 cat >> confdefs.h <<\EOF
6671 #define SLAPD_RLOOKUPS 1
6676 if test $ol_link_ldbm != no ; then
6677 cat >> confdefs.h <<\EOF
6678 #define SLAPD_LDBM 1
6685 if test $ol_enable_passwd != no ; then
6686 cat >> confdefs.h <<\EOF
6687 #define SLAPD_PASSWD 1
6694 if test $ol_enable_shell != no ; then
6695 cat >> confdefs.h <<\EOF
6696 #define SLAPD_SHELL 1
6703 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
6704 $BUILD_SLAPD = yes ; then
6708 if test $ol_enable_ldapd != no ; then
6735 cat > confcache <<\EOF
6736 # This file is a shell script that caches the results of configure
6737 # tests run on this system so they can be shared between configure
6738 # scripts and configure runs. It is not useful on other systems.
6739 # If it contains results you don't want to keep, you may remove or edit it.
6741 # By default, configure uses ./config.cache as the cache file,
6742 # creating it if it does not exist already. You can give configure
6743 # the --cache-file=FILE option to use a different cache file; that is
6744 # what configure does when it calls configure scripts in
6745 # subdirectories, so they share the cache.
6746 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6747 # config.status only pays attention to the cache file if you give it the
6748 # --recheck option to rerun configure.
6751 # The following way of writing the cache mishandles newlines in values,
6752 # but we know of no workaround that is simple, portable, and efficient.
6753 # So, don't put newlines in cache variables' values.
6754 # Ultrix sh set writes to stderr and can't be redirected directly,
6755 # and sets the high bit in the cache file unless we assign to the vars.
6757 case `(ac_space=' '; set) 2>&1` in
6759 # `set' does not quote correctly, so add quotes (double-quote substitution
6760 # turns \\\\ into \\, and sed turns \\ into \).
6762 -e "s/'/'\\\\''/g" \
6763 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6766 # `set' quotes correctly as required by POSIX, so do not add quotes.
6767 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6770 if cmp -s $cache_file confcache; then
6773 if test -w $cache_file; then
6774 echo "updating cache $cache_file"
6775 cat confcache > $cache_file
6777 echo "not updating unwritable cache $cache_file"
6782 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6784 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6785 # Let make expand exec_prefix.
6786 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6788 # Any assignment to VPATH causes Sun make to only execute
6789 # the first set of double-colon rules, so remove it if not needed.
6790 # If there is a colon in the path, we need to keep it.
6791 if test "x$srcdir" = x.; then
6792 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6795 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6797 DEFS=-DHAVE_CONFIG_H
6799 # Without the "./", some shells look in PATH for config.status.
6800 : ${CONFIG_STATUS=./config.status}
6802 echo creating $CONFIG_STATUS
6803 rm -f $CONFIG_STATUS
6804 cat > $CONFIG_STATUS <<EOF
6806 # Generated automatically by configure.
6807 # Run this file to recreate the current configuration.
6808 # This directory was configured as follows,
6809 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6811 # $0 $ac_configure_args
6813 # Compiler output produced by configure, useful for debugging
6814 # configure, is in ./config.log if it exists.
6816 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6819 case "\$ac_option" in
6820 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6821 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6822 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6823 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6824 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6826 -help | --help | --hel | --he | --h)
6827 echo "\$ac_cs_usage"; exit 0 ;;
6828 *) echo "\$ac_cs_usage"; exit 1 ;;
6832 ac_given_srcdir=$srcdir
6833 ac_given_INSTALL="$INSTALL"
6835 trap 'rm -fr `echo "\
6836 Makefile:build/top.mk:Makefile.in:build/dir.mk \
6837 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
6838 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
6839 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
6840 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
6841 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
6842 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
6843 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
6844 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
6845 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
6846 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
6847 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
6848 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
6849 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
6850 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
6851 include/Makefile:build/top.mk:include/Makefile.in \
6852 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
6853 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
6854 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
6855 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
6856 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
6857 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
6858 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
6859 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
6860 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
6861 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
6862 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
6863 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
6864 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
6865 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
6866 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
6867 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
6868 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
6869 tests/Makefile:build/top.mk:tests/Makefile.in \
6870 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6872 cat >> $CONFIG_STATUS <<EOF
6874 # Protect against being on the right side of a sed subst in config.status.
6875 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6876 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6879 s%@CFLAGS@%$CFLAGS%g
6880 s%@CPPFLAGS@%$CPPFLAGS%g
6881 s%@CXXFLAGS@%$CXXFLAGS%g
6883 s%@LDFLAGS@%$LDFLAGS%g
6885 s%@exec_prefix@%$exec_prefix%g
6886 s%@prefix@%$prefix%g
6887 s%@program_transform_name@%$program_transform_name%g
6888 s%@bindir@%$bindir%g
6889 s%@sbindir@%$sbindir%g
6890 s%@libexecdir@%$libexecdir%g
6891 s%@datadir@%$datadir%g
6892 s%@sysconfdir@%$sysconfdir%g
6893 s%@sharedstatedir@%$sharedstatedir%g
6894 s%@localstatedir@%$localstatedir%g
6895 s%@libdir@%$libdir%g
6896 s%@includedir@%$includedir%g
6897 s%@oldincludedir@%$oldincludedir%g
6898 s%@infodir@%$infodir%g
6899 s%@mandir@%$mandir%g
6901 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6902 s%@INSTALL_DATA@%$INSTALL_DATA%g
6903 s%@RANLIB@%$RANLIB%g
6904 s%@SET_MAKE@%$SET_MAKE%g
6905 s%@SENDMAIL@%$SENDMAIL%g
6906 s%@EDITOR@%$EDITOR%g
6907 s%@FINGER@%$FINGER%g
6910 s%@LIBOBJS@%$LIBOBJS%g
6911 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
6912 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
6913 s%@BUILD_LDBM@%$BUILD_LDBM%g
6914 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
6915 s%@BUILD_SHELL@%$BUILD_SHELL%g
6916 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
6917 s%@LDAP_LIBS@%$LDAP_LIBS%g
6918 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
6919 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
6920 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
6921 s%@LDBM_LIBS@%$LDBM_LIBS%g
6922 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
6923 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
6924 s%@KRB_LIBS@%$KRB_LIBS%g
6925 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
6930 cat >> $CONFIG_STATUS <<\EOF
6932 # Split the substitutions into bite-sized pieces for seds with
6933 # small command number limits, like on Digital OSF/1 and HP-UX.
6934 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6935 ac_file=1 # Number of current file.
6936 ac_beg=1 # First line for current file.
6937 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6940 while $ac_more_lines; do
6941 if test $ac_beg -gt 1; then
6942 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6944 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6946 if test ! -s conftest.s$ac_file; then
6948 rm -f conftest.s$ac_file
6950 if test -z "$ac_sed_cmds"; then
6951 ac_sed_cmds="sed -f conftest.s$ac_file"
6953 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6955 ac_file=`expr $ac_file + 1`
6957 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6960 if test -z "$ac_sed_cmds"; then
6965 cat >> $CONFIG_STATUS <<EOF
6967 CONFIG_FILES=\${CONFIG_FILES-"\
6968 Makefile:build/top.mk:Makefile.in:build/dir.mk \
6969 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
6970 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
6971 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
6972 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
6973 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
6974 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
6975 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
6976 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
6977 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
6978 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
6979 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
6980 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
6981 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
6982 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
6983 include/Makefile:build/top.mk:include/Makefile.in \
6984 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
6985 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
6986 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
6987 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
6988 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
6989 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
6990 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
6991 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
6992 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
6993 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
6994 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
6995 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
6996 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
6997 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
6998 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
6999 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
7000 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
7001 tests/Makefile:build/top.mk:tests/Makefile.in \
7004 cat >> $CONFIG_STATUS <<\EOF
7005 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7008 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7009 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7010 *) ac_file_in="${ac_file}.in" ;;
7013 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7015 # Remove last slash and all that follows it. Not all systems have dirname.
7016 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7017 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7018 # The file is in a subdirectory.
7019 test ! -d "$ac_dir" && mkdir "$ac_dir"
7020 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7021 # A "../" for each directory in $ac_dir_suffix.
7022 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7024 ac_dir_suffix= ac_dots=
7027 case "$ac_given_srcdir" in
7029 if test -z "$ac_dots"; then top_srcdir=.
7030 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7031 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7033 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7034 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7037 case "$ac_given_INSTALL" in
7038 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7039 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7042 echo creating "$ac_file"
7044 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7046 *Makefile*) ac_comsub="1i\\
7047 # $configure_input" ;;
7051 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7053 s%@configure_input@%$configure_input%g
7054 s%@srcdir@%$srcdir%g
7055 s%@top_srcdir@%$top_srcdir%g
7056 s%@INSTALL@%$INSTALL%g
7057 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7061 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7062 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7064 # ac_d sets the value in "#define NAME VALUE" lines.
7065 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7066 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7069 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7070 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7071 ac_uB='\([ ]\)%\1#\2define\3'
7074 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7075 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7076 ac_eB='$%\1#\2define\3'
7080 if test "${CONFIG_HEADERS+set}" != set; then
7082 cat >> $CONFIG_STATUS <<EOF
7083 CONFIG_HEADERS="include/portable.h"
7085 cat >> $CONFIG_STATUS <<\EOF
7087 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7088 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7090 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7091 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7092 *) ac_file_in="${ac_file}.in" ;;
7095 echo creating $ac_file
7097 rm -f conftest.frag conftest.in conftest.out
7098 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7099 cat $ac_file_inputs > conftest.in
7103 # Transform confdefs.h into a sed script conftest.vals that substitutes
7104 # the proper values into config.h.in to produce config.h. And first:
7105 # Protect against being on the right side of a sed subst in config.status.
7106 # Protect against being in an unquoted here document in config.status.
7108 cat > conftest.hdr <<\EOF
7111 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7115 sed -n -f conftest.hdr confdefs.h > conftest.vals
7118 # This sed command replaces #undef with comments. This is necessary, for
7119 # example, in the case of _POSIX_SOURCE, which is predefined and required
7120 # on some systems where configure will not decide to define it.
7121 cat >> conftest.vals <<\EOF
7122 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7125 # Break up conftest.vals because some shells have a limit on
7126 # the size of here documents, and old seds have small limits too.
7131 ac_lines=`grep -c . conftest.vals`
7132 # grep -c gives empty output for an empty file on some AIX systems.
7133 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7134 # Write a limited-size here document to conftest.frag.
7135 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7136 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7138 sed -f conftest.frag conftest.in > conftest.out
7140 mv conftest.out conftest.in
7142 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7144 mv conftest.tail conftest.vals
7148 cat >> $CONFIG_STATUS <<\EOF
7149 rm -f conftest.frag conftest.h
7150 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7151 cat conftest.in >> conftest.h
7153 if cmp -s $ac_file conftest.h 2>/dev/null; then
7154 echo "$ac_file is unchanged"
7157 # Remove last slash and all that follows it. Not all systems have dirname.
7158 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7159 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7160 # The file is in a subdirectory.
7161 test ! -d "$ac_dir" && mkdir "$ac_dir"
7164 mv conftest.h $ac_file
7169 cat >> $CONFIG_STATUS <<EOF
7172 cat >> $CONFIG_STATUS <<\EOF
7175 echo Please \"make depend\" to build dependencies
7179 chmod +x $CONFIG_STATUS
7180 rm -fr confdefs* $ac_clean_files
7181 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1