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
3251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3252 echo "configure:3253: checking for $ac_func" >&5
3253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 /* System header to define __stub macros and hopefully few prototypes,
3260 which can conflict with char $ac_func(); below. */
3262 /* Override any gcc2 internal prototype to avoid an error. */
3263 /* We use char because int might match the return type of a gcc2
3264 builtin and then its argument prototype would still apply. */
3269 /* The GNU C library defines this for functions which it implements
3270 to always fail with ENOSYS. Some functions are actually named
3271 something starting with __ and the normal name is an alias. */
3272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3282 eval "ac_cv_func_$ac_func=yes"
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 eval "ac_cv_func_$ac_func=no"
3292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3293 echo "$ac_t""yes" 1>&6
3294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3295 cat >> confdefs.h <<EOF
3296 #define $ac_tr_func 1
3300 echo "$ac_t""no" 1>&6
3305 CPPFLAGS="$save_CPPFLAGS"
3308 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
3312 if test $ol_with_threads = posix ; then
3313 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
3317 if test $ol_with_threads = auto -o $ol_with_threads = mach ; then
3318 for ac_hdr in mach/cthreads.h
3320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3322 echo "configure:3323: checking for $ac_hdr" >&5
3323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3324 echo $ac_n "(cached) $ac_c" 1>&6
3326 cat > conftest.$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3332 { (eval echo configure:3333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3333 ac_err=`grep -v '^ *+' conftest.out`
3334 if test -z "$ac_err"; then
3336 eval "ac_cv_header_$ac_safe=yes"
3339 echo "configure: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3342 eval "ac_cv_header_$ac_safe=no"
3346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3347 echo "$ac_t""yes" 1>&6
3348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3349 cat >> confdefs.h <<EOF
3350 #define $ac_tr_hdr 1
3354 echo "$ac_t""no" 1>&6
3358 if test $ac_cv_header_mach_cthreads_h = yes ; then
3359 ol_with_threads=found
3361 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
3362 echo "configure:3363: checking for cthread_fork" >&5
3363 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 /* System header to define __stub macros and hopefully few prototypes,
3370 which can conflict with char cthread_fork(); below. */
3372 /* Override any gcc2 internal prototype to avoid an error. */
3373 /* We use char because int might match the return type of a gcc2
3374 builtin and then its argument prototype would still apply. */
3375 char cthread_fork();
3379 /* The GNU C library defines this for functions which it implements
3380 to always fail with ENOSYS. Some functions are actually named
3381 something starting with __ and the normal name is an alias. */
3382 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
3390 if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3392 eval "ac_cv_func_cthread_fork=yes"
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3397 eval "ac_cv_func_cthread_fork=no"
3402 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
3403 echo "$ac_t""yes" 1>&6
3406 echo "$ac_t""no" 1>&6
3410 if test $ol_link_threads = no ; then
3411 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
3412 echo "configure:3413: checking for cthread_fork with -all_load" >&5
3413 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3418 LIBS="-all_load $LIBS"
3419 cat > conftest.$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3422 #include <mach/cthreads.h>
3425 cthread_fork((void *)0, (void *)0);
3429 if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3431 ol_cv_cthread_all_load=yes
3433 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3436 ol_cv_cthread_all_load=no
3443 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
3445 if test $ol_cv_cthread_all_load = yes ; then
3446 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
3447 ol_link_threads=mach
3451 if test $ol_link_threads != no ; then
3452 : check for cthread specific functionality here
3454 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
3458 if test $ol_with_threads = mach ; then
3459 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
3463 if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
3464 for ac_hdr in thread.h synch.h
3466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3468 echo "configure:3469: checking for $ac_hdr" >&5
3469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 cat > conftest.$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3478 { (eval echo configure:3479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3479 ac_err=`grep -v '^ *+' conftest.out`
3480 if test -z "$ac_err"; then
3482 eval "ac_cv_header_$ac_safe=yes"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3488 eval "ac_cv_header_$ac_safe=no"
3492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3493 echo "$ac_t""yes" 1>&6
3494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3495 cat >> confdefs.h <<EOF
3496 #define $ac_tr_hdr 1
3500 echo "$ac_t""no" 1>&6
3504 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
3505 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
3506 echo "configure:3507: checking for thr_create in -lthread" >&5
3507 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
3508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 ac_save_LIBS="$LIBS"
3512 LIBS="-lthread $LIBS"
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 /* Override any gcc2 internal prototype to avoid an error. */
3517 /* We use char because int might match the return type of a gcc2
3518 builtin and then its argument prototype would still apply. */
3525 if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3527 eval "ac_cv_lib_$ac_lib_var=yes"
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3532 eval "ac_cv_lib_$ac_lib_var=no"
3535 LIBS="$ac_save_LIBS"
3538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3539 echo "$ac_t""yes" 1>&6
3542 echo "$ac_t""no" 1>&6
3547 if test $have_lwp = yes ; then
3548 cat >> confdefs.h <<\EOF
3552 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3554 if test $ol_with_preemptive = auto ; then
3555 ol_with_preemptive=yes
3560 for ac_hdr in lwp/lwp.h
3562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3564 echo "configure:3565: checking for $ac_hdr" >&5
3565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3574 { (eval echo configure:3575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3575 ac_err=`grep -v '^ *+' conftest.out`
3576 if test -z "$ac_err"; then
3578 eval "ac_cv_header_$ac_safe=yes"
3581 echo "configure: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3584 eval "ac_cv_header_$ac_safe=no"
3588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3589 echo "$ac_t""yes" 1>&6
3590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3591 cat >> confdefs.h <<EOF
3592 #define $ac_tr_hdr 1
3596 echo "$ac_t""no" 1>&6
3600 if test $ac_cv_header_lwp_lwp_h = yes ; then
3601 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
3602 echo "configure:3603: checking for lwp_create in -llwp" >&5
3603 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
3604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 ac_save_LIBS="$LIBS"
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 /* Override any gcc2 internal prototype to avoid an error. */
3613 /* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3623 eval "ac_cv_lib_$ac_lib_var=yes"
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3628 eval "ac_cv_lib_$ac_lib_var=no"
3631 LIBS="$ac_save_LIBS"
3634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3638 echo "$ac_t""no" 1>&6
3643 if test $have_lwp = yes ; then
3644 cat >> confdefs.h <<\EOF
3648 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3650 if test $ol_with_preemptive = auto ; then
3651 ol_with_preemptive=no
3657 if test $ol_with_preemptive = yes ; then
3658 cat >> confdefs.h <<\EOF
3659 #define PREEMPTIVE_THREADS 1
3664 if test $ol_with_threads = manual ; then
3667 echo "configure: warning: thread defines and link options must be set manually" 1>&2
3669 for ac_hdr in pthread.h sched.h
3671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3673 echo "configure:3674: checking for $ac_hdr" >&5
3674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3683 { (eval echo configure:3684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3684 ac_err=`grep -v '^ *+' conftest.out`
3685 if test -z "$ac_err"; then
3687 eval "ac_cv_header_$ac_safe=yes"
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3693 eval "ac_cv_header_$ac_safe=no"
3697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3698 echo "$ac_t""yes" 1>&6
3699 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3700 cat >> confdefs.h <<EOF
3701 #define $ac_tr_hdr 1
3705 echo "$ac_t""no" 1>&6
3709 for ac_func in sched_yield pthread_yield
3711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3712 echo "configure:3713: checking for $ac_func" >&5
3713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3716 cat > conftest.$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3719 /* System header to define __stub macros and hopefully few prototypes,
3720 which can conflict with char $ac_func(); below. */
3722 /* Override any gcc2 internal prototype to avoid an error. */
3723 /* We use char because int might match the return type of a gcc2
3724 builtin and then its argument prototype would still apply. */
3729 /* The GNU C library defines this for functions which it implements
3730 to always fail with ENOSYS. Some functions are actually named
3731 something starting with __ and the normal name is an alias. */
3732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3740 if { (eval echo configure:3741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3742 eval "ac_cv_func_$ac_func=yes"
3744 echo "configure: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3747 eval "ac_cv_func_$ac_func=no"
3752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3753 echo "$ac_t""yes" 1>&6
3754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3755 cat >> confdefs.h <<EOF
3756 #define $ac_tr_func 1
3760 echo "$ac_t""no" 1>&6
3765 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3766 echo "configure:3767: checking for LinuxThreads" >&5
3767 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3771 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3772 if test "$res" -gt 0 ; then
3773 ol_cv_linux_threads=yes
3775 ol_cv_linux_threads=no
3780 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3783 for ac_hdr in mach/cthreads.h
3785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3787 echo "configure:3788: checking for $ac_hdr" >&5
3788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3797 { (eval echo configure:3798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3798 ac_err=`grep -v '^ *+' conftest.out`
3799 if test -z "$ac_err"; then
3801 eval "ac_cv_header_$ac_safe=yes"
3804 echo "configure: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3807 eval "ac_cv_header_$ac_safe=no"
3811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3812 echo "$ac_t""yes" 1>&6
3813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3814 cat >> confdefs.h <<EOF
3815 #define $ac_tr_hdr 1
3819 echo "$ac_t""no" 1>&6
3823 for ac_hdr in lwp/lwp.h
3825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3827 echo "configure:3828: checking for $ac_hdr" >&5
3828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3837 { (eval echo configure:3838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3838 ac_err=`grep -v '^ *+' conftest.out`
3839 if test -z "$ac_err"; then
3841 eval "ac_cv_header_$ac_safe=yes"
3844 echo "configure: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3847 eval "ac_cv_header_$ac_safe=no"
3851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3852 echo "$ac_t""yes" 1>&6
3853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3854 cat >> confdefs.h <<EOF
3855 #define $ac_tr_hdr 1
3859 echo "$ac_t""no" 1>&6
3863 for ac_hdr in thread.h synch.h
3865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3867 echo "configure:3868: checking for $ac_hdr" >&5
3868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3877 { (eval echo configure:3878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3878 ac_err=`grep -v '^ *+' conftest.out`
3879 if test -z "$ac_err"; then
3881 eval "ac_cv_header_$ac_safe=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 eval "ac_cv_header_$ac_safe=no"
3891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3892 echo "$ac_t""yes" 1>&6
3893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3894 cat >> confdefs.h <<EOF
3895 #define $ac_tr_hdr 1
3899 echo "$ac_t""no" 1>&6
3905 if test $ol_link_threads = no ; then
3906 if test $ol_with_threads = yes ; then
3907 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
3910 if test $ol_with_threads = auto ; then
3911 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
3915 cat >> confdefs.h <<\EOF
3916 #define NO_THREADS 1
3919 cat >> confdefs.h <<\EOF
3920 #define PREEMPTIVE_THREADS 1
3927 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
3928 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
3929 echo "configure:3930: checking for DB2 library" >&5
3930 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3934 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
3935 echo "configure:3936: checking for db_open in -ldb" >&5
3936 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
3937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 ac_save_LIBS="$LIBS"
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3945 /* Override any gcc2 internal prototype to avoid an error. */
3946 /* We use char because int might match the return type of a gcc2
3947 builtin and then its argument prototype would still apply. */
3954 if { (eval echo configure:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3956 eval "ac_cv_lib_$ac_lib_var=yes"
3958 echo "configure: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3961 eval "ac_cv_lib_$ac_lib_var=no"
3964 LIBS="$ac_save_LIBS"
3967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3968 echo "$ac_t""yes" 1>&6
3971 echo "$ac_t""no" 1>&6
3979 echo "$ac_t""$ol_cv_lib_db2" 1>&6
3983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3985 echo "configure:3986: checking for $ac_hdr" >&5
3986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3987 echo $ac_n "(cached) $ac_c" 1>&6
3989 cat > conftest.$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3995 { (eval echo configure:3996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3996 ac_err=`grep -v '^ *+' conftest.out`
3997 if test -z "$ac_err"; then
3999 eval "ac_cv_header_$ac_safe=yes"
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4005 eval "ac_cv_header_$ac_safe=no"
4009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4012 cat >> confdefs.h <<EOF
4013 #define $ac_tr_hdr 1
4017 echo "$ac_t""no" 1>&6
4021 if test $ac_cv_header_db_h = yes ; then
4022 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
4023 echo "configure:4024: checking if db.h is DB2" >&5
4024 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4028 cat > conftest.$ac_ext <<EOF
4029 #line 4030 "configure"
4030 #include "confdefs.h"
4033 /* this check could be improved */
4034 # ifdef DB_VERSION_MAJOR
4035 # if DB_VERSION_MAJOR == 2
4041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 egrep "__db_version_2" >/dev/null 2>&1; then
4044 ol_cv_header_db2=yes
4053 echo "$ac_t""$ol_cv_header_db2" 1>&6
4060 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
4061 echo "configure:4062: checking for Berkeley DB2" >&5
4062 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4066 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
4067 ol_cv_berkeley_db2=no
4069 ol_cv_berkeley_db2=yes
4074 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
4075 if test $ol_cv_berkeley_db2 = yes ; then
4076 cat >> confdefs.h <<\EOF
4077 #define HAVE_BERKELEY_DB2 1
4083 if test $ol_cv_berkeley_db2 = yes ; then
4085 ol_with_ldbm_api=db2
4087 if test $ol_with_ldbm_type = hash ; then
4088 cat >> confdefs.h <<\EOF
4089 #define LDBM_USE_DBHASH 1
4093 cat >> confdefs.h <<\EOF
4094 #define LDBM_USE_DBBTREE 1
4099 if test $ol_cv_lib_db2 != yes ; then
4100 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
4105 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
4106 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
4107 echo "configure:4108: checking for Berkeley DB library" >&5
4108 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4112 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
4113 echo "configure:4114: checking for dbopen" >&5
4114 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 /* System header to define __stub macros and hopefully few prototypes,
4121 which can conflict with char dbopen(); below. */
4123 /* Override any gcc2 internal prototype to avoid an error. */
4124 /* We use char because int might match the return type of a gcc2
4125 builtin and then its argument prototype would still apply. */
4130 /* The GNU C library defines this for functions which it implements
4131 to always fail with ENOSYS. Some functions are actually named
4132 something starting with __ and the normal name is an alias. */
4133 #if defined (__stub_dbopen) || defined (__stub___dbopen)
4141 if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4143 eval "ac_cv_func_dbopen=yes"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
4148 eval "ac_cv_func_dbopen=no"
4153 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
4154 echo "$ac_t""yes" 1>&6
4157 echo "$ac_t""no" 1>&6
4159 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
4160 echo "configure:4161: checking for dbopen in -ldb" >&5
4161 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
4162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 ac_save_LIBS="$LIBS"
4167 cat > conftest.$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4170 /* Override any gcc2 internal prototype to avoid an error. */
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4179 if { (eval echo configure:4180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4181 eval "ac_cv_lib_$ac_lib_var=yes"
4183 echo "configure: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4186 eval "ac_cv_lib_$ac_lib_var=no"
4189 LIBS="$ac_save_LIBS"
4192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4193 echo "$ac_t""yes" 1>&6
4196 echo "$ac_t""no" 1>&6
4207 echo "$ac_t""$ol_cv_lib_db" 1>&6
4210 for ac_hdr in db_185.h
4212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4214 echo "configure:4215: checking for $ac_hdr" >&5
4215 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4216 echo $ac_n "(cached) $ac_c" 1>&6
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4224 { (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4225 ac_err=`grep -v '^ *+' conftest.out`
4226 if test -z "$ac_err"; then
4228 eval "ac_cv_header_$ac_safe=yes"
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4234 eval "ac_cv_header_$ac_safe=no"
4238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4239 echo "$ac_t""yes" 1>&6
4240 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4241 cat >> confdefs.h <<EOF
4242 #define $ac_tr_hdr 1
4246 echo "$ac_t""no" 1>&6
4250 if test $ol_cv_header_db2 = yes ; then
4252 ol_cv_header_db=$ac_cv_header_db_185_h
4254 ol_cv_header_db=$ac_cv_header_db_h
4259 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
4260 echo "configure:4261: checking for Berkeley DB" >&5
4261 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4265 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
4266 ol_cv_berkeley_db=no
4268 ol_cv_berkeley_db=yes
4273 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
4274 if test $ol_cv_berkeley_db = yes ; then
4275 cat >> confdefs.h <<\EOF
4276 #define HAVE_BERKELEY_DB 1
4282 if test $ol_cv_berkeley_db = yes ; then
4286 if test $ol_with_ldbm_type = hash ; then
4287 cat >> confdefs.h <<\EOF
4288 #define LDBM_USE_DBHASH 1
4292 cat >> confdefs.h <<\EOF
4293 #define LDBM_USE_DBBTREE 1
4298 if test $ol_cv_lib_db != yes ; then
4299 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
4304 if test $ol_with_ldbm_api = manual ; then
4307 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
4309 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
4311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4313 echo "configure:4314: checking for $ac_hdr" >&5
4314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
4322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4323 { (eval echo configure:4324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4324 ac_err=`grep -v '^ *+' conftest.out`
4325 if test -z "$ac_err"; then
4327 eval "ac_cv_header_$ac_safe=yes"
4330 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4333 eval "ac_cv_header_$ac_safe=no"
4337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4338 echo "$ac_t""yes" 1>&6
4339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4340 cat >> confdefs.h <<EOF
4341 #define $ac_tr_hdr 1
4345 echo "$ac_t""no" 1>&6
4351 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
4352 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
4353 ol_with_ldbm_api=none
4356 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
4357 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
4358 echo "configure:4359: checking for GDBM library" >&5
4359 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4363 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
4364 echo "configure:4365: checking for gdbm_open" >&5
4365 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4371 /* System header to define __stub macros and hopefully few prototypes,
4372 which can conflict with char gdbm_open(); below. */
4374 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4381 /* The GNU C library defines this for functions which it implements
4382 to always fail with ENOSYS. Some functions are actually named
4383 something starting with __ and the normal name is an alias. */
4384 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
4392 if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4394 eval "ac_cv_func_gdbm_open=yes"
4396 echo "configure: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4399 eval "ac_cv_func_gdbm_open=no"
4404 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
4405 echo "$ac_t""yes" 1>&6
4408 echo "$ac_t""no" 1>&6
4410 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
4411 echo "configure:4412: checking for gdbm_open in -lgdbm" >&5
4412 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
4413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 ac_save_LIBS="$LIBS"
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4421 /* Override any gcc2 internal prototype to avoid an error. */
4422 /* We use char because int might match the return type of a gcc2
4423 builtin and then its argument prototype would still apply. */
4430 if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4432 eval "ac_cv_lib_$ac_lib_var=yes"
4434 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5
4437 eval "ac_cv_lib_$ac_lib_var=no"
4440 LIBS="$ac_save_LIBS"
4443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4444 echo "$ac_t""yes" 1>&6
4445 ol_cv_lib_gdbm=-lgdbm
4447 echo "$ac_t""no" 1>&6
4458 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
4461 for ac_hdr in gdbm.h
4463 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4464 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4465 echo "configure:4466: checking for $ac_hdr" >&5
4466 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4475 { (eval echo configure:4476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4476 ac_err=`grep -v '^ *+' conftest.out`
4477 if test -z "$ac_err"; then
4479 eval "ac_cv_header_$ac_safe=yes"
4482 echo "configure: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4485 eval "ac_cv_header_$ac_safe=no"
4489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4490 echo "$ac_t""yes" 1>&6
4491 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4492 cat >> confdefs.h <<EOF
4493 #define $ac_tr_hdr 1
4497 echo "$ac_t""no" 1>&6
4501 echo $ac_n "checking for db""... $ac_c" 1>&6
4502 echo "configure:4503: checking for db" >&5
4503 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4507 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
4515 echo "$ac_t""$ol_cv_gdbm" 1>&6
4516 if test $ol_cv_gdbm = yes ; then
4517 cat >> confdefs.h <<\EOF
4524 if test $ol_cv_gdbm = yes ; then
4526 ol_with_ldbm_api=gdbm
4528 if test $ol_cv_lib_gdbm != yes ; then
4529 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
4534 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
4535 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
4536 echo "configure:4537: checking for NDBM library" >&5
4537 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4541 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
4542 echo "configure:4543: checking for dbm_open" >&5
4543 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
4544 echo $ac_n "(cached) $ac_c" 1>&6
4546 cat > conftest.$ac_ext <<EOF
4547 #line 4548 "configure"
4548 #include "confdefs.h"
4549 /* System header to define __stub macros and hopefully few prototypes,
4550 which can conflict with char dbm_open(); below. */
4552 /* Override any gcc2 internal prototype to avoid an error. */
4553 /* We use char because int might match the return type of a gcc2
4554 builtin and then its argument prototype would still apply. */
4559 /* The GNU C library defines this for functions which it implements
4560 to always fail with ENOSYS. Some functions are actually named
4561 something starting with __ and the normal name is an alias. */
4562 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
4570 if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4572 eval "ac_cv_func_dbm_open=yes"
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4577 eval "ac_cv_func_dbm_open=no"
4582 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
4583 echo "$ac_t""yes" 1>&6
4586 echo "$ac_t""no" 1>&6
4588 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
4589 echo "configure:4590: checking for dbm_open in -lndbm" >&5
4590 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
4591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4594 ac_save_LIBS="$LIBS"
4596 cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 /* Override any gcc2 internal prototype to avoid an error. */
4600 /* We use char because int might match the return type of a gcc2
4601 builtin and then its argument prototype would still apply. */
4608 if { (eval echo configure:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4610 eval "ac_cv_lib_$ac_lib_var=yes"
4612 echo "configure: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4615 eval "ac_cv_lib_$ac_lib_var=no"
4618 LIBS="$ac_save_LIBS"
4621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4622 echo "$ac_t""yes" 1>&6
4623 ol_cv_lib_ndbm=-lndbm
4625 echo "$ac_t""no" 1>&6
4627 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
4628 echo "configure:4629: checking for dbm_open in -ldbm" >&5
4629 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
4630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 ac_save_LIBS="$LIBS"
4635 cat > conftest.$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4638 /* Override any gcc2 internal prototype to avoid an error. */
4639 /* We use char because int might match the return type of a gcc2
4640 builtin and then its argument prototype would still apply. */
4647 if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4649 eval "ac_cv_lib_$ac_lib_var=yes"
4651 echo "configure: failed program was:" >&5
4652 cat conftest.$ac_ext >&5
4654 eval "ac_cv_lib_$ac_lib_var=no"
4657 LIBS="$ac_save_LIBS"
4660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4661 echo "$ac_t""yes" 1>&6
4662 ol_cv_lib_ndbm=-ldbm
4664 echo "$ac_t""no" 1>&6
4677 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
4680 for ac_hdr in ndbm.h
4682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4684 echo "configure:4685: checking for $ac_hdr" >&5
4685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4694 { (eval echo configure:4695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4695 ac_err=`grep -v '^ *+' conftest.out`
4696 if test -z "$ac_err"; then
4698 eval "ac_cv_header_$ac_safe=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4704 eval "ac_cv_header_$ac_safe=no"
4708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4709 echo "$ac_t""yes" 1>&6
4710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4711 cat >> confdefs.h <<EOF
4712 #define $ac_tr_hdr 1
4716 echo "$ac_t""no" 1>&6
4720 echo $ac_n "checking for db""... $ac_c" 1>&6
4721 echo "configure:4722: checking for db" >&5
4722 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4726 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
4734 echo "$ac_t""$ol_cv_ndbm" 1>&6
4735 if test $ol_cv_ndbm = yes ; then
4736 cat >> confdefs.h <<\EOF
4743 if test $ol_cv_ndbm = yes ; then
4745 ol_with_ldbm_api=ndbm
4747 if test $ol_with_ldbm_api = ndbm ; then
4748 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
4751 if test $ol_cv_lib_ndbm != yes ; then
4752 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
4757 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
4758 echo "configure: warning: could not find suitable LDBM backend" 1>&2
4759 if test $ol_enable_ldbm = yes ; then
4760 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
4763 echo "configure: warning: disabling LDBM" 1>&2
4767 if test $ol_enable_wrappers = yes ; then
4768 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
4769 echo "configure:4770: checking for hosts_access in -lwrap" >&5
4770 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
4771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 ac_save_LIBS="$LIBS"
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 /* Override any gcc2 internal prototype to avoid an error. */
4780 /* We use char because int might match the return type of a gcc2
4781 builtin and then its argument prototype would still apply. */
4782 char hosts_access();
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4790 eval "ac_cv_lib_$ac_lib_var=yes"
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4795 eval "ac_cv_lib_$ac_lib_var=no"
4798 LIBS="$ac_save_LIBS"
4801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4802 echo "$ac_t""yes" 1>&6
4805 echo "$ac_t""no" 1>&6
4810 if test $have_wrappers = yes ; then
4811 cat >> confdefs.h <<\EOF
4815 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
4817 echo "configure: warning: could not find -lwrap" 1>&2
4818 if test $ol_enable_wrappers = yes ; then
4819 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
4822 echo "configure: warning: disabling wrappers support" 1>&2
4823 ol_enable_wrappers=no
4828 # ud needs termcap (should insert check here)
4830 for ac_hdr in termcap.h ncurses.h
4832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4834 echo "configure:4835: checking for $ac_hdr" >&5
4835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4838 cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure"
4840 #include "confdefs.h"
4843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4844 { (eval echo configure:4845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4845 ac_err=`grep -v '^ *+' conftest.out`
4846 if test -z "$ac_err"; then
4848 eval "ac_cv_header_$ac_safe=yes"
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4854 eval "ac_cv_header_$ac_safe=no"
4858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4861 cat >> confdefs.h <<EOF
4862 #define $ac_tr_hdr 1
4866 echo "$ac_t""no" 1>&6
4871 if test $ol_link_termcap = no ; then
4872 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
4873 echo "configure:4874: checking for tputs in -ltermcap" >&5
4874 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
4875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 ac_save_LIBS="$LIBS"
4879 LIBS="-ltermcap $LIBS"
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 /* Override any gcc2 internal prototype to avoid an error. */
4884 /* We use char because int might match the return type of a gcc2
4885 builtin and then its argument prototype would still apply. */
4892 if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4894 eval "ac_cv_lib_$ac_lib_var=yes"
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4899 eval "ac_cv_lib_$ac_lib_var=no"
4902 LIBS="$ac_save_LIBS"
4905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4906 echo "$ac_t""yes" 1>&6
4909 echo "$ac_t""no" 1>&6
4913 if test $have_termcap = yes ; then
4914 cat >> confdefs.h <<\EOF
4915 #define HAVE_TERMCAP 1
4919 TERMCAP_LIBS=-ltermcap
4923 if test $ol_link_termcap = no ; then
4924 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
4925 echo "configure:4926: checking for initscr in -lncurses" >&5
4926 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
4927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4930 ac_save_LIBS="$LIBS"
4931 LIBS="-lncurses $LIBS"
4932 cat > conftest.$ac_ext <<EOF
4933 #line 4934 "configure"
4934 #include "confdefs.h"
4935 /* Override any gcc2 internal prototype to avoid an error. */
4936 /* We use char because int might match the return type of a gcc2
4937 builtin and then its argument prototype would still apply. */
4944 if { (eval echo configure:4945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4946 eval "ac_cv_lib_$ac_lib_var=yes"
4948 echo "configure: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4951 eval "ac_cv_lib_$ac_lib_var=no"
4954 LIBS="$ac_save_LIBS"
4957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4958 echo "$ac_t""yes" 1>&6
4961 echo "$ac_t""no" 1>&6
4965 if test $have_ncurses = yes ; then
4966 cat >> confdefs.h <<\EOF
4967 #define HAVE_NCURSES 1
4971 TERMCAP_LIBS=-lncurses
4975 if test $ol_link_termcap = no ; then
4976 cat >> confdefs.h <<\EOF
4977 #define NO_TERMCAP 1
4983 # FreeBSD (and others) have crypt(3) in -lcrypt
4984 if test $ol_enable_crypt != no ; then
4985 echo $ac_n "checking for crypt""... $ac_c" 1>&6
4986 echo "configure:4987: checking for crypt" >&5
4987 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4993 /* System header to define __stub macros and hopefully few prototypes,
4994 which can conflict with char crypt(); below. */
4996 /* Override any gcc2 internal prototype to avoid an error. */
4997 /* We use char because int might match the return type of a gcc2
4998 builtin and then its argument prototype would still apply. */
5003 /* The GNU C library defines this for functions which it implements
5004 to always fail with ENOSYS. Some functions are actually named
5005 something starting with __ and the normal name is an alias. */
5006 #if defined (__stub_crypt) || defined (__stub___crypt)
5014 if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5016 eval "ac_cv_func_crypt=yes"
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5021 eval "ac_cv_func_crypt=no"
5026 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
5027 echo "$ac_t""yes" 1>&6
5030 echo "$ac_t""no" 1>&6
5032 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
5033 echo "configure:5034: checking for crypt in -lcrypt" >&5
5034 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
5035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5038 ac_save_LIBS="$LIBS"
5039 LIBS="-lcrypt $LIBS"
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5043 /* Override any gcc2 internal prototype to avoid an error. */
5044 /* We use char because int might match the return type of a gcc2
5045 builtin and then its argument prototype would still apply. */
5052 if { (eval echo configure:5053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5054 eval "ac_cv_lib_$ac_lib_var=yes"
5056 echo "configure: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5059 eval "ac_cv_lib_$ac_lib_var=no"
5062 LIBS="$ac_save_LIBS"
5065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5066 echo "$ac_t""yes" 1>&6
5067 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
5070 echo "$ac_t""no" 1>&6
5077 if test $have_crypt = yes ; then
5078 cat >> confdefs.h <<\EOF
5079 #define HAVE_CRYPT 1
5083 echo "configure: warning: could not find crypt" 1>&2
5084 if test $ol_enable_crypt = yes ; then
5085 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
5088 echo "configure: warning: disabling crypt support" 1>&2
5093 # FreeBSD (and others) have setproctitle(3) in -lutil
5094 if test $ol_enable_proctitle != no ; then
5095 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
5096 echo "configure:5097: checking for setproctitle" >&5
5097 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 /* System header to define __stub macros and hopefully few prototypes,
5104 which can conflict with char setproctitle(); below. */
5106 /* Override any gcc2 internal prototype to avoid an error. */
5107 /* We use char because int might match the return type of a gcc2
5108 builtin and then its argument prototype would still apply. */
5109 char setproctitle();
5113 /* The GNU C library defines this for functions which it implements
5114 to always fail with ENOSYS. Some functions are actually named
5115 something starting with __ and the normal name is an alias. */
5116 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5126 eval "ac_cv_func_setproctitle=yes"
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5131 eval "ac_cv_func_setproctitle=no"
5136 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
5137 echo "$ac_t""yes" 1>&6
5138 have_setproctitle=yes
5140 echo "$ac_t""no" 1>&6
5142 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
5143 echo "configure:5144: checking for setproctitle in -lutil" >&5
5144 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
5145 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5146 echo $ac_n "(cached) $ac_c" 1>&6
5148 ac_save_LIBS="$LIBS"
5150 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5153 /* Override any gcc2 internal prototype to avoid an error. */
5154 /* We use char because int might match the return type of a gcc2
5155 builtin and then its argument prototype would still apply. */
5156 char setproctitle();
5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5164 eval "ac_cv_lib_$ac_lib_var=yes"
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5169 eval "ac_cv_lib_$ac_lib_var=no"
5172 LIBS="$ac_save_LIBS"
5175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5176 echo "$ac_t""yes" 1>&6
5177 have_setproctitle=yes
5178 LUTIL_LIBS="$LUTIL_LIBS -lutil"
5180 echo "$ac_t""no" 1>&6
5181 have_setproctitle=no
5182 LIBOBJS="$LIBOBJS setproctitle.o"
5188 if test $have_setproctitle = yes ; then
5189 cat >> confdefs.h <<\EOF
5190 #define HAVE_SETPROCTITLE 1
5196 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5197 echo "configure:5198: checking for ANSI C header files" >&5
5198 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5199 echo $ac_n "(cached) $ac_c" 1>&6
5201 cat > conftest.$ac_ext <<EOF
5202 #line 5203 "configure"
5203 #include "confdefs.h"
5209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5210 { (eval echo configure:5211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5211 ac_err=`grep -v '^ *+' conftest.out`
5212 if test -z "$ac_err"; then
5214 ac_cv_header_stdc=yes
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5220 ac_cv_header_stdc=no
5224 if test $ac_cv_header_stdc = yes; then
5225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5226 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5232 egrep "memchr" >/dev/null 2>&1; then
5236 ac_cv_header_stdc=no
5242 if test $ac_cv_header_stdc = yes; then
5243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5250 egrep "free" >/dev/null 2>&1; then
5254 ac_cv_header_stdc=no
5260 if test $ac_cv_header_stdc = yes; then
5261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5262 if test "$cross_compiling" = yes; then
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5269 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5270 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5272 int main () { int i; for (i = 0; i < 256; i++)
5273 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5277 if { (eval echo configure:5278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5281 echo "configure: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5284 ac_cv_header_stdc=no
5292 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5293 if test $ac_cv_header_stdc = yes; then
5294 cat >> confdefs.h <<\EOF
5295 #define STDC_HEADERS 1
5301 if test $ac_cv_header_stdc != yes; then
5302 echo "configure: warning: could not locate Standard C headers" 1>&2
5306 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5308 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5309 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5310 echo "configure:5311: checking for $ac_hdr that defines DIR" >&5
5311 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5312 echo $ac_n "(cached) $ac_c" 1>&6
5314 cat > conftest.$ac_ext <<EOF
5315 #line 5316 "configure"
5316 #include "confdefs.h"
5317 #include <sys/types.h>
5323 if { (eval echo configure:5324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5325 eval "ac_cv_header_dirent_$ac_safe=yes"
5327 echo "configure: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5330 eval "ac_cv_header_dirent_$ac_safe=no"
5334 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5335 echo "$ac_t""yes" 1>&6
5336 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5337 cat >> confdefs.h <<EOF
5338 #define $ac_tr_hdr 1
5340 ac_header_dirent=$ac_hdr; break
5342 echo "$ac_t""no" 1>&6
5345 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5346 if test $ac_header_dirent = dirent.h; then
5347 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5348 echo "configure:5349: checking for opendir in -ldir" >&5
5349 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 ac_save_LIBS="$LIBS"
5355 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5358 /* Override any gcc2 internal prototype to avoid an error. */
5359 /* We use char because int might match the return type of a gcc2
5360 builtin and then its argument prototype would still apply. */
5367 if { (eval echo configure:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5369 eval "ac_cv_lib_$ac_lib_var=yes"
5371 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5
5374 eval "ac_cv_lib_$ac_lib_var=no"
5377 LIBS="$ac_save_LIBS"
5380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5381 echo "$ac_t""yes" 1>&6
5384 echo "$ac_t""no" 1>&6
5388 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5389 echo "configure:5390: checking for opendir in -lx" >&5
5390 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5394 ac_save_LIBS="$LIBS"
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5399 /* Override any gcc2 internal prototype to avoid an error. */
5400 /* We use char because int might match the return type of a gcc2
5401 builtin and then its argument prototype would still apply. */
5408 if { (eval echo configure:5409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5410 eval "ac_cv_lib_$ac_lib_var=yes"
5412 echo "configure: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5415 eval "ac_cv_lib_$ac_lib_var=no"
5418 LIBS="$ac_save_LIBS"
5421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5422 echo "$ac_t""yes" 1>&6
5425 echo "$ac_t""no" 1>&6
5430 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5431 echo "configure:5432: checking for sys/wait.h that is POSIX.1 compatible" >&5
5432 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 #include <sys/types.h>
5439 #include <sys/wait.h>
5441 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5444 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5449 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5452 if { (eval echo configure:5453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5454 ac_cv_header_sys_wait_h=yes
5456 echo "configure: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5459 ac_cv_header_sys_wait_h=no
5464 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5465 if test $ac_cv_header_sys_wait_h = yes; then
5466 cat >> confdefs.h <<\EOF
5467 #define HAVE_SYS_WAIT_H 1
5498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5500 echo "configure:5501: checking for $ac_hdr" >&5
5501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5502 echo $ac_n "(cached) $ac_c" 1>&6
5504 cat > conftest.$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5510 { (eval echo configure:5511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5511 ac_err=`grep -v '^ *+' conftest.out`
5512 if test -z "$ac_err"; then
5514 eval "ac_cv_header_$ac_safe=yes"
5517 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5520 eval "ac_cv_header_$ac_safe=no"
5524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5525 echo "$ac_t""yes" 1>&6
5526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5527 cat >> confdefs.h <<EOF
5528 #define $ac_tr_hdr 1
5532 echo "$ac_t""no" 1>&6
5537 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5538 echo "configure:5539: checking for uid_t in sys/types.h" >&5
5539 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 #include <sys/types.h>
5547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5548 egrep "uid_t" >/dev/null 2>&1; then
5550 ac_cv_type_uid_t=yes
5559 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5560 if test $ac_cv_type_uid_t = no; then
5561 cat >> confdefs.h <<\EOF
5565 cat >> confdefs.h <<\EOF
5571 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
5572 echo "configure:5573: checking type of array argument to getgroups" >&5
5573 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
5574 echo $ac_n "(cached) $ac_c" 1>&6
5576 if test "$cross_compiling" = yes; then
5577 ac_cv_type_getgroups=cross
5579 cat > conftest.$ac_ext <<EOF
5580 #line 5581 "configure"
5581 #include "confdefs.h"
5583 /* Thanks to Mike Rendell for this test. */
5584 #include <sys/types.h>
5587 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5592 union { gid_t gval; long lval; } val;
5595 for (i = 0; i < NGID; i++)
5596 gidset[i] = val.gval;
5597 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5599 /* Exit non-zero if getgroups seems to require an array of ints. This
5600 happens when gid_t is short but getgroups modifies an array of ints. */
5601 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5605 if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5607 ac_cv_type_getgroups=gid_t
5609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5612 ac_cv_type_getgroups=int
5617 if test $ac_cv_type_getgroups = cross; then
5618 cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5624 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
5626 ac_cv_type_getgroups=gid_t
5629 ac_cv_type_getgroups=int
5636 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
5637 cat >> confdefs.h <<EOF
5638 #define GETGROUPS_T $ac_cv_type_getgroups
5642 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5643 echo "configure:5644: checking for mode_t" >&5
5644 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 #include <sys/types.h>
5656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5657 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5659 ac_cv_type_mode_t=yes
5662 ac_cv_type_mode_t=no
5667 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5668 if test $ac_cv_type_mode_t = no; then
5669 cat >> confdefs.h <<\EOF
5675 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5676 echo "configure:5677: checking for off_t" >&5
5677 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5678 echo $ac_n "(cached) $ac_c" 1>&6
5680 cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5683 #include <sys/types.h>
5689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5690 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5692 ac_cv_type_off_t=yes
5700 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5701 if test $ac_cv_type_off_t = no; then
5702 cat >> confdefs.h <<\EOF
5708 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5709 echo "configure:5710: checking for pid_t" >&5
5710 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5711 echo $ac_n "(cached) $ac_c" 1>&6
5713 cat > conftest.$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5716 #include <sys/types.h>
5722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5723 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5725 ac_cv_type_pid_t=yes
5733 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5734 if test $ac_cv_type_pid_t = no; then
5735 cat >> confdefs.h <<\EOF
5741 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5742 echo "configure:5743: checking return type of signal handlers" >&5
5743 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5744 echo $ac_n "(cached) $ac_c" 1>&6
5746 cat > conftest.$ac_ext <<EOF
5747 #line 5748 "configure"
5748 #include "confdefs.h"
5749 #include <sys/types.h>
5755 extern "C" void (*signal (int, void (*)(int)))(int);
5757 void (*signal ()) ();
5764 if { (eval echo configure:5765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5766 ac_cv_type_signal=void
5768 echo "configure: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5771 ac_cv_type_signal=int
5776 echo "$ac_t""$ac_cv_type_signal" 1>&6
5777 cat >> confdefs.h <<EOF
5778 #define RETSIGTYPE $ac_cv_type_signal
5782 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5783 echo "configure:5784: checking for size_t" >&5
5784 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5787 cat > conftest.$ac_ext <<EOF
5788 #line 5789 "configure"
5789 #include "confdefs.h"
5790 #include <sys/types.h>
5796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5797 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5799 ac_cv_type_size_t=yes
5802 ac_cv_type_size_t=no
5807 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5808 if test $ac_cv_type_size_t = no; then
5809 cat >> confdefs.h <<\EOF
5810 #define size_t unsigned
5815 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5816 echo "configure:5817: checking for uid_t in sys/types.h" >&5
5817 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5818 echo $ac_n "(cached) $ac_c" 1>&6
5820 cat > conftest.$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5823 #include <sys/types.h>
5825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5826 egrep "uid_t" >/dev/null 2>&1; then
5828 ac_cv_type_uid_t=yes
5837 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5838 if test $ac_cv_type_uid_t = no; then
5839 cat >> confdefs.h <<\EOF
5843 cat >> confdefs.h <<\EOF
5849 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5850 echo "configure:5851: checking for st_blksize in struct stat" >&5
5851 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5852 echo $ac_n "(cached) $ac_c" 1>&6
5854 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5857 #include <sys/types.h>
5858 #include <sys/stat.h>
5860 struct stat s; s.st_blksize;
5863 if { (eval echo configure:5864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5865 ac_cv_struct_st_blksize=yes
5867 echo "configure: failed program was:" >&5
5868 cat conftest.$ac_ext >&5
5870 ac_cv_struct_st_blksize=no
5875 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5876 if test $ac_cv_struct_st_blksize = yes; then
5877 cat >> confdefs.h <<\EOF
5878 #define HAVE_ST_BLKSIZE 1
5883 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5884 echo "configure:5885: checking whether time.h and sys/time.h may both be included" >&5
5885 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5886 echo $ac_n "(cached) $ac_c" 1>&6
5888 cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5891 #include <sys/types.h>
5892 #include <sys/time.h>
5898 if { (eval echo configure:5899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5900 ac_cv_header_time=yes
5902 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5905 ac_cv_header_time=no
5910 echo "$ac_t""$ac_cv_header_time" 1>&6
5911 if test $ac_cv_header_time = yes; then
5912 cat >> confdefs.h <<\EOF
5913 #define TIME_WITH_SYS_TIME 1
5918 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5919 echo "configure:5920: checking whether struct tm is in sys/time.h or time.h" >&5
5920 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5926 #include <sys/types.h>
5929 struct tm *tp; tp->tm_sec;
5932 if { (eval echo configure:5933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5934 ac_cv_struct_tm=time.h
5936 echo "configure: failed program was:" >&5
5937 cat conftest.$ac_ext >&5
5939 ac_cv_struct_tm=sys/time.h
5944 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5945 if test $ac_cv_struct_tm = sys/time.h; then
5946 cat >> confdefs.h <<\EOF
5947 #define TM_IN_SYS_TIME 1
5954 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
5955 echo "configure:5956: checking if toupper() requires islower()" >&5
5956 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5960 if test "$cross_compiling" = yes; then
5961 ol_cv_c_upper_lower=safe
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5970 if ('C' == toupper('C'))
5976 if { (eval echo configure:5977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5978 ol_cv_c_upper_lower=no
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5983 ol_cv_c_upper_lower=yes
5990 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
5991 if test $ol_cv_c_upper_lower != no ; then
5992 cat >> confdefs.h <<\EOF
5993 #define C_UPPER_LOWER 1
5998 echo $ac_n "checking for working const""... $ac_c" 1>&6
5999 echo "configure:6000: checking for working const" >&5
6000 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6001 echo $ac_n "(cached) $ac_c" 1>&6
6003 cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure"
6005 #include "confdefs.h"
6009 /* Ultrix mips cc rejects this. */
6010 typedef int charset[2]; const charset x;
6011 /* SunOS 4.1.1 cc rejects this. */
6012 char const *const *ccp;
6014 /* NEC SVR4.0.2 mips cc rejects this. */
6015 struct point {int x, y;};
6016 static struct point const zero = {0,0};
6017 /* AIX XL C 1.02.0.0 rejects this.
6018 It does not let you subtract one const X* pointer from another in an arm
6019 of an if-expression whose if-part is not a constant expression */
6020 const char *g = "string";
6021 ccp = &g + (g ? g-g : 0);
6022 /* HPUX 7.0 cc rejects these. */
6025 ccp = (char const *const *) p;
6026 { /* SCO 3.2v4 cc rejects this. */
6028 char const *s = 0 ? (char *) 0 : (char const *) 0;
6032 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6034 const int *foo = &x[0];
6037 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6038 typedef const int *iptr;
6042 { /* AIX XL C 1.02.0.0 rejects this saying
6043 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6044 struct s { int j; const int *ap[3]; };
6045 struct s *b; b->j = 5;
6047 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6053 if { (eval echo configure:6054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6057 echo "configure: failed program was:" >&5
6058 cat conftest.$ac_ext >&5
6065 echo "$ac_t""$ac_cv_c_const" 1>&6
6066 if test $ac_cv_c_const = no; then
6067 cat >> confdefs.h <<\EOF
6075 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
6076 echo "configure:6077: checking for 8-bit clean memcmp" >&5
6077 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
6078 echo $ac_n "(cached) $ac_c" 1>&6
6080 if test "$cross_compiling" = yes; then
6081 ac_cv_func_memcmp_clean=no
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6089 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6090 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
6094 if { (eval echo configure:6095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6096 ac_cv_func_memcmp_clean=yes
6098 echo "configure: failed program was:" >&5
6099 cat conftest.$ac_ext >&5
6101 ac_cv_func_memcmp_clean=no
6108 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
6109 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
6111 echo $ac_n "checking for strftime""... $ac_c" 1>&6
6112 echo "configure:6113: checking for strftime" >&5
6113 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
6114 echo $ac_n "(cached) $ac_c" 1>&6
6116 cat > conftest.$ac_ext <<EOF
6117 #line 6118 "configure"
6118 #include "confdefs.h"
6119 /* System header to define __stub macros and hopefully few prototypes,
6120 which can conflict with char strftime(); below. */
6122 /* Override any gcc2 internal prototype to avoid an error. */
6123 /* We use char because int might match the return type of a gcc2
6124 builtin and then its argument prototype would still apply. */
6129 /* The GNU C library defines this for functions which it implements
6130 to always fail with ENOSYS. Some functions are actually named
6131 something starting with __ and the normal name is an alias. */
6132 #if defined (__stub_strftime) || defined (__stub___strftime)
6140 if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6142 eval "ac_cv_func_strftime=yes"
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6147 eval "ac_cv_func_strftime=no"
6152 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
6153 echo "$ac_t""yes" 1>&6
6154 cat >> confdefs.h <<\EOF
6155 #define HAVE_STRFTIME 1
6159 echo "$ac_t""no" 1>&6
6160 # strftime is in -lintl on SCO UNIX.
6161 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
6162 echo "configure:6163: checking for strftime in -lintl" >&5
6163 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
6164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6167 ac_save_LIBS="$LIBS"
6169 cat > conftest.$ac_ext <<EOF
6170 #line 6171 "configure"
6171 #include "confdefs.h"
6172 /* Override any gcc2 internal prototype to avoid an error. */
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6183 eval "ac_cv_lib_$ac_lib_var=yes"
6185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6188 eval "ac_cv_lib_$ac_lib_var=no"
6191 LIBS="$ac_save_LIBS"
6194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6195 echo "$ac_t""yes" 1>&6
6196 cat >> confdefs.h <<\EOF
6197 #define HAVE_STRFTIME 1
6202 echo "$ac_t""no" 1>&6
6207 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
6208 echo "configure:6209: checking for vprintf" >&5
6209 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
6210 echo $ac_n "(cached) $ac_c" 1>&6
6212 cat > conftest.$ac_ext <<EOF
6213 #line 6214 "configure"
6214 #include "confdefs.h"
6215 /* System header to define __stub macros and hopefully few prototypes,
6216 which can conflict with char vprintf(); below. */
6218 /* Override any gcc2 internal prototype to avoid an error. */
6219 /* We use char because int might match the return type of a gcc2
6220 builtin and then its argument prototype would still apply. */
6225 /* The GNU C library defines this for functions which it implements
6226 to always fail with ENOSYS. Some functions are actually named
6227 something starting with __ and the normal name is an alias. */
6228 #if defined (__stub_vprintf) || defined (__stub___vprintf)
6236 if { (eval echo configure:6237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6238 eval "ac_cv_func_vprintf=yes"
6240 echo "configure: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6243 eval "ac_cv_func_vprintf=no"
6248 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
6249 echo "$ac_t""yes" 1>&6
6250 cat >> confdefs.h <<\EOF
6251 #define HAVE_VPRINTF 1
6255 echo "$ac_t""no" 1>&6
6258 if test "$ac_cv_func_vprintf" != yes; then
6259 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6260 echo "configure:6261: checking for _doprnt" >&5
6261 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
6262 echo $ac_n "(cached) $ac_c" 1>&6
6264 cat > conftest.$ac_ext <<EOF
6265 #line 6266 "configure"
6266 #include "confdefs.h"
6267 /* System header to define __stub macros and hopefully few prototypes,
6268 which can conflict with char _doprnt(); below. */
6270 /* Override any gcc2 internal prototype to avoid an error. */
6271 /* We use char because int might match the return type of a gcc2
6272 builtin and then its argument prototype would still apply. */
6277 /* The GNU C library defines this for functions which it implements
6278 to always fail with ENOSYS. Some functions are actually named
6279 something starting with __ and the normal name is an alias. */
6280 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6288 if { (eval echo configure:6289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6290 eval "ac_cv_func__doprnt=yes"
6292 echo "configure: failed program was:" >&5
6293 cat conftest.$ac_ext >&5
6295 eval "ac_cv_func__doprnt=no"
6300 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
6301 echo "$ac_t""yes" 1>&6
6302 cat >> confdefs.h <<\EOF
6303 #define HAVE_DOPRNT 1
6307 echo "$ac_t""no" 1>&6
6313 if test $ac_cv_func_vprintf = yes ; then
6314 for ac_func in vsnprintf
6316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6317 echo "configure:6318: checking for $ac_func" >&5
6318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6321 cat > conftest.$ac_ext <<EOF
6322 #line 6323 "configure"
6323 #include "confdefs.h"
6324 /* System header to define __stub macros and hopefully few prototypes,
6325 which can conflict with char $ac_func(); below. */
6327 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */
6334 /* The GNU C library defines this for functions which it implements
6335 to always fail with ENOSYS. Some functions are actually named
6336 something starting with __ and the normal name is an alias. */
6337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6345 if { (eval echo configure:6346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6347 eval "ac_cv_func_$ac_func=yes"
6349 echo "configure: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6352 eval "ac_cv_func_$ac_func=no"
6357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6358 echo "$ac_t""yes" 1>&6
6359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6360 cat >> confdefs.h <<EOF
6361 #define $ac_tr_func 1
6365 echo "$ac_t""no" 1>&6
6371 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
6372 echo "configure:6373: checking for wait3 that fills in rusage" >&5
6373 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
6374 echo $ac_n "(cached) $ac_c" 1>&6
6376 if test "$cross_compiling" = yes; then
6377 ac_cv_func_wait3_rusage=no
6379 cat > conftest.$ac_ext <<EOF
6380 #line 6381 "configure"
6381 #include "confdefs.h"
6382 #include <sys/types.h>
6383 #include <sys/time.h>
6384 #include <sys/resource.h>
6386 /* HP-UX has wait3 but does not fill in rusage at all. */
6390 /* Use a field that we can force nonzero --
6391 voluntary context switches.
6392 For systems like NeXT and OSF/1 that don't set it,
6393 also use the system CPU time. And page faults (I/O) for Linux. */
6395 r.ru_stime.tv_sec = 0;
6396 r.ru_stime.tv_usec = 0;
6397 r.ru_majflt = r.ru_minflt = 0;
6399 case 0: /* Child. */
6400 sleep(1); /* Give up the CPU. */
6402 case -1: _exit(0); /* What can we do? */
6403 default: /* Parent. */
6405 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
6406 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
6407 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6413 ac_cv_func_wait3_rusage=yes
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 ac_cv_func_wait3_rusage=no
6425 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
6426 if test $ac_cv_func_wait3_rusage = yes; then
6427 cat >> confdefs.h <<\EOF
6428 #define HAVE_WAIT3 1
6465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6466 echo "configure:6467: checking for $ac_func" >&5
6467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 cat > conftest.$ac_ext <<EOF
6471 #line 6472 "configure"
6472 #include "confdefs.h"
6473 /* System header to define __stub macros and hopefully few prototypes,
6474 which can conflict with char $ac_func(); below. */
6476 /* Override any gcc2 internal prototype to avoid an error. */
6477 /* We use char because int might match the return type of a gcc2
6478 builtin and then its argument prototype would still apply. */
6483 /* The GNU C library defines this for functions which it implements
6484 to always fail with ENOSYS. Some functions are actually named
6485 something starting with __ and the normal name is an alias. */
6486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6494 if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6496 eval "ac_cv_func_$ac_func=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6501 eval "ac_cv_func_$ac_func=no"
6506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6507 echo "$ac_t""yes" 1>&6
6508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6509 cat >> confdefs.h <<EOF
6510 #define $ac_tr_func 1
6514 echo "$ac_t""no" 1>&6
6519 for ac_func in getopt strdup tempnam
6521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6522 echo "configure:6523: checking for $ac_func" >&5
6523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6526 cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6529 /* System header to define __stub macros and hopefully few prototypes,
6530 which can conflict with char $ac_func(); below. */
6532 /* Override any gcc2 internal prototype to avoid an error. */
6533 /* We use char because int might match the return type of a gcc2
6534 builtin and then its argument prototype would still apply. */
6539 /* The GNU C library defines this for functions which it implements
6540 to always fail with ENOSYS. Some functions are actually named
6541 something starting with __ and the normal name is an alias. */
6542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6550 if { (eval echo configure:6551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6552 eval "ac_cv_func_$ac_func=yes"
6554 echo "configure: failed program was:" >&5
6555 cat conftest.$ac_ext >&5
6557 eval "ac_cv_func_$ac_func=no"
6562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6563 echo "$ac_t""yes" 1>&6
6564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6565 cat >> confdefs.h <<EOF
6566 #define $ac_tr_func 1
6570 echo "$ac_t""no" 1>&6
6571 LIBOBJS="$LIBOBJS ${ac_func}.o"
6577 # Check Configuration
6579 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
6580 echo "configure:6581: checking declaration of sys_errlist" >&5
6581 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6585 cat > conftest.$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6590 #include <sys/types.h>
6593 char *c = (char *) *sys_errlist
6596 if { (eval echo configure:6597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6598 ol_cv_dcl_sys_errlist=yes
6600 echo "configure: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6603 ol_cv_dcl_sys_errlist=no
6608 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
6610 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
6611 if test $ol_cv_dcl_sys_errlist = no ; then
6612 cat >> confdefs.h <<\EOF
6613 #define DECL_SYS_ERRLIST 1
6616 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
6617 echo "configure:6618: checking existence of sys_errlist" >&5
6618 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6622 cat > conftest.$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6627 char *c = (char *) *sys_errlist
6630 if { (eval echo configure:6631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6632 ol_cv_have_sys_errlist=yes
6634 echo "configure: failed program was:" >&5
6635 cat conftest.$ac_ext >&5
6637 ol_cv_have_sys_errlist=no
6642 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
6647 if test $ol_enable_debug != no ; then
6648 cat >> confdefs.h <<\EOF
6649 #define LDAP_DEBUG 1
6653 if test $ol_enable_libui = yes ; then
6654 cat >> confdefs.h <<\EOF
6655 #define LDAP_LIBUI 1
6659 if test $ol_enable_cache = no ; then
6660 cat >> confdefs.h <<\EOF
6661 #define LDAP_NOCACHE 1
6665 if test $ol_enable_dns != no ; then
6666 cat >> confdefs.h <<\EOF
6671 if test $ol_enable_proctitle != no ; then
6672 cat >> confdefs.h <<\EOF
6673 #define LDAP_PROCTITLE 1
6677 if test $ol_enable_referrals != no ; then
6678 cat >> confdefs.h <<\EOF
6679 #define LDAP_REFERRALS 1
6683 if test $ol_enable_cldap != no ; then
6684 cat >> confdefs.h <<\EOF
6685 #define LDAP_CONNECTIONLESS 1
6690 if test $ol_enable_aclgroups != no ; then
6691 cat >> confdefs.h <<\EOF
6692 #define SLAPD_ACLGROUPS 1
6696 if test $ol_enable_crypt != no ; then
6697 cat >> confdefs.h <<\EOF
6698 #define SLAPD_CRYPT 1
6702 if test $ol_enable_md5 != no ; then
6703 cat >> confdefs.h <<\EOF
6708 if test $ol_enable_sha1 != no ; then
6709 cat >> confdefs.h <<\EOF
6710 #define SLAPD_SHA1 1
6714 if test $ol_enable_phonetic != no ; then
6715 cat >> confdefs.h <<\EOF
6716 #define SLAPD_PHONETIC 1
6720 if test $ol_enable_rlookups != no ; then
6721 cat >> confdefs.h <<\EOF
6722 #define SLAPD_RLOOKUPS 1
6727 if test $ol_link_ldbm != no ; then
6728 cat >> confdefs.h <<\EOF
6729 #define SLAPD_LDBM 1
6736 if test $ol_enable_passwd != no ; then
6737 cat >> confdefs.h <<\EOF
6738 #define SLAPD_PASSWD 1
6745 if test $ol_enable_shell != no ; then
6746 cat >> confdefs.h <<\EOF
6747 #define SLAPD_SHELL 1
6754 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
6755 $BUILD_SLAPD = yes ; then
6759 if test $ol_enable_ldapd != no ; then
6786 cat > confcache <<\EOF
6787 # This file is a shell script that caches the results of configure
6788 # tests run on this system so they can be shared between configure
6789 # scripts and configure runs. It is not useful on other systems.
6790 # If it contains results you don't want to keep, you may remove or edit it.
6792 # By default, configure uses ./config.cache as the cache file,
6793 # creating it if it does not exist already. You can give configure
6794 # the --cache-file=FILE option to use a different cache file; that is
6795 # what configure does when it calls configure scripts in
6796 # subdirectories, so they share the cache.
6797 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6798 # config.status only pays attention to the cache file if you give it the
6799 # --recheck option to rerun configure.
6802 # The following way of writing the cache mishandles newlines in values,
6803 # but we know of no workaround that is simple, portable, and efficient.
6804 # So, don't put newlines in cache variables' values.
6805 # Ultrix sh set writes to stderr and can't be redirected directly,
6806 # and sets the high bit in the cache file unless we assign to the vars.
6808 case `(ac_space=' '; set) 2>&1` in
6810 # `set' does not quote correctly, so add quotes (double-quote substitution
6811 # turns \\\\ into \\, and sed turns \\ into \).
6813 -e "s/'/'\\\\''/g" \
6814 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6817 # `set' quotes correctly as required by POSIX, so do not add quotes.
6818 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6821 if cmp -s $cache_file confcache; then
6824 if test -w $cache_file; then
6825 echo "updating cache $cache_file"
6826 cat confcache > $cache_file
6828 echo "not updating unwritable cache $cache_file"
6833 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6836 # Let make expand exec_prefix.
6837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6839 # Any assignment to VPATH causes Sun make to only execute
6840 # the first set of double-colon rules, so remove it if not needed.
6841 # If there is a colon in the path, we need to keep it.
6842 if test "x$srcdir" = x.; then
6843 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6846 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6848 DEFS=-DHAVE_CONFIG_H
6850 # Without the "./", some shells look in PATH for config.status.
6851 : ${CONFIG_STATUS=./config.status}
6853 echo creating $CONFIG_STATUS
6854 rm -f $CONFIG_STATUS
6855 cat > $CONFIG_STATUS <<EOF
6857 # Generated automatically by configure.
6858 # Run this file to recreate the current configuration.
6859 # This directory was configured as follows,
6860 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6862 # $0 $ac_configure_args
6864 # Compiler output produced by configure, useful for debugging
6865 # configure, is in ./config.log if it exists.
6867 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6870 case "\$ac_option" in
6871 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6872 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6873 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6874 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6875 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6877 -help | --help | --hel | --he | --h)
6878 echo "\$ac_cs_usage"; exit 0 ;;
6879 *) echo "\$ac_cs_usage"; exit 1 ;;
6883 ac_given_srcdir=$srcdir
6884 ac_given_INSTALL="$INSTALL"
6886 trap 'rm -fr `echo "\
6887 Makefile:build/top.mk:Makefile.in:build/dir.mk \
6888 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
6889 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
6890 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
6891 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
6892 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
6893 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
6894 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
6895 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
6896 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
6897 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
6898 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
6899 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
6900 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
6901 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
6902 include/Makefile:build/top.mk:include/Makefile.in \
6903 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
6904 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
6905 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
6906 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
6907 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
6908 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
6909 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
6910 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
6911 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
6912 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
6913 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
6914 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
6915 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
6916 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
6917 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
6918 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
6919 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
6920 tests/Makefile:build/top.mk:tests/Makefile.in \
6921 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6923 cat >> $CONFIG_STATUS <<EOF
6925 # Protect against being on the right side of a sed subst in config.status.
6926 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6927 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6930 s%@CFLAGS@%$CFLAGS%g
6931 s%@CPPFLAGS@%$CPPFLAGS%g
6932 s%@CXXFLAGS@%$CXXFLAGS%g
6934 s%@LDFLAGS@%$LDFLAGS%g
6936 s%@exec_prefix@%$exec_prefix%g
6937 s%@prefix@%$prefix%g
6938 s%@program_transform_name@%$program_transform_name%g
6939 s%@bindir@%$bindir%g
6940 s%@sbindir@%$sbindir%g
6941 s%@libexecdir@%$libexecdir%g
6942 s%@datadir@%$datadir%g
6943 s%@sysconfdir@%$sysconfdir%g
6944 s%@sharedstatedir@%$sharedstatedir%g
6945 s%@localstatedir@%$localstatedir%g
6946 s%@libdir@%$libdir%g
6947 s%@includedir@%$includedir%g
6948 s%@oldincludedir@%$oldincludedir%g
6949 s%@infodir@%$infodir%g
6950 s%@mandir@%$mandir%g
6952 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6953 s%@INSTALL_DATA@%$INSTALL_DATA%g
6954 s%@RANLIB@%$RANLIB%g
6955 s%@SET_MAKE@%$SET_MAKE%g
6956 s%@SENDMAIL@%$SENDMAIL%g
6957 s%@EDITOR@%$EDITOR%g
6958 s%@FINGER@%$FINGER%g
6961 s%@LIBOBJS@%$LIBOBJS%g
6962 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
6963 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
6964 s%@BUILD_LDBM@%$BUILD_LDBM%g
6965 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
6966 s%@BUILD_SHELL@%$BUILD_SHELL%g
6967 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
6968 s%@LDAP_LIBS@%$LDAP_LIBS%g
6969 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
6970 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
6971 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
6972 s%@LDBM_LIBS@%$LDBM_LIBS%g
6973 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
6974 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
6975 s%@KRB_LIBS@%$KRB_LIBS%g
6976 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
6981 cat >> $CONFIG_STATUS <<\EOF
6983 # Split the substitutions into bite-sized pieces for seds with
6984 # small command number limits, like on Digital OSF/1 and HP-UX.
6985 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6986 ac_file=1 # Number of current file.
6987 ac_beg=1 # First line for current file.
6988 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6991 while $ac_more_lines; do
6992 if test $ac_beg -gt 1; then
6993 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6995 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6997 if test ! -s conftest.s$ac_file; then
6999 rm -f conftest.s$ac_file
7001 if test -z "$ac_sed_cmds"; then
7002 ac_sed_cmds="sed -f conftest.s$ac_file"
7004 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7006 ac_file=`expr $ac_file + 1`
7008 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7011 if test -z "$ac_sed_cmds"; then
7016 cat >> $CONFIG_STATUS <<EOF
7018 CONFIG_FILES=\${CONFIG_FILES-"\
7019 Makefile:build/top.mk:Makefile.in:build/dir.mk \
7020 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
7021 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
7022 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
7023 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
7024 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
7025 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
7026 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
7027 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
7028 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
7029 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
7030 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
7031 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
7032 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
7033 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
7034 include/Makefile:build/top.mk:include/Makefile.in \
7035 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
7036 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
7037 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
7038 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
7039 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
7040 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
7041 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
7042 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
7043 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
7044 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
7045 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
7046 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
7047 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
7048 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
7049 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
7050 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
7051 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
7052 tests/Makefile:build/top.mk:tests/Makefile.in \
7055 cat >> $CONFIG_STATUS <<\EOF
7056 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7057 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7059 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7060 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7061 *) ac_file_in="${ac_file}.in" ;;
7064 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7066 # Remove last slash and all that follows it. Not all systems have dirname.
7067 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7068 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7069 # The file is in a subdirectory.
7070 test ! -d "$ac_dir" && mkdir "$ac_dir"
7071 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7072 # A "../" for each directory in $ac_dir_suffix.
7073 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7075 ac_dir_suffix= ac_dots=
7078 case "$ac_given_srcdir" in
7080 if test -z "$ac_dots"; then top_srcdir=.
7081 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7082 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7084 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7085 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7088 case "$ac_given_INSTALL" in
7089 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7090 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7093 echo creating "$ac_file"
7095 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7097 *Makefile*) ac_comsub="1i\\
7098 # $configure_input" ;;
7102 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7104 s%@configure_input@%$configure_input%g
7105 s%@srcdir@%$srcdir%g
7106 s%@top_srcdir@%$top_srcdir%g
7107 s%@INSTALL@%$INSTALL%g
7108 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7112 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7113 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7115 # ac_d sets the value in "#define NAME VALUE" lines.
7116 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7117 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7120 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7121 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7122 ac_uB='\([ ]\)%\1#\2define\3'
7125 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7126 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7127 ac_eB='$%\1#\2define\3'
7131 if test "${CONFIG_HEADERS+set}" != set; then
7133 cat >> $CONFIG_STATUS <<EOF
7134 CONFIG_HEADERS="include/portable.h"
7136 cat >> $CONFIG_STATUS <<\EOF
7138 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7141 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7142 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7143 *) ac_file_in="${ac_file}.in" ;;
7146 echo creating $ac_file
7148 rm -f conftest.frag conftest.in conftest.out
7149 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7150 cat $ac_file_inputs > conftest.in
7154 # Transform confdefs.h into a sed script conftest.vals that substitutes
7155 # the proper values into config.h.in to produce config.h. And first:
7156 # Protect against being on the right side of a sed subst in config.status.
7157 # Protect against being in an unquoted here document in config.status.
7159 cat > conftest.hdr <<\EOF
7162 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7166 sed -n -f conftest.hdr confdefs.h > conftest.vals
7169 # This sed command replaces #undef with comments. This is necessary, for
7170 # example, in the case of _POSIX_SOURCE, which is predefined and required
7171 # on some systems where configure will not decide to define it.
7172 cat >> conftest.vals <<\EOF
7173 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7176 # Break up conftest.vals because some shells have a limit on
7177 # the size of here documents, and old seds have small limits too.
7182 ac_lines=`grep -c . conftest.vals`
7183 # grep -c gives empty output for an empty file on some AIX systems.
7184 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7185 # Write a limited-size here document to conftest.frag.
7186 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7187 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7189 sed -f conftest.frag conftest.in > conftest.out
7191 mv conftest.out conftest.in
7193 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7195 mv conftest.tail conftest.vals
7199 cat >> $CONFIG_STATUS <<\EOF
7200 rm -f conftest.frag conftest.h
7201 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7202 cat conftest.in >> conftest.h
7204 if cmp -s $ac_file conftest.h 2>/dev/null; then
7205 echo "$ac_file is unchanged"
7208 # Remove last slash and all that follows it. Not all systems have dirname.
7209 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7210 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7211 # The file is in a subdirectory.
7212 test ! -d "$ac_dir" && mkdir "$ac_dir"
7215 mv conftest.h $ac_file
7220 cat >> $CONFIG_STATUS <<EOF
7223 cat >> $CONFIG_STATUS <<\EOF
7226 echo Please \"make depend\" to build dependencies
7230 chmod +x $CONFIG_STATUS
7231 rm -fr confdefs* $ac_clean_files
7232 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1