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 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-proctitle enable proctitle support (yes)"
22 --enable-libui enable library user interface (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable dns support (no)"
28 --enable-referrals enable referrals (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --with-kerberos use Kerberos (auto)"
36 --with-threads use threads (auto)"
38 --with-yielding-select with implicitly yielding select (auto)"
42 --enable-ldapd enable building ldapd (no)"
46 --enable-slapd enable building slapd (yes)"
48 --enable-aclgroups enable ACL group support (auto)"
50 --enable-cleartext enable cleartext passwords (yes)"
52 --enable-crypt enable crypt(3) passwords (auto)"
54 --enable-wrappers enable tcp wrapper support (no)"
56 --enable-phonetic enable phonetic/soundex (no)"
58 --enable-rlookups enable reverse lookups (auto)"
60 --enable-ldbm enable ldbm backend (yes)"
62 --with-ldbm-api use LDBM API (auto)"
64 --with-ldbm-type use LDBM type (auto)"
66 --enable-passwd enable passwd backend (no)"
68 --enable-shell enable shell backend (no)"
72 --enable-slurpd enable building slurpd (auto)"
74 Library Generation & Linking Options"
76 --enable-static build static libraries [default=yes]
77 --enable-static=PKGS only build shared libraries if the current package
78 appears as an element in the PKGS list"
80 --enable-shared build shared libraries [default=no]
81 --enable-shared=PKGS only build shared libraries if the current package
82 appears as an element in the PKGS list"
84 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
86 # Initialize some variables set by options.
87 # The variables have the same names as the options, with
88 # dashes changed to underlines.
90 cache_file=./config.cache
99 program_transform_name=s,x,x,
107 bindir='${exec_prefix}/bin'
108 sbindir='${exec_prefix}/sbin'
109 libexecdir='${exec_prefix}/libexec'
110 datadir='${prefix}/share'
111 sysconfdir='${prefix}/etc'
112 sharedstatedir='${prefix}/com'
113 localstatedir='${prefix}/var'
114 libdir='${exec_prefix}/lib'
115 includedir='${prefix}/include'
116 oldincludedir='/usr/include'
117 infodir='${prefix}/info'
118 mandir='${prefix}/man'
120 # Initialize some other variables.
123 # Maximum number of lines to put in a shell here document.
130 # If the previous option needs an argument, assign it.
131 if test -n "$ac_prev"; then
132 eval "$ac_prev=\$ac_option"
138 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 # Accept the important Cygnus configure options, so we can diagnose typos.
146 -bindir | --bindir | --bindi | --bind | --bin | --bi)
148 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
149 bindir="$ac_optarg" ;;
151 -build | --build | --buil | --bui | --bu)
153 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
154 build="$ac_optarg" ;;
156 -cache-file | --cache-file | --cache-fil | --cache-fi \
157 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
158 ac_prev=cache_file ;;
159 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
160 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
161 cache_file="$ac_optarg" ;;
163 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
165 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
167 datadir="$ac_optarg" ;;
169 -disable-* | --disable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}=no" ;;
178 -enable-* | --enable-*)
179 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}='$ac_optarg'" ;;
191 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
192 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
193 | --exec | --exe | --ex)
194 ac_prev=exec_prefix ;;
195 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
196 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
197 | --exec=* | --exe=* | --ex=*)
198 exec_prefix="$ac_optarg" ;;
200 -gas | --gas | --ga | --g)
201 # Obsolete; use --with-gas.
204 -help | --help | --hel | --he)
205 # Omit some internal or obsolete options to make the list less imposing.
206 # This message is too long to be a string in the A/UX 3.1 sh.
208 Usage: configure [options] [host]
209 Options: [defaults in brackets after descriptions]
211 --cache-file=FILE cache test results in FILE
212 --help print this message
213 --no-create do not create output files
214 --quiet, --silent do not print \`checking...' messages
215 --version print the version of autoconf that created configure
216 Directory and file names:
217 --prefix=PREFIX install architecture-independent files in PREFIX
219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
221 --bindir=DIR user executables in DIR [EPREFIX/bin]
222 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
223 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
224 --datadir=DIR read-only architecture-independent data in DIR
226 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
227 --sharedstatedir=DIR modifiable architecture-independent data in DIR
229 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
230 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
231 --includedir=DIR C header files in DIR [PREFIX/include]
232 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
233 --infodir=DIR info documentation in DIR [PREFIX/info]
234 --mandir=DIR man documentation in DIR [PREFIX/man]
235 --srcdir=DIR find the sources in DIR [configure dir or ..]
236 --program-prefix=PREFIX prepend PREFIX to installed program names
237 --program-suffix=SUFFIX append SUFFIX to installed program names
238 --program-transform-name=PROGRAM
239 run sed PROGRAM on installed program names
243 --build=BUILD configure for building on BUILD [BUILD=HOST]
244 --host=HOST configure for HOST [guessed]
245 --target=TARGET configure for TARGET [TARGET=HOST]
246 Features and packages:
247 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
248 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
249 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
250 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
251 --x-includes=DIR X include files are in DIR
252 --x-libraries=DIR X library files are in DIR
254 if test -n "$ac_help"; then
255 echo "--enable and --with options recognized:$ac_help"
259 -host | --host | --hos | --ho)
261 -host=* | --host=* | --hos=* | --ho=*)
264 -includedir | --includedir | --includedi | --included | --include \
265 | --includ | --inclu | --incl | --inc)
266 ac_prev=includedir ;;
267 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
268 | --includ=* | --inclu=* | --incl=* | --inc=*)
269 includedir="$ac_optarg" ;;
271 -infodir | --infodir | --infodi | --infod | --info | --inf)
273 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
274 infodir="$ac_optarg" ;;
276 -libdir | --libdir | --libdi | --libd)
278 -libdir=* | --libdir=* | --libdi=* | --libd=*)
279 libdir="$ac_optarg" ;;
281 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
282 | --libexe | --libex | --libe)
283 ac_prev=libexecdir ;;
284 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
285 | --libexe=* | --libex=* | --libe=*)
286 libexecdir="$ac_optarg" ;;
288 -localstatedir | --localstatedir | --localstatedi | --localstated \
289 | --localstate | --localstat | --localsta | --localst \
290 | --locals | --local | --loca | --loc | --lo)
291 ac_prev=localstatedir ;;
292 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
293 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
294 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
295 localstatedir="$ac_optarg" ;;
297 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
299 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
300 mandir="$ac_optarg" ;;
303 # Obsolete; use --without-fp.
306 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
311 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
314 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
315 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
316 | --oldin | --oldi | --old | --ol | --o)
317 ac_prev=oldincludedir ;;
318 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
319 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
320 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
321 oldincludedir="$ac_optarg" ;;
323 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
325 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
326 prefix="$ac_optarg" ;;
328 -program-prefix | --program-prefix | --program-prefi | --program-pref \
329 | --program-pre | --program-pr | --program-p)
330 ac_prev=program_prefix ;;
331 -program-prefix=* | --program-prefix=* | --program-prefi=* \
332 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
333 program_prefix="$ac_optarg" ;;
335 -program-suffix | --program-suffix | --program-suffi | --program-suff \
336 | --program-suf | --program-su | --program-s)
337 ac_prev=program_suffix ;;
338 -program-suffix=* | --program-suffix=* | --program-suffi=* \
339 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
340 program_suffix="$ac_optarg" ;;
342 -program-transform-name | --program-transform-name \
343 | --program-transform-nam | --program-transform-na \
344 | --program-transform-n | --program-transform- \
345 | --program-transform | --program-transfor \
346 | --program-transfo | --program-transf \
347 | --program-trans | --program-tran \
348 | --progr-tra | --program-tr | --program-t)
349 ac_prev=program_transform_name ;;
350 -program-transform-name=* | --program-transform-name=* \
351 | --program-transform-nam=* | --program-transform-na=* \
352 | --program-transform-n=* | --program-transform-=* \
353 | --program-transform=* | --program-transfor=* \
354 | --program-transfo=* | --program-transf=* \
355 | --program-trans=* | --program-tran=* \
356 | --progr-tra=* | --program-tr=* | --program-t=*)
357 program_transform_name="$ac_optarg" ;;
359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
360 | -silent | --silent | --silen | --sile | --sil)
363 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
365 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
367 sbindir="$ac_optarg" ;;
369 -sharedstatedir | --sharedstatedir | --sharedstatedi \
370 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
371 | --sharedst | --shareds | --shared | --share | --shar \
373 ac_prev=sharedstatedir ;;
374 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
375 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
376 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
378 sharedstatedir="$ac_optarg" ;;
380 -site | --site | --sit)
382 -site=* | --site=* | --sit=*)
385 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
387 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
388 srcdir="$ac_optarg" ;;
390 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
391 | --syscon | --sysco | --sysc | --sys | --sy)
392 ac_prev=sysconfdir ;;
393 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
394 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
395 sysconfdir="$ac_optarg" ;;
397 -target | --target | --targe | --targ | --tar | --ta | --t)
399 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
400 target="$ac_optarg" ;;
402 -v | -verbose | --verbose | --verbos | --verbo | --verb)
405 -version | --version | --versio | --versi | --vers)
406 echo "configure generated by autoconf version 2.12"
410 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}='$ac_optarg'" ;;
422 -without-* | --without-*)
423 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 ac_package=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}=no" ;;
432 # Obsolete; use --with-x.
435 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
436 | --x-incl | --x-inc | --x-in | --x-i)
437 ac_prev=x_includes ;;
438 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
439 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
440 x_includes="$ac_optarg" ;;
442 -x-libraries | --x-libraries | --x-librarie | --x-librari \
443 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
444 ac_prev=x_libraries ;;
445 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
446 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
447 x_libraries="$ac_optarg" ;;
449 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
453 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
454 echo "configure: warning: $ac_option: invalid host type" 1>&2
456 if test "x$nonopt" != xNONE; then
457 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
465 if test -n "$ac_prev"; then
466 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
469 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
471 # File descriptor usage:
474 # 2 errors and warnings
475 # 3 some systems may open it to /dev/tty
476 # 4 used on the Kubota Titan
477 # 6 checking for... messages and results
478 # 5 compiler messages saved in config.log
479 if test "$silent" = yes; then
487 This file contains any messages produced by compilers while
488 running configure, to aid debugging if configure makes a mistake.
491 # Strip out --no-create and --no-recursion so they do not pile up.
492 # Also quote any args containing shell metacharacters.
497 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
498 | --no-cr | --no-c) ;;
499 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
500 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
502 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
503 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
508 # Only set these to C if already set. These must not be set unconditionally
509 # because not all systems understand e.g. LANG=C (notably SCO).
510 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
511 # Non-C LC_CTYPE values break the ctype check.
512 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
513 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
514 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
515 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
517 # confdefs.h avoids OS command line length limits that DEFS can exceed.
518 rm -rf conftest* confdefs.h
519 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
522 # A filename unique to this package, relative to the directory that
523 # configure is in, which we can look for to find out if srcdir is correct.
524 ac_unique_file=include/ldap.h
526 # Find the source files, if location was not specified.
527 if test -z "$srcdir"; then
528 ac_srcdir_defaulted=yes
529 # Try the directory containing this script, then its parent.
531 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
532 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
534 if test ! -r $srcdir/$ac_unique_file; then
538 ac_srcdir_defaulted=no
540 if test ! -r $srcdir/$ac_unique_file; then
541 if test "$ac_srcdir_defaulted" = yes; then
542 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
544 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
547 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
549 # Prefer explicitly selected file to automatically selected ones.
550 if test -z "$CONFIG_SITE"; then
551 if test "x$prefix" != xNONE; then
552 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
554 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
557 for ac_site_file in $CONFIG_SITE; do
558 if test -r "$ac_site_file"; then
559 echo "loading site script $ac_site_file"
564 if test -r "$cache_file"; then
565 echo "loading cache $cache_file"
568 echo "creating cache $cache_file"
573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
574 ac_cpp='$CPP $CPPFLAGS'
575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
576 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
577 cross_compiling=$ac_cv_prog_cc_cross
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
588 ac_n= ac_c='\c' ac_t=
592 for ac_dir in build $srcdir/build; do
593 if test -f $ac_dir/install-sh; then
595 ac_install_sh="$ac_aux_dir/install-sh -c"
597 elif test -f $ac_dir/install.sh; then
599 ac_install_sh="$ac_aux_dir/install.sh -c"
603 if test -z "$ac_aux_dir"; then
604 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
606 ac_config_guess=$ac_aux_dir/config.guess
607 ac_config_sub=$ac_aux_dir/config.sub
608 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
609 # Find a good install program. We prefer a C program (faster),
610 # so one script is as good as another. But avoid the broken or
611 # incompatible versions:
612 # SysV /etc/install, /usr/sbin/install
613 # SunOS /usr/etc/install
616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
618 # ./install, which can be erroneously created by make from ./install.sh.
619 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
620 echo "configure:621: checking for a BSD compatible install" >&5
621 if test -z "$INSTALL"; then
622 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
625 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
626 for ac_dir in $PATH; do
627 # Account for people who put trailing slashes in PATH elements.
629 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
631 # OSF1 and SCO ODT 3.0 have their own names for install.
632 for ac_prog in ginstall installbsd scoinst install; do
633 if test -f $ac_dir/$ac_prog; then
634 if test $ac_prog = install &&
635 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
636 # AIX install. It has an incompatible calling convention.
637 # OSF/1 installbsd also uses dspmsg, but is usable.
640 ac_cv_path_install="$ac_dir/$ac_prog -c"
651 if test "${ac_cv_path_install+set}" = set; then
652 INSTALL="$ac_cv_path_install"
654 # As a last resort, use the slow shell script. We don't cache a
655 # path for INSTALL within a source directory, because that will
656 # break other packages using the cache if that directory is
657 # removed, or if the path is relative.
658 INSTALL="$ac_install_sh"
661 echo "$ac_t""$INSTALL" 1>&6
663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
664 # It thinks the first close brace ends the variable substitution.
665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
670 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
672 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
673 echo "configure:674: checking whether build environment is sane" >&5
676 echo timestamp > conftestfile
677 # Do `set' in a subshell so we don't clobber the current shell's
678 # arguments. Must try -L first in case configure is actually a
679 # symlink; some systems play weird games with the mod time of symlinks
680 # (eg FreeBSD returns the mod time of the symlink's containing
683 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
684 if test "$*" = "X"; then
686 set X `ls -t $srcdir/configure conftestfile`
688 if test "$*" != "X $srcdir/configure conftestfile" \
689 && test "$*" != "X conftestfile $srcdir/configure"; then
691 # If neither matched, then we have a broken ls. This can happen
692 # if, for instance, CONFIG_SHELL is bash and it inherits a
693 # broken ls alias from the environment. This has actually
694 # happened. Such a system could not be considered "sane".
695 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
696 alias in your environment" 1>&2; exit 1; }
699 test "$2" = conftestfile
705 { echo "configure: error: newly created file is older than distributed files!
706 Check your system clock" 1>&2; exit 1; }
709 echo "$ac_t""yes" 1>&6
710 if test "$program_transform_name" = s,x,x,; then
711 program_transform_name=
713 # Double any \ or $. echo might interpret backslashes.
714 cat <<\EOF_SED > conftestsed
715 s,\\,\\\\,g; s,\$,$$,g
717 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
720 test "$program_prefix" != NONE &&
721 program_transform_name="s,^,${program_prefix},; $program_transform_name"
722 # Use a double $ so make ignores it.
723 test "$program_suffix" != NONE &&
724 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
726 # sed with no file args requires a program.
727 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
729 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
730 echo "configure:731: checking whether ${MAKE-make} sets \${MAKE}" >&5
731 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
732 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
735 cat > conftestmake <<\EOF
737 @echo 'ac_maketemp="${MAKE}"'
739 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
740 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
741 if test -n "$ac_maketemp"; then
742 eval ac_cv_prog_make_${ac_make}_set=yes
744 eval ac_cv_prog_make_${ac_make}_set=no
748 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
749 echo "$ac_t""yes" 1>&6
752 echo "$ac_t""no" 1>&6
753 SET_MAKE="MAKE=${MAKE-make}"
761 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
762 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
767 missing_dir=`cd $ac_aux_dir && pwd`
768 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
769 echo "configure:770: checking for working aclocal" >&5
770 # Run test in a subshell; some versions of sh will print an error if
771 # an executable is not found, even if stderr is redirected.
772 # Redirect stdin to placate older versions of autoconf. Sigh.
773 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
775 echo "$ac_t""found" 1>&6
777 ACLOCAL="$missing_dir/missing aclocal"
778 echo "$ac_t""missing" 1>&6
781 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
782 echo "configure:783: checking for working autoconf" >&5
783 # Run test in a subshell; some versions of sh will print an error if
784 # an executable is not found, even if stderr is redirected.
785 # Redirect stdin to placate older versions of autoconf. Sigh.
786 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
788 echo "$ac_t""found" 1>&6
790 AUTOCONF="$missing_dir/missing autoconf"
791 echo "$ac_t""missing" 1>&6
794 echo $ac_n "checking for working automake""... $ac_c" 1>&6
795 echo "configure:796: checking for working automake" >&5
796 # Run test in a subshell; some versions of sh will print an error if
797 # an executable is not found, even if stderr is redirected.
798 # Redirect stdin to placate older versions of autoconf. Sigh.
799 if (automake --version) < /dev/null > /dev/null 2>&1; then
801 echo "$ac_t""found" 1>&6
803 AUTOMAKE="$missing_dir/missing automake"
804 echo "$ac_t""missing" 1>&6
807 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
808 echo "configure:809: checking for working autoheader" >&5
809 # Run test in a subshell; some versions of sh will print an error if
810 # an executable is not found, even if stderr is redirected.
811 # Redirect stdin to placate older versions of autoconf. Sigh.
812 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
813 AUTOHEADER=autoheader
814 echo "$ac_t""found" 1>&6
816 AUTOHEADER="$missing_dir/missing autoheader"
817 echo "$ac_t""missing" 1>&6
820 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
821 echo "configure:822: checking for working makeinfo" >&5
822 # Run test in a subshell; some versions of sh will print an error if
823 # an executable is not found, even if stderr is redirected.
824 # Redirect stdin to placate older versions of autoconf. Sigh.
825 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
827 echo "$ac_t""found" 1>&6
829 MAKEINFO="$missing_dir/missing makeinfo"
830 echo "$ac_t""missing" 1>&6
836 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
837 echo "configure:838: checking configure arguments" >&5
842 ldap_subdir="openldap"
844 # Check whether --with-subdir or --without-subdir was given.
845 if test "${with_subdir+set}" = set; then
846 withval="$with_subdir"
848 if test "$withval" = "no"; then
850 elif test "$withval" != "yes"; then
851 ldap_subdir="$withval"
857 # OpenLDAP --enable-debug
858 # Check whether --enable-debug or --disable-debug was given.
859 if test "${enable_debug+set}" = set; then
860 enableval="$enable_debug"
863 for ol_val in auto yes no ; do
864 if test "$enableval" = "$ol_val" ; then
868 if test "$ol_arg" = "invalid" ; then
869 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
871 ol_enable_debug="$ol_arg"
874 ol_enable_debug="yes"
877 # OpenLDAP --enable-proctitle
878 # Check whether --enable-proctitle or --disable-proctitle was given.
879 if test "${enable_proctitle+set}" = set; then
880 enableval="$enable_proctitle"
883 for ol_val in auto yes no ; do
884 if test "$enableval" = "$ol_val" ; then
888 if test "$ol_arg" = "invalid" ; then
889 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
891 ol_enable_proctitle="$ol_arg"
894 ol_enable_proctitle="yes"
896 # end --enable-proctitle
897 # OpenLDAP --enable-libui
898 # Check whether --enable-libui or --disable-libui was given.
899 if test "${enable_libui+set}" = set; then
900 enableval="$enable_libui"
903 for ol_val in auto yes no ; do
904 if test "$enableval" = "$ol_val" ; then
908 if test "$ol_arg" = "invalid" ; then
909 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
911 ol_enable_libui="$ol_arg"
914 ol_enable_libui="yes"
917 # OpenLDAP --enable-cache
918 # Check whether --enable-cache or --disable-cache was given.
919 if test "${enable_cache+set}" = set; then
920 enableval="$enable_cache"
923 for ol_val in auto yes no ; do
924 if test "$enableval" = "$ol_val" ; then
928 if test "$ol_arg" = "invalid" ; then
929 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
931 ol_enable_cache="$ol_arg"
934 ol_enable_cache="yes"
937 # OpenLDAP --enable-dns
938 # Check whether --enable-dns or --disable-dns was given.
939 if test "${enable_dns+set}" = set; then
940 enableval="$enable_dns"
943 for ol_val in auto yes no ; do
944 if test "$enableval" = "$ol_val" ; then
948 if test "$ol_arg" = "invalid" ; then
949 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
951 ol_enable_dns="$ol_arg"
957 # OpenLDAP --enable-referrals
958 # Check whether --enable-referrals or --disable-referrals was given.
959 if test "${enable_referrals+set}" = set; then
960 enableval="$enable_referrals"
963 for ol_val in auto yes no ; do
964 if test "$enableval" = "$ol_val" ; then
968 if test "$ol_arg" = "invalid" ; then
969 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
971 ol_enable_referrals="$ol_arg"
974 ol_enable_referrals="yes"
976 # end --enable-referrals
977 # OpenLDAP --enable-cldap
978 # Check whether --enable-cldap or --disable-cldap was given.
979 if test "${enable_cldap+set}" = set; then
980 enableval="$enable_cldap"
983 for ol_val in auto yes no ; do
984 if test "$enableval" = "$ol_val" ; then
988 if test "$ol_arg" = "invalid" ; then
989 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
991 ol_enable_cldap="$ol_arg"
997 # OpenLDAP --enable-x_compile
998 # Check whether --enable-x_compile or --disable-x_compile was given.
999 if test "${enable_x_compile+set}" = set; then
1000 enableval="$enable_x_compile"
1003 for ol_val in yes no ; do
1004 if test "$enableval" = "$ol_val" ; then
1008 if test "$ol_arg" = "invalid" ; then
1009 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1011 ol_enable_x_compile="$ol_arg"
1014 ol_enable_x_compile="no"
1016 # end --enable-x_compile
1018 # OpenLDAP --with-kerberos
1019 # Check whether --with-kerberos or --without-kerberos was given.
1020 if test "${with_kerberos+set}" = set; then
1021 withval="$with_kerberos"
1024 for ol_val in auto k5 k4 afs yes no ; do
1025 if test "$withval" = "$ol_val" ; then
1029 if test "$ol_arg" = "invalid" ; then
1030 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1032 ol_with_kerberos="$ol_arg"
1035 ol_with_kerberos="auto"
1037 # end --with-kerberos
1039 # OpenLDAP --with-threads
1040 # Check whether --with-threads or --without-threads was given.
1041 if test "${with_threads+set}" = set; then
1042 withval="$with_threads"
1045 for ol_val in auto posix mach lwp yes no manual ; do
1046 if test "$withval" = "$ol_val" ; then
1050 if test "$ol_arg" = "invalid" ; then
1051 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1053 ol_with_threads="$ol_arg"
1056 ol_with_threads="auto"
1058 # end --with-threads
1060 # OpenLDAP --with-yielding_select
1061 # Check whether --with-yielding_select or --without-yielding_select was given.
1062 if test "${with_yielding_select+set}" = set; then
1063 withval="$with_yielding_select"
1066 for ol_val in auto yes no manual ; do
1067 if test "$withval" = "$ol_val" ; then
1071 if test "$ol_arg" = "invalid" ; then
1072 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1074 ol_with_yielding_select="$ol_arg"
1077 ol_with_yielding_select="auto"
1079 # end --with-yielding_select
1083 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1084 if test "${with_xxldapdoptions+set}" = set; then
1085 withval="$with_xxldapdoptions"
1089 # OpenLDAP --enable-ldapd
1090 # Check whether --enable-ldapd or --disable-ldapd was given.
1091 if test "${enable_ldapd+set}" = set; then
1092 enableval="$enable_ldapd"
1095 for ol_val in auto yes no ; do
1096 if test "$enableval" = "$ol_val" ; then
1100 if test "$ol_arg" = "invalid" ; then
1101 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1103 ol_enable_ldapd="$ol_arg"
1106 ol_enable_ldapd="no"
1108 # end --enable-ldapd
1110 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1111 if test "${with_xxslapdoptions+set}" = set; then
1112 withval="$with_xxslapdoptions"
1116 # OpenLDAP --enable-slapd
1117 # Check whether --enable-slapd or --disable-slapd was given.
1118 if test "${enable_slapd+set}" = set; then
1119 enableval="$enable_slapd"
1122 for ol_val in auto yes no ; do
1123 if test "$enableval" = "$ol_val" ; then
1127 if test "$ol_arg" = "invalid" ; then
1128 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1130 ol_enable_slapd="$ol_arg"
1133 ol_enable_slapd="yes"
1135 # end --enable-slapd
1136 # OpenLDAP --enable-aclgroups
1137 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1138 if test "${enable_aclgroups+set}" = set; then
1139 enableval="$enable_aclgroups"
1142 for ol_val in auto yes no ; do
1143 if test "$enableval" = "$ol_val" ; then
1147 if test "$ol_arg" = "invalid" ; then
1148 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1150 ol_enable_aclgroups="$ol_arg"
1153 ol_enable_aclgroups="auto"
1155 # end --enable-aclgroups
1156 # OpenLDAP --enable-cleartext
1157 # Check whether --enable-cleartext or --disable-cleartext was given.
1158 if test "${enable_cleartext+set}" = set; then
1159 enableval="$enable_cleartext"
1162 for ol_val in auto yes no ; do
1163 if test "$enableval" = "$ol_val" ; then
1167 if test "$ol_arg" = "invalid" ; then
1168 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1170 ol_enable_cleartext="$ol_arg"
1173 ol_enable_cleartext="yes"
1175 # end --enable-cleartext
1176 # OpenLDAP --enable-crypt
1177 # Check whether --enable-crypt or --disable-crypt was given.
1178 if test "${enable_crypt+set}" = set; then
1179 enableval="$enable_crypt"
1182 for ol_val in auto yes no ; do
1183 if test "$enableval" = "$ol_val" ; then
1187 if test "$ol_arg" = "invalid" ; then
1188 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1190 ol_enable_crypt="$ol_arg"
1193 ol_enable_crypt="auto"
1195 # end --enable-crypt
1196 # OpenLDAP --enable-wrappers
1197 # Check whether --enable-wrappers or --disable-wrappers was given.
1198 if test "${enable_wrappers+set}" = set; then
1199 enableval="$enable_wrappers"
1202 for ol_val in auto yes no ; do
1203 if test "$enableval" = "$ol_val" ; then
1207 if test "$ol_arg" = "invalid" ; then
1208 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1210 ol_enable_wrappers="$ol_arg"
1213 ol_enable_wrappers="no"
1215 # end --enable-wrappers
1216 # OpenLDAP --enable-phonetic
1217 # Check whether --enable-phonetic or --disable-phonetic was given.
1218 if test "${enable_phonetic+set}" = set; then
1219 enableval="$enable_phonetic"
1222 for ol_val in auto yes no ; do
1223 if test "$enableval" = "$ol_val" ; then
1227 if test "$ol_arg" = "invalid" ; then
1228 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1230 ol_enable_phonetic="$ol_arg"
1233 ol_enable_phonetic="no"
1235 # end --enable-phonetic
1236 # OpenLDAP --enable-rlookups
1237 # Check whether --enable-rlookups or --disable-rlookups was given.
1238 if test "${enable_rlookups+set}" = set; then
1239 enableval="$enable_rlookups"
1242 for ol_val in auto yes no ; do
1243 if test "$enableval" = "$ol_val" ; then
1247 if test "$ol_arg" = "invalid" ; then
1248 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1250 ol_enable_rlookups="$ol_arg"
1253 ol_enable_rlookups="auto"
1255 # end --enable-rlookups
1257 # OpenLDAP --enable-ldbm
1258 # Check whether --enable-ldbm or --disable-ldbm was given.
1259 if test "${enable_ldbm+set}" = set; then
1260 enableval="$enable_ldbm"
1263 for ol_val in auto yes no ; do
1264 if test "$enableval" = "$ol_val" ; then
1268 if test "$ol_arg" = "invalid" ; then
1269 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1271 ol_enable_ldbm="$ol_arg"
1274 ol_enable_ldbm="yes"
1277 # OpenLDAP --with-ldbm_api
1278 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1279 if test "${with_ldbm_api+set}" = set; then
1280 withval="$with_ldbm_api"
1283 for ol_val in auto db2 db gdbm ndbm manual ; do
1284 if test "$withval" = "$ol_val" ; then
1288 if test "$ol_arg" = "invalid" ; then
1289 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1291 ol_with_ldbm_api="$ol_arg"
1294 ol_with_ldbm_api="auto"
1296 # end --with-ldbm_api
1298 # OpenLDAP --with-ldbm_type
1299 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1300 if test "${with_ldbm_type+set}" = set; then
1301 withval="$with_ldbm_type"
1304 for ol_val in auto btree hash ; do
1305 if test "$withval" = "$ol_val" ; then
1309 if test "$ol_arg" = "invalid" ; then
1310 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1312 ol_with_ldbm_type="$ol_arg"
1315 ol_with_ldbm_type="auto"
1317 # end --with-ldbm_type
1320 # OpenLDAP --enable-passwd
1321 # Check whether --enable-passwd or --disable-passwd was given.
1322 if test "${enable_passwd+set}" = set; then
1323 enableval="$enable_passwd"
1326 for ol_val in auto yes no ; do
1327 if test "$enableval" = "$ol_val" ; then
1331 if test "$ol_arg" = "invalid" ; then
1332 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1334 ol_enable_passwd="$ol_arg"
1337 ol_enable_passwd="no"
1339 # end --enable-passwd
1340 # OpenLDAP --enable-shell
1341 # Check whether --enable-shell or --disable-shell was given.
1342 if test "${enable_shell+set}" = set; then
1343 enableval="$enable_shell"
1346 for ol_val in auto yes no ; do
1347 if test "$enableval" = "$ol_val" ; then
1351 if test "$ol_arg" = "invalid" ; then
1352 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1354 ol_enable_shell="$ol_arg"
1357 ol_enable_shell="no"
1359 # end --enable-shell
1361 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1362 if test "${with_xxslurpdoptions+set}" = set; then
1363 withval="$with_xxslurpdoptions"
1367 # OpenLDAP --enable-slurpd
1368 # Check whether --enable-slurpd or --disable-slurpd was given.
1369 if test "${enable_slurpd+set}" = set; then
1370 enableval="$enable_slurpd"
1373 for ol_val in auto yes no ; do
1374 if test "$enableval" = "$ol_val" ; then
1378 if test "$ol_arg" = "invalid" ; then
1379 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1381 ol_enable_slurpd="$ol_arg"
1384 ol_enable_slurpd="auto"
1386 # end --enable-slurpd
1388 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1389 if test "${with_xxliboptions+set}" = set; then
1390 withval="$with_xxliboptions"
1394 # Check whether --enable-static or --disable-static was given.
1395 if test "${enable_static+set}" = set; then
1396 enableval="$enable_static"
1397 p=${PACKAGE-default}
1398 case "$enableval" in
1399 yes) enable_static=yes ;;
1400 no) enable_static=no ;;
1403 # Look at the argument we got. We use all the common list separators.
1404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1405 for pkg in $enableval; do
1406 if test "X$pkg" = "X$p"; then
1417 # Check whether --enable-shared or --disable-shared was given.
1418 if test "${enable_shared+set}" = set; then
1419 enableval="$enable_shared"
1420 p=${PACKAGE-default}
1421 case "$enableval" in
1422 yes) enable_shared=yes ;;
1423 no) enable_shared=no ;;
1426 # Look at the argument we got. We use all the common list separators.
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1428 for pkg in $enableval; do
1429 if test "X$pkg" = "X$p"; then
1442 if test $ol_enable_referrals = no ; then
1443 if test $ol_enable_dns = yes ; then
1444 echo "configure: warning: dns disabled, ignoring --enable-dns argument" 1>&2
1449 if test $ol_enable_slapd = no ; then
1450 if test $ol_enable_ldbm = yes ; then
1451 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1453 if test $ol_enable_passwd = yes ; then
1454 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1456 if test $ol_enable_shell = yes ; then
1457 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1459 if test $ol_enable_aclgroups = yes ; then
1460 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1462 if test $ol_enable_wrappers = yes ; then
1463 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1465 if test $ol_enable_phonetic = yes ; then
1466 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1468 if test $ol_enable_rlookups = yes ; then
1469 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1471 if test $ol_with_ldbm_api != auto ; then
1472 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1474 if test $ol_with_ldbm_type != auto ; then
1475 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1477 if test $ol_enable_slurpd = yes ; then
1478 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1481 # force settings to no
1485 ol_enable_aclgroups=no
1486 ol_enable_wrappers=no
1487 ol_enable_phonetic=no
1488 ol_enable_rlookups=no
1490 ol_with_ldbm_type=no
1493 elif test $ol_enable_ldbm = no ; then
1495 if test $ol_with_ldbm_api != auto ; then
1496 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1499 if test $ol_with_ldbm_type != auto ; then
1500 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1503 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1504 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1508 ol_with_ldbm_type=no
1512 if test $ol_with_ldbm_api = gdbm -a \
1513 $ol_with_ldbm_type = btree ; then
1514 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1516 if test $ol_with_ldbm_api = ndbm -a \
1517 $ol_with_ldbm_type = btree ; then
1518 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1522 if test $ol_enable_slurpd = yes ; then
1523 if test $ol_with_threads = no ; then
1524 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1528 echo "$ac_t""done" 1>&6
1531 # Make sure we can run config.sub.
1532 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1533 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1536 echo $ac_n "checking host system type""... $ac_c" 1>&6
1537 echo "configure:1538: checking host system type" >&5
1540 case "$host_alias" in
1544 if host_alias=`$ac_config_guess`; then :
1545 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1547 *) host_alias=$nonopt ;;
1551 host=`$ac_config_sub $host_alias`
1552 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1553 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1554 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555 echo "$ac_t""$host" 1>&6
1581 # Find a good install program. We prefer a C program (faster),
1582 # so one script is as good as another. But avoid the broken or
1583 # incompatible versions:
1584 # SysV /etc/install, /usr/sbin/install
1585 # SunOS /usr/etc/install
1586 # IRIX /sbin/install
1588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1590 # ./install, which can be erroneously created by make from ./install.sh.
1591 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1592 echo "configure:1593: checking for a BSD compatible install" >&5
1593 if test -z "$INSTALL"; then
1594 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1598 for ac_dir in $PATH; do
1599 # Account for people who put trailing slashes in PATH elements.
1601 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1603 # OSF1 and SCO ODT 3.0 have their own names for install.
1604 for ac_prog in ginstall installbsd scoinst install; do
1605 if test -f $ac_dir/$ac_prog; then
1606 if test $ac_prog = install &&
1607 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1608 # AIX install. It has an incompatible calling convention.
1609 # OSF/1 installbsd also uses dspmsg, but is usable.
1612 ac_cv_path_install="$ac_dir/$ac_prog -c"
1623 if test "${ac_cv_path_install+set}" = set; then
1624 INSTALL="$ac_cv_path_install"
1626 # As a last resort, use the slow shell script. We don't cache a
1627 # path for INSTALL within a source directory, because that will
1628 # break other packages using the cache if that directory is
1629 # removed, or if the path is relative.
1630 INSTALL="$ac_install_sh"
1633 echo "$ac_t""$INSTALL" 1>&6
1635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1636 # It thinks the first close brace ends the variable substitution.
1637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1641 # Extract the first word of "ranlib", so it can be a program name with args.
1642 set dummy ranlib; ac_word=$2
1643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1644 echo "configure:1645: checking for $ac_word" >&5
1645 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&6
1648 if test -n "$RANLIB"; then
1649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1652 for ac_dir in $PATH; do
1653 test -z "$ac_dir" && ac_dir=.
1654 if test -f $ac_dir/$ac_word; then
1655 ac_cv_prog_RANLIB="ranlib"
1660 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1663 RANLIB="$ac_cv_prog_RANLIB"
1664 if test -n "$RANLIB"; then
1665 echo "$ac_t""$RANLIB" 1>&6
1667 echo "$ac_t""no" 1>&6
1670 # Extract the first word of "gcc", so it can be a program name with args.
1671 set dummy gcc; ac_word=$2
1672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $ac_word" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1681 for ac_dir in $PATH; do
1682 test -z "$ac_dir" && ac_dir=.
1683 if test -f $ac_dir/$ac_word; then
1692 if test -n "$CC"; then
1693 echo "$ac_t""$CC" 1>&6
1695 echo "$ac_t""no" 1>&6
1698 if test -z "$CC"; then
1699 # Extract the first word of "cc", so it can be a program name with args.
1700 set dummy cc; ac_word=$2
1701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1702 echo "configure:1703: checking for $ac_word" >&5
1703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 if test -n "$CC"; then
1707 ac_cv_prog_CC="$CC" # Let the user override the test.
1709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1711 for ac_dir in $PATH; do
1712 test -z "$ac_dir" && ac_dir=.
1713 if test -f $ac_dir/$ac_word; then
1714 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1715 ac_prog_rejected=yes
1723 if test $ac_prog_rejected = yes; then
1724 # We found a bogon in the path, so make sure we never use it.
1725 set dummy $ac_cv_prog_CC
1727 if test $# -gt 0; then
1728 # We chose a different compiler from the bogus one.
1729 # However, it has the same basename, so the bogon will be chosen
1730 # first if we set CC to just the basename; use the full file name.
1732 set dummy "$ac_dir/$ac_word" "$@"
1740 if test -n "$CC"; then
1741 echo "$ac_t""$CC" 1>&6
1743 echo "$ac_t""no" 1>&6
1746 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1749 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1750 echo "configure:1751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1754 ac_cpp='$CPP $CPPFLAGS'
1755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1756 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1757 cross_compiling=$ac_cv_prog_cc_cross
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1764 if { (eval echo configure:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1765 ac_cv_prog_cc_works=yes
1766 # If we can't run a trivial program, we are probably using a cross compiler.
1767 if (./conftest; exit) 2>/dev/null; then
1768 ac_cv_prog_cc_cross=no
1770 ac_cv_prog_cc_cross=yes
1773 echo "configure: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1775 ac_cv_prog_cc_works=no
1779 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1780 if test $ac_cv_prog_cc_works = no; then
1781 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1783 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1784 echo "configure:1785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1785 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1786 cross_compiling=$ac_cv_prog_cc_cross
1788 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1789 echo "configure:1790: checking whether we are using GNU C" >&5
1790 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 cat > conftest.c <<EOF
1798 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1805 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1807 if test $ac_cv_prog_gcc = yes; then
1809 ac_test_CFLAGS="${CFLAGS+set}"
1810 ac_save_CFLAGS="$CFLAGS"
1812 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1813 echo "configure:1814: checking whether ${CC-cc} accepts -g" >&5
1814 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1817 echo 'void f(){}' > conftest.c
1818 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1827 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1828 if test "$ac_test_CFLAGS" = set; then
1829 CFLAGS="$ac_save_CFLAGS"
1830 elif test $ac_cv_prog_cc_g = yes; then
1837 test "${CFLAGS+set}" = set || CFLAGS="-g"
1840 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1841 if test "${with_gnu_ld+set}" = set; then
1842 withval="$with_gnu_ld"
1843 test "$withval" = no || with_gnu_ld=yes
1850 if test "$ac_cv_prog_gcc" = yes; then
1851 # Check if gcc -print-prog-name=ld gives a path.
1852 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1853 echo "configure:1854: checking for ld used by GCC" >&5
1854 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1856 # Accept absolute paths.
1858 test -z "$LD" && LD="$ac_prog"
1861 # If it fails, then pretend we aren't using GCC.
1865 # If it is relative, then search for the first ld in PATH.
1869 elif test "$with_gnu_ld" = yes; then
1870 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1871 echo "configure:1872: checking for GNU ld" >&5
1873 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1874 echo "configure:1875: checking for non-GNU ld" >&5
1876 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 if test -z "$LD"; then
1880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1881 for ac_dir in $PATH; do
1882 test -z "$ac_dir" && ac_dir=.
1883 if test -f "$ac_dir/$ac_prog"; then
1884 ac_cv_path_LD="$ac_dir/$ac_prog"
1885 # Check to see if the program is GNU ld. I'd rather use --version,
1886 # but apparently some GNU ld's only accept -v.
1887 # Break only if it was the GNU/non-GNU ld that we prefer.
1888 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1889 test "$with_gnu_ld" != no && break
1891 test "$with_gnu_ld" != yes && break
1897 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1902 if test -n "$LD"; then
1903 echo "$ac_t""$LD" 1>&6
1905 echo "$ac_t""no" 1>&6
1907 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1909 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1910 echo "configure:1911: checking if the linker ($LD) is GNU ld" >&5
1911 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1915 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1916 ac_cv_prog_gnu_ld=yes
1918 ac_cv_prog_gnu_ld=no
1922 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1925 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1926 echo "configure:1927: checking for BSD-compatible nm" >&5
1927 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1932 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1936 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1937 test -z "$ac_dir" && ac_dir=.
1938 if test -f $ac_dir/nm; then
1939 # Check to see if the nm accepts a BSD-compat flag.
1940 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1941 # nm: unknown option "B" ignored
1942 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1943 ac_cv_path_NM="$ac_dir/nm -B"
1944 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1945 ac_cv_path_NM="$ac_dir/nm -p"
1947 ac_cv_path_NM="$ac_dir/nm"
1953 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1959 echo "$ac_t""$NM" 1>&6
1962 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1963 echo "configure:1964: checking whether ln -s works" >&5
1964 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1968 if ln -s X conftestdata 2>/dev/null
1971 ac_cv_prog_LN_S="ln -s"
1976 LN_S="$ac_cv_prog_LN_S"
1977 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1978 echo "$ac_t""yes" 1>&6
1980 echo "$ac_t""no" 1>&6
1983 # Always use our own libtool.
1984 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1986 # Check for any special flags to pass to ltconfig.
1988 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1989 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1990 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1991 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1992 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1994 # Some flags need to be propagated to the compiler or linker for good
1998 # Find out which ABI we are using.
1999 echo '#line 2000 "configure"' > conftest.$ac_ext
2000 if { (eval echo configure:2001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2001 case "`/usr/bin/file conftest.o`" in
2017 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2018 CFLAGS="$CFLAGS -belf"
2022 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2023 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2024 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2025 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2026 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2027 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2030 # Extract the first word of "sendmail", so it can be a program name with args.
2031 set dummy sendmail; ac_word=$2
2032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2033 echo "configure:2034: checking for $ac_word" >&5
2034 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2039 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2043 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
2044 test -z "$ac_dir" && ac_dir=.
2045 if test -f $ac_dir/$ac_word; then
2046 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2051 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2055 SENDMAIL="$ac_cv_path_SENDMAIL"
2056 if test -n "$SENDMAIL"; then
2057 echo "$ac_t""$SENDMAIL" 1>&6
2059 echo "$ac_t""no" 1>&6
2062 # Extract the first word of "vi", so it can be a program name with args.
2063 set dummy vi; ac_word=$2
2064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2065 echo "configure:2066: checking for $ac_word" >&5
2066 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2071 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2075 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2076 test -z "$ac_dir" && ac_dir=.
2077 if test -f $ac_dir/$ac_word; then
2078 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2083 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2087 EDITOR="$ac_cv_path_EDITOR"
2088 if test -n "$EDITOR"; then
2089 echo "$ac_t""$EDITOR" 1>&6
2091 echo "$ac_t""no" 1>&6
2094 # Extract the first word of "finger", so it can be a program name with args.
2095 set dummy finger; ac_word=$2
2096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_word" >&5
2098 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2103 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2107 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2108 test -z "$ac_dir" && ac_dir=.
2109 if test -f $ac_dir/$ac_word; then
2110 ac_cv_path_FINGER="$ac_dir/$ac_word"
2115 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2119 FINGER="$ac_cv_path_FINGER"
2120 if test -n "$FINGER"; then
2121 echo "$ac_t""$FINGER" 1>&6
2123 echo "$ac_t""no" 1>&6
2128 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2129 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2131 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2132 echo "configure: warning: programs compiled here do run here..." 1>&2
2133 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2135 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2136 echo "configure: warning: programs compiled here do not run here..." 1>&2
2137 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2140 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2141 echo "configure:2142: checking how to run the C preprocessor" >&5
2142 # On Suns, sometimes $CPP names a directory.
2143 if test -n "$CPP" && test -d "$CPP"; then
2146 if test -z "$CPP"; then
2147 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 # This must be in double quotes, not single quotes, because CPP may get
2151 # substituted into the Makefile and "${CC-cc}" will confuse make.
2153 # On the NeXT, cc -E runs the code through the compiler's parser,
2154 # not just through cpp.
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2162 { (eval echo configure:2163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2163 ac_err=`grep -v '^ *+' conftest.out`
2164 if test -z "$ac_err"; then
2168 echo "configure: failed program was:" >&5
2169 cat conftest.$ac_ext >&5
2171 CPP="${CC-cc} -E -traditional-cpp"
2172 cat > conftest.$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2179 { (eval echo configure:2180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2180 ac_err=`grep -v '^ *+' conftest.out`
2181 if test -z "$ac_err"; then
2185 echo "configure: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2193 ac_cv_prog_CPP="$CPP"
2195 CPP="$ac_cv_prog_CPP"
2197 ac_cv_prog_CPP="$CPP"
2199 echo "$ac_t""$CPP" 1>&6
2202 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2203 echo "configure:2204: checking for AIX" >&5
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2213 egrep "yes" >/dev/null 2>&1; then
2215 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2216 #define _ALL_SOURCE 1
2221 echo "$ac_t""no" 1>&6
2226 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2227 echo "configure:2228: checking for POSIXized ISC" >&5
2228 if test -d /etc/conf/kconfig.d &&
2229 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2231 echo "$ac_t""yes" 1>&6
2232 ISC=yes # If later tests want to check for ISC.
2233 cat >> confdefs.h <<\EOF
2234 #define _POSIX_SOURCE 1
2237 if test "$GCC" = yes; then
2243 echo "$ac_t""no" 1>&6
2247 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2248 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2249 echo "configure:2250: checking for minix/config.h" >&5
2250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 #include <minix/config.h>
2258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2259 { (eval echo configure:2260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2260 ac_err=`grep -v '^ *+' conftest.out`
2261 if test -z "$ac_err"; then
2263 eval "ac_cv_header_$ac_safe=yes"
2266 echo "configure: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2269 eval "ac_cv_header_$ac_safe=no"
2273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2277 echo "$ac_t""no" 1>&6
2281 if test "$MINIX" = yes; then
2282 cat >> confdefs.h <<\EOF
2283 #define _POSIX_SOURCE 1
2286 cat >> confdefs.h <<\EOF
2287 #define _POSIX_1_SOURCE 2
2290 cat >> confdefs.h <<\EOF
2300 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2301 echo "configure:2302: checking for ${CC-cc} option to accept ANSI C" >&5
2302 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 am_cv_prog_cc_stdc=no
2307 # Don't try gcc -ansi; that turns off useful extensions and
2308 # breaks some systems' header files.
2309 # AIX -qlanglvl=ansi
2310 # Ultrix and OSF/1 -std1
2311 # HP-UX -Aa -D_HPUX_SOURCE
2312 # SVR4 -Xc -D__EXTENSIONS__
2313 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2315 CC="$ac_save_CC $ac_arg"
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2321 #include <sys/types.h>
2322 #include <sys/stat.h>
2323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2324 struct buf { int x; };
2325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2326 static char *e (p, i)
2332 static char *f (char * (*g) (char **, int), char **p, ...)
2337 s = g (p, va_arg (v,int));
2341 int test (int i, double x);
2342 struct s1 {int (*f) (int a);};
2343 struct s2 {int (*f) (double a);};
2344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2354 if { (eval echo configure:2355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2356 am_cv_prog_cc_stdc="$ac_arg"; break
2358 echo "configure: failed program was:" >&5
2359 cat conftest.$ac_ext >&5
2367 if test -z "$am_cv_prog_cc_stdc"; then
2368 echo "$ac_t""none needed" 1>&6
2370 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2372 case "x$am_cv_prog_cc_stdc" in
2374 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2377 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2378 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2384 echo $ac_n "checking for socket""... $ac_c" 1>&6
2385 echo "configure:2386: checking for socket" >&5
2386 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 cat > conftest.$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2392 /* System header to define __stub macros and hopefully few prototypes,
2393 which can conflict with char socket(); below. */
2395 /* Override any gcc2 internal prototype to avoid an error. */
2396 /* We use char because int might match the return type of a gcc2
2397 builtin and then its argument prototype would still apply. */
2402 /* The GNU C library defines this for functions which it implements
2403 to always fail with ENOSYS. Some functions are actually named
2404 something starting with __ and the normal name is an alias. */
2405 #if defined (__stub_socket) || defined (__stub___socket)
2413 if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2415 eval "ac_cv_func_socket=yes"
2417 echo "configure: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2420 eval "ac_cv_func_socket=no"
2425 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2426 echo "$ac_t""yes" 1>&6
2429 echo "$ac_t""no" 1>&6
2431 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2432 echo "configure:2433: checking for main in -lsocket" >&5
2433 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 ac_save_LIBS="$LIBS"
2438 LIBS="-lsocket $LIBS"
2439 cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2447 if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2449 eval "ac_cv_lib_$ac_lib_var=yes"
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2454 eval "ac_cv_lib_$ac_lib_var=no"
2457 LIBS="$ac_save_LIBS"
2460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2463 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2464 cat >> confdefs.h <<EOF
2465 #define $ac_tr_lib 1
2468 LIBS="-lsocket $LIBS"
2471 echo "$ac_t""no" 1>&6
2474 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2475 echo "configure:2476: checking for main in -lnet" >&5
2476 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 ac_save_LIBS="$LIBS"
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2492 eval "ac_cv_lib_$ac_lib_var=yes"
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2497 eval "ac_cv_lib_$ac_lib_var=no"
2500 LIBS="$ac_save_LIBS"
2503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2506 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2507 cat >> confdefs.h <<EOF
2508 #define $ac_tr_lib 1
2514 echo "$ac_t""no" 1>&6
2517 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2518 echo "configure:2519: checking for main in -lnsl_s" >&5
2519 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 ac_save_LIBS="$LIBS"
2524 LIBS="-lnsl_s $LIBS"
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2533 if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2535 eval "ac_cv_lib_$ac_lib_var=yes"
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2540 eval "ac_cv_lib_$ac_lib_var=no"
2543 LIBS="$ac_save_LIBS"
2546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2547 echo "$ac_t""yes" 1>&6
2548 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2549 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2550 cat >> confdefs.h <<EOF
2551 #define $ac_tr_lib 1
2554 LIBS="-lnsl_s $LIBS"
2557 echo "$ac_t""no" 1>&6
2560 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2561 echo "configure:2562: checking for main in -lnsl" >&5
2562 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 ac_save_LIBS="$LIBS"
2568 cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2576 if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2578 eval "ac_cv_lib_$ac_lib_var=yes"
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2583 eval "ac_cv_lib_$ac_lib_var=no"
2586 LIBS="$ac_save_LIBS"
2589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2590 echo "$ac_t""yes" 1>&6
2591 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2592 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2593 cat >> confdefs.h <<EOF
2594 #define $ac_tr_lib 1
2600 echo "$ac_t""no" 1>&6
2603 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2604 echo "configure:2605: checking for socket in -linet" >&5
2605 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 ac_save_LIBS="$LIBS"
2611 cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2614 /* Override any gcc2 internal prototype to avoid an error. */
2615 /* We use char because int might match the return type of a gcc2
2616 builtin and then its argument prototype would still apply. */
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2625 eval "ac_cv_lib_$ac_lib_var=yes"
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2630 eval "ac_cv_lib_$ac_lib_var=no"
2633 LIBS="$ac_save_LIBS"
2636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2637 echo "$ac_t""yes" 1>&6
2638 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2639 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2640 cat >> confdefs.h <<EOF
2641 #define $ac_tr_lib 1
2647 echo "$ac_t""no" 1>&6
2650 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2651 echo "configure:2652: checking for main in -lgen" >&5
2652 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 ac_save_LIBS="$LIBS"
2658 cat > conftest.$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2666 if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2668 eval "ac_cv_lib_$ac_lib_var=yes"
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2673 eval "ac_cv_lib_$ac_lib_var=no"
2676 LIBS="$ac_save_LIBS"
2679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2682 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2683 cat >> confdefs.h <<EOF
2684 #define $ac_tr_lib 1
2690 echo "$ac_t""no" 1>&6
2697 for ac_func in res_search
2699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_func" >&5
2701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 /* System header to define __stub macros and hopefully few prototypes,
2708 which can conflict with char $ac_func(); below. */
2710 /* Override any gcc2 internal prototype to avoid an error. */
2711 /* We use char because int might match the return type of a gcc2
2712 builtin and then its argument prototype would still apply. */
2717 /* The GNU C library defines this for functions which it implements
2718 to always fail with ENOSYS. Some functions are actually named
2719 something starting with __ and the normal name is an alias. */
2720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2728 if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2730 eval "ac_cv_func_$ac_func=yes"
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2735 eval "ac_cv_func_$ac_func=no"
2740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2743 cat >> confdefs.h <<EOF
2744 #define $ac_tr_func 1
2748 echo "$ac_t""no" 1>&6
2752 if test $ac_cv_func_res_search = "no" ; then
2753 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
2754 echo "configure:2755: checking for res_search in -lbind" >&5
2755 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
2756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2759 ac_save_LIBS="$LIBS"
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 /* Override any gcc2 internal prototype to avoid an error. */
2765 /* We use char because int might match the return type of a gcc2
2766 builtin and then its argument prototype would still apply. */
2773 if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2775 eval "ac_cv_lib_$ac_lib_var=yes"
2777 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2780 eval "ac_cv_lib_$ac_lib_var=no"
2783 LIBS="$ac_save_LIBS"
2786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2788 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2789 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2790 cat >> confdefs.h <<EOF
2791 #define $ac_tr_lib 1
2797 echo "$ac_t""no" 1>&6
2800 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
2801 cat >> confdefs.h <<\EOF
2802 #define HAVE_RES_SEARCH 1
2806 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
2807 echo "configure:2808: checking for res_search in -lresolv" >&5
2808 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
2809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2812 ac_save_LIBS="$LIBS"
2813 LIBS="-lresolv $LIBS"
2814 cat > conftest.$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2817 /* Override any gcc2 internal prototype to avoid an error. */
2818 /* We use char because int might match the return type of a gcc2
2819 builtin and then its argument prototype would still apply. */
2826 if { (eval echo configure:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2828 eval "ac_cv_lib_$ac_lib_var=yes"
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2833 eval "ac_cv_lib_$ac_lib_var=no"
2836 LIBS="$ac_save_LIBS"
2839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2842 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2843 cat >> confdefs.h <<EOF
2844 #define $ac_tr_lib 1
2847 LIBS="-lresolv $LIBS"
2850 echo "$ac_t""no" 1>&6
2853 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
2854 cat >> confdefs.h <<\EOF
2855 #define HAVE_RES_SEARCH 1
2862 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2863 echo "configure:2864: checking for sigset in -lV3" >&5
2864 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 ac_save_LIBS="$LIBS"
2870 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2873 /* Override any gcc2 internal prototype to avoid an error. */
2874 /* We use char because int might match the return type of a gcc2
2875 builtin and then its argument prototype would still apply. */
2882 if { (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2884 eval "ac_cv_lib_$ac_lib_var=yes"
2886 echo "configure: failed program was:" >&5
2887 cat conftest.$ac_ext >&5
2889 eval "ac_cv_lib_$ac_lib_var=no"
2892 LIBS="$ac_save_LIBS"
2895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2897 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2898 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2899 cat >> confdefs.h <<EOF
2900 #define $ac_tr_lib 1
2906 echo "$ac_t""no" 1>&6
2912 if test $ol_enable_ldapd != no ; then
2913 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
2914 echo "configure:2915: checking for main in -lxtpp" >&5
2915 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
2916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2919 ac_save_LIBS="$LIBS"
2920 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
2921 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2929 if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2931 eval "ac_cv_lib_$ac_lib_var=yes"
2933 echo "configure: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2936 eval "ac_cv_lib_$ac_lib_var=no"
2939 LIBS="$ac_save_LIBS"
2942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2943 echo "$ac_t""yes" 1>&6
2946 cat >> confdefs.h <<\EOF
2950 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
2953 echo "$ac_t""no" 1>&6
2957 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
2958 echo "configure:2959: checking for main in -ldsap" >&5
2959 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
2960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2963 ac_save_LIBS="$LIBS"
2964 LIBS="-ldsap -lisode $LIBS"
2965 cat > conftest.$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2973 if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2975 eval "ac_cv_lib_$ac_lib_var=yes"
2977 echo "configure: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2980 eval "ac_cv_lib_$ac_lib_var=no"
2983 LIBS="$ac_save_LIBS"
2986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
2990 cat >> confdefs.h <<\EOF
2994 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
2997 echo "$ac_t""no" 1>&6
3001 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3002 echo "configure:3003: checking for main in -lisode" >&5
3003 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 ac_save_LIBS="$LIBS"
3008 LIBS="-lisode $LIBS"
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3017 if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3019 eval "ac_cv_lib_$ac_lib_var=yes"
3021 echo "configure: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3024 eval "ac_cv_lib_$ac_lib_var=no"
3027 LIBS="$ac_save_LIBS"
3030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3031 echo "$ac_t""yes" 1>&6
3034 cat >> confdefs.h <<\EOF
3035 #define HAVE_ISODE 1
3038 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3041 echo "$ac_t""no" 1>&6
3047 if test $ol_link_isode != no; then
3048 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3049 echo "configure:3050: checking for main in -lpp" >&5
3050 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 ac_save_LIBS="$LIBS"
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3064 if { (eval echo configure:3065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3066 eval "ac_cv_lib_$ac_lib_var=yes"
3068 echo "configure: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3071 eval "ac_cv_lib_$ac_lib_var=no"
3074 LIBS="$ac_save_LIBS"
3077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3078 echo "$ac_t""yes" 1>&6
3080 cat >> confdefs.h <<\EOF
3084 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3087 echo "$ac_t""no" 1>&6
3092 # Extract the first word of "pepsy", so it can be a program name with args.
3093 set dummy pepsy; ac_word=$2
3094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3095 echo "configure:3096: checking for $ac_word" >&5
3096 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3101 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3105 for ac_dir in $PATH; do
3106 test -z "$ac_dir" && ac_dir=.
3107 if test -f $ac_dir/$ac_word; then
3108 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3116 PEPSY="$ac_cv_path_PEPSY"
3117 if test -n "$PEPSY"; then
3118 echo "$ac_t""$PEPSY" 1>&6
3120 echo "$ac_t""no" 1>&6
3127 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3128 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3132 echo "configure:3133: checking for $ac_hdr" >&5
3133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3142 { (eval echo configure:3143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3143 ac_err=`grep -v '^ *+' conftest.out`
3144 if test -z "$ac_err"; then
3146 eval "ac_cv_header_$ac_safe=yes"
3149 echo "configure: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3152 eval "ac_cv_header_$ac_safe=no"
3156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3157 echo "$ac_t""yes" 1>&6
3158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3159 cat >> confdefs.h <<EOF
3160 #define $ac_tr_hdr 1
3164 echo "$ac_t""no" 1>&6
3169 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3170 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3171 echo "configure:3172: checking for main in -lkrb4" >&5
3172 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 ac_save_LIBS="$LIBS"
3177 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3186 if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3188 eval "ac_cv_lib_$ac_lib_var=yes"
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3193 eval "ac_cv_lib_$ac_lib_var=no"
3196 LIBS="$ac_save_LIBS"
3199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3200 echo "$ac_t""yes" 1>&6
3203 echo "$ac_t""no" 1>&6
3208 if test $have_k5 = yes ; then
3209 ol_with_kerberos=found
3210 ol_link_kerberos=yes
3212 cat >> confdefs.h <<\EOF
3213 #define HAVE_KERBEROS 1
3216 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3221 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3222 for ac_hdr in krb.h des.h
3224 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3226 echo "configure:3227: checking for $ac_hdr" >&5
3227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3236 { (eval echo configure:3237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3237 ac_err=`grep -v '^ *+' conftest.out`
3238 if test -z "$ac_err"; then
3240 eval "ac_cv_header_$ac_safe=yes"
3243 echo "configure: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3246 eval "ac_cv_header_$ac_safe=no"
3250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3251 echo "$ac_t""yes" 1>&6
3252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3253 cat >> confdefs.h <<EOF
3254 #define $ac_tr_hdr 1
3258 echo "$ac_t""no" 1>&6
3263 if test $ac_cv_header_krb_h = yes ; then
3264 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3265 echo "configure:3266: checking for main in -lkrb" >&5
3266 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 ac_save_LIBS="$LIBS"
3271 LIBS="-lkrb -ldes $LIBS"
3272 cat > conftest.$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3282 eval "ac_cv_lib_$ac_lib_var=yes"
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 eval "ac_cv_lib_$ac_lib_var=no"
3290 LIBS="$ac_save_LIBS"
3293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3294 echo "$ac_t""yes" 1>&6
3297 echo "$ac_t""no" 1>&6
3302 if test $have_k4 = yes ; then
3303 ol_with_kerberos=found
3304 ol_link_kerberos=yes
3306 cat >> confdefs.h <<\EOF
3307 #define HAVE_KERBEROS 1
3310 KRB_LIBS="-lkrb -ldes"
3317 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3318 -o $ol_with_threads = posix ; then
3320 for ac_hdr in pthread.h sched.h
3322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3324 echo "configure:3325: checking for $ac_hdr" >&5
3325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3334 { (eval echo configure:3335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3335 ac_err=`grep -v '^ *+' conftest.out`
3336 if test -z "$ac_err"; then
3338 eval "ac_cv_header_$ac_safe=yes"
3341 echo "configure: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3344 eval "ac_cv_header_$ac_safe=no"
3348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3349 echo "$ac_t""yes" 1>&6
3350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3351 cat >> confdefs.h <<EOF
3352 #define $ac_tr_hdr 1
3356 echo "$ac_t""no" 1>&6
3361 if test $ac_cv_header_pthread_h = yes ; then
3362 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3363 echo "configure:3364: checking POSIX thread version" >&5
3364 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3368 cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3372 # include <pthread.h>
3373 /* this check could be improved */
3374 # ifdef PTHREAD_ONCE_INIT
3375 pthread_version_final
3379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3380 egrep "pthread_version_final" >/dev/null 2>&1; then
3382 ol_pthread_final=yes
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3394 # include <pthread.h>
3395 /* this check could be improved */
3396 # ifdef pthread_once_init
3397 pthread_version_draft4
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 egrep "pthread_version_draft4" >/dev/null 2>&1; then
3404 ol_pthread_draft4=yes
3407 ol_pthread_draft4=no
3412 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3413 ol_cv_pthread_version=final
3414 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3415 ol_cv_pthread_version=draft4
3417 ol_cv_pthread_version=unknown
3422 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3425 if test $ol_cv_pthread_version = final ; then
3426 cat >> confdefs.h <<\EOF
3427 #define HAVE_PTHREADS_FINAL 1
3430 elif test $ol_cv_pthread_version = draft4 ; then
3431 cat >> confdefs.h <<\EOF
3432 #define HAVE_PTHREADS_D4 1
3436 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3439 # consider threads found
3440 ol_with_threads=found
3443 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3444 echo "configure:3445: checking for LinuxThreads" >&5
3445 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3449 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3450 if test "$res" -gt 0 ; then
3451 ol_cv_linux_threads=yes
3453 ol_cv_linux_threads=no
3458 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3461 if test $ol_cv_linux_threads = yes ; then
3462 cat >> confdefs.h <<\EOF
3463 #define HAVE_LINUX_THREADS 1
3469 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3470 echo "configure:3471: checking for pthread_create" >&5
3471 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3474 cat > conftest.$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 /* System header to define __stub macros and hopefully few prototypes,
3478 which can conflict with char pthread_create(); below. */
3480 /* Override any gcc2 internal prototype to avoid an error. */
3481 /* We use char because int might match the return type of a gcc2
3482 builtin and then its argument prototype would still apply. */
3483 char pthread_create();
3487 /* The GNU C library defines this for functions which it implements
3488 to always fail with ENOSYS. Some functions are actually named
3489 something starting with __ and the normal name is an alias. */
3490 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3498 if { (eval echo configure:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3500 eval "ac_cv_func_pthread_create=yes"
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3505 eval "ac_cv_func_pthread_create=no"
3510 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3514 echo "$ac_t""no" 1>&6
3518 if test $ol_link_threads = no ; then
3519 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
3520 echo "configure:3521: checking for pthread_create with -kthread" >&5
3521 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3526 LIBS="-kthread $LIBS"
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3537 if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3539 ol_cv_kthread_flag=yes
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 ol_cv_kthread_flag=no
3551 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
3553 if test $ol_cv_kthread_flag = yes ; then
3554 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
3555 ol_link_threads=posix
3559 if test $ol_link_threads = no ; then
3560 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3561 echo "configure:3562: checking for pthread_create with -pthread" >&5
3562 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3567 LIBS="-pthread $LIBS"
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3578 if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3580 ol_cv_pthread_flag=yes
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3585 ol_cv_pthread_flag=no
3592 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3594 if test $ol_cv_pthread_flag = yes ; then
3595 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3596 ol_link_threads=posix
3600 if test $ol_link_threads = no ; then
3601 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
3602 echo "configure:3603: checking for pthread_create with -pthreads" >&5
3603 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3608 LIBS="-pthreads $LIBS"
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3619 if { (eval echo configure:3620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3621 ol_cv_pthreads_flag=yes
3623 echo "configure: failed program was:" >&5
3624 cat conftest.$ac_ext >&5
3626 ol_cv_pthreads_flag=no
3633 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
3635 if test $ol_cv_pthreads_flag = yes ; then
3636 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
3637 ol_link_threads=posix
3641 if test $ol_link_threads = no ; then
3642 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3643 echo "configure:3644: checking for pthread_create with -thread" >&5
3644 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3649 LIBS="-thread $LIBS"
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3660 if { (eval echo configure:3661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3662 ol_cv_thread_flag=yes
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3667 ol_cv_thread_flag=no
3674 echo "$ac_t""$ol_cv_thread_flag" 1>&6
3676 if test $ol_cv_thread_flag = yes ; then
3677 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
3678 ol_link_threads=posix
3682 if test $ol_link_threads = no ; then
3684 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
3685 echo "configure:3686: checking for pthread_mutex_lock in -lpthread" >&5
3686 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
3687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 ac_save_LIBS="$LIBS"
3691 LIBS="-lpthread -lexc $LIBS"
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 /* Override any gcc2 internal prototype to avoid an error. */
3696 /* We use char because int might match the return type of a gcc2
3697 builtin and then its argument prototype would still apply. */
3698 char pthread_mutex_lock();
3701 pthread_mutex_lock()
3704 if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3706 eval "ac_cv_lib_$ac_lib_var=yes"
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3711 eval "ac_cv_lib_$ac_lib_var=no"
3714 LIBS="$ac_save_LIBS"
3717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3718 echo "$ac_t""yes" 1>&6
3720 ol_link_threads=posix
3721 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
3722 if test $ol_with_yielding_select = auto ; then
3723 ol_with_yielding_select=yes
3727 echo "$ac_t""no" 1>&6
3734 if test $ol_link_threads = no ; then
3736 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
3737 echo "configure:3738: checking for pthread_mutex_unlock in -lpthreads" >&5
3738 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
3739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3742 ac_save_LIBS="$LIBS"
3743 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
3744 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3747 /* Override any gcc2 internal prototype to avoid an error. */
3748 /* We use char because int might match the return type of a gcc2
3749 builtin and then its argument prototype would still apply. */
3750 char pthread_mutex_unlock();
3753 pthread_mutex_unlock()
3756 if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3758 eval "ac_cv_lib_$ac_lib_var=yes"
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3763 eval "ac_cv_lib_$ac_lib_var=no"
3766 LIBS="$ac_save_LIBS"
3769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3770 echo "$ac_t""yes" 1>&6
3772 ol_link_threads=posix
3773 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
3774 if test $ol_with_yielding_select = auto ; then
3775 ol_with_yielding_select=yes
3779 echo "$ac_t""no" 1>&6
3786 if test $ol_link_threads = no ; then
3788 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3789 echo "configure:3790: checking for pthread_create in -lpthread" >&5
3790 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3794 ac_save_LIBS="$LIBS"
3795 LIBS="-lpthread $LIBS"
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 /* Override any gcc2 internal prototype to avoid an error. */
3800 /* We use char because int might match the return type of a gcc2
3801 builtin and then its argument prototype would still apply. */
3802 char pthread_create();
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3810 eval "ac_cv_lib_$ac_lib_var=yes"
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3815 eval "ac_cv_lib_$ac_lib_var=no"
3818 LIBS="$ac_save_LIBS"
3821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3822 echo "$ac_t""yes" 1>&6
3824 ol_link_threads=posix
3825 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3827 echo "$ac_t""no" 1>&6
3834 if test $ol_link_threads = no ; then
3836 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3837 echo "configure:3838: checking for pthread_create in -lc_r" >&5
3838 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3842 ac_save_LIBS="$LIBS"
3844 cat > conftest.$ac_ext <<EOF
3845 #line 3846 "configure"
3846 #include "confdefs.h"
3847 /* Override any gcc2 internal prototype to avoid an error. */
3848 /* We use char because int might match the return type of a gcc2
3849 builtin and then its argument prototype would still apply. */
3850 char pthread_create();
3856 if { (eval echo configure:3857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3858 eval "ac_cv_lib_$ac_lib_var=yes"
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3863 eval "ac_cv_lib_$ac_lib_var=no"
3866 LIBS="$ac_save_LIBS"
3869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3870 echo "$ac_t""yes" 1>&6
3872 ol_link_threads=posix
3873 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
3875 echo "$ac_t""no" 1>&6
3882 if test $ol_link_threads = no ; then
3884 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3885 echo "configure:3886: checking for pthread_create in -lpthreads" >&5
3886 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3888 echo $ac_n "(cached) $ac_c" 1>&6
3890 ac_save_LIBS="$LIBS"
3891 LIBS="-lpthreads $LIBS"
3892 cat > conftest.$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3895 /* Override any gcc2 internal prototype to avoid an error. */
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3898 char pthread_create();
3904 if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3906 eval "ac_cv_lib_$ac_lib_var=yes"
3908 echo "configure: failed program was:" >&5
3909 cat conftest.$ac_ext >&5
3911 eval "ac_cv_lib_$ac_lib_var=no"
3914 LIBS="$ac_save_LIBS"
3917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3918 echo "$ac_t""yes" 1>&6
3920 ol_link_threads=posix
3921 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
3923 echo "$ac_t""no" 1>&6
3930 if test $ol_link_threads = no ; then
3932 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
3933 echo "configure:3934: checking for pthread_join in -lpthreads" >&5
3934 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
3935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 ac_save_LIBS="$LIBS"
3939 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
3940 cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 /* Override any gcc2 internal prototype to avoid an error. */
3944 /* We use char because int might match the return type of a gcc2
3945 builtin and then its argument prototype would still apply. */
3946 char pthread_join();
3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3954 eval "ac_cv_lib_$ac_lib_var=yes"
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3959 eval "ac_cv_lib_$ac_lib_var=no"
3962 LIBS="$ac_save_LIBS"
3965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3966 echo "$ac_t""yes" 1>&6
3968 ol_link_threads=posix
3969 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
3972 echo "$ac_t""no" 1>&6
3979 if test $ol_link_threads = no; then
3981 LIBS="$LIBS -lpthread"
3982 echo $ac_n "checking for pthread_create() in HP-UX -lpthread""... $ac_c" 1>&6
3983 echo "configure:3984: checking for pthread_create() in HP-UX -lpthread" >&5
3984 ol_try_pthread_hpux_11=no
3985 if eval "test \"`echo '$''{'ol_cv_pthread_hpux_11'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3989 cat > conftest.$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3993 #include <pthread.h>
3995 #ifndef ELFABI_HPUX_REL11
4000 pthread_create(NULL, NULL, NULL, NULL);
4003 if { (eval echo configure:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4005 ol_try_pthread_hpux_11=yes
4006 ol_cv_pthread_hpux_11=yes
4008 echo "configure: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4011 ol_cv_pthread_hpux_11=no
4016 echo "$ac_t""yes" 1>&6
4019 if test $ol_cv_pthread_hpux_11=yes ; then
4020 ol_link_threads=posix
4021 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4022 if test $ol_try_pthread_hpux_11=yes ; then
4023 ac_cv_func_pthread_attr_init=yes
4028 if test $ol_link_threads != no ; then
4029 cat >> confdefs.h <<\EOF
4030 #define HAVE_PTHREADS 1
4034 save_CPPFLAGS="$CPPFLAGS"
4036 LIBS="$LTHREAD_LIBS $LIBS"
4038 for ac_func in sched_yield pthread_yield
4040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4041 echo "configure:4042: checking for $ac_func" >&5
4042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4045 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 /* System header to define __stub macros and hopefully few prototypes,
4049 which can conflict with char $ac_func(); below. */
4051 /* Override any gcc2 internal prototype to avoid an error. */
4052 /* We use char because int might match the return type of a gcc2
4053 builtin and then its argument prototype would still apply. */
4058 /* The GNU C library defines this for functions which it implements
4059 to always fail with ENOSYS. Some functions are actually named
4060 something starting with __ and the normal name is an alias. */
4061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4069 if { (eval echo configure:4070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4071 eval "ac_cv_func_$ac_func=yes"
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4076 eval "ac_cv_func_$ac_func=no"
4081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4082 echo "$ac_t""yes" 1>&6
4083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4084 cat >> confdefs.h <<EOF
4085 #define $ac_tr_func 1
4089 echo "$ac_t""no" 1>&6
4094 if test $ac_cv_func_sched_yield = no -a \
4095 $ac_cv_func_pthread_yield = no ; then
4096 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4097 echo "configure:4098: checking for sched_yield in -lrt" >&5
4098 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4100 echo $ac_n "(cached) $ac_c" 1>&6
4102 ac_save_LIBS="$LIBS"
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 /* Override any gcc2 internal prototype to avoid an error. */
4108 /* We use char because int might match the return type of a gcc2
4109 builtin and then its argument prototype would still apply. */
4116 if { (eval echo configure:4117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4118 eval "ac_cv_lib_$ac_lib_var=yes"
4120 echo "configure: failed program was:" >&5
4121 cat conftest.$ac_ext >&5
4123 eval "ac_cv_lib_$ac_lib_var=no"
4126 LIBS="$ac_save_LIBS"
4129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4130 echo "$ac_t""yes" 1>&6
4131 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
4132 cat >> confdefs.h <<\EOF
4133 #define HAVE_SCHED_YIELD 1
4136 ac_cv_func_sched_yield=yes
4138 echo "$ac_t""no" 1>&6
4139 ac_cv_func_sched_yield=no
4143 if test $ac_cv_func_sched_yield = no -a \
4144 $ac_cv_func_pthread_yield = no ; then
4145 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4146 echo "configure:4147: checking for sched_yield in -lposix4" >&5
4147 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4151 ac_save_LIBS="$LIBS"
4152 LIBS="-lposix4 $LIBS"
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4165 if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4167 eval "ac_cv_lib_$ac_lib_var=yes"
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4172 eval "ac_cv_lib_$ac_lib_var=no"
4175 LIBS="$ac_save_LIBS"
4178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4180 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
4181 cat >> confdefs.h <<\EOF
4182 #define HAVE_SCHED_YIELD 1
4185 ac_cv_func_sched_yield=yes
4187 echo "$ac_t""no" 1>&6
4188 ac_cv_func_sched_yield=no
4192 if test $ac_cv_func_sched_yield = no -a \
4193 $ac_cv_func_pthread_yield = no ; then
4194 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
4197 for ac_func in pthread_kill pthread_detach
4199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4200 echo "configure:4201: checking for $ac_func" >&5
4201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4204 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4207 /* System header to define __stub macros and hopefully few prototypes,
4208 which can conflict with char $ac_func(); below. */
4210 /* Override any gcc2 internal prototype to avoid an error. */
4211 /* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4217 /* The GNU C library defines this for functions which it implements
4218 to always fail with ENOSYS. Some functions are actually named
4219 something starting with __ and the normal name is an alias. */
4220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4230 eval "ac_cv_func_$ac_func=yes"
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4235 eval "ac_cv_func_$ac_func=no"
4240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4241 echo "$ac_t""yes" 1>&6
4242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4243 cat >> confdefs.h <<EOF
4244 #define $ac_tr_func 1
4248 echo "$ac_t""no" 1>&6
4254 pthread_attr_create pthread_attr_init \
4255 pthread_attr_destroy pthread_attr_delete \
4256 pthread_attr_setdetachstate pthread_attr_setdetach_np \
4259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4260 echo "configure:4261: checking for $ac_func" >&5
4261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267 /* System header to define __stub macros and hopefully few prototypes,
4268 which can conflict with char $ac_func(); below. */
4270 /* Override any gcc2 internal prototype to avoid an error. */
4271 /* We use char because int might match the return type of a gcc2
4272 builtin and then its argument prototype would still apply. */
4277 /* The GNU C library defines this for functions which it implements
4278 to always fail with ENOSYS. Some functions are actually named
4279 something starting with __ and the normal name is an alias. */
4280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4288 if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4290 eval "ac_cv_func_$ac_func=yes"
4292 echo "configure: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4295 eval "ac_cv_func_$ac_func=no"
4300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4301 echo "$ac_t""yes" 1>&6
4302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4303 cat >> confdefs.h <<EOF
4304 #define $ac_tr_func 1
4308 echo "$ac_t""no" 1>&6
4314 pthread_setconcurrency \
4315 thr_setconcurrency \
4318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4319 echo "configure:4320: checking for $ac_func" >&5
4320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 /* System header to define __stub macros and hopefully few prototypes,
4327 which can conflict with char $ac_func(); below. */
4329 /* Override any gcc2 internal prototype to avoid an error. */
4330 /* We use char because int might match the return type of a gcc2
4331 builtin and then its argument prototype would still apply. */
4336 /* The GNU C library defines this for functions which it implements
4337 to always fail with ENOSYS. Some functions are actually named
4338 something starting with __ and the normal name is an alias. */
4339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4347 if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4349 eval "ac_cv_func_$ac_func=yes"
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4354 eval "ac_cv_func_$ac_func=no"
4359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4360 echo "$ac_t""yes" 1>&6
4361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4362 cat >> confdefs.h <<EOF
4363 #define $ac_tr_func 1
4367 echo "$ac_t""no" 1>&6
4372 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
4373 echo "configure:4374: checking if pthread_create() works" >&5
4374 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4378 if test "$cross_compiling" = yes; then
4379 ol_cv_pthread_create_works=yes
4381 cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4385 #include <pthread.h>
4387 #define NULL (void*)0
4390 static void *task(p)
4393 return (void *) (p == NULL);
4396 int main(argc, argv)
4401 exit(pthread_create(&t, NULL, task, NULL));
4405 if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4407 ol_cv_pthread_create_works=yes
4409 echo "configure: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4412 ol_cv_pthread_create_works=no
4419 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
4421 if test $ol_cv_pthread_create_works = no ; then
4422 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
4425 if test $ol_with_yielding_select = auto ; then
4426 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
4427 echo "configure:4428: checking if select yields when using pthreads" >&5
4428 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4432 if test "$cross_compiling" = yes; then
4434 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4440 #include <sys/types.h>
4441 #include <sys/time.h>
4443 #include <pthread.h>
4445 #define NULL (void*) 0
4448 static int fildes[2];
4450 static void *task(p)
4462 FD_SET(fildes[0], &rfds);
4464 /* we're not interested in any fds */
4465 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
4472 exit(0); /* if we exit here, the select blocked the whole process */
4475 int main(argc, argv)
4481 /* create a pipe to select */
4482 if(pipe(&fildes[0])) {
4487 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4488 (void) pthread_setconcurrency(2);
4490 #ifdef HAVE_THR_SETCONCURRENCY
4491 /* Set Solaris LWP concurrency to 2 */
4492 thr_setconcurrency(2);
4496 pthread_create(&t, NULL, task, NULL);
4498 #if HAVE_SCHED_YIELD
4499 sched_yield(); /* make sure task runs first */
4501 #ifdef HAVE_PTHREAD_YIELD
4502 pthread_yield(); /* make sure task runs first */
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4511 ol_cv_pthread_select_yields=no
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 ol_cv_pthread_select_yields=yes
4523 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
4525 if test $ol_cv_pthread_select_yields = yes ; then
4526 ol_with_yielding_select=yes
4530 CPPFLAGS="$save_CPPFLAGS"
4533 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4537 if test $ol_with_threads = posix ; then
4538 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4542 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4543 -o $ol_with_threads = mach ; then
4545 for ac_hdr in mach/cthreads.h
4547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4549 echo "configure:4550: checking for $ac_hdr" >&5
4550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 cat > conftest.$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4559 { (eval echo configure:4560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4560 ac_err=`grep -v '^ *+' conftest.out`
4561 if test -z "$ac_err"; then
4563 eval "ac_cv_header_$ac_safe=yes"
4566 echo "configure: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4569 eval "ac_cv_header_$ac_safe=no"
4573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4574 echo "$ac_t""yes" 1>&6
4575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4576 cat >> confdefs.h <<EOF
4577 #define $ac_tr_hdr 1
4581 echo "$ac_t""no" 1>&6
4585 if test $ac_cv_header_mach_cthreads_h = yes ; then
4586 ol_with_threads=found
4588 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4589 echo "configure:4590: checking for cthread_fork" >&5
4590 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4593 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 /* System header to define __stub macros and hopefully few prototypes,
4597 which can conflict with char cthread_fork(); below. */
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. */
4602 char cthread_fork();
4606 /* The GNU C library defines this for functions which it implements
4607 to always fail with ENOSYS. Some functions are actually named
4608 something starting with __ and the normal name is an alias. */
4609 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4619 eval "ac_cv_func_cthread_fork=yes"
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4624 eval "ac_cv_func_cthread_fork=no"
4629 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
4630 echo "$ac_t""yes" 1>&6
4633 echo "$ac_t""no" 1>&6
4637 if test $ol_link_threads = no ; then
4638 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
4639 echo "configure:4640: checking for cthread_fork with -all_load" >&5
4640 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4645 LIBS="-all_load $LIBS"
4646 cat > conftest.$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4649 #include <mach/cthreads.h>
4652 cthread_fork((void *)0, (void *)0);
4656 if { (eval echo configure:4657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4658 ol_cv_cthread_all_load=yes
4660 echo "configure: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4663 ol_cv_cthread_all_load=no
4670 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
4672 if test $ol_cv_cthread_all_load = yes ; then
4673 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
4674 ol_link_threads=mach
4678 if test $ol_link_threads != no ; then
4679 : check for cthread specific functionality here
4680 cat >> confdefs.h <<\EOF
4681 #define HAVE_MACH_CTHREADS 1
4685 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
4689 if test $ol_with_threads = mach ; then
4690 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
4694 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4695 -o $ol_with_threads = lwp ; then
4697 for ac_hdr in thread.h synch.h
4699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4701 echo "configure:4702: checking for $ac_hdr" >&5
4702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4711 { (eval echo configure:4712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4712 ac_err=`grep -v '^ *+' conftest.out`
4713 if test -z "$ac_err"; then
4715 eval "ac_cv_header_$ac_safe=yes"
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4721 eval "ac_cv_header_$ac_safe=no"
4725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4726 echo "$ac_t""yes" 1>&6
4727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4728 cat >> confdefs.h <<EOF
4729 #define $ac_tr_hdr 1
4733 echo "$ac_t""no" 1>&6
4737 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
4738 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4739 echo "configure:4740: checking for thr_create in -lthread" >&5
4740 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4741 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4742 echo $ac_n "(cached) $ac_c" 1>&6
4744 ac_save_LIBS="$LIBS"
4745 LIBS="-lthread $LIBS"
4746 cat > conftest.$ac_ext <<EOF
4747 #line 4748 "configure"
4748 #include "confdefs.h"
4749 /* Override any gcc2 internal prototype to avoid an error. */
4750 /* We use char because int might match the return type of a gcc2
4751 builtin and then its argument prototype would still apply. */
4758 if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4760 eval "ac_cv_lib_$ac_lib_var=yes"
4762 echo "configure: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4765 eval "ac_cv_lib_$ac_lib_var=no"
4768 LIBS="$ac_save_LIBS"
4771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4772 echo "$ac_t""yes" 1>&6
4775 echo "$ac_t""no" 1>&6
4780 if test $have_thr = yes ; then
4781 cat >> confdefs.h <<\EOF
4785 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
4788 if test $ol_with_yielding_select = auto ; then
4789 ol_with_yielding_select=yes
4793 thr_setconcurrency \
4794 thr_getconcurrency \
4797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4798 echo "configure:4799: checking for $ac_func" >&5
4799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4805 /* System header to define __stub macros and hopefully few prototypes,
4806 which can conflict with char $ac_func(); below. */
4808 /* Override any gcc2 internal prototype to avoid an error. */
4809 /* We use char because int might match the return type of a gcc2
4810 builtin and then its argument prototype would still apply. */
4815 /* The GNU C library defines this for functions which it implements
4816 to always fail with ENOSYS. Some functions are actually named
4817 something starting with __ and the normal name is an alias. */
4818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4828 eval "ac_cv_func_$ac_func=yes"
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 eval "ac_cv_func_$ac_func=no"
4838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4839 echo "$ac_t""yes" 1>&6
4840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4841 cat >> confdefs.h <<EOF
4842 #define $ac_tr_func 1
4846 echo "$ac_t""no" 1>&6
4853 for ac_hdr in lwp/lwp.h
4855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4857 echo "configure:4858: checking for $ac_hdr" >&5
4858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867 { (eval echo configure:4868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4868 ac_err=`grep -v '^ *+' conftest.out`
4869 if test -z "$ac_err"; then
4871 eval "ac_cv_header_$ac_safe=yes"
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4877 eval "ac_cv_header_$ac_safe=no"
4881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4882 echo "$ac_t""yes" 1>&6
4883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4884 cat >> confdefs.h <<EOF
4885 #define $ac_tr_hdr 1
4889 echo "$ac_t""no" 1>&6
4893 if test $ac_cv_header_lwp_lwp_h = yes ; then
4894 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
4895 echo "configure:4896: checking for lwp_create in -llwp" >&5
4896 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
4897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4898 echo $ac_n "(cached) $ac_c" 1>&6
4900 ac_save_LIBS="$LIBS"
4902 cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4905 /* Override any gcc2 internal prototype to avoid an error. */
4906 /* We use char because int might match the return type of a gcc2
4907 builtin and then its argument prototype would still apply. */
4914 if { (eval echo configure:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4916 eval "ac_cv_lib_$ac_lib_var=yes"
4918 echo "configure: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
4921 eval "ac_cv_lib_$ac_lib_var=no"
4924 LIBS="$ac_save_LIBS"
4927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4928 echo "$ac_t""yes" 1>&6
4931 echo "$ac_t""no" 1>&6
4936 if test $have_lwp = yes ; then
4937 cat >> confdefs.h <<\EOF
4941 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
4944 if test $ol_with_yielding_select = auto ; then
4945 ol_with_yielding_select=no
4951 if test $ol_with_yielding_select = yes ; then
4952 cat >> confdefs.h <<\EOF
4953 #define HAVE_YIELDING_SELECT 1
4958 if test $ol_with_threads = manual ; then
4961 echo "configure: warning: thread defines and link options must be set manually" 1>&2
4963 for ac_hdr in pthread.h sched.h
4965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4967 echo "configure:4968: checking for $ac_hdr" >&5
4968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4971 cat > conftest.$ac_ext <<EOF
4972 #line 4973 "configure"
4973 #include "confdefs.h"
4976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4977 { (eval echo configure:4978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4978 ac_err=`grep -v '^ *+' conftest.out`
4979 if test -z "$ac_err"; then
4981 eval "ac_cv_header_$ac_safe=yes"
4984 echo "configure: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4987 eval "ac_cv_header_$ac_safe=no"
4991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4992 echo "$ac_t""yes" 1>&6
4993 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4994 cat >> confdefs.h <<EOF
4995 #define $ac_tr_hdr 1
4999 echo "$ac_t""no" 1>&6
5003 for ac_func in sched_yield pthread_yield
5005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5006 echo "configure:5007: checking for $ac_func" >&5
5007 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5010 cat > conftest.$ac_ext <<EOF
5011 #line 5012 "configure"
5012 #include "confdefs.h"
5013 /* System header to define __stub macros and hopefully few prototypes,
5014 which can conflict with char $ac_func(); below. */
5016 /* Override any gcc2 internal prototype to avoid an error. */
5017 /* We use char because int might match the return type of a gcc2
5018 builtin and then its argument prototype would still apply. */
5023 /* The GNU C library defines this for functions which it implements
5024 to always fail with ENOSYS. Some functions are actually named
5025 something starting with __ and the normal name is an alias. */
5026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5034 if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5036 eval "ac_cv_func_$ac_func=yes"
5038 echo "configure: failed program was:" >&5
5039 cat conftest.$ac_ext >&5
5041 eval "ac_cv_func_$ac_func=no"
5046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5047 echo "$ac_t""yes" 1>&6
5048 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5049 cat >> confdefs.h <<EOF
5050 #define $ac_tr_func 1
5054 echo "$ac_t""no" 1>&6
5059 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5060 echo "configure:5061: checking for LinuxThreads" >&5
5061 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5065 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5066 if test "$res" -gt 0 ; then
5067 ol_cv_linux_threads=yes
5069 ol_cv_linux_threads=no
5074 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5077 for ac_hdr in mach/cthreads.h
5079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5081 echo "configure:5082: checking for $ac_hdr" >&5
5082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5085 cat > conftest.$ac_ext <<EOF
5086 #line 5087 "configure"
5087 #include "confdefs.h"
5090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5091 { (eval echo configure:5092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5092 ac_err=`grep -v '^ *+' conftest.out`
5093 if test -z "$ac_err"; then
5095 eval "ac_cv_header_$ac_safe=yes"
5098 echo "configure: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5101 eval "ac_cv_header_$ac_safe=no"
5105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5106 echo "$ac_t""yes" 1>&6
5107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5108 cat >> confdefs.h <<EOF
5109 #define $ac_tr_hdr 1
5113 echo "$ac_t""no" 1>&6
5117 for ac_hdr in lwp/lwp.h
5119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5121 echo "configure:5122: checking for $ac_hdr" >&5
5122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5131 { (eval echo configure:5132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5132 ac_err=`grep -v '^ *+' conftest.out`
5133 if test -z "$ac_err"; then
5135 eval "ac_cv_header_$ac_safe=yes"
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5141 eval "ac_cv_header_$ac_safe=no"
5145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5146 echo "$ac_t""yes" 1>&6
5147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5148 cat >> confdefs.h <<EOF
5149 #define $ac_tr_hdr 1
5153 echo "$ac_t""no" 1>&6
5157 for ac_hdr in thread.h synch.h
5159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5161 echo "configure:5162: checking for $ac_hdr" >&5
5162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5171 { (eval echo configure:5172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5172 ac_err=`grep -v '^ *+' conftest.out`
5173 if test -z "$ac_err"; then
5175 eval "ac_cv_header_$ac_safe=yes"
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5181 eval "ac_cv_header_$ac_safe=no"
5185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5186 echo "$ac_t""yes" 1>&6
5187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5188 cat >> confdefs.h <<EOF
5189 #define $ac_tr_hdr 1
5193 echo "$ac_t""no" 1>&6
5199 if test $ol_link_threads != no ; then
5200 cat >> confdefs.h <<\EOF
5204 cat >> confdefs.h <<\EOF
5205 #define _REENTRANT 1
5208 cat >> confdefs.h <<\EOF
5209 #define THREAD_SAFE 1
5212 cat >> confdefs.h <<\EOF
5213 #define _THREAD_SAFE 1
5216 cat >> confdefs.h <<\EOF
5217 #define THREADSAFE 1
5220 cat >> confdefs.h <<\EOF
5221 #define _THREADSAFE 1
5225 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
5226 echo "configure:5227: checking for thread specific errno" >&5
5227 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5231 cat > conftest.$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5243 if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5245 ol_cv_errno_thread_specific=yes
5247 echo "configure: failed program was:" >&5
5248 cat conftest.$ac_ext >&5
5250 ol_cv_errno_thread_specific=no
5256 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
5258 if test $ol_cv_errno_thread_specific != yes ; then
5259 LIBS="$LTHREAD_LIBS $LIBS"
5265 if test $ol_link_threads = no ; then
5266 if test $ol_with_threads = yes ; then
5267 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
5270 if test $ol_with_threads = auto ; then
5271 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
5275 cat >> confdefs.h <<\EOF
5276 #define NO_THREADS 1
5283 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
5284 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
5285 echo "configure:5286: checking for DB2 library" >&5
5286 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5290 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
5291 echo "configure:5292: checking for db_open in -ldb" >&5
5292 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
5293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 ac_save_LIBS="$LIBS"
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5301 /* Override any gcc2 internal prototype to avoid an error. */
5302 /* We use char because int might match the return type of a gcc2
5303 builtin and then its argument prototype would still apply. */
5310 if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5312 eval "ac_cv_lib_$ac_lib_var=yes"
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5317 eval "ac_cv_lib_$ac_lib_var=no"
5320 LIBS="$ac_save_LIBS"
5323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5324 echo "$ac_t""yes" 1>&6
5327 echo "$ac_t""no" 1>&6
5335 echo "$ac_t""$ol_cv_lib_db2" 1>&6
5339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5341 echo "configure:5342: checking for $ac_hdr" >&5
5342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5351 { (eval echo configure:5352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5352 ac_err=`grep -v '^ *+' conftest.out`
5353 if test -z "$ac_err"; then
5355 eval "ac_cv_header_$ac_safe=yes"
5358 echo "configure: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5361 eval "ac_cv_header_$ac_safe=no"
5365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5366 echo "$ac_t""yes" 1>&6
5367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5368 cat >> confdefs.h <<EOF
5369 #define $ac_tr_hdr 1
5373 echo "$ac_t""no" 1>&6
5377 if test $ac_cv_header_db_h = yes ; then
5378 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
5379 echo "configure:5380: checking if db.h is DB2" >&5
5380 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
5381 echo $ac_n "(cached) $ac_c" 1>&6
5384 cat > conftest.$ac_ext <<EOF
5385 #line 5386 "configure"
5386 #include "confdefs.h"
5389 /* this check could be improved */
5390 # ifdef DB_VERSION_MAJOR
5391 # if DB_VERSION_MAJOR == 2
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398 egrep "__db_version_2" >/dev/null 2>&1; then
5400 ol_cv_header_db2=yes
5409 echo "$ac_t""$ol_cv_header_db2" 1>&6
5416 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
5417 echo "configure:5418: checking for Berkeley DB2" >&5
5418 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5422 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
5423 ol_cv_berkeley_db2=no
5425 ol_cv_berkeley_db2=yes
5430 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
5431 if test $ol_cv_berkeley_db2 = yes ; then
5432 cat >> confdefs.h <<\EOF
5433 #define HAVE_BERKELEY_DB2 1
5439 if test $ol_cv_berkeley_db2 = yes ; then
5441 ol_with_ldbm_api=db2
5443 if test $ol_with_ldbm_type = hash ; then
5444 cat >> confdefs.h <<\EOF
5445 #define LDBM_USE_DBHASH 1
5449 cat >> confdefs.h <<\EOF
5450 #define LDBM_USE_DBBTREE 1
5455 if test $ol_cv_lib_db2 != yes ; then
5456 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
5461 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
5462 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
5463 echo "configure:5464: checking for Berkeley DB library" >&5
5464 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5468 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
5469 echo "configure:5470: checking for dbopen" >&5
5470 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
5471 echo $ac_n "(cached) $ac_c" 1>&6
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5476 /* System header to define __stub macros and hopefully few prototypes,
5477 which can conflict with char dbopen(); below. */
5479 /* Override any gcc2 internal prototype to avoid an error. */
5480 /* We use char because int might match the return type of a gcc2
5481 builtin and then its argument prototype would still apply. */
5486 /* The GNU C library defines this for functions which it implements
5487 to always fail with ENOSYS. Some functions are actually named
5488 something starting with __ and the normal name is an alias. */
5489 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5497 if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5499 eval "ac_cv_func_dbopen=yes"
5501 echo "configure: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5504 eval "ac_cv_func_dbopen=no"
5509 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5510 echo "$ac_t""yes" 1>&6
5513 echo "$ac_t""no" 1>&6
5515 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5516 echo "configure:5517: checking for dbopen in -ldb" >&5
5517 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5519 echo $ac_n "(cached) $ac_c" 1>&6
5521 ac_save_LIBS="$LIBS"
5523 cat > conftest.$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5526 /* Override any gcc2 internal prototype to avoid an error. */
5527 /* We use char because int might match the return type of a gcc2
5528 builtin and then its argument prototype would still apply. */
5535 if { (eval echo configure:5536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5537 eval "ac_cv_lib_$ac_lib_var=yes"
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5542 eval "ac_cv_lib_$ac_lib_var=no"
5545 LIBS="$ac_save_LIBS"
5548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5549 echo "$ac_t""yes" 1>&6
5552 echo "$ac_t""no" 1>&6
5563 echo "$ac_t""$ol_cv_lib_db" 1>&6
5566 for ac_hdr in db_185.h
5568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5569 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5570 echo "configure:5571: checking for $ac_hdr" >&5
5571 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5572 echo $ac_n "(cached) $ac_c" 1>&6
5574 cat > conftest.$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5580 { (eval echo configure:5581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5581 ac_err=`grep -v '^ *+' conftest.out`
5582 if test -z "$ac_err"; then
5584 eval "ac_cv_header_$ac_safe=yes"
5587 echo "configure: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5590 eval "ac_cv_header_$ac_safe=no"
5594 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5595 echo "$ac_t""yes" 1>&6
5596 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5597 cat >> confdefs.h <<EOF
5598 #define $ac_tr_hdr 1
5602 echo "$ac_t""no" 1>&6
5606 if test "$ol_cv_header_db2" = yes ; then
5608 ol_cv_header_db=$ac_cv_header_db_185_h
5610 ol_cv_header_db=$ac_cv_header_db_h
5615 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
5616 echo "configure:5617: checking for Berkeley DB" >&5
5617 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
5618 echo $ac_n "(cached) $ac_c" 1>&6
5621 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
5622 ol_cv_berkeley_db=no
5624 ol_cv_berkeley_db=yes
5629 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
5630 if test $ol_cv_berkeley_db = yes ; then
5631 cat >> confdefs.h <<\EOF
5632 #define HAVE_BERKELEY_DB 1
5638 if test $ol_cv_berkeley_db = yes ; then
5642 if test $ol_with_ldbm_type = hash ; then
5643 cat >> confdefs.h <<\EOF
5644 #define LDBM_USE_DBHASH 1
5648 cat >> confdefs.h <<\EOF
5649 #define LDBM_USE_DBBTREE 1
5654 if test $ol_cv_lib_db != yes ; then
5655 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
5660 if test $ol_with_ldbm_api = manual ; then
5663 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
5665 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
5667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5669 echo "configure:5670: checking for $ac_hdr" >&5
5670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5679 { (eval echo configure:5680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5680 ac_err=`grep -v '^ *+' conftest.out`
5681 if test -z "$ac_err"; then
5683 eval "ac_cv_header_$ac_safe=yes"
5686 echo "configure: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5689 eval "ac_cv_header_$ac_safe=no"
5693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5694 echo "$ac_t""yes" 1>&6
5695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5696 cat >> confdefs.h <<EOF
5697 #define $ac_tr_hdr 1
5701 echo "$ac_t""no" 1>&6
5707 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
5708 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
5709 ol_with_ldbm_api=none
5712 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
5713 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
5714 echo "configure:5715: checking for GDBM library" >&5
5715 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5719 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
5720 echo "configure:5721: checking for gdbm_open" >&5
5721 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5727 /* System header to define __stub macros and hopefully few prototypes,
5728 which can conflict with char gdbm_open(); below. */
5730 /* Override any gcc2 internal prototype to avoid an error. */
5731 /* We use char because int might match the return type of a gcc2
5732 builtin and then its argument prototype would still apply. */
5737 /* The GNU C library defines this for functions which it implements
5738 to always fail with ENOSYS. Some functions are actually named
5739 something starting with __ and the normal name is an alias. */
5740 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
5748 if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5750 eval "ac_cv_func_gdbm_open=yes"
5752 echo "configure: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5755 eval "ac_cv_func_gdbm_open=no"
5760 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
5761 echo "$ac_t""yes" 1>&6
5764 echo "$ac_t""no" 1>&6
5766 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
5767 echo "configure:5768: checking for gdbm_open in -lgdbm" >&5
5768 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
5769 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5770 echo $ac_n "(cached) $ac_c" 1>&6
5772 ac_save_LIBS="$LIBS"
5774 cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5777 /* Override any gcc2 internal prototype to avoid an error. */
5778 /* We use char because int might match the return type of a gcc2
5779 builtin and then its argument prototype would still apply. */
5786 if { (eval echo configure:5787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5788 eval "ac_cv_lib_$ac_lib_var=yes"
5790 echo "configure: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5793 eval "ac_cv_lib_$ac_lib_var=no"
5796 LIBS="$ac_save_LIBS"
5799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5800 echo "$ac_t""yes" 1>&6
5801 ol_cv_lib_gdbm=-lgdbm
5803 echo "$ac_t""no" 1>&6
5814 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
5817 for ac_hdr in gdbm.h
5819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5821 echo "configure:5822: checking for $ac_hdr" >&5
5822 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5823 echo $ac_n "(cached) $ac_c" 1>&6
5825 cat > conftest.$ac_ext <<EOF
5826 #line 5827 "configure"
5827 #include "confdefs.h"
5830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5831 { (eval echo configure:5832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5832 ac_err=`grep -v '^ *+' conftest.out`
5833 if test -z "$ac_err"; then
5835 eval "ac_cv_header_$ac_safe=yes"
5838 echo "configure: failed program was:" >&5
5839 cat conftest.$ac_ext >&5
5841 eval "ac_cv_header_$ac_safe=no"
5845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5846 echo "$ac_t""yes" 1>&6
5847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5848 cat >> confdefs.h <<EOF
5849 #define $ac_tr_hdr 1
5853 echo "$ac_t""no" 1>&6
5857 echo $ac_n "checking for db""... $ac_c" 1>&6
5858 echo "configure:5859: checking for db" >&5
5859 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
5860 echo $ac_n "(cached) $ac_c" 1>&6
5863 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
5871 echo "$ac_t""$ol_cv_gdbm" 1>&6
5872 if test $ol_cv_gdbm = yes ; then
5873 cat >> confdefs.h <<\EOF
5880 if test $ol_cv_gdbm = yes ; then
5882 ol_with_ldbm_api=gdbm
5884 if test $ol_cv_lib_gdbm != yes ; then
5885 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
5890 if test $ol_with_ldbm_api = auto ; then
5891 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
5892 elif test $ol_with_ldbm_api = ndbm ; then
5893 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
5894 echo "configure:5895: checking for NDBM library" >&5
5895 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
5896 echo $ac_n "(cached) $ac_c" 1>&6
5899 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
5900 echo "configure:5901: checking for dbm_open" >&5
5901 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
5902 echo $ac_n "(cached) $ac_c" 1>&6
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 /* System header to define __stub macros and hopefully few prototypes,
5908 which can conflict with char dbm_open(); below. */
5910 /* Override any gcc2 internal prototype to avoid an error. */
5911 /* We use char because int might match the return type of a gcc2
5912 builtin and then its argument prototype would still apply. */
5917 /* The GNU C library defines this for functions which it implements
5918 to always fail with ENOSYS. Some functions are actually named
5919 something starting with __ and the normal name is an alias. */
5920 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
5928 if { (eval echo configure:5929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5930 eval "ac_cv_func_dbm_open=yes"
5932 echo "configure: failed program was:" >&5
5933 cat conftest.$ac_ext >&5
5935 eval "ac_cv_func_dbm_open=no"
5940 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
5941 echo "$ac_t""yes" 1>&6
5944 echo "$ac_t""no" 1>&6
5946 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
5947 echo "configure:5948: checking for dbm_open in -lndbm" >&5
5948 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
5949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5950 echo $ac_n "(cached) $ac_c" 1>&6
5952 ac_save_LIBS="$LIBS"
5954 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 /* Override any gcc2 internal prototype to avoid an error. */
5958 /* We use char because int might match the return type of a gcc2
5959 builtin and then its argument prototype would still apply. */
5966 if { (eval echo configure:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5968 eval "ac_cv_lib_$ac_lib_var=yes"
5970 echo "configure: failed program was:" >&5
5971 cat conftest.$ac_ext >&5
5973 eval "ac_cv_lib_$ac_lib_var=no"
5976 LIBS="$ac_save_LIBS"
5979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5980 echo "$ac_t""yes" 1>&6
5981 ol_cv_lib_ndbm=-lndbm
5983 echo "$ac_t""no" 1>&6
5985 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
5986 echo "configure:5987: checking for dbm_open in -ldbm" >&5
5987 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
5988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5991 ac_save_LIBS="$LIBS"
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 /* Override any gcc2 internal prototype to avoid an error. */
5997 /* We use char because int might match the return type of a gcc2
5998 builtin and then its argument prototype would still apply. */
6005 if { (eval echo configure:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6007 eval "ac_cv_lib_$ac_lib_var=yes"
6009 echo "configure: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6012 eval "ac_cv_lib_$ac_lib_var=no"
6015 LIBS="$ac_save_LIBS"
6018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6019 echo "$ac_t""yes" 1>&6
6020 ol_cv_lib_ndbm=-ldbm
6022 echo "$ac_t""no" 1>&6
6035 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6038 for ac_hdr in ndbm.h
6040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6042 echo "configure:6043: checking for $ac_hdr" >&5
6043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6046 cat > conftest.$ac_ext <<EOF
6047 #line 6048 "configure"
6048 #include "confdefs.h"
6051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6052 { (eval echo configure:6053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6053 ac_err=`grep -v '^ *+' conftest.out`
6054 if test -z "$ac_err"; then
6056 eval "ac_cv_header_$ac_safe=yes"
6059 echo "configure: failed program was:" >&5
6060 cat conftest.$ac_ext >&5
6062 eval "ac_cv_header_$ac_safe=no"
6066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6067 echo "$ac_t""yes" 1>&6
6068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6069 cat >> confdefs.h <<EOF
6070 #define $ac_tr_hdr 1
6074 echo "$ac_t""no" 1>&6
6078 echo $ac_n "checking for db""... $ac_c" 1>&6
6079 echo "configure:6080: checking for db" >&5
6080 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6084 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
6092 echo "$ac_t""$ol_cv_ndbm" 1>&6
6093 if test $ol_cv_ndbm = yes ; then
6094 cat >> confdefs.h <<\EOF
6101 if test $ol_cv_ndbm = yes ; then
6103 ol_with_ldbm_api=ndbm
6105 if test $ol_cv_lib_ndbm != yes ; then
6106 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
6111 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
6112 echo "configure: warning: could not find suitable LDBM backend" 1>&2
6113 if test $ol_enable_ldbm = yes ; then
6114 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
6117 echo "configure: warning: disabling LDBM" 1>&2
6121 if test $ol_enable_wrappers != no ; then
6122 for ac_hdr in tcpd.h
6124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6126 echo "configure:6127: checking for $ac_hdr" >&5
6127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6128 echo $ac_n "(cached) $ac_c" 1>&6
6130 cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure"
6132 #include "confdefs.h"
6135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6136 { (eval echo configure:6137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6137 ac_err=`grep -v '^ *+' conftest.out`
6138 if test -z "$ac_err"; then
6140 eval "ac_cv_header_$ac_safe=yes"
6143 echo "configure: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6146 eval "ac_cv_header_$ac_safe=no"
6150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6151 echo "$ac_t""yes" 1>&6
6152 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6153 cat >> confdefs.h <<EOF
6154 #define $ac_tr_hdr 1
6158 echo "$ac_t""no" 1>&6
6163 if test $ac_cv_header_tcpd_h != yes ; then
6166 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
6167 echo "configure:6168: checking for main in -lwrap" >&5
6168 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
6169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
6172 ac_save_LIBS="$LIBS"
6174 cat > conftest.$ac_ext <<EOF
6175 #line 6176 "configure"
6176 #include "confdefs.h"
6182 if { (eval echo configure:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6184 eval "ac_cv_lib_$ac_lib_var=yes"
6186 echo "configure: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6189 eval "ac_cv_lib_$ac_lib_var=no"
6192 LIBS="$ac_save_LIBS"
6195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6196 echo "$ac_t""yes" 1>&6
6199 echo "$ac_t""no" 1>&6
6205 if test $have_wrappers = yes ; then
6206 cat >> confdefs.h <<\EOF
6210 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
6212 echo "configure: warning: could not find -lwrap" 1>&2
6213 if test $ol_enable_wrappers = yes ; then
6214 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
6217 echo "configure: warning: disabling wrappers support" 1>&2
6218 ol_enable_wrappers=no
6222 # ud needs termcap (should insert check here)
6224 for ac_hdr in termcap.h ncurses.h
6226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6228 echo "configure:6229: checking for $ac_hdr" >&5
6229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6230 echo $ac_n "(cached) $ac_c" 1>&6
6232 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure"
6234 #include "confdefs.h"
6237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6238 { (eval echo configure:6239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6239 ac_err=`grep -v '^ *+' conftest.out`
6240 if test -z "$ac_err"; then
6242 eval "ac_cv_header_$ac_safe=yes"
6245 echo "configure: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6248 eval "ac_cv_header_$ac_safe=no"
6252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6253 echo "$ac_t""yes" 1>&6
6254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6255 cat >> confdefs.h <<EOF
6256 #define $ac_tr_hdr 1
6260 echo "$ac_t""no" 1>&6
6265 if test $ol_link_termcap = no ; then
6266 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
6267 echo "configure:6268: checking for tputs in -ltermcap" >&5
6268 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
6269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6270 echo $ac_n "(cached) $ac_c" 1>&6
6272 ac_save_LIBS="$LIBS"
6273 LIBS="-ltermcap $LIBS"
6274 cat > conftest.$ac_ext <<EOF
6275 #line 6276 "configure"
6276 #include "confdefs.h"
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6288 eval "ac_cv_lib_$ac_lib_var=yes"
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6293 eval "ac_cv_lib_$ac_lib_var=no"
6296 LIBS="$ac_save_LIBS"
6299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6300 echo "$ac_t""yes" 1>&6
6303 echo "$ac_t""no" 1>&6
6307 if test $have_termcap = yes ; then
6308 cat >> confdefs.h <<\EOF
6309 #define HAVE_TERMCAP 1
6313 TERMCAP_LIBS=-ltermcap
6317 if test $ol_link_termcap = no ; then
6318 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
6319 echo "configure:6320: checking for initscr in -lncurses" >&5
6320 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
6321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6322 echo $ac_n "(cached) $ac_c" 1>&6
6324 ac_save_LIBS="$LIBS"
6325 LIBS="-lncurses $LIBS"
6326 cat > conftest.$ac_ext <<EOF
6327 #line 6328 "configure"
6328 #include "confdefs.h"
6329 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6338 if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6340 eval "ac_cv_lib_$ac_lib_var=yes"
6342 echo "configure: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6345 eval "ac_cv_lib_$ac_lib_var=no"
6348 LIBS="$ac_save_LIBS"
6351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6352 echo "$ac_t""yes" 1>&6
6355 echo "$ac_t""no" 1>&6
6359 if test $have_ncurses = yes ; then
6360 cat >> confdefs.h <<\EOF
6361 #define HAVE_NCURSES 1
6365 TERMCAP_LIBS=-lncurses
6369 if test $ol_link_termcap = no ; then
6370 cat >> confdefs.h <<\EOF
6371 #define NO_TERMCAP 1
6377 # FreeBSD (and others) have crypt(3) in -lcrypt
6378 if test $ol_enable_crypt != no ; then
6379 echo $ac_n "checking for crypt""... $ac_c" 1>&6
6380 echo "configure:6381: checking for crypt" >&5
6381 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
6382 echo $ac_n "(cached) $ac_c" 1>&6
6384 cat > conftest.$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6387 /* System header to define __stub macros and hopefully few prototypes,
6388 which can conflict with char crypt(); below. */
6390 /* Override any gcc2 internal prototype to avoid an error. */
6391 /* We use char because int might match the return type of a gcc2
6392 builtin and then its argument prototype would still apply. */
6397 /* The GNU C library defines this for functions which it implements
6398 to always fail with ENOSYS. Some functions are actually named
6399 something starting with __ and the normal name is an alias. */
6400 #if defined (__stub_crypt) || defined (__stub___crypt)
6408 if { (eval echo configure:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6410 eval "ac_cv_func_crypt=yes"
6412 echo "configure: failed program was:" >&5
6413 cat conftest.$ac_ext >&5
6415 eval "ac_cv_func_crypt=no"
6420 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
6421 echo "$ac_t""yes" 1>&6
6424 echo "$ac_t""no" 1>&6
6426 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6427 echo "configure:6428: checking for crypt in -lcrypt" >&5
6428 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6430 echo $ac_n "(cached) $ac_c" 1>&6
6432 ac_save_LIBS="$LIBS"
6433 LIBS="-lcrypt $LIBS"
6434 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6437 /* Override any gcc2 internal prototype to avoid an error. */
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6446 if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6448 eval "ac_cv_lib_$ac_lib_var=yes"
6450 echo "configure: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6453 eval "ac_cv_lib_$ac_lib_var=no"
6456 LIBS="$ac_save_LIBS"
6459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6460 echo "$ac_t""yes" 1>&6
6461 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
6464 echo "$ac_t""no" 1>&6
6471 if test $have_crypt = yes ; then
6472 cat >> confdefs.h <<\EOF
6473 #define HAVE_CRYPT 1
6477 echo "configure: warning: could not find crypt" 1>&2
6478 if test $ol_enable_crypt = yes ; then
6479 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
6482 echo "configure: warning: disabling crypt support" 1>&2
6487 # FreeBSD (and others) have setproctitle(3) in -lutil
6488 if test $ol_enable_proctitle != no ; then
6489 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
6490 echo "configure:6491: checking for setproctitle" >&5
6491 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
6492 echo $ac_n "(cached) $ac_c" 1>&6
6494 cat > conftest.$ac_ext <<EOF
6495 #line 6496 "configure"
6496 #include "confdefs.h"
6497 /* System header to define __stub macros and hopefully few prototypes,
6498 which can conflict with char setproctitle(); below. */
6500 /* Override any gcc2 internal prototype to avoid an error. */
6501 /* We use char because int might match the return type of a gcc2
6502 builtin and then its argument prototype would still apply. */
6503 char setproctitle();
6507 /* The GNU C library defines this for functions which it implements
6508 to always fail with ENOSYS. Some functions are actually named
6509 something starting with __ and the normal name is an alias. */
6510 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6520 eval "ac_cv_func_setproctitle=yes"
6522 echo "configure: failed program was:" >&5
6523 cat conftest.$ac_ext >&5
6525 eval "ac_cv_func_setproctitle=no"
6530 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
6531 echo "$ac_t""yes" 1>&6
6532 have_setproctitle=yes
6534 echo "$ac_t""no" 1>&6
6536 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
6537 echo "configure:6538: checking for setproctitle in -lutil" >&5
6538 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
6539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6542 ac_save_LIBS="$LIBS"
6544 cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6547 /* Override any gcc2 internal prototype to avoid an error. */
6548 /* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */
6550 char setproctitle();
6556 if { (eval echo configure:6557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6558 eval "ac_cv_lib_$ac_lib_var=yes"
6560 echo "configure: failed program was:" >&5
6561 cat conftest.$ac_ext >&5
6563 eval "ac_cv_lib_$ac_lib_var=no"
6566 LIBS="$ac_save_LIBS"
6569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6570 echo "$ac_t""yes" 1>&6
6571 have_setproctitle=yes
6572 LUTIL_LIBS="$LUTIL_LIBS -lutil"
6574 echo "$ac_t""no" 1>&6
6575 have_setproctitle=no
6576 LIBOBJS="$LIBOBJS setproctitle.o"
6582 if test $have_setproctitle = yes ; then
6583 cat >> confdefs.h <<\EOF
6584 #define HAVE_SETPROCTITLE 1
6590 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6591 echo "configure:6592: checking for ANSI C header files" >&5
6592 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6593 echo $ac_n "(cached) $ac_c" 1>&6
6595 cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6604 { (eval echo configure:6605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6605 ac_err=`grep -v '^ *+' conftest.out`
6606 if test -z "$ac_err"; then
6608 ac_cv_header_stdc=yes
6611 echo "configure: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6614 ac_cv_header_stdc=no
6618 if test $ac_cv_header_stdc = yes; then
6619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6626 egrep "memchr" >/dev/null 2>&1; then
6630 ac_cv_header_stdc=no
6636 if test $ac_cv_header_stdc = yes; then
6637 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6638 cat > conftest.$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6644 egrep "free" >/dev/null 2>&1; then
6648 ac_cv_header_stdc=no
6654 if test $ac_cv_header_stdc = yes; then
6655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6656 if test "$cross_compiling" = yes; then
6659 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure"
6661 #include "confdefs.h"
6663 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6664 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6666 int main () { int i; for (i = 0; i < 256; i++)
6667 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6671 if { (eval echo configure:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6675 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5
6678 ac_cv_header_stdc=no
6686 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6687 if test $ac_cv_header_stdc = yes; then
6688 cat >> confdefs.h <<\EOF
6689 #define STDC_HEADERS 1
6695 if test $ac_cv_header_stdc != yes; then
6696 echo "configure: warning: could not Standard C compliant headers" 1>&2
6700 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6702 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6703 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6704 echo "configure:6705: checking for $ac_hdr that defines DIR" >&5
6705 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 #include <sys/types.h>
6717 if { (eval echo configure:6718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6719 eval "ac_cv_header_dirent_$ac_safe=yes"
6721 echo "configure: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6724 eval "ac_cv_header_dirent_$ac_safe=no"
6728 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6729 echo "$ac_t""yes" 1>&6
6730 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6731 cat >> confdefs.h <<EOF
6732 #define $ac_tr_hdr 1
6734 ac_header_dirent=$ac_hdr; break
6736 echo "$ac_t""no" 1>&6
6739 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6740 if test $ac_header_dirent = dirent.h; then
6741 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6742 echo "configure:6743: checking for opendir in -ldir" >&5
6743 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6747 ac_save_LIBS="$LIBS"
6749 cat > conftest.$ac_ext <<EOF
6750 #line 6751 "configure"
6751 #include "confdefs.h"
6752 /* Override any gcc2 internal prototype to avoid an error. */
6753 /* We use char because int might match the return type of a gcc2
6754 builtin and then its argument prototype would still apply. */
6761 if { (eval echo configure:6762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6763 eval "ac_cv_lib_$ac_lib_var=yes"
6765 echo "configure: failed program was:" >&5
6766 cat conftest.$ac_ext >&5
6768 eval "ac_cv_lib_$ac_lib_var=no"
6771 LIBS="$ac_save_LIBS"
6774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6775 echo "$ac_t""yes" 1>&6
6778 echo "$ac_t""no" 1>&6
6782 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6783 echo "configure:6784: checking for opendir in -lx" >&5
6784 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6788 ac_save_LIBS="$LIBS"
6790 cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6793 /* Override any gcc2 internal prototype to avoid an error. */
6794 /* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6802 if { (eval echo configure:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6804 eval "ac_cv_lib_$ac_lib_var=yes"
6806 echo "configure: failed program was:" >&5
6807 cat conftest.$ac_ext >&5
6809 eval "ac_cv_lib_$ac_lib_var=no"
6812 LIBS="$ac_save_LIBS"
6815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6816 echo "$ac_t""yes" 1>&6
6819 echo "$ac_t""no" 1>&6
6824 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6825 echo "configure:6826: checking for sys/wait.h that is POSIX.1 compatible" >&5
6826 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 #include <sys/types.h>
6833 #include <sys/wait.h>
6835 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6838 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6843 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6846 if { (eval echo configure:6847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6848 ac_cv_header_sys_wait_h=yes
6850 echo "configure: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6853 ac_cv_header_sys_wait_h=no
6858 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6859 if test $ac_cv_header_sys_wait_h = yes; then
6860 cat >> confdefs.h <<\EOF
6861 #define HAVE_SYS_WAIT_H 1
6866 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
6867 echo "configure:6868: checking POSIX termios" >&5
6868 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
6869 echo $ac_n "(cached) $ac_c" 1>&6
6871 cat > conftest.$ac_ext <<EOF
6872 #line 6873 "configure"
6873 #include "confdefs.h"
6874 #include <sys/types.h>
6876 #include <termios.h>
6878 /* SunOS 4.0.3 has termios.h but not the library calls. */
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6884 am_cv_sys_posix_termios=yes
6886 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6889 am_cv_sys_posix_termios=no
6894 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
6897 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
6898 echo "configure:6899: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
6899 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
6900 echo $ac_n "(cached) $ac_c" 1>&6
6902 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
6904 gwinsz_in_termios_h=no
6905 if test $am_cv_sys_posix_termios = yes; then
6906 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6909 #include <sys/types.h>
6910 # include <termios.h>
6916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6917 egrep "yes" >/dev/null 2>&1; then
6919 gwinsz_in_termios_h=yes
6925 if test $gwinsz_in_termios_h = no; then
6926 cat > conftest.$ac_ext <<EOF
6927 #line 6928 "configure"
6928 #include "confdefs.h"
6929 #include <sys/types.h>
6930 # include <sys/ioctl.h>
6936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6937 egrep "yes" >/dev/null 2>&1; then
6939 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
6947 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
6948 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
6949 cat >> confdefs.h <<\EOF
6950 #define GWINSZ_IN_SYS_IOCTL 1
6955 if test $am_cv_sys_posix_termios = yes ; then
6956 cat >> confdefs.h <<\EOF
6957 #define HAVE_POSIX_TERMIOS 1
6995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6997 echo "configure:6998: checking for $ac_hdr" >&5
6998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6999 echo $ac_n "(cached) $ac_c" 1>&6
7001 cat > conftest.$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7007 { (eval echo configure:7008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7008 ac_err=`grep -v '^ *+' conftest.out`
7009 if test -z "$ac_err"; then
7011 eval "ac_cv_header_$ac_safe=yes"
7014 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7017 eval "ac_cv_header_$ac_safe=no"
7021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7022 echo "$ac_t""yes" 1>&6
7023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7024 cat >> confdefs.h <<EOF
7025 #define $ac_tr_hdr 1
7029 echo "$ac_t""no" 1>&6
7034 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7035 echo "configure:7036: checking for uid_t in sys/types.h" >&5
7036 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7039 cat > conftest.$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7042 #include <sys/types.h>
7044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7045 egrep "uid_t" >/dev/null 2>&1; then
7047 ac_cv_type_uid_t=yes
7056 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7057 if test $ac_cv_type_uid_t = no; then
7058 cat >> confdefs.h <<\EOF
7062 cat >> confdefs.h <<\EOF
7068 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
7069 echo "configure:7070: checking type of array argument to getgroups" >&5
7070 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
7071 echo $ac_n "(cached) $ac_c" 1>&6
7073 if test "$cross_compiling" = yes; then
7074 ac_cv_type_getgroups=cross
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7080 /* Thanks to Mike Rendell for this test. */
7081 #include <sys/types.h>
7084 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7089 union { gid_t gval; long lval; } val;
7092 for (i = 0; i < NGID; i++)
7093 gidset[i] = val.gval;
7094 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7096 /* Exit non-zero if getgroups seems to require an array of ints. This
7097 happens when gid_t is short but getgroups modifies an array of ints. */
7098 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7104 ac_cv_type_getgroups=gid_t
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7109 ac_cv_type_getgroups=int
7114 if test $ac_cv_type_getgroups = cross; then
7115 cat > conftest.$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7121 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7123 ac_cv_type_getgroups=gid_t
7126 ac_cv_type_getgroups=int
7133 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
7134 cat >> confdefs.h <<EOF
7135 #define GETGROUPS_T $ac_cv_type_getgroups
7138 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7139 echo "configure:7140: checking for mode_t" >&5
7140 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7143 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7146 #include <sys/types.h>
7152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7153 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7155 ac_cv_type_mode_t=yes
7158 ac_cv_type_mode_t=no
7163 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
7164 if test $ac_cv_type_mode_t = no; then
7165 cat >> confdefs.h <<\EOF
7171 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7172 echo "configure:7173: checking for off_t" >&5
7173 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7174 echo $ac_n "(cached) $ac_c" 1>&6
7176 cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179 #include <sys/types.h>
7185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7186 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7188 ac_cv_type_off_t=yes
7196 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7197 if test $ac_cv_type_off_t = no; then
7198 cat >> confdefs.h <<\EOF
7204 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7205 echo "configure:7206: checking for pid_t" >&5
7206 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7209 cat > conftest.$ac_ext <<EOF
7210 #line 7211 "configure"
7211 #include "confdefs.h"
7212 #include <sys/types.h>
7218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7219 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7221 ac_cv_type_pid_t=yes
7229 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7230 if test $ac_cv_type_pid_t = no; then
7231 cat >> confdefs.h <<\EOF
7237 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
7238 echo "configure:7239: checking for ptrdiff_t" >&5
7239 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7250 if { (eval echo configure:7251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7252 am_cv_type_ptrdiff_t=yes
7254 echo "configure: failed program was:" >&5
7255 cat conftest.$ac_ext >&5
7257 am_cv_type_ptrdiff_t=no
7262 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
7263 if test $am_cv_type_ptrdiff_t = yes; then
7264 cat >> confdefs.h <<\EOF
7265 #define HAVE_PTRDIFF_T 1
7270 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7271 echo "configure:7272: checking return type of signal handlers" >&5
7272 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
7273 echo $ac_n "(cached) $ac_c" 1>&6
7275 cat > conftest.$ac_ext <<EOF
7276 #line 7277 "configure"
7277 #include "confdefs.h"
7278 #include <sys/types.h>
7284 extern "C" void (*signal (int, void (*)(int)))(int);
7286 void (*signal ()) ();
7293 if { (eval echo configure:7294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7295 ac_cv_type_signal=void
7297 echo "configure: failed program was:" >&5
7298 cat conftest.$ac_ext >&5
7300 ac_cv_type_signal=int
7305 echo "$ac_t""$ac_cv_type_signal" 1>&6
7306 cat >> confdefs.h <<EOF
7307 #define RETSIGTYPE $ac_cv_type_signal
7311 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7312 echo "configure:7313: checking for size_t" >&5
7313 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7314 echo $ac_n "(cached) $ac_c" 1>&6
7316 cat > conftest.$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7319 #include <sys/types.h>
7325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7326 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7328 ac_cv_type_size_t=yes
7331 ac_cv_type_size_t=no
7336 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7337 if test $ac_cv_type_size_t = no; then
7338 cat >> confdefs.h <<\EOF
7339 #define size_t unsigned
7344 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
7345 echo "configure:7346: checking for st_blksize in struct stat" >&5
7346 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
7347 echo $ac_n "(cached) $ac_c" 1>&6
7349 cat > conftest.$ac_ext <<EOF
7350 #line 7351 "configure"
7351 #include "confdefs.h"
7352 #include <sys/types.h>
7353 #include <sys/stat.h>
7355 struct stat s; s.st_blksize;
7358 if { (eval echo configure:7359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7360 ac_cv_struct_st_blksize=yes
7362 echo "configure: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7365 ac_cv_struct_st_blksize=no
7370 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
7371 if test $ac_cv_struct_st_blksize = yes; then
7372 cat >> confdefs.h <<\EOF
7373 #define HAVE_ST_BLKSIZE 1
7378 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
7379 echo "configure:7380: checking whether time.h and sys/time.h may both be included" >&5
7380 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
7381 echo $ac_n "(cached) $ac_c" 1>&6
7383 cat > conftest.$ac_ext <<EOF
7384 #line 7385 "configure"
7385 #include "confdefs.h"
7386 #include <sys/types.h>
7387 #include <sys/time.h>
7393 if { (eval echo configure:7394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7395 ac_cv_header_time=yes
7397 echo "configure: failed program was:" >&5
7398 cat conftest.$ac_ext >&5
7400 ac_cv_header_time=no
7405 echo "$ac_t""$ac_cv_header_time" 1>&6
7406 if test $ac_cv_header_time = yes; then
7407 cat >> confdefs.h <<\EOF
7408 #define TIME_WITH_SYS_TIME 1
7413 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
7414 echo "configure:7415: checking whether struct tm is in sys/time.h or time.h" >&5
7415 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
7416 echo $ac_n "(cached) $ac_c" 1>&6
7418 cat > conftest.$ac_ext <<EOF
7419 #line 7420 "configure"
7420 #include "confdefs.h"
7421 #include <sys/types.h>
7424 struct tm *tp; tp->tm_sec;
7427 if { (eval echo configure:7428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7429 ac_cv_struct_tm=time.h
7431 echo "configure: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7434 ac_cv_struct_tm=sys/time.h
7439 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7440 if test $ac_cv_struct_tm = sys/time.h; then
7441 cat >> confdefs.h <<\EOF
7442 #define TM_IN_SYS_TIME 1
7449 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
7450 echo "configure:7451: checking if toupper() requires islower()" >&5
7451 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
7452 echo $ac_n "(cached) $ac_c" 1>&6
7455 if test "$cross_compiling" = yes; then
7456 ol_cv_c_upper_lower=safe
7458 cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7465 if ('C' == toupper('C'))
7471 if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7473 ol_cv_c_upper_lower=no
7475 echo "configure: failed program was:" >&5
7476 cat conftest.$ac_ext >&5
7478 ol_cv_c_upper_lower=yes
7485 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
7486 if test $ol_cv_c_upper_lower != no ; then
7487 cat >> confdefs.h <<\EOF
7488 #define C_UPPER_LOWER 1
7493 echo $ac_n "checking for working const""... $ac_c" 1>&6
7494 echo "configure:7495: checking for working const" >&5
7495 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
7498 cat > conftest.$ac_ext <<EOF
7499 #line 7500 "configure"
7500 #include "confdefs.h"
7504 /* Ultrix mips cc rejects this. */
7505 typedef int charset[2]; const charset x;
7506 /* SunOS 4.1.1 cc rejects this. */
7507 char const *const *ccp;
7509 /* NEC SVR4.0.2 mips cc rejects this. */
7510 struct point {int x, y;};
7511 static struct point const zero = {0,0};
7512 /* AIX XL C 1.02.0.0 rejects this.
7513 It does not let you subtract one const X* pointer from another in an arm
7514 of an if-expression whose if-part is not a constant expression */
7515 const char *g = "string";
7516 ccp = &g + (g ? g-g : 0);
7517 /* HPUX 7.0 cc rejects these. */
7520 ccp = (char const *const *) p;
7521 { /* SCO 3.2v4 cc rejects this. */
7523 char const *s = 0 ? (char *) 0 : (char const *) 0;
7527 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7529 const int *foo = &x[0];
7532 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7533 typedef const int *iptr;
7537 { /* AIX XL C 1.02.0.0 rejects this saying
7538 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7539 struct s { int j; const int *ap[3]; };
7540 struct s *b; b->j = 5;
7542 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7548 if { (eval echo configure:7549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7552 echo "configure: failed program was:" >&5
7553 cat conftest.$ac_ext >&5
7560 echo "$ac_t""$ac_cv_c_const" 1>&6
7561 if test $ac_cv_c_const = no; then
7562 cat >> confdefs.h <<\EOF
7569 if test $cross_compiling = yes ; then
7570 cat >> confdefs.h <<\EOF
7571 #define CROSS_COMPILING 1
7575 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7576 echo "configure:7577: checking whether byte ordering is bigendian" >&5
7577 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7578 echo $ac_n "(cached) $ac_c" 1>&6
7580 ac_cv_c_bigendian=unknown
7581 # See if sys/param.h defines the BYTE_ORDER macro.
7582 cat > conftest.$ac_ext <<EOF
7583 #line 7584 "configure"
7584 #include "confdefs.h"
7585 #include <sys/types.h>
7586 #include <sys/param.h>
7589 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7594 if { (eval echo configure:7595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7596 # It does; now see whether it defined to BIG_ENDIAN or not.
7597 cat > conftest.$ac_ext <<EOF
7598 #line 7599 "configure"
7599 #include "confdefs.h"
7600 #include <sys/types.h>
7601 #include <sys/param.h>
7604 #if BYTE_ORDER != BIG_ENDIAN
7609 if { (eval echo configure:7610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7611 ac_cv_c_bigendian=yes
7613 echo "configure: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7616 ac_cv_c_bigendian=no
7620 echo "configure: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7624 if test $ac_cv_c_bigendian = unknown; then
7625 if test "$cross_compiling" = yes; then
7626 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7628 cat > conftest.$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7632 /* Are we little or big endian? From Harbison&Steele. */
7636 char c[sizeof (long)];
7639 exit (u.c[sizeof (long) - 1] == 1);
7642 if { (eval echo configure:7643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7644 ac_cv_c_bigendian=no
7646 echo "configure: failed program was:" >&5
7647 cat conftest.$ac_ext >&5
7649 ac_cv_c_bigendian=yes
7657 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7658 if test $ac_cv_c_bigendian = yes; then
7659 cat >> confdefs.h <<\EOF
7660 #define WORDS_BIGENDIAN 1
7665 echo $ac_n "checking size of short""... $ac_c" 1>&6
7666 echo "configure:7667: checking size of short" >&5
7667 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7670 if test "$cross_compiling" = yes; then
7671 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7673 cat > conftest.$ac_ext <<EOF
7674 #line 7675 "configure"
7675 #include "confdefs.h"
7679 FILE *f=fopen("conftestval", "w");
7681 fprintf(f, "%d\n", sizeof(short));
7685 if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7687 ac_cv_sizeof_short=`cat conftestval`
7689 echo "configure: failed program was:" >&5
7690 cat conftest.$ac_ext >&5
7692 ac_cv_sizeof_short=0
7698 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7699 cat >> confdefs.h <<EOF
7700 #define SIZEOF_SHORT $ac_cv_sizeof_short
7704 echo $ac_n "checking size of int""... $ac_c" 1>&6
7705 echo "configure:7706: checking size of int" >&5
7706 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7707 echo $ac_n "(cached) $ac_c" 1>&6
7709 if test "$cross_compiling" = yes; then
7710 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7712 cat > conftest.$ac_ext <<EOF
7713 #line 7714 "configure"
7714 #include "confdefs.h"
7718 FILE *f=fopen("conftestval", "w");
7720 fprintf(f, "%d\n", sizeof(int));
7724 if { (eval echo configure:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7726 ac_cv_sizeof_int=`cat conftestval`
7728 echo "configure: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7737 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7738 cat >> confdefs.h <<EOF
7739 #define SIZEOF_INT $ac_cv_sizeof_int
7743 echo $ac_n "checking size of long""... $ac_c" 1>&6
7744 echo "configure:7745: checking size of long" >&5
7745 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7746 echo $ac_n "(cached) $ac_c" 1>&6
7748 if test "$cross_compiling" = yes; then
7749 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7751 cat > conftest.$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7757 FILE *f=fopen("conftestval", "w");
7759 fprintf(f, "%d\n", sizeof(long));
7763 if { (eval echo configure:7764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7765 ac_cv_sizeof_long=`cat conftestval`
7767 echo "configure: failed program was:" >&5
7768 cat conftest.$ac_ext >&5
7776 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7777 cat >> confdefs.h <<EOF
7778 #define SIZEOF_LONG $ac_cv_sizeof_long
7784 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
7785 echo "configure:7786: checking for 8-bit clean memcmp" >&5
7786 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7789 if test "$cross_compiling" = yes; then
7790 ac_cv_func_memcmp_clean=no
7792 cat > conftest.$ac_ext <<EOF
7793 #line 7794 "configure"
7794 #include "confdefs.h"
7798 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7799 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
7803 if { (eval echo configure:7804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7805 ac_cv_func_memcmp_clean=yes
7807 echo "configure: failed program was:" >&5
7808 cat conftest.$ac_ext >&5
7810 ac_cv_func_memcmp_clean=no
7817 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
7818 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
7820 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7821 echo "configure:7822: checking for strftime" >&5
7822 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7825 cat > conftest.$ac_ext <<EOF
7826 #line 7827 "configure"
7827 #include "confdefs.h"
7828 /* System header to define __stub macros and hopefully few prototypes,
7829 which can conflict with char strftime(); below. */
7831 /* Override any gcc2 internal prototype to avoid an error. */
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7838 /* The GNU C library defines this for functions which it implements
7839 to always fail with ENOSYS. Some functions are actually named
7840 something starting with __ and the normal name is an alias. */
7841 #if defined (__stub_strftime) || defined (__stub___strftime)
7849 if { (eval echo configure:7850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7851 eval "ac_cv_func_strftime=yes"
7853 echo "configure: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7856 eval "ac_cv_func_strftime=no"
7861 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7862 echo "$ac_t""yes" 1>&6
7863 cat >> confdefs.h <<\EOF
7864 #define HAVE_STRFTIME 1
7868 echo "$ac_t""no" 1>&6
7869 # strftime is in -lintl on SCO UNIX.
7870 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7871 echo "configure:7872: checking for strftime in -lintl" >&5
7872 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
7873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7874 echo $ac_n "(cached) $ac_c" 1>&6
7876 ac_save_LIBS="$LIBS"
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7881 /* Override any gcc2 internal prototype to avoid an error. */
7882 /* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7890 if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7892 eval "ac_cv_lib_$ac_lib_var=yes"
7894 echo "configure: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7897 eval "ac_cv_lib_$ac_lib_var=no"
7900 LIBS="$ac_save_LIBS"
7903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7904 echo "$ac_t""yes" 1>&6
7905 cat >> confdefs.h <<\EOF
7906 #define HAVE_STRFTIME 1
7911 echo "$ac_t""no" 1>&6
7916 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7917 echo "configure:7918: checking for vprintf" >&5
7918 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7919 echo $ac_n "(cached) $ac_c" 1>&6
7921 cat > conftest.$ac_ext <<EOF
7922 #line 7923 "configure"
7923 #include "confdefs.h"
7924 /* System header to define __stub macros and hopefully few prototypes,
7925 which can conflict with char vprintf(); below. */
7927 /* Override any gcc2 internal prototype to avoid an error. */
7928 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7934 /* The GNU C library defines this for functions which it implements
7935 to always fail with ENOSYS. Some functions are actually named
7936 something starting with __ and the normal name is an alias. */
7937 #if defined (__stub_vprintf) || defined (__stub___vprintf)
7945 if { (eval echo configure:7946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7947 eval "ac_cv_func_vprintf=yes"
7949 echo "configure: failed program was:" >&5
7950 cat conftest.$ac_ext >&5
7952 eval "ac_cv_func_vprintf=no"
7957 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
7958 echo "$ac_t""yes" 1>&6
7959 cat >> confdefs.h <<\EOF
7960 #define HAVE_VPRINTF 1
7964 echo "$ac_t""no" 1>&6
7967 if test "$ac_cv_func_vprintf" != yes; then
7968 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7969 echo "configure:7970: checking for _doprnt" >&5
7970 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
7971 echo $ac_n "(cached) $ac_c" 1>&6
7973 cat > conftest.$ac_ext <<EOF
7974 #line 7975 "configure"
7975 #include "confdefs.h"
7976 /* System header to define __stub macros and hopefully few prototypes,
7977 which can conflict with char _doprnt(); below. */
7979 /* Override any gcc2 internal prototype to avoid an error. */
7980 /* We use char because int might match the return type of a gcc2
7981 builtin and then its argument prototype would still apply. */
7986 /* The GNU C library defines this for functions which it implements
7987 to always fail with ENOSYS. Some functions are actually named
7988 something starting with __ and the normal name is an alias. */
7989 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7997 if { (eval echo configure:7998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7999 eval "ac_cv_func__doprnt=yes"
8001 echo "configure: failed program was:" >&5
8002 cat conftest.$ac_ext >&5
8004 eval "ac_cv_func__doprnt=no"
8009 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8010 echo "$ac_t""yes" 1>&6
8011 cat >> confdefs.h <<\EOF
8012 #define HAVE_DOPRNT 1
8016 echo "$ac_t""no" 1>&6
8022 if test $ac_cv_func_vprintf = yes ; then
8023 for ac_func in vsnprintf vsprintf
8025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8026 echo "configure:8027: checking for $ac_func" >&5
8027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8028 echo $ac_n "(cached) $ac_c" 1>&6
8030 cat > conftest.$ac_ext <<EOF
8031 #line 8032 "configure"
8032 #include "confdefs.h"
8033 /* System header to define __stub macros and hopefully few prototypes,
8034 which can conflict with char $ac_func(); below. */
8036 /* Override any gcc2 internal prototype to avoid an error. */
8037 /* We use char because int might match the return type of a gcc2
8038 builtin and then its argument prototype would still apply. */
8043 /* The GNU C library defines this for functions which it implements
8044 to always fail with ENOSYS. Some functions are actually named
8045 something starting with __ and the normal name is an alias. */
8046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8054 if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8056 eval "ac_cv_func_$ac_func=yes"
8058 echo "configure: failed program was:" >&5
8059 cat conftest.$ac_ext >&5
8061 eval "ac_cv_func_$ac_func=no"
8066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8067 echo "$ac_t""yes" 1>&6
8068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8069 cat >> confdefs.h <<EOF
8070 #define $ac_tr_func 1
8074 echo "$ac_t""no" 1>&6
8110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8111 echo "configure:8112: checking for $ac_func" >&5
8112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8113 echo $ac_n "(cached) $ac_c" 1>&6
8115 cat > conftest.$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8118 /* System header to define __stub macros and hopefully few prototypes,
8119 which can conflict with char $ac_func(); below. */
8121 /* Override any gcc2 internal prototype to avoid an error. */
8122 /* We use char because int might match the return type of a gcc2
8123 builtin and then its argument prototype would still apply. */
8128 /* The GNU C library defines this for functions which it implements
8129 to always fail with ENOSYS. Some functions are actually named
8130 something starting with __ and the normal name is an alias. */
8131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8139 if { (eval echo configure:8140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8141 eval "ac_cv_func_$ac_func=yes"
8143 echo "configure: failed program was:" >&5
8144 cat conftest.$ac_ext >&5
8146 eval "ac_cv_func_$ac_func=no"
8151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8152 echo "$ac_t""yes" 1>&6
8153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8154 cat >> confdefs.h <<EOF
8155 #define $ac_tr_func 1
8159 echo "$ac_t""no" 1>&6
8164 for ac_func in getopt strdup tempnam
8166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8167 echo "configure:8168: checking for $ac_func" >&5
8168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8171 cat > conftest.$ac_ext <<EOF
8172 #line 8173 "configure"
8173 #include "confdefs.h"
8174 /* System header to define __stub macros and hopefully few prototypes,
8175 which can conflict with char $ac_func(); below. */
8177 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8184 /* The GNU C library defines this for functions which it implements
8185 to always fail with ENOSYS. Some functions are actually named
8186 something starting with __ and the normal name is an alias. */
8187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8195 if { (eval echo configure:8196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8197 eval "ac_cv_func_$ac_func=yes"
8199 echo "configure: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8202 eval "ac_cv_func_$ac_func=no"
8207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8208 echo "$ac_t""yes" 1>&6
8209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8210 cat >> confdefs.h <<EOF
8211 #define $ac_tr_func 1
8215 echo "$ac_t""no" 1>&6
8216 LIBOBJS="$LIBOBJS ${ac_func}.o"
8222 # Check Configuration
8224 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
8225 echo "configure:8226: checking declaration of sys_errlist" >&5
8226 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8230 cat > conftest.$ac_ext <<EOF
8231 #line 8232 "configure"
8232 #include "confdefs.h"
8235 #include <sys/types.h>
8238 char *c = (char *) *sys_errlist
8241 if { (eval echo configure:8242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8243 ol_cv_dcl_sys_errlist=yes
8245 echo "configure: failed program was:" >&5
8246 cat conftest.$ac_ext >&5
8248 ol_cv_dcl_sys_errlist=no
8253 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
8255 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
8256 if test $ol_cv_dcl_sys_errlist = no ; then
8257 cat >> confdefs.h <<\EOF
8258 #define DECL_SYS_ERRLIST 1
8261 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
8262 echo "configure:8263: checking existence of sys_errlist" >&5
8263 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
8264 echo $ac_n "(cached) $ac_c" 1>&6
8267 cat > conftest.$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8272 char *c = (char *) *sys_errlist
8275 if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8277 ol_cv_have_sys_errlist=yes
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8282 ol_cv_have_sys_errlist=no
8287 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
8292 if test "$ol_enable_debug" != no ; then
8293 cat >> confdefs.h <<\EOF
8294 #define LDAP_DEBUG 1
8298 if test "$ol_enable_libui" = yes ; then
8299 cat >> confdefs.h <<\EOF
8300 #define LDAP_LIBUI 1
8304 if test "$ol_enable_cache" = no ; then
8305 cat >> confdefs.h <<\EOF
8306 #define LDAP_NOCACHE 1
8310 if test "$ol_enable_dns" != no ; then
8311 cat >> confdefs.h <<\EOF
8316 if test "$ol_enable_proctitle" != no ; then
8317 cat >> confdefs.h <<\EOF
8318 #define LDAP_PROCTITLE 1
8322 if test "$ol_enable_referrals" != no ; then
8323 cat >> confdefs.h <<\EOF
8324 #define LDAP_REFERRALS 1
8328 if test "$ol_enable_cldap" != no ; then
8329 cat >> confdefs.h <<\EOF
8330 #define LDAP_CONNECTIONLESS 1
8335 if test "$ol_enable_aclgroups" != no ; then
8336 cat >> confdefs.h <<\EOF
8337 #define SLAPD_ACLGROUPS 1
8341 if test "$ol_enable_crypt" != no ; then
8342 cat >> confdefs.h <<\EOF
8343 #define SLAPD_CRYPT 1
8347 if test "$ol_enable_cleartext" != no ; then
8348 cat >> confdefs.h <<\EOF
8349 #define SLAPD_CLEARTEXT 1
8353 if test "$ol_enable_phonetic" != no ; then
8354 cat >> confdefs.h <<\EOF
8355 #define SLAPD_PHONETIC 1
8359 if test "$ol_enable_rlookups" != no ; then
8360 cat >> confdefs.h <<\EOF
8361 #define SLAPD_RLOOKUPS 1
8366 if test "$ol_link_ldbm" != no ; then
8367 cat >> confdefs.h <<\EOF
8368 #define SLAPD_LDBM 1
8375 if test "$ol_enable_passwd" != no ; then
8376 cat >> confdefs.h <<\EOF
8377 #define SLAPD_PASSWD 1
8384 if test "$ol_enable_shell" != no ; then
8385 cat >> confdefs.h <<\EOF
8386 #define SLAPD_SHELL 1
8393 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
8394 $BUILD_SLAPD = yes ; then
8398 if test "$ol_link_isode" != no ; then
8423 cat > confcache <<\EOF
8424 # This file is a shell script that caches the results of configure
8425 # tests run on this system so they can be shared between configure
8426 # scripts and configure runs. It is not useful on other systems.
8427 # If it contains results you don't want to keep, you may remove or edit it.
8429 # By default, configure uses ./config.cache as the cache file,
8430 # creating it if it does not exist already. You can give configure
8431 # the --cache-file=FILE option to use a different cache file; that is
8432 # what configure does when it calls configure scripts in
8433 # subdirectories, so they share the cache.
8434 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8435 # config.status only pays attention to the cache file if you give it the
8436 # --recheck option to rerun configure.
8439 # The following way of writing the cache mishandles newlines in values,
8440 # but we know of no workaround that is simple, portable, and efficient.
8441 # So, don't put newlines in cache variables' values.
8442 # Ultrix sh set writes to stderr and can't be redirected directly,
8443 # and sets the high bit in the cache file unless we assign to the vars.
8445 case `(ac_space=' '; set) 2>&1` in
8447 # `set' does not quote correctly, so add quotes (double-quote substitution
8448 # turns \\\\ into \\, and sed turns \\ into \).
8450 -e "s/'/'\\\\''/g" \
8451 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8454 # `set' quotes correctly as required by POSIX, so do not add quotes.
8455 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8458 if cmp -s $cache_file confcache; then
8461 if test -w $cache_file; then
8462 echo "updating cache $cache_file"
8463 cat confcache > $cache_file
8465 echo "not updating unwritable cache $cache_file"
8470 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8472 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8473 # Let make expand exec_prefix.
8474 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8476 # Any assignment to VPATH causes Sun make to only execute
8477 # the first set of double-colon rules, so remove it if not needed.
8478 # If there is a colon in the path, we need to keep it.
8479 if test "x$srcdir" = x.; then
8480 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8483 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8485 DEFS=-DHAVE_CONFIG_H
8487 # Without the "./", some shells look in PATH for config.status.
8488 : ${CONFIG_STATUS=./config.status}
8490 echo creating $CONFIG_STATUS
8491 rm -f $CONFIG_STATUS
8492 cat > $CONFIG_STATUS <<EOF
8494 # Generated automatically by configure.
8495 # Run this file to recreate the current configuration.
8496 # This directory was configured as follows,
8497 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8499 # $0 $ac_configure_args
8501 # Compiler output produced by configure, useful for debugging
8502 # configure, is in ./config.log if it exists.
8504 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8507 case "\$ac_option" in
8508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8509 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8510 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8511 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8512 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8514 -help | --help | --hel | --he | --h)
8515 echo "\$ac_cs_usage"; exit 0 ;;
8516 *) echo "\$ac_cs_usage"; exit 1 ;;
8520 ac_given_srcdir=$srcdir
8521 ac_given_INSTALL="$INSTALL"
8523 trap 'rm -fr `echo "\
8524 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8525 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8526 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8527 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8528 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8529 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8530 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8531 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8532 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8533 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8534 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8535 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8536 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8537 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8538 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8539 include/Makefile:build/top.mk:include/Makefile.in \
8540 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8541 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8542 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8543 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8544 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8545 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8546 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8547 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8548 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8549 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8550 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8551 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8552 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8553 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8554 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8555 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8556 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8557 tests/Makefile:build/top.mk:tests/Makefile.in \
8558 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8560 cat >> $CONFIG_STATUS <<EOF
8562 # Protect against being on the right side of a sed subst in config.status.
8563 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8564 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8567 s%@CFLAGS@%$CFLAGS%g
8568 s%@CPPFLAGS@%$CPPFLAGS%g
8569 s%@CXXFLAGS@%$CXXFLAGS%g
8571 s%@LDFLAGS@%$LDFLAGS%g
8573 s%@exec_prefix@%$exec_prefix%g
8574 s%@prefix@%$prefix%g
8575 s%@program_transform_name@%$program_transform_name%g
8576 s%@bindir@%$bindir%g
8577 s%@sbindir@%$sbindir%g
8578 s%@libexecdir@%$libexecdir%g
8579 s%@datadir@%$datadir%g
8580 s%@sysconfdir@%$sysconfdir%g
8581 s%@sharedstatedir@%$sharedstatedir%g
8582 s%@localstatedir@%$localstatedir%g
8583 s%@libdir@%$libdir%g
8584 s%@includedir@%$includedir%g
8585 s%@oldincludedir@%$oldincludedir%g
8586 s%@infodir@%$infodir%g
8587 s%@mandir@%$mandir%g
8588 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8589 s%@INSTALL_DATA@%$INSTALL_DATA%g
8590 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8591 s%@PACKAGE@%$PACKAGE%g
8592 s%@VERSION@%$VERSION%g
8593 s%@ACLOCAL@%$ACLOCAL%g
8594 s%@AUTOCONF@%$AUTOCONF%g
8595 s%@AUTOMAKE@%$AUTOMAKE%g
8596 s%@AUTOHEADER@%$AUTOHEADER%g
8597 s%@MAKEINFO@%$MAKEINFO%g
8598 s%@SET_MAKE@%$SET_MAKE%g
8599 s%@top_builddir@%$top_builddir%g
8600 s%@ldap_subdir@%$ldap_subdir%g
8602 s%@host_alias@%$host_alias%g
8603 s%@host_cpu@%$host_cpu%g
8604 s%@host_vendor@%$host_vendor%g
8605 s%@host_os@%$host_os%g
8606 s%@RANLIB@%$RANLIB%g
8611 s%@LIBTOOL@%$LIBTOOL%g
8612 s%@SENDMAIL@%$SENDMAIL%g
8613 s%@EDITOR@%$EDITOR%g
8614 s%@FINGER@%$FINGER%g
8617 s%@LIBOBJS@%$LIBOBJS%g
8618 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
8619 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
8620 s%@BUILD_LDBM@%$BUILD_LDBM%g
8621 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
8622 s%@BUILD_SHELL@%$BUILD_SHELL%g
8623 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
8624 s%@LDAP_LIBS@%$LDAP_LIBS%g
8625 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
8626 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
8627 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
8628 s%@LDBM_LIBS@%$LDBM_LIBS%g
8629 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
8630 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
8631 s%@KRB_LIBS@%$KRB_LIBS%g
8632 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
8637 cat >> $CONFIG_STATUS <<\EOF
8639 # Split the substitutions into bite-sized pieces for seds with
8640 # small command number limits, like on Digital OSF/1 and HP-UX.
8641 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8642 ac_file=1 # Number of current file.
8643 ac_beg=1 # First line for current file.
8644 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8647 while $ac_more_lines; do
8648 if test $ac_beg -gt 1; then
8649 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8651 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8653 if test ! -s conftest.s$ac_file; then
8655 rm -f conftest.s$ac_file
8657 if test -z "$ac_sed_cmds"; then
8658 ac_sed_cmds="sed -f conftest.s$ac_file"
8660 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8662 ac_file=`expr $ac_file + 1`
8664 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8667 if test -z "$ac_sed_cmds"; then
8672 cat >> $CONFIG_STATUS <<EOF
8674 CONFIG_FILES=\${CONFIG_FILES-"\
8675 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8676 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8677 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8678 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8679 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8680 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8681 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8682 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8683 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8684 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8685 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8686 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8687 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8688 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8689 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8690 include/Makefile:build/top.mk:include/Makefile.in \
8691 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8692 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8693 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8694 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8695 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8696 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8697 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8698 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8699 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8700 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8701 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8702 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8703 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8704 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8705 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8706 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8707 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8708 tests/Makefile:build/top.mk:tests/Makefile.in \
8711 cat >> $CONFIG_STATUS <<\EOF
8712 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8713 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8715 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8716 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8717 *) ac_file_in="${ac_file}.in" ;;
8720 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8722 # Remove last slash and all that follows it. Not all systems have dirname.
8723 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8724 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8725 # The file is in a subdirectory.
8726 test ! -d "$ac_dir" && mkdir "$ac_dir"
8727 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8728 # A "../" for each directory in $ac_dir_suffix.
8729 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8731 ac_dir_suffix= ac_dots=
8734 case "$ac_given_srcdir" in
8736 if test -z "$ac_dots"; then top_srcdir=.
8737 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8738 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8740 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8741 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8744 case "$ac_given_INSTALL" in
8745 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8746 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8749 echo creating "$ac_file"
8751 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8753 *Makefile*) ac_comsub="1i\\
8754 # $configure_input" ;;
8758 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8760 s%@configure_input@%$configure_input%g
8761 s%@srcdir@%$srcdir%g
8762 s%@top_srcdir@%$top_srcdir%g
8763 s%@INSTALL@%$INSTALL%g
8764 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8768 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8769 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8771 # ac_d sets the value in "#define NAME VALUE" lines.
8772 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8773 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8776 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8777 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8778 ac_uB='\([ ]\)%\1#\2define\3'
8781 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8782 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8783 ac_eB='$%\1#\2define\3'
8787 if test "${CONFIG_HEADERS+set}" != set; then
8789 cat >> $CONFIG_STATUS <<EOF
8790 CONFIG_HEADERS="include/portable.h"
8792 cat >> $CONFIG_STATUS <<\EOF
8794 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8795 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8797 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8798 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8799 *) ac_file_in="${ac_file}.in" ;;
8802 echo creating $ac_file
8804 rm -f conftest.frag conftest.in conftest.out
8805 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8806 cat $ac_file_inputs > conftest.in
8810 # Transform confdefs.h into a sed script conftest.vals that substitutes
8811 # the proper values into config.h.in to produce config.h. And first:
8812 # Protect against being on the right side of a sed subst in config.status.
8813 # Protect against being in an unquoted here document in config.status.
8815 cat > conftest.hdr <<\EOF
8818 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8822 sed -n -f conftest.hdr confdefs.h > conftest.vals
8825 # This sed command replaces #undef with comments. This is necessary, for
8826 # example, in the case of _POSIX_SOURCE, which is predefined and required
8827 # on some systems where configure will not decide to define it.
8828 cat >> conftest.vals <<\EOF
8829 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8832 # Break up conftest.vals because some shells have a limit on
8833 # the size of here documents, and old seds have small limits too.
8838 ac_lines=`grep -c . conftest.vals`
8839 # grep -c gives empty output for an empty file on some AIX systems.
8840 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8841 # Write a limited-size here document to conftest.frag.
8842 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8843 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8845 sed -f conftest.frag conftest.in > conftest.out
8847 mv conftest.out conftest.in
8849 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8851 mv conftest.tail conftest.vals
8855 cat >> $CONFIG_STATUS <<\EOF
8856 rm -f conftest.frag conftest.h
8857 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8858 cat conftest.in >> conftest.h
8860 if cmp -s $ac_file conftest.h 2>/dev/null; then
8861 echo "$ac_file is unchanged"
8864 # Remove last slash and all that follows it. Not all systems have dirname.
8865 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8866 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8867 # The file is in a subdirectory.
8868 test ! -d "$ac_dir" && mkdir "$ac_dir"
8871 mv conftest.h $ac_file
8876 cat >> $CONFIG_STATUS <<EOF
8879 cat >> $CONFIG_STATUS <<\EOF
8882 echo Please \"make depend\" to build dependencies
8886 chmod +x $CONFIG_STATUS
8887 rm -fr confdefs* $ac_clean_files
8888 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1