3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-kerberos with Kerberos support (auto)"
38 --with-readline with readline support (auto)"
40 --with-threads use threads (auto)"
42 --with-tls with TLS/SSL support (auto)"
44 --with-yielding-select with implicitly yielding select (auto)"
48 --enable-ldapd enable building ldapd (no)"
52 --enable-slapd enable building slapd (yes)"
54 --enable-cleartext enable cleartext passwords (yes)"
56 --enable-crypt enable crypt(3) passwords (auto)"
58 --enable-modules enable dynamic module support (no)"
60 --enable-phonetic enable phonetic/soundex (no)"
62 --enable-rlookups enable reverse lookups (auto)"
64 --enable-wrappers enable tcp wrapper support (no)"
66 --enable-bdb2 enable bdb2 backend (no)"
68 --with-bdb2-module module type (static)"
70 --enable-ldap enable ldap backend (no)"
72 --with-ldap-module module type (static)"
74 --enable-ldbm enable ldbm backend (yes)"
76 --with-ldbm-module module type (static)"
78 --with-ldbm-api use LDBM API (auto)"
80 --with-ldbm-type use LDBM type (auto)"
82 --enable-passwd enable passwd backend (no)"
84 --with-passwd-module module type (static)"
86 --enable-perl enable perl backend (no)"
88 --with-perl-module module type (static)"
90 --enable-shell enable shell backend (no)"
92 --with-shell-module module type (static)"
94 --enable-tcl enable tcl backend (no)"
96 --with-tcl-module module type (static)"
100 --enable-slurpd enable building slurpd (auto)"
102 Library Generation & Linking Options"
104 --enable-static[=PKGS] build static libraries [default=yes]"
106 --enable-shared[=PKGS] build shared libraries [default=yes]"
108 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
110 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
112 --disable-libtool-lock avoid locking (might break parallel builds)"
114 # Initialize some variables set by options.
115 # The variables have the same names as the options, with
116 # dashes changed to underlines.
118 cache_file=./config.cache
127 program_transform_name=s,x,x,
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datadir='${prefix}/share'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${prefix}/info'
146 mandir='${prefix}/man'
148 # Initialize some other variables.
151 SHELL=${CONFIG_SHELL-/bin/sh}
152 # Maximum number of lines to put in a shell here document.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
167 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
171 # Accept the important Cygnus configure options, so we can diagnose typos.
175 -bindir | --bindir | --bindi | --bind | --bin | --bi)
177 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
178 bindir="$ac_optarg" ;;
180 -build | --build | --buil | --bui | --bu)
182 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
183 build="$ac_optarg" ;;
185 -cache-file | --cache-file | --cache-fil | --cache-fi \
186 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
187 ac_prev=cache_file ;;
188 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
189 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
190 cache_file="$ac_optarg" ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir="$ac_optarg" ;;
198 -disable-* | --disable-*)
199 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
200 # Reject names that are not valid shell variable names.
201 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
202 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
204 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
205 eval "enable_${ac_feature}=no" ;;
207 -enable-* | --enable-*)
208 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
209 # Reject names that are not valid shell variable names.
210 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
211 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
213 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
218 eval "enable_${ac_feature}='$ac_optarg'" ;;
220 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
221 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
222 | --exec | --exe | --ex)
223 ac_prev=exec_prefix ;;
224 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
225 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
226 | --exec=* | --exe=* | --ex=*)
227 exec_prefix="$ac_optarg" ;;
229 -gas | --gas | --ga | --g)
230 # Obsolete; use --with-gas.
233 -help | --help | --hel | --he)
234 # Omit some internal or obsolete options to make the list less imposing.
235 # This message is too long to be a string in the A/UX 3.1 sh.
237 Usage: configure [options] [host]
238 Options: [defaults in brackets after descriptions]
240 --cache-file=FILE cache test results in FILE
241 --help print this message
242 --no-create do not create output files
243 --quiet, --silent do not print \`checking...' messages
244 --version print the version of autoconf that created configure
245 Directory and file names:
246 --prefix=PREFIX install architecture-independent files in PREFIX
248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
250 --bindir=DIR user executables in DIR [EPREFIX/bin]
251 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
252 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
253 --datadir=DIR read-only architecture-independent data in DIR
255 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
256 --sharedstatedir=DIR modifiable architecture-independent data in DIR
258 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
259 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
260 --includedir=DIR C header files in DIR [PREFIX/include]
261 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
262 --infodir=DIR info documentation in DIR [PREFIX/info]
263 --mandir=DIR man documentation in DIR [PREFIX/man]
264 --srcdir=DIR find the sources in DIR [configure dir or ..]
265 --program-prefix=PREFIX prepend PREFIX to installed program names
266 --program-suffix=SUFFIX append SUFFIX to installed program names
267 --program-transform-name=PROGRAM
268 run sed PROGRAM on installed program names
272 --build=BUILD configure for building on BUILD [BUILD=HOST]
273 --host=HOST configure for HOST [guessed]
274 --target=TARGET configure for TARGET [TARGET=HOST]
275 Features and packages:
276 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
277 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
278 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
279 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
280 --x-includes=DIR X include files are in DIR
281 --x-libraries=DIR X library files are in DIR
283 if test -n "$ac_help"; then
284 echo "--enable and --with options recognized:$ac_help"
288 -host | --host | --hos | --ho)
290 -host=* | --host=* | --hos=* | --ho=*)
293 -includedir | --includedir | --includedi | --included | --include \
294 | --includ | --inclu | --incl | --inc)
295 ac_prev=includedir ;;
296 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
297 | --includ=* | --inclu=* | --incl=* | --inc=*)
298 includedir="$ac_optarg" ;;
300 -infodir | --infodir | --infodi | --infod | --info | --inf)
302 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
303 infodir="$ac_optarg" ;;
305 -libdir | --libdir | --libdi | --libd)
307 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 libdir="$ac_optarg" ;;
310 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
311 | --libexe | --libex | --libe)
312 ac_prev=libexecdir ;;
313 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
314 | --libexe=* | --libex=* | --libe=*)
315 libexecdir="$ac_optarg" ;;
317 -localstatedir | --localstatedir | --localstatedi | --localstated \
318 | --localstate | --localstat | --localsta | --localst \
319 | --locals | --local | --loca | --loc | --lo)
320 ac_prev=localstatedir ;;
321 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
322 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
323 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
324 localstatedir="$ac_optarg" ;;
326 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
328 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
329 mandir="$ac_optarg" ;;
332 # Obsolete; use --without-fp.
335 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
339 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
340 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
343 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
344 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
345 | --oldin | --oldi | --old | --ol | --o)
346 ac_prev=oldincludedir ;;
347 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
348 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
349 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
350 oldincludedir="$ac_optarg" ;;
352 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
354 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
355 prefix="$ac_optarg" ;;
357 -program-prefix | --program-prefix | --program-prefi | --program-pref \
358 | --program-pre | --program-pr | --program-p)
359 ac_prev=program_prefix ;;
360 -program-prefix=* | --program-prefix=* | --program-prefi=* \
361 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
362 program_prefix="$ac_optarg" ;;
364 -program-suffix | --program-suffix | --program-suffi | --program-suff \
365 | --program-suf | --program-su | --program-s)
366 ac_prev=program_suffix ;;
367 -program-suffix=* | --program-suffix=* | --program-suffi=* \
368 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
369 program_suffix="$ac_optarg" ;;
371 -program-transform-name | --program-transform-name \
372 | --program-transform-nam | --program-transform-na \
373 | --program-transform-n | --program-transform- \
374 | --program-transform | --program-transfor \
375 | --program-transfo | --program-transf \
376 | --program-trans | --program-tran \
377 | --progr-tra | --program-tr | --program-t)
378 ac_prev=program_transform_name ;;
379 -program-transform-name=* | --program-transform-name=* \
380 | --program-transform-nam=* | --program-transform-na=* \
381 | --program-transform-n=* | --program-transform-=* \
382 | --program-transform=* | --program-transfor=* \
383 | --program-transfo=* | --program-transf=* \
384 | --program-trans=* | --program-tran=* \
385 | --progr-tra=* | --program-tr=* | --program-t=*)
386 program_transform_name="$ac_optarg" ;;
388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
389 | -silent | --silent | --silen | --sile | --sil)
392 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
394 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
396 sbindir="$ac_optarg" ;;
398 -sharedstatedir | --sharedstatedir | --sharedstatedi \
399 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
400 | --sharedst | --shareds | --shared | --share | --shar \
402 ac_prev=sharedstatedir ;;
403 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
404 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
405 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
407 sharedstatedir="$ac_optarg" ;;
409 -site | --site | --sit)
411 -site=* | --site=* | --sit=*)
414 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
416 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
417 srcdir="$ac_optarg" ;;
419 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
420 | --syscon | --sysco | --sysc | --sys | --sy)
421 ac_prev=sysconfdir ;;
422 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
423 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
424 sysconfdir="$ac_optarg" ;;
426 -target | --target | --targe | --targ | --tar | --ta | --t)
428 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
429 target="$ac_optarg" ;;
431 -v | -verbose | --verbose | --verbos | --verbo | --verb)
434 -version | --version | --versio | --versi | --vers)
435 echo "configure generated by autoconf version 2.13.1"
439 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
440 # Reject names that are not valid shell variable names.
441 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
442 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
444 ac_package=`echo $ac_package| sed 's/-/_/g'`
449 eval "with_${ac_package}='$ac_optarg'" ;;
451 -without-* | --without-*)
452 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
453 # Reject names that are not valid shell variable names.
454 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
455 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
457 ac_package=`echo $ac_package| sed 's/-/_/g'`
458 eval "with_${ac_package}=no" ;;
461 # Obsolete; use --with-x.
464 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
465 | --x-incl | --x-inc | --x-in | --x-i)
466 ac_prev=x_includes ;;
467 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
468 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
469 x_includes="$ac_optarg" ;;
471 -x-libraries | --x-libraries | --x-librarie | --x-librari \
472 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
473 ac_prev=x_libraries ;;
474 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
475 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
476 x_libraries="$ac_optarg" ;;
478 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
482 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
483 echo "configure: warning: $ac_option: invalid host type" 1>&2
485 if test "x$nonopt" != xNONE; then
486 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
494 if test -n "$ac_prev"; then
495 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
498 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
500 # File descriptor usage:
503 # 2 errors and warnings
504 # 3 some systems may open it to /dev/tty
505 # 4 used on the Kubota Titan
506 # 6 checking for... messages and results
507 # 5 compiler messages saved in config.log
508 if test "$silent" = yes; then
516 This file contains any messages produced by compilers while
517 running configure, to aid debugging if configure makes a mistake.
520 # Strip out --no-create and --no-recursion so they do not pile up.
521 # Also quote any args containing shell metacharacters.
526 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
527 | --no-cr | --no-c) ;;
528 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
529 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
530 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
531 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
532 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
537 # Only set these to C if already set. These must not be set unconditionally
538 # because not all systems understand e.g. LANG=C (notably SCO).
539 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
540 # Non-C LC_CTYPE values break the ctype check.
541 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
542 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
543 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
544 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
546 # confdefs.h avoids OS command line length limits that DEFS can exceed.
547 rm -rf conftest* confdefs.h
548 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
551 # A filename unique to this package, relative to the directory that
552 # configure is in, which we can look for to find out if srcdir is correct.
553 ac_unique_file=build/version
555 # Find the source files, if location was not specified.
556 if test -z "$srcdir"; then
557 ac_srcdir_defaulted=yes
558 # Try the directory containing this script, then its parent.
560 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
561 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
563 if test ! -r $srcdir/$ac_unique_file; then
567 ac_srcdir_defaulted=no
569 if test ! -r $srcdir/$ac_unique_file; then
570 if test "$ac_srcdir_defaulted" = yes; then
571 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
573 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
576 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
578 # Prefer explicitly selected file to automatically selected ones.
579 if test -z "$CONFIG_SITE"; then
580 if test "x$prefix" != xNONE; then
581 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
583 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
586 for ac_site_file in $CONFIG_SITE; do
587 if test -r "$ac_site_file"; then
588 echo "loading site script $ac_site_file"
595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
596 ac_cpp='$CPP $CPPFLAGS'
597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
598 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
599 cross_compiling=$ac_cv_prog_cc_cross
603 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
604 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
605 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
612 ac_n= ac_c='\c' ac_t=
616 for ac_dir in build $srcdir/build; do
617 if test -f $ac_dir/install-sh; then
619 ac_install_sh="$ac_aux_dir/install-sh -c"
621 elif test -f $ac_dir/install.sh; then
623 ac_install_sh="$ac_aux_dir/install.sh -c"
627 if test -z "$ac_aux_dir"; then
628 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
630 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
631 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
632 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
634 OL_VERSION=`cat $ac_aux_dir/version`
635 if test -z "$OL_VERSION"; then
636 { echo "configure: error: could not determine version" 1>&2; exit 1; }
640 echo $ac_n "checking host system type""... $ac_c" 1>&6
641 echo "configure:642: checking host system type" >&5
642 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
644 # Make sure we can run config.sub.
645 if $ac_config_sub sun4 >/dev/null 2>&1; then :
646 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
649 ac_cv_host_alias=$host
650 case "$ac_cv_host_alias" in
654 if ac_cv_host_alias=`$ac_config_guess`; then :
655 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
657 *) ac_cv_host_alias=$nonopt ;;
661 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
662 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
666 echo $ac_n "(cached) $ac_c" 1>&6
669 echo "$ac_t""$ac_cv_host" 1>&6
672 host_alias=$ac_cv_host_alias
673 host_cpu=$ac_cv_host_cpu
674 host_vendor=$ac_cv_host_vendor
675 host_os=$ac_cv_host_os
681 echo $ac_n "checking target system type""... $ac_c" 1>&6
682 echo "configure:683: checking target system type" >&5
683 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
685 # Make sure we can run config.sub.
686 if $ac_config_sub sun4 >/dev/null 2>&1; then :
687 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
690 ac_cv_target_alias=$target
691 case "$ac_cv_target_alias" in
695 ac_cv_target_alias=$host_alias ;;
697 *) ac_cv_target_alias=$nonopt ;;
701 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
702 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
703 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
704 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706 echo $ac_n "(cached) $ac_c" 1>&6
709 echo "$ac_t""$ac_cv_target" 1>&6
712 target_alias=$ac_cv_target_alias
713 target_cpu=$ac_cv_target_cpu
714 target_vendor=$ac_cv_target_vendor
715 target_os=$ac_cv_target_os
721 echo $ac_n "checking build system type""... $ac_c" 1>&6
722 echo "configure:723: checking build system type" >&5
723 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
725 # Make sure we can run config.sub.
726 if $ac_config_sub sun4 >/dev/null 2>&1; then :
727 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
730 ac_cv_build_alias=$build
731 case "$ac_cv_build_alias" in
735 ac_cv_build_alias=$host_alias ;;
737 *) ac_cv_build_alias=$nonopt ;;
741 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
742 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo $ac_n "(cached) $ac_c" 1>&6
749 echo "$ac_t""$ac_cv_build" 1>&6
752 build_alias=$ac_cv_build_alias
753 build_cpu=$ac_cv_build_cpu
754 build_vendor=$ac_cv_build_vendor
755 build_os=$ac_cv_build_os
761 # Do some error checking and defaulting for the host and target type.
763 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
766 # 1. You are not allowed to specify --host, --target, and nonopt at the
768 # 2. Host defaults to nonopt.
769 # 3. If nonopt is not specified, then host defaults to the current host,
770 # as determined by config.guess.
771 # 4. Target and build default to nonopt.
772 # 5. If nonopt is not specified, then target and build default to host.
774 # The aliases save the names the user supplied, while $host etc.
775 # will get canonicalized.
776 case $host---$target---$nonopt in
777 NONE---*---* | *---NONE---* | *---*---NONE) ;;
778 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
781 test "$host_alias" != "$target_alias" &&
782 test "$program_prefix$program_suffix$program_transform_name" = \
784 program_prefix=${target_alias}-
787 # Find a good install program. We prefer a C program (faster),
788 # so one script is as good as another. But avoid the broken or
789 # incompatible versions:
790 # SysV /etc/install, /usr/sbin/install
791 # SunOS /usr/etc/install
794 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
795 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
796 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
797 # ./install, which can be erroneously created by make from ./install.sh.
798 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
799 echo "configure:800: checking for a BSD compatible install" >&5
800 if test -z "$INSTALL"; then
801 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
805 for ac_dir in $PATH; do
806 # Account for people who put trailing slashes in PATH elements.
808 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
810 # OSF1 and SCO ODT 3.0 have their own names for install.
811 # Don't use installbsd from OSF since it installs stuff as root
813 for ac_prog in ginstall scoinst install; do
814 if test -f $ac_dir/$ac_prog; then
815 if test $ac_prog = install &&
816 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
817 # AIX install. It has an incompatible calling convention.
819 elif test $ac_prog = install &&
820 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
821 # program-specific install script used by HP pwplus--don't use.
824 ac_cv_path_install="$ac_dir/$ac_prog -c"
835 if test "${ac_cv_path_install+set}" = set; then
836 INSTALL="$ac_cv_path_install"
838 # As a last resort, use the slow shell script. We don't cache a
839 # path for INSTALL within a source directory, because that will
840 # break other packages using the cache if that directory is
841 # removed, or if the path is relative.
842 INSTALL="$ac_install_sh"
845 echo "$ac_t""$INSTALL" 1>&6
847 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
848 # It thinks the first close brace ends the variable substitution.
849 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
851 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
853 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
855 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
856 echo "configure:857: checking whether build environment is sane" >&5
859 echo timestamp > conftestfile
860 # Do `set' in a subshell so we don't clobber the current shell's
861 # arguments. Must try -L first in case configure is actually a
862 # symlink; some systems play weird games with the mod time of symlinks
863 # (eg FreeBSD returns the mod time of the symlink's containing
866 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
867 if test "$*" = "X"; then
869 set X `ls -t $srcdir/configure conftestfile`
871 if test "$*" != "X $srcdir/configure conftestfile" \
872 && test "$*" != "X conftestfile $srcdir/configure"; then
874 # If neither matched, then we have a broken ls. This can happen
875 # if, for instance, CONFIG_SHELL is bash and it inherits a
876 # broken ls alias from the environment. This has actually
877 # happened. Such a system could not be considered "sane".
878 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
879 alias in your environment" 1>&2; exit 1; }
882 test "$2" = conftestfile
888 { echo "configure: error: newly created file is older than distributed files!
889 Check your system clock" 1>&2; exit 1; }
892 echo "$ac_t""yes" 1>&6
893 if test "$program_transform_name" = s,x,x,; then
894 program_transform_name=
896 # Double any \ or $. echo might interpret backslashes.
897 cat <<\EOF_SED > conftestsed
898 s,\\,\\\\,g; s,\$,$$,g
900 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
903 test "$program_prefix" != NONE &&
904 program_transform_name="s,^,${program_prefix},;$program_transform_name"
905 # Use a double $ so make ignores it.
906 test "$program_suffix" != NONE &&
907 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
909 # sed with no file args requires a program.
910 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
912 for ac_prog in mawk gawk nawk awk
914 # Extract the first word of "$ac_prog", so it can be a program name with args.
915 set dummy $ac_prog; ac_word=$2
916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
917 echo "configure:918: checking for $ac_word" >&5
918 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 if test -n "$AWK"; then
922 ac_cv_prog_AWK="$AWK" # Let the user override the test.
924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
926 for ac_dir in $ac_dummy; do
927 test -z "$ac_dir" && ac_dir=.
928 if test -f $ac_dir/$ac_word; then
929 ac_cv_prog_AWK="$ac_prog"
936 AWK="$ac_cv_prog_AWK"
937 if test -n "$AWK"; then
938 echo "$ac_t""$AWK" 1>&6
940 echo "$ac_t""no" 1>&6
943 test -n "$AWK" && break
946 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
947 echo "configure:948: checking whether ${MAKE-make} sets \${MAKE}" >&5
948 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
949 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
952 cat > conftestmake <<\EOF
954 @echo 'ac_maketemp="${MAKE}"'
956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
957 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
958 if test -n "$ac_maketemp"; then
959 eval ac_cv_prog_make_${ac_make}_set=yes
961 eval ac_cv_prog_make_${ac_make}_set=no
965 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
966 echo "$ac_t""yes" 1>&6
969 echo "$ac_t""no" 1>&6
970 SET_MAKE="MAKE=${MAKE-make}"
979 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
980 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
985 missing_dir=`cd $ac_aux_dir && pwd`
986 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
987 echo "configure:988: checking for working aclocal" >&5
988 # Run test in a subshell; some versions of sh will print an error if
989 # an executable is not found, even if stderr is redirected.
990 # Redirect stdin to placate older versions of autoconf. Sigh.
991 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
993 echo "$ac_t""found" 1>&6
995 ACLOCAL="$missing_dir/missing aclocal"
996 echo "$ac_t""missing" 1>&6
999 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1000 echo "configure:1001: checking for working autoconf" >&5
1001 # Run test in a subshell; some versions of sh will print an error if
1002 # an executable is not found, even if stderr is redirected.
1003 # Redirect stdin to placate older versions of autoconf. Sigh.
1004 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1006 echo "$ac_t""found" 1>&6
1008 AUTOCONF="$missing_dir/missing autoconf"
1009 echo "$ac_t""missing" 1>&6
1012 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1013 echo "configure:1014: checking for working automake" >&5
1014 # Run test in a subshell; some versions of sh will print an error if
1015 # an executable is not found, even if stderr is redirected.
1016 # Redirect stdin to placate older versions of autoconf. Sigh.
1017 if (automake --version) < /dev/null > /dev/null 2>&1; then
1019 echo "$ac_t""found" 1>&6
1021 AUTOMAKE="$missing_dir/missing automake"
1022 echo "$ac_t""missing" 1>&6
1025 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1026 echo "configure:1027: checking for working autoheader" >&5
1027 # Run test in a subshell; some versions of sh will print an error if
1028 # an executable is not found, even if stderr is redirected.
1029 # Redirect stdin to placate older versions of autoconf. Sigh.
1030 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1031 AUTOHEADER=autoheader
1032 echo "$ac_t""found" 1>&6
1034 AUTOHEADER="$missing_dir/missing autoheader"
1035 echo "$ac_t""missing" 1>&6
1038 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1039 echo "configure:1040: checking for working makeinfo" >&5
1040 # Run test in a subshell; some versions of sh will print an error if
1041 # an executable is not found, even if stderr is redirected.
1042 # Redirect stdin to placate older versions of autoconf. Sigh.
1043 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1045 echo "$ac_t""found" 1>&6
1047 MAKEINFO="$missing_dir/missing makeinfo"
1048 echo "$ac_t""missing" 1>&6
1051 install_sh="$missing_dir/install-sh"
1052 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1054 for ac_prog in gnutar gtar tar
1056 # Extract the first word of "$ac_prog", so it can be a program name with args.
1057 set dummy $ac_prog; ac_word=$2
1058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1059 echo "configure:1060: checking for $ac_word" >&5
1060 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1063 if test -n "$AMTAR"; then
1064 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1068 for ac_dir in $ac_dummy; do
1069 test -z "$ac_dir" && ac_dir=.
1070 if test -f $ac_dir/$ac_word; then
1071 ac_cv_prog_AMTAR="$ac_prog"
1078 AMTAR="$ac_cv_prog_AMTAR"
1079 if test -n "$AMTAR"; then
1080 echo "$ac_t""$AMTAR" 1>&6
1082 echo "$ac_t""no" 1>&6
1085 test -n "$AMTAR" && break
1090 if test -n "$AMTAR"; then
1091 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1098 cat >> confdefs.h <<EOF
1099 #define OPENLDAP_PACKAGE "$PACKAGE"
1102 cat >> confdefs.h <<EOF
1103 #define OPENLDAP_VERSION "$VERSION"
1109 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1110 echo "configure:1111: checking configure arguments" >&5
1115 cat >> confdefs.h <<\EOF
1116 #define HAVE_MKVERSION 1
1120 ldap_subdir="openldap"
1122 # Check whether --with-subdir or --without-subdir was given.
1123 if test "${with_subdir+set}" = set; then
1124 withval="$with_subdir"
1126 if test "$withval" = "no"; then
1128 elif test "$withval" != "yes"; then
1129 ldap_subdir="$withval"
1135 # OpenLDAP --enable-debug
1136 # Check whether --enable-debug or --disable-debug was given.
1137 if test "${enable_debug+set}" = set; then
1138 enableval="$enable_debug"
1141 for ol_val in auto yes no ; do
1142 if test "$enableval" = "$ol_val" ; then
1146 if test "$ol_arg" = "invalid" ; then
1147 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1149 ol_enable_debug="$ol_arg"
1152 ol_enable_debug="yes"
1154 # end --enable-debug
1155 # OpenLDAP --enable-syslog
1156 # Check whether --enable-syslog or --disable-syslog was given.
1157 if test "${enable_syslog+set}" = set; then
1158 enableval="$enable_syslog"
1161 for ol_val in auto yes no ; do
1162 if test "$enableval" = "$ol_val" ; then
1166 if test "$ol_arg" = "invalid" ; then
1167 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1169 ol_enable_syslog="$ol_arg"
1172 ol_enable_syslog="auto"
1174 # end --enable-syslog
1175 # OpenLDAP --enable-proctitle
1176 # Check whether --enable-proctitle or --disable-proctitle was given.
1177 if test "${enable_proctitle+set}" = set; then
1178 enableval="$enable_proctitle"
1181 for ol_val in auto yes no ; do
1182 if test "$enableval" = "$ol_val" ; then
1186 if test "$ol_arg" = "invalid" ; then
1187 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1189 ol_enable_proctitle="$ol_arg"
1192 ol_enable_proctitle="yes"
1194 # end --enable-proctitle
1195 # OpenLDAP --enable-cache
1196 # Check whether --enable-cache or --disable-cache was given.
1197 if test "${enable_cache+set}" = set; then
1198 enableval="$enable_cache"
1201 for ol_val in auto yes no ; do
1202 if test "$enableval" = "$ol_val" ; then
1206 if test "$ol_arg" = "invalid" ; then
1207 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1209 ol_enable_cache="$ol_arg"
1212 ol_enable_cache="yes"
1214 # end --enable-cache
1215 # OpenLDAP --enable-dns
1216 # Check whether --enable-dns or --disable-dns was given.
1217 if test "${enable_dns+set}" = set; then
1218 enableval="$enable_dns"
1221 for ol_val in auto yes no ; do
1222 if test "$enableval" = "$ol_val" ; then
1226 if test "$ol_arg" = "invalid" ; then
1227 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1229 ol_enable_dns="$ol_arg"
1235 # OpenLDAP --enable-referrals
1236 # Check whether --enable-referrals or --disable-referrals was given.
1237 if test "${enable_referrals+set}" = set; then
1238 enableval="$enable_referrals"
1241 for ol_val in auto yes no ; do
1242 if test "$enableval" = "$ol_val" ; then
1246 if test "$ol_arg" = "invalid" ; then
1247 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1249 ol_enable_referrals="$ol_arg"
1252 ol_enable_referrals="yes"
1254 # end --enable-referrals
1255 # OpenLDAP --enable-cldap
1256 # Check whether --enable-cldap or --disable-cldap was given.
1257 if test "${enable_cldap+set}" = set; then
1258 enableval="$enable_cldap"
1261 for ol_val in auto yes no ; do
1262 if test "$enableval" = "$ol_val" ; then
1266 if test "$ol_arg" = "invalid" ; then
1267 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1269 ol_enable_cldap="$ol_arg"
1272 ol_enable_cldap="no"
1274 # end --enable-cldap
1275 # OpenLDAP --enable-x_compile
1276 # Check whether --enable-x_compile or --disable-x_compile was given.
1277 if test "${enable_x_compile+set}" = set; then
1278 enableval="$enable_x_compile"
1281 for ol_val in yes no ; do
1282 if test "$enableval" = "$ol_val" ; then
1286 if test "$ol_arg" = "invalid" ; then
1287 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1289 ol_enable_x_compile="$ol_arg"
1292 ol_enable_x_compile="no"
1294 # end --enable-x_compile
1296 # OpenLDAP --enable-dmalloc
1297 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1298 if test "${enable_dmalloc+set}" = set; then
1299 enableval="$enable_dmalloc"
1302 for ol_val in auto yes no ; do
1303 if test "$enableval" = "$ol_val" ; then
1307 if test "$ol_arg" = "invalid" ; then
1308 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1310 ol_enable_dmalloc="$ol_arg"
1313 ol_enable_dmalloc="no"
1315 # end --enable-dmalloc
1317 # OpenLDAP --with-kerberos
1318 # Check whether --with-kerberos or --without-kerberos was given.
1319 if test "${with_kerberos+set}" = set; then
1320 withval="$with_kerberos"
1323 for ol_val in auto k5 k4 afs yes no ; do
1324 if test "$withval" = "$ol_val" ; then
1328 if test "$ol_arg" = "invalid" ; then
1329 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1331 ol_with_kerberos="$ol_arg"
1334 ol_with_kerberos="auto"
1336 # end --with-kerberos
1338 # OpenLDAP --with-readline
1339 # Check whether --with-readline or --without-readline was given.
1340 if test "${with_readline+set}" = set; then
1341 withval="$with_readline"
1344 for ol_val in auto yes no ; do
1345 if test "$withval" = "$ol_val" ; then
1349 if test "$ol_arg" = "invalid" ; then
1350 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1352 ol_with_readline="$ol_arg"
1355 ol_with_readline="auto"
1357 # end --with-readline
1359 # OpenLDAP --with-threads
1360 # Check whether --with-threads or --without-threads was given.
1361 if test "${with_threads+set}" = set; then
1362 withval="$with_threads"
1365 for ol_val in auto posix mach lwp yes no manual ; do
1366 if test "$withval" = "$ol_val" ; then
1370 if test "$ol_arg" = "invalid" ; then
1371 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1373 ol_with_threads="$ol_arg"
1376 ol_with_threads="auto"
1378 # end --with-threads
1380 # OpenLDAP --with-tls
1381 # Check whether --with-tls or --without-tls was given.
1382 if test "${with_tls+set}" = set; then
1386 for ol_val in auto ssleay openssl yes no ; do
1387 if test "$withval" = "$ol_val" ; then
1391 if test "$ol_arg" = "invalid" ; then
1392 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1394 ol_with_tls="$ol_arg"
1401 # OpenLDAP --with-yielding_select
1402 # Check whether --with-yielding_select or --without-yielding_select was given.
1403 if test "${with_yielding_select+set}" = set; then
1404 withval="$with_yielding_select"
1407 for ol_val in auto yes no manual ; do
1408 if test "$withval" = "$ol_val" ; then
1412 if test "$ol_arg" = "invalid" ; then
1413 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1415 ol_with_yielding_select="$ol_arg"
1418 ol_with_yielding_select="auto"
1420 # end --with-yielding_select
1424 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1425 if test "${with_xxldapdoptions+set}" = set; then
1426 withval="$with_xxldapdoptions"
1430 # OpenLDAP --enable-ldapd
1431 # Check whether --enable-ldapd or --disable-ldapd was given.
1432 if test "${enable_ldapd+set}" = set; then
1433 enableval="$enable_ldapd"
1436 for ol_val in auto yes no ; do
1437 if test "$enableval" = "$ol_val" ; then
1441 if test "$ol_arg" = "invalid" ; then
1442 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1444 ol_enable_ldapd="$ol_arg"
1447 ol_enable_ldapd="no"
1449 # end --enable-ldapd
1451 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1452 if test "${with_xxslapdoptions+set}" = set; then
1453 withval="$with_xxslapdoptions"
1457 # OpenLDAP --enable-slapd
1458 # Check whether --enable-slapd or --disable-slapd was given.
1459 if test "${enable_slapd+set}" = set; then
1460 enableval="$enable_slapd"
1463 for ol_val in auto yes no ; do
1464 if test "$enableval" = "$ol_val" ; then
1468 if test "$ol_arg" = "invalid" ; then
1469 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1471 ol_enable_slapd="$ol_arg"
1474 ol_enable_slapd="yes"
1476 # end --enable-slapd
1477 # OpenLDAP --enable-cleartext
1478 # Check whether --enable-cleartext or --disable-cleartext was given.
1479 if test "${enable_cleartext+set}" = set; then
1480 enableval="$enable_cleartext"
1483 for ol_val in auto yes no ; do
1484 if test "$enableval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1491 ol_enable_cleartext="$ol_arg"
1494 ol_enable_cleartext="yes"
1496 # end --enable-cleartext
1497 # OpenLDAP --enable-crypt
1498 # Check whether --enable-crypt or --disable-crypt was given.
1499 if test "${enable_crypt+set}" = set; then
1500 enableval="$enable_crypt"
1503 for ol_val in auto yes no ; do
1504 if test "$enableval" = "$ol_val" ; then
1508 if test "$ol_arg" = "invalid" ; then
1509 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1511 ol_enable_crypt="$ol_arg"
1514 ol_enable_crypt="auto"
1516 # end --enable-crypt
1517 # OpenLDAP --enable-modules
1518 # Check whether --enable-modules or --disable-modules was given.
1519 if test "${enable_modules+set}" = set; then
1520 enableval="$enable_modules"
1523 for ol_val in auto yes no ; do
1524 if test "$enableval" = "$ol_val" ; then
1528 if test "$ol_arg" = "invalid" ; then
1529 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1531 ol_enable_modules="$ol_arg"
1534 ol_enable_modules="no"
1536 # end --enable-modules
1537 # OpenLDAP --enable-phonetic
1538 # Check whether --enable-phonetic or --disable-phonetic was given.
1539 if test "${enable_phonetic+set}" = set; then
1540 enableval="$enable_phonetic"
1543 for ol_val in auto yes no ; do
1544 if test "$enableval" = "$ol_val" ; then
1548 if test "$ol_arg" = "invalid" ; then
1549 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1551 ol_enable_phonetic="$ol_arg"
1554 ol_enable_phonetic="no"
1556 # end --enable-phonetic
1557 # OpenLDAP --enable-rlookups
1558 # Check whether --enable-rlookups or --disable-rlookups was given.
1559 if test "${enable_rlookups+set}" = set; then
1560 enableval="$enable_rlookups"
1563 for ol_val in auto yes no ; do
1564 if test "$enableval" = "$ol_val" ; then
1568 if test "$ol_arg" = "invalid" ; then
1569 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1571 ol_enable_rlookups="$ol_arg"
1574 ol_enable_rlookups="auto"
1576 # end --enable-rlookups
1577 # OpenLDAP --enable-wrappers
1578 # Check whether --enable-wrappers or --disable-wrappers was given.
1579 if test "${enable_wrappers+set}" = set; then
1580 enableval="$enable_wrappers"
1583 for ol_val in auto yes no ; do
1584 if test "$enableval" = "$ol_val" ; then
1588 if test "$ol_arg" = "invalid" ; then
1589 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1591 ol_enable_wrappers="$ol_arg"
1594 ol_enable_wrappers="no"
1596 # end --enable-wrappers
1598 # OpenLDAP --enable-bdb2
1599 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1600 if test "${enable_bdb2+set}" = set; then
1601 enableval="$enable_bdb2"
1604 for ol_val in auto yes no ; do
1605 if test "$enableval" = "$ol_val" ; then
1609 if test "$ol_arg" = "invalid" ; then
1610 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1612 ol_enable_bdb2="$ol_arg"
1618 # OpenLDAP --with-bdb2_module
1619 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1620 if test "${with_bdb2_module+set}" = set; then
1621 withval="$with_bdb2_module"
1624 for ol_val in static dynamic ; do
1625 if test "$withval" = "$ol_val" ; then
1629 if test "$ol_arg" = "invalid" ; then
1630 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1632 ol_with_bdb2_module="$ol_arg"
1635 ol_with_bdb2_module="static"
1637 # end --with-bdb2_module
1639 # OpenLDAP --enable-ldap
1640 # Check whether --enable-ldap or --disable-ldap was given.
1641 if test "${enable_ldap+set}" = set; then
1642 enableval="$enable_ldap"
1645 for ol_val in auto yes no ; do
1646 if test "$enableval" = "$ol_val" ; then
1650 if test "$ol_arg" = "invalid" ; then
1651 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1653 ol_enable_ldap="$ol_arg"
1659 # OpenLDAP --with-ldap_module
1660 # Check whether --with-ldap_module or --without-ldap_module was given.
1661 if test "${with_ldap_module+set}" = set; then
1662 withval="$with_ldap_module"
1665 for ol_val in static dynamic ; do
1666 if test "$withval" = "$ol_val" ; then
1670 if test "$ol_arg" = "invalid" ; then
1671 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1673 ol_with_ldap_module="$ol_arg"
1676 ol_with_ldap_module="static"
1678 # end --with-ldap_module
1680 # OpenLDAP --enable-ldbm
1681 # Check whether --enable-ldbm or --disable-ldbm was given.
1682 if test "${enable_ldbm+set}" = set; then
1683 enableval="$enable_ldbm"
1686 for ol_val in auto yes no ; do
1687 if test "$enableval" = "$ol_val" ; then
1691 if test "$ol_arg" = "invalid" ; then
1692 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1694 ol_enable_ldbm="$ol_arg"
1697 ol_enable_ldbm="yes"
1700 # OpenLDAP --with-ldbm_module
1701 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1702 if test "${with_ldbm_module+set}" = set; then
1703 withval="$with_ldbm_module"
1706 for ol_val in static dynamic ; do
1707 if test "$withval" = "$ol_val" ; then
1711 if test "$ol_arg" = "invalid" ; then
1712 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1714 ol_with_ldbm_module="$ol_arg"
1717 ol_with_ldbm_module="static"
1719 # end --with-ldbm_module
1721 # OpenLDAP --with-ldbm_api
1722 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1723 if test "${with_ldbm_api+set}" = set; then
1724 withval="$with_ldbm_api"
1727 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1728 if test "$withval" = "$ol_val" ; then
1732 if test "$ol_arg" = "invalid" ; then
1733 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1735 ol_with_ldbm_api="$ol_arg"
1738 ol_with_ldbm_api="auto"
1740 # end --with-ldbm_api
1742 # OpenLDAP --with-ldbm_type
1743 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1744 if test "${with_ldbm_type+set}" = set; then
1745 withval="$with_ldbm_type"
1748 for ol_val in auto btree hash ; do
1749 if test "$withval" = "$ol_val" ; then
1753 if test "$ol_arg" = "invalid" ; then
1754 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1756 ol_with_ldbm_type="$ol_arg"
1759 ol_with_ldbm_type="auto"
1761 # end --with-ldbm_type
1764 # OpenLDAP --enable-passwd
1765 # Check whether --enable-passwd or --disable-passwd was given.
1766 if test "${enable_passwd+set}" = set; then
1767 enableval="$enable_passwd"
1770 for ol_val in auto yes no ; do
1771 if test "$enableval" = "$ol_val" ; then
1775 if test "$ol_arg" = "invalid" ; then
1776 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1778 ol_enable_passwd="$ol_arg"
1781 ol_enable_passwd="no"
1783 # end --enable-passwd
1784 # OpenLDAP --with-passwd_module
1785 # Check whether --with-passwd_module or --without-passwd_module was given.
1786 if test "${with_passwd_module+set}" = set; then
1787 withval="$with_passwd_module"
1790 for ol_val in static dynamic ; do
1791 if test "$withval" = "$ol_val" ; then
1795 if test "$ol_arg" = "invalid" ; then
1796 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1798 ol_with_passwd_module="$ol_arg"
1801 ol_with_passwd_module="static"
1803 # end --with-passwd_module
1805 # OpenLDAP --enable-perl
1806 # Check whether --enable-perl or --disable-perl was given.
1807 if test "${enable_perl+set}" = set; then
1808 enableval="$enable_perl"
1811 for ol_val in auto yes no ; do
1812 if test "$enableval" = "$ol_val" ; then
1816 if test "$ol_arg" = "invalid" ; then
1817 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1819 ol_enable_perl="$ol_arg"
1825 # OpenLDAP --with-perl_module
1826 # Check whether --with-perl_module or --without-perl_module was given.
1827 if test "${with_perl_module+set}" = set; then
1828 withval="$with_perl_module"
1831 for ol_val in static dynamic ; do
1832 if test "$withval" = "$ol_val" ; then
1836 if test "$ol_arg" = "invalid" ; then
1837 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1839 ol_with_perl_module="$ol_arg"
1842 ol_with_perl_module="static"
1844 # end --with-perl_module
1846 # OpenLDAP --enable-shell
1847 # Check whether --enable-shell or --disable-shell was given.
1848 if test "${enable_shell+set}" = set; then
1849 enableval="$enable_shell"
1852 for ol_val in auto yes no ; do
1853 if test "$enableval" = "$ol_val" ; then
1857 if test "$ol_arg" = "invalid" ; then
1858 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1860 ol_enable_shell="$ol_arg"
1863 ol_enable_shell="no"
1865 # end --enable-shell
1866 # OpenLDAP --with-shell_module
1867 # Check whether --with-shell_module or --without-shell_module was given.
1868 if test "${with_shell_module+set}" = set; then
1869 withval="$with_shell_module"
1872 for ol_val in static dynamic ; do
1873 if test "$withval" = "$ol_val" ; then
1877 if test "$ol_arg" = "invalid" ; then
1878 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1880 ol_with_shell_module="$ol_arg"
1883 ol_with_shell_module="static"
1885 # end --with-shell_module
1887 # OpenLDAP --enable-tcl
1888 # Check whether --enable-tcl or --disable-tcl was given.
1889 if test "${enable_tcl+set}" = set; then
1890 enableval="$enable_tcl"
1893 for ol_val in auto yes no ; do
1894 if test "$enableval" = "$ol_val" ; then
1898 if test "$ol_arg" = "invalid" ; then
1899 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1901 ol_enable_tcl="$ol_arg"
1907 # OpenLDAP --with-tcl_module
1908 # Check whether --with-tcl_module or --without-tcl_module was given.
1909 if test "${with_tcl_module+set}" = set; then
1910 withval="$with_tcl_module"
1913 for ol_val in static dynamic ; do
1914 if test "$withval" = "$ol_val" ; then
1918 if test "$ol_arg" = "invalid" ; then
1919 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
1921 ol_with_tcl_module="$ol_arg"
1924 ol_with_tcl_module="static"
1926 # end --with-tcl_module
1929 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1930 if test "${with_xxslurpdoptions+set}" = set; then
1931 withval="$with_xxslurpdoptions"
1935 # OpenLDAP --enable-slurpd
1936 # Check whether --enable-slurpd or --disable-slurpd was given.
1937 if test "${enable_slurpd+set}" = set; then
1938 enableval="$enable_slurpd"
1941 for ol_val in auto yes no ; do
1942 if test "$enableval" = "$ol_val" ; then
1946 if test "$ol_arg" = "invalid" ; then
1947 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1949 ol_enable_slurpd="$ol_arg"
1952 ol_enable_slurpd="auto"
1954 # end --enable-slurpd
1956 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1957 if test "${with_xxliboptions+set}" = set; then
1958 withval="$with_xxliboptions"
1962 # Check whether --enable-static or --disable-static was given.
1963 if test "${enable_static+set}" = set; then
1964 enableval="$enable_static"
1965 p=${PACKAGE-default}
1966 case "$enableval" in
1967 yes) enable_static=yes ;;
1968 no) enable_static=no ;;
1971 # Look at the argument we got. We use all the common list separators.
1972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1973 for pkg in $enableval; do
1974 if test "X$pkg" = "X$p"; then
1985 # Check whether --enable-shared or --disable-shared was given.
1986 if test "${enable_shared+set}" = set; then
1987 enableval="$enable_shared"
1988 p=${PACKAGE-default}
1989 case "$enableval" in
1990 yes) enable_shared=yes ;;
1991 no) enable_shared=no ;;
1994 # Look at the argument we got. We use all the common list separators.
1995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1996 for pkg in $enableval; do
1997 if test "X$pkg" = "X$p"; then
2010 if test $ol_enable_dns = yes ; then
2011 if test $ol_enable_referrals = no ; then
2012 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2014 if test $ol_enable_referrals = auto ; then
2015 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2016 ol_enable_referrals=yes
2020 if test $ol_enable_slapd = no ; then
2021 if test $ol_enable_bdb2 = yes ; then
2022 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2024 if test $ol_enable_ldap = yes ; then
2025 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2027 if test $ol_enable_ldbm = yes ; then
2028 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2030 if test $ol_enable_passwd = yes ; then
2031 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2033 if test $ol_enable_perl = yes ; then
2034 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2036 if test $ol_enable_shell = yes ; then
2037 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2039 if test $ol_enable_tcl = yes ; then
2040 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2042 if test $ol_enable_modules = yes ; then
2043 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2045 if test $ol_enable_wrappers = yes ; then
2046 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2048 if test $ol_enable_phonetic = yes ; then
2049 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2051 if test $ol_enable_rlookups = yes ; then
2052 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2054 if test $ol_with_ldbm_api != auto ; then
2055 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2057 if test $ol_with_ldbm_type != auto ; then
2058 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2060 if test $ol_with_bdb2_module != static ; then
2061 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2063 if test $ol_with_ldap_module != static ; then
2064 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2066 if test $ol_with_ldbm_module != static ; then
2067 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2069 if test $ol_with_passwd_module != static ; then
2070 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2072 if test $ol_with_perl_module != static ; then
2073 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2075 if test $ol_with_shell_module != static ; then
2076 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2078 if test $ol_with_tcl_module != static ; then
2079 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2081 if test $ol_enable_slurpd = yes ; then
2082 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2085 # force settings to no
2094 ol_enable_modules=no
2095 ol_enable_phonetic=no
2096 ol_enable_rlookups=no
2097 ol_enable_wrappers=no
2100 ol_with_ldbm_type=no
2102 ol_with_bdb2_module=static
2103 ol_with_ldap_module=static
2104 ol_with_ldbm_module=static
2105 ol_with_passwd_module=static
2106 ol_with_perl_module=static
2107 ol_with_shell_module=static
2108 ol_with_tcl_module=static
2112 elif test $ol_enable_ldbm = no ; then
2114 if test $ol_with_ldbm_api != auto ; then
2115 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2118 if test $ol_with_ldbm_type != auto ; then
2119 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2122 if test $ol_with_ldbm_module != static ; then
2123 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2126 if test $ol_enable_bdb2 = yes ; then
2127 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2130 if test $ol_enable_modules != yes -a \
2131 $ol_enable_ldap = no -a \
2132 $ol_enable_passwd = no -a \
2133 $ol_enable_perl = no -a \
2134 $ol_enable_shell = no -a \
2135 $ol_enable_tcl = no ; then
2136 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2140 ol_with_ldbm_type=no
2141 ol_with_ldbm_module=static
2143 elif test $ol_enable_bdb2 = yes ; then
2145 if test $ol_with_ldbm_api != auto -a \
2146 $ol_with_ldbm_api != db2 ; then
2147 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2150 ol_with_ldbm_api=db2
2154 if test $ol_enable_bdb2 != no ; then
2155 if test $ol_with_ldbm_api != auto -a \
2156 $ol_with_ldbm_api != db2 ; then
2157 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2162 if test $ol_with_ldbm_api = gdbm -a \
2163 $ol_with_ldbm_type = btree ; then
2164 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2166 if test $ol_with_ldbm_api = mdbm -a \
2167 $ol_with_ldbm_type = btree ; then
2168 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2170 if test $ol_with_ldbm_api = ndbm -a \
2171 $ol_with_ldbm_type = btree ; then
2172 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2176 if test $ol_enable_slurpd = yes ; then
2177 if test $ol_with_threads = no ; then
2178 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2182 echo "$ac_t""done" 1>&6
2207 BUILD_BDB2_DYNAMIC=no
2208 BUILD_LDAP_DYNAMIC=no
2209 BUILD_LDBM_DYNAMIC=no
2210 BUILD_PASSWD_DYNAMIC=no
2211 BUILD_PERL_DYNAMIC=no
2212 BUILD_SHELL_DYNAMIC=no
2213 BUILD_TCL_DYNAMIC=no
2215 SLAPD_MODULES_LDFLAGS=
2216 SLAPD_MODULES_CPPFLAGS=
2219 SLAPD_PERL_CPPFLAGS=
2231 *-*-aix*) if test -z "$CC" ; then
2232 case "$ol_with_threads" in
2233 auto | yes | posix) ol_aix_threads=yes ;;
2239 if test $ol_aix_threads = yes ; then
2240 if test -z "${CC}" ; then
2241 for ac_prog in cc_r xlc_r cc
2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_word" >&5
2247 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2255 for ac_dir in $ac_dummy; do
2256 test -z "$ac_dir" && ac_dir=.
2257 if test -f $ac_dir/$ac_word; then
2258 ac_cv_prog_CC="$ac_prog"
2266 if test -n "$CC"; then
2267 echo "$ac_t""$CC" 1>&6
2269 echo "$ac_t""no" 1>&6
2272 test -n "$CC" && break
2276 if test "$CC" = cc ; then
2277 if test $ol_with_threads != auto ; then
2278 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2280 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2286 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2287 ol_with_threads=posix
2288 ol_cv_pthread_create=yes
2292 if test -z "${CC}"; then
2295 # Extract the first word of "$ac_prog", so it can be a program name with args.
2296 set dummy $ac_prog; ac_word=$2
2297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_word" >&5
2299 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 if test -n "$CC"; then
2303 ac_cv_prog_CC="$CC" # Let the user override the test.
2305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2307 for ac_dir in $ac_dummy; do
2308 test -z "$ac_dir" && ac_dir=.
2309 if test -f $ac_dir/$ac_word; then
2310 ac_cv_prog_CC="$ac_prog"
2318 if test -n "$CC"; then
2319 echo "$ac_t""$CC" 1>&6
2321 echo "$ac_t""no" 1>&6
2324 test -n "$CC" && break
2330 # Check whether --enable-fast-install or --disable-fast-install was given.
2331 if test "${enable_fast_install+set}" = set; then
2332 enableval="$enable_fast_install"
2333 p=${PACKAGE-default}
2334 case "$enableval" in
2335 yes) enable_fast_install=yes ;;
2336 no) enable_fast_install=no ;;
2338 enable_fast_install=no
2339 # Look at the argument we got. We use all the common list separators.
2340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2341 for pkg in $enableval; do
2342 if test "X$pkg" = "X$p"; then
2343 enable_fast_install=yes
2350 enable_fast_install=yes
2353 # Extract the first word of "ranlib", so it can be a program name with args.
2354 set dummy ranlib; ac_word=$2
2355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_word" >&5
2357 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 if test -n "$RANLIB"; then
2361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2365 for ac_dir in $ac_dummy; do
2366 test -z "$ac_dir" && ac_dir=.
2367 if test -f $ac_dir/$ac_word; then
2368 ac_cv_prog_RANLIB="ranlib"
2373 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2376 RANLIB="$ac_cv_prog_RANLIB"
2377 if test -n "$RANLIB"; then
2378 echo "$ac_t""$RANLIB" 1>&6
2380 echo "$ac_t""no" 1>&6
2383 # Extract the first word of "gcc", so it can be a program name with args.
2384 set dummy gcc; ac_word=$2
2385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_word" >&5
2387 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 if test -n "$CC"; then
2391 ac_cv_prog_CC="$CC" # Let the user override the test.
2393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2395 for ac_dir in $ac_dummy; do
2396 test -z "$ac_dir" && ac_dir=.
2397 if test -f $ac_dir/$ac_word; then
2406 if test -n "$CC"; then
2407 echo "$ac_t""$CC" 1>&6
2409 echo "$ac_t""no" 1>&6
2412 if test -z "$CC"; then
2413 # Extract the first word of "cc", so it can be a program name with args.
2414 set dummy cc; ac_word=$2
2415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2416 echo "configure:2417: checking for $ac_word" >&5
2417 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2426 for ac_dir in $ac_dummy; do
2427 test -z "$ac_dir" && ac_dir=.
2428 if test -f $ac_dir/$ac_word; then
2429 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2430 ac_prog_rejected=yes
2438 if test $ac_prog_rejected = yes; then
2439 # We found a bogon in the path, so make sure we never use it.
2440 set dummy $ac_cv_prog_CC
2442 if test $# -gt 0; then
2443 # We chose a different compiler from the bogus one.
2444 # However, it has the same basename, so the bogon will be chosen
2445 # first if we set CC to just the basename; use the full file name.
2447 set dummy "$ac_dir/$ac_word" "$@"
2455 if test -n "$CC"; then
2456 echo "$ac_t""$CC" 1>&6
2458 echo "$ac_t""no" 1>&6
2461 if test -z "$CC"; then
2462 case "`uname -s`" in
2463 *win32* | *WIN32* | *CYGWIN*)
2464 # Extract the first word of "cl", so it can be a program name with args.
2465 set dummy cl; ac_word=$2
2466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2467 echo "configure:2468: checking for $ac_word" >&5
2468 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2476 for ac_dir in $ac_dummy; do
2477 test -z "$ac_dir" && ac_dir=.
2478 if test -f $ac_dir/$ac_word; then
2487 if test -n "$CC"; then
2488 echo "$ac_t""$CC" 1>&6
2490 echo "$ac_t""no" 1>&6
2495 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2498 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2499 echo "configure:2500: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2506 cross_compiling=$ac_cv_prog_cc_cross
2508 cat > conftest.$ac_ext << EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2515 if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2516 ac_cv_prog_cc_works=yes
2517 # If we can't run a trivial program, we are probably using a cross compiler.
2518 if (./conftest; exit) 2>/dev/null; then
2519 ac_cv_prog_cc_cross=no
2521 ac_cv_prog_cc_cross=yes
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2526 ac_cv_prog_cc_works=no
2530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2534 cross_compiling=$ac_cv_prog_cc_cross
2536 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2537 if test $ac_cv_prog_cc_works = no; then
2538 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2540 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2541 echo "configure:2542: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2542 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2543 cross_compiling=$ac_cv_prog_cc_cross
2545 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2546 echo "configure:2547: checking whether we are using GNU C" >&5
2547 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.c <<EOF
2555 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2562 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2564 if test $ac_cv_prog_gcc = yes; then
2570 ac_test_CFLAGS="${CFLAGS+set}"
2571 ac_save_CFLAGS="$CFLAGS"
2573 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2574 echo "configure:2575: checking whether ${CC-cc} accepts -g" >&5
2575 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 echo 'void f(){}' > conftest.c
2579 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2588 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2589 if test "$ac_test_CFLAGS" = set; then
2590 CFLAGS="$ac_save_CFLAGS"
2591 elif test $ac_cv_prog_cc_g = yes; then
2592 if test "$GCC" = yes; then
2598 if test "$GCC" = yes; then
2605 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2606 if test "${with_gnu_ld+set}" = set; then
2607 withval="$with_gnu_ld"
2608 test "$withval" = no || with_gnu_ld=yes
2614 if test "$ac_cv_prog_gcc" = yes; then
2615 # Check if gcc -print-prog-name=ld gives a path.
2616 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2617 echo "configure:2618: checking for ld used by GCC" >&5
2618 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2620 # Accept absolute paths.
2621 [\\/]* | [A-Za-z]:[\\/]*)
2622 re_direlt='/[^/][^/]*/\.\./'
2623 # Canonicalize the path of ld
2624 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2625 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2626 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2628 test -z "$LD" && LD="$ac_prog"
2631 # If it fails, then pretend we aren't using GCC.
2635 # If it is relative, then search for the first ld in PATH.
2639 elif test "$with_gnu_ld" = yes; then
2640 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2641 echo "configure:2642: checking for GNU ld" >&5
2643 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2644 echo "configure:2645: checking for non-GNU ld" >&5
2646 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2649 if test -z "$LD"; then
2650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2651 for ac_dir in $PATH; do
2652 test -z "$ac_dir" && ac_dir=.
2653 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2654 ac_cv_path_LD="$ac_dir/$ac_prog"
2655 # Check to see if the program is GNU ld. I'd rather use --version,
2656 # but apparently some GNU ld's only accept -v.
2657 # Break only if it was the GNU/non-GNU ld that we prefer.
2658 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2659 test "$with_gnu_ld" != no && break
2661 test "$with_gnu_ld" != yes && break
2667 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2672 if test -n "$LD"; then
2673 echo "$ac_t""$LD" 1>&6
2675 echo "$ac_t""no" 1>&6
2677 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2679 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2680 echo "configure:2681: checking if the linker ($LD) is GNU ld" >&5
2681 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2685 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2686 ac_cv_prog_gnu_ld=yes
2688 ac_cv_prog_gnu_ld=no
2692 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2695 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2696 echo "configure:2697: checking for BSD-compatible nm" >&5
2697 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 if test -n "$NM"; then
2701 # Let the user override the test.
2704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2705 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2706 test -z "$ac_dir" && ac_dir=.
2707 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2708 # Check to see if the nm accepts a BSD-compat flag.
2709 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2710 # nm: unknown option "B" ignored
2711 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2712 ac_cv_path_NM="$ac_dir/nm -B"
2714 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2715 ac_cv_path_NM="$ac_dir/nm -p"
2718 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2719 continue # so that we can try to find one that supports BSD flags
2724 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2729 echo "$ac_t""$NM" 1>&6
2732 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2733 echo "configure:2734: checking whether ln -s works" >&5
2734 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2738 if ln -s X conftestdata 2>/dev/null
2741 ac_cv_prog_LN_S="ln -s"
2746 LN_S="$ac_cv_prog_LN_S"
2747 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2748 echo "$ac_t""yes" 1>&6
2750 echo "$ac_t""no" 1>&6
2754 # Check for any special flags to pass to ltconfig.
2755 libtool_flags="--cache-file=$cache_file"
2756 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2757 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2758 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2759 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2760 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2763 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2764 if test "${enable_libtool_lock+set}" = set; then
2765 enableval="$enable_libtool_lock"
2769 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2770 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2772 # Some flags need to be propagated to the compiler or linker for good
2776 # Find out which ABI we are using.
2777 echo '#line 2778 "configure"' > conftest.$ac_ext
2778 if { (eval echo configure:2779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2779 case "`/usr/bin/file conftest.o`" in
2795 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2796 SAVE_CFLAGS="$CFLAGS"
2797 CFLAGS="$CFLAGS -belf"
2798 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2799 echo "configure:2800: checking whether the C compiler needs -belf" >&5
2800 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 cat > conftest.$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2811 if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2813 lt_cv_cc_needs_belf=yes
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2818 lt_cv_cc_needs_belf=no
2823 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2824 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2825 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2826 CFLAGS="$SAVE_CFLAGS"
2834 # Save cache, so that ltconfig can load it
2837 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2838 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2839 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2840 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2841 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2842 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2843 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2844 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2846 # Reload cache, that may have been modified by ltconfig
2849 # This can be used to rebuild libtool when needed
2850 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2852 # Always use our own libtool.
2853 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2855 # Redirect the config.log output again, so that the ltconfig log is not
2856 # clobbered by the next message.
2857 exec 5>>./config.log
2860 for ac_prog in mawk gawk nawk awk
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy $ac_prog; ac_word=$2
2864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_word" >&5
2866 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 if test -n "$AWK"; then
2870 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2874 for ac_dir in $ac_dummy; do
2875 test -z "$ac_dir" && ac_dir=.
2876 if test -f $ac_dir/$ac_word; then
2877 ac_cv_prog_AWK="$ac_prog"
2884 AWK="$ac_cv_prog_AWK"
2885 if test -n "$AWK"; then
2886 echo "$ac_t""$AWK" 1>&6
2888 echo "$ac_t""no" 1>&6
2891 test -n "$AWK" && break
2894 # test for ln hardlink support
2895 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2896 echo "configure:2897: checking whether ln works" >&5
2897 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
2898 echo $ac_n "(cached) $ac_c" 1>&6
2900 rm -f conftest.src conftest.dst
2901 echo "conftest" > conftest.src
2902 if ln conftest.src conftest.dst 2>/dev/null
2904 ol_cv_prog_LN_H="ln"
2906 ol_cv_prog_LN_H="cp"
2908 rm -f conftest.src conftest.dst
2911 LN_H="$ol_cv_prog_LN_H"
2912 if test "$ol_cv_prog_LN_H" = "ln"; then
2913 echo "$ac_t""yes" 1>&6
2915 echo "$ac_t""no" 1>&6
2918 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2919 echo "configure:2920: checking whether ln -s works" >&5
2920 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2924 if ln -s X conftestdata 2>/dev/null
2927 ac_cv_prog_LN_S="ln -s"
2932 LN_S="$ac_cv_prog_LN_S"
2933 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2934 echo "$ac_t""yes" 1>&6
2936 echo "$ac_t""no" 1>&6
2940 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2944 # Extract the first word of "sendmail", so it can be a program name with args.
2945 set dummy sendmail; ac_word=$2
2946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2947 echo "configure:2948: checking for $ac_word" >&5
2948 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2953 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2956 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2960 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2961 for ac_dir in $ac_dummy; do
2962 test -z "$ac_dir" && ac_dir=.
2963 if test -f $ac_dir/$ac_word; then
2964 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2969 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2973 SENDMAIL="$ac_cv_path_SENDMAIL"
2974 if test -n "$SENDMAIL"; then
2975 echo "$ac_t""$SENDMAIL" 1>&6
2977 echo "$ac_t""no" 1>&6
2980 # Extract the first word of "vi", so it can be a program name with args.
2981 set dummy vi; ac_word=$2
2982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2983 echo "configure:2984: checking for $ac_word" >&5
2984 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2989 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2992 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2996 ac_dummy="$PATH:/usr/ucb"
2997 for ac_dir in $ac_dummy; do
2998 test -z "$ac_dir" && ac_dir=.
2999 if test -f $ac_dir/$ac_word; then
3000 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3005 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3009 EDITOR="$ac_cv_path_EDITOR"
3010 if test -n "$EDITOR"; then
3011 echo "$ac_t""$EDITOR" 1>&6
3013 echo "$ac_t""no" 1>&6
3016 # Extract the first word of "finger", so it can be a program name with args.
3017 set dummy finger; ac_word=$2
3018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3019 echo "configure:3020: checking for $ac_word" >&5
3020 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3025 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3028 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3032 ac_dummy="$PATH:/usr/ucb"
3033 for ac_dir in $ac_dummy; do
3034 test -z "$ac_dir" && ac_dir=.
3035 if test -f $ac_dir/$ac_word; then
3036 ac_cv_path_FINGER="$ac_dir/$ac_word"
3041 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3045 FINGER="$ac_cv_path_FINGER"
3046 if test -n "$FINGER"; then
3047 echo "$ac_t""$FINGER" 1>&6
3049 echo "$ac_t""no" 1>&6
3054 if test $ol_enable_modules != no ; then
3055 # Extract the first word of "glib-config", so it can be a program name with args.
3056 set dummy glib-config; ac_word=$2
3057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3058 echo "configure:3059: checking for $ac_word" >&5
3059 if eval "test \"\${ac_cv_path_GLIBCONFIG+set}\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 case "$GLIBCONFIG" in
3064 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
3067 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
3070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3072 for ac_dir in $ac_dummy; do
3073 test -z "$ac_dir" && ac_dir=.
3074 if test -f $ac_dir/$ac_word; then
3075 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
3083 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
3084 if test -n "$GLIBCONFIG"; then
3085 echo "$ac_t""$GLIBCONFIG" 1>&6
3087 echo "$ac_t""no" 1>&6
3091 if test "no$GLIBCONFIG" = "no" ; then
3092 if test $ol_enable_modules = yes ; then
3093 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
3097 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
3098 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
3099 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
3104 ol_with_bdb2_module=static
3105 ol_with_ldap_module=static
3106 ol_with_ldbm_module=static
3107 ol_with_passwd_module=static
3108 ol_with_perl_module=static
3109 ol_with_shell_module=static
3110 ol_with_tcl_module=static
3114 if test $ol_enable_perl != no ; then
3115 # Extract the first word of "perl", so it can be a program name with args.
3116 set dummy perl; ac_word=$2
3117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3118 echo "configure:3119: checking for $ac_word" >&5
3119 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3124 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3127 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3132 for ac_dir in $ac_dummy; do
3133 test -z "$ac_dir" && ac_dir=.
3134 if test -f $ac_dir/$ac_word; then
3135 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3140 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3144 PERLBIN="$ac_cv_path_PERLBIN"
3145 if test -n "$PERLBIN"; then
3146 echo "$ac_t""$PERLBIN" 1>&6
3148 echo "$ac_t""no" 1>&6
3152 if test "no$PERLBIN" = "no" ; then
3153 if test $ol_enable_perl = yes ; then
3154 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3158 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3159 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3165 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3166 echo "configure:3167: checking how to run the C preprocessor" >&5
3167 # On Suns, sometimes $CPP names a directory.
3168 if test -n "$CPP" && test -d "$CPP"; then
3171 if test -z "$CPP"; then
3172 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3175 # This must be in double quotes, not single quotes, because CPP may get
3176 # substituted into the Makefile and "${CC-cc}" will confuse make.
3178 # On the NeXT, cc -E runs the code through the compiler's parser,
3179 # not just through cpp.
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3187 { (eval echo configure:3188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3189 if test -z "$ac_err"; then
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3196 CPP="${CC-cc} -E -traditional-cpp"
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3204 { (eval echo configure:3205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3206 if test -z "$ac_err"; then
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3213 CPP="${CC-cc} -nologo -E"
3214 cat > conftest.$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3221 { (eval echo configure:3222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3223 if test -z "$ac_err"; then
3227 echo "configure: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3237 ac_cv_prog_CPP="$CPP"
3239 CPP="$ac_cv_prog_CPP"
3241 ac_cv_prog_CPP="$CPP"
3243 echo "$ac_t""$CPP" 1>&6
3246 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3247 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3249 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3250 echo "configure: warning: programs compiled here do run here..." 1>&2
3251 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3253 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3254 echo "configure: warning: programs compiled here do not run here..." 1>&2
3255 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3258 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3259 echo "configure:3260: checking for AIX" >&5
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3269 egrep "yes" >/dev/null 2>&1; then
3271 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3272 #define _ALL_SOURCE 1
3277 echo "$ac_t""no" 1>&6
3282 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3283 echo "configure:3284: checking for POSIXized ISC" >&5
3284 if test -d /etc/conf/kconfig.d &&
3285 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3287 echo "$ac_t""yes" 1>&6
3288 ISC=yes # If later tests want to check for ISC.
3289 cat >> confdefs.h <<\EOF
3290 #define _POSIX_SOURCE 1
3293 if test "$GCC" = yes; then
3299 echo "$ac_t""no" 1>&6
3303 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3304 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3305 echo "configure:3306: checking for minix/config.h" >&5
3306 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 #include <minix/config.h>
3314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3315 { (eval echo configure:3316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3317 if test -z "$ac_err"; then
3319 eval "ac_cv_header_$ac_safe=yes"
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3325 eval "ac_cv_header_$ac_safe=no"
3329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3330 echo "$ac_t""yes" 1>&6
3333 echo "$ac_t""no" 1>&6
3337 if test "$MINIX" = yes; then
3338 cat >> confdefs.h <<\EOF
3339 #define _POSIX_SOURCE 1
3342 cat >> confdefs.h <<\EOF
3343 #define _POSIX_1_SOURCE 2
3346 cat >> confdefs.h <<\EOF
3353 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3354 echo "configure:3355: checking for be_app in -lbe" >&5
3355 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3356 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 ac_save_LIBS="$LIBS"
3360 LIBS="-lbe -lroot -lnet $LIBS"
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 /* Override any gcc2 internal prototype to avoid an error. */
3365 /* We use char because int might match the return type of a gcc2
3366 builtin and then its argument prototype would still apply. */
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3375 eval "ac_cv_lib_$ac_lib_var=yes"
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 eval "ac_cv_lib_$ac_lib_var=no"
3383 LIBS="$ac_save_LIBS"
3386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3387 echo "$ac_t""yes" 1>&6
3388 LIBS="$LIBS -lbe -lroot -lnet"
3390 echo "$ac_t""no" 1>&6
3395 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3396 echo "configure:3397: checking for Cygwin environment" >&5
3397 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3407 #define __CYGWIN__ __CYGWIN32__
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3424 echo "$ac_t""$ac_cv_cygwin" 1>&6
3426 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3427 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3428 echo "configure:3429: checking for mingw32 environment" >&5
3429 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3432 cat > conftest.$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3440 if { (eval echo configure:3441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3452 echo "$ac_t""$ac_cv_mingw32" 1>&6
3454 test "$ac_cv_mingw32" = yes && MINGW32=yes
3455 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3456 echo "configure:3457: checking for EMX OS/2 environment" >&5
3457 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3468 if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472 echo "configure: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3480 echo "$ac_t""$ac_cv_emxos2" 1>&6
3482 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3486 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3487 echo "configure:3488: checking for executable suffix" >&5
3488 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3491 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3495 echo 'int main () { return 0; }' > conftest.$ac_ext
3497 if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3498 for file in conftest.*; do
3500 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3501 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3505 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3508 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3513 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3514 echo "$ac_t""${ac_cv_exeext}" 1>&6
3517 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3518 echo "configure:3519: checking for object suffix" >&5
3519 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3523 echo 'int i = 1;' > conftest.$ac_ext
3524 if { (eval echo configure:3525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3525 for ac_file in conftest.*; do
3528 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3532 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3537 echo "$ac_t""$ac_cv_objext" 1>&6
3538 OBJEXT=$ac_cv_objext
3539 ac_objext=$ac_cv_objext
3542 cat >> confdefs.h <<EOF
3543 #define EXEEXT "${EXEEXT}"
3550 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3551 echo "configure:3552: checking for ${CC-cc} option to accept ANSI C" >&5
3552 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 am_cv_prog_cc_stdc=no
3557 # Don't try gcc -ansi; that turns off useful extensions and
3558 # breaks some systems' header files.
3559 # AIX -qlanglvl=ansi
3560 # Ultrix and OSF/1 -std1
3561 # HP-UX 10.20 and later -Ae
3562 # HP-UX older versions -Aa -D_HPUX_SOURCE
3563 # SVR4 -Xc -D__EXTENSIONS__
3564 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3566 CC="$ac_save_CC $ac_arg"
3567 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3572 #include <sys/types.h>
3573 #include <sys/stat.h>
3574 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3575 struct buf { int x; };
3576 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3577 static char *e (p, i)
3583 static char *f (char * (*g) (char **, int), char **p, ...)
3588 s = g (p, va_arg (v,int));
3592 int test (int i, double x);
3593 struct s1 {int (*f) (int a);};
3594 struct s2 {int (*f) (double a);};
3595 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3601 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3605 if { (eval echo configure:3606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3607 am_cv_prog_cc_stdc="$ac_arg"; break
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3618 if test -z "$am_cv_prog_cc_stdc"; then
3619 echo "$ac_t""none needed" 1>&6
3621 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3623 case "x$am_cv_prog_cc_stdc" in
3625 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3628 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3629 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3633 # test for make depend flag
3636 if test -z "${MKDEP}"; then
3638 if test -z "${MKDEP_FLAGS}"; then
3639 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3640 echo "configure:3641: checking for ${OL_MKDEP} depend flag" >&5
3641 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3642 echo $ac_n "(cached) $ac_c" 1>&6
3646 for flag in "-M" "-xM"; do
3647 cat > conftest.c <<EOF
3650 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3651 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3653 if test ! -f conftest."${ac_object}" ; then
3655 OL_MKDEP_FLAGS="$flag"
3664 echo "$ac_t""$ol_cv_mkdep" 1>&6
3667 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3672 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3677 if test "${ol_cv_mkdep}" = no ; then
3678 # this will soon become an error
3679 echo "configure: warning: do not know how to generate dependencies" 1>&2
3684 echo $ac_n "checking for socket""... $ac_c" 1>&6
3685 echo "configure:3686: checking for socket" >&5
3686 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 /* System header to define __stub macros and hopefully few prototypes,
3693 which can conflict with char socket(); below. */
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. */
3703 /* The GNU C library defines this for functions which it implements
3704 to always fail with ENOSYS. Some functions are actually named
3705 something starting with __ and the normal name is an alias. */
3706 #if defined (__stub_socket) || defined (__stub___socket)
3714 if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3716 eval "ac_cv_func_socket=yes"
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3721 eval "ac_cv_func_socket=no"
3726 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3727 echo "$ac_t""yes" 1>&6
3730 echo "$ac_t""no" 1>&6
3732 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3733 echo "configure:3734: checking for main in -lsocket" >&5
3734 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
3735 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 ac_save_LIBS="$LIBS"
3739 LIBS="-lsocket $LIBS"
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3748 if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3750 eval "ac_cv_lib_$ac_lib_var=yes"
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3755 eval "ac_cv_lib_$ac_lib_var=no"
3758 LIBS="$ac_save_LIBS"
3761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3762 echo "$ac_t""yes" 1>&6
3763 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3764 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3765 cat >> confdefs.h <<EOF
3766 #define $ac_tr_lib 1
3769 LIBS="-lsocket $LIBS"
3772 echo "$ac_t""no" 1>&6
3775 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3776 echo "configure:3777: checking for main in -lnet" >&5
3777 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
3778 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3781 ac_save_LIBS="$LIBS"
3783 cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3791 if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3793 eval "ac_cv_lib_$ac_lib_var=yes"
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3798 eval "ac_cv_lib_$ac_lib_var=no"
3801 LIBS="$ac_save_LIBS"
3804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3805 echo "$ac_t""yes" 1>&6
3806 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3807 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3808 cat >> confdefs.h <<EOF
3809 #define $ac_tr_lib 1
3815 echo "$ac_t""no" 1>&6
3818 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3819 echo "configure:3820: checking for socket in -lnet" >&5
3820 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
3821 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3824 ac_save_LIBS="$LIBS"
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3829 /* Override any gcc2 internal prototype to avoid an error. */
3830 /* We use char because int might match the return type of a gcc2
3831 builtin and then its argument prototype would still apply. */
3838 if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3840 eval "ac_cv_lib_$ac_lib_var=yes"
3842 echo "configure: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3845 eval "ac_cv_lib_$ac_lib_var=no"
3848 LIBS="$ac_save_LIBS"
3851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3852 echo "$ac_t""yes" 1>&6
3853 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3854 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3855 cat >> confdefs.h <<EOF
3856 #define $ac_tr_lib 1
3862 echo "$ac_t""no" 1>&6
3865 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3866 echo "configure:3867: checking for main in -lnsl_s" >&5
3867 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
3868 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 ac_save_LIBS="$LIBS"
3872 LIBS="-lnsl_s $LIBS"
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3883 eval "ac_cv_lib_$ac_lib_var=yes"
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 eval "ac_cv_lib_$ac_lib_var=no"
3891 LIBS="$ac_save_LIBS"
3894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3895 echo "$ac_t""yes" 1>&6
3896 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3897 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3898 cat >> confdefs.h <<EOF
3899 #define $ac_tr_lib 1
3902 LIBS="-lnsl_s $LIBS"
3905 echo "$ac_t""no" 1>&6
3908 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3909 echo "configure:3910: checking for main in -lnsl" >&5
3910 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
3911 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 ac_save_LIBS="$LIBS"
3916 cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3924 if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3926 eval "ac_cv_lib_$ac_lib_var=yes"
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3931 eval "ac_cv_lib_$ac_lib_var=no"
3934 LIBS="$ac_save_LIBS"
3937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3938 echo "$ac_t""yes" 1>&6
3939 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3940 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3941 cat >> confdefs.h <<EOF
3942 #define $ac_tr_lib 1
3948 echo "$ac_t""no" 1>&6
3951 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3952 echo "configure:3953: checking for socket in -linet" >&5
3953 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
3954 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 ac_save_LIBS="$LIBS"
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3973 eval "ac_cv_lib_$ac_lib_var=yes"
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3978 eval "ac_cv_lib_$ac_lib_var=no"
3981 LIBS="$ac_save_LIBS"
3984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3985 echo "$ac_t""yes" 1>&6
3986 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3987 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3988 cat >> confdefs.h <<EOF
3989 #define $ac_tr_lib 1
3995 echo "$ac_t""no" 1>&6
3998 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3999 echo "configure:4000: checking for main in -lgen" >&5
4000 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4001 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4004 ac_save_LIBS="$LIBS"
4006 cat > conftest.$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4014 if { (eval echo configure:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4016 eval "ac_cv_lib_$ac_lib_var=yes"
4018 echo "configure: failed program was:" >&5
4019 cat conftest.$ac_ext >&5
4021 eval "ac_cv_lib_$ac_lib_var=no"
4024 LIBS="$ac_save_LIBS"
4027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4028 echo "$ac_t""yes" 1>&6
4029 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4030 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4031 cat >> confdefs.h <<EOF
4032 #define $ac_tr_lib 1
4038 echo "$ac_t""no" 1>&6
4045 for ac_func in res_search
4047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4048 echo "configure:4049: checking for $ac_func" >&5
4049 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 /* System header to define __stub macros and hopefully few prototypes,
4056 which can conflict with char $ac_func(); below. */
4058 /* Override any gcc2 internal prototype to avoid an error. */
4059 /* We use char because int might match the return type of a gcc2
4060 builtin and then its argument prototype would still apply. */
4066 /* The GNU C library defines this for functions which it implements
4067 to always fail with ENOSYS. Some functions are actually named
4068 something starting with __ and the normal name is an alias. */
4069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4077 if { (eval echo configure:4078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4079 eval "ac_cv_func_$ac_func=yes"
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4084 eval "ac_cv_func_$ac_func=no"
4089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4090 echo "$ac_t""yes" 1>&6
4091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4092 cat >> confdefs.h <<EOF
4093 #define $ac_tr_func 1
4097 echo "$ac_t""no" 1>&6
4101 if test $ac_cv_func_res_search = "no" ; then
4102 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
4103 echo "configure:4104: checking for res_search in -lbind" >&5
4104 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
4105 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4108 ac_save_LIBS="$LIBS"
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 /* Override any gcc2 internal prototype to avoid an error. */
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4122 if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4124 eval "ac_cv_lib_$ac_lib_var=yes"
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4129 eval "ac_cv_lib_$ac_lib_var=no"
4132 LIBS="$ac_save_LIBS"
4135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4136 echo "$ac_t""yes" 1>&6
4137 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4138 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4139 cat >> confdefs.h <<EOF
4140 #define $ac_tr_lib 1
4146 echo "$ac_t""no" 1>&6
4149 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
4150 cat >> confdefs.h <<\EOF
4151 #define HAVE_RES_SEARCH 1
4155 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
4156 echo "configure:4157: checking for res_search in -lresolv" >&5
4157 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
4158 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4161 ac_save_LIBS="$LIBS"
4162 LIBS="-lresolv $LIBS"
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4175 if { (eval echo configure:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4177 eval "ac_cv_lib_$ac_lib_var=yes"
4179 echo "configure: failed program was:" >&5
4180 cat conftest.$ac_ext >&5
4182 eval "ac_cv_lib_$ac_lib_var=no"
4185 LIBS="$ac_save_LIBS"
4188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4191 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4192 cat >> confdefs.h <<EOF
4193 #define $ac_tr_lib 1
4196 LIBS="-lresolv $LIBS"
4199 echo "$ac_t""no" 1>&6
4202 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
4203 cat >> confdefs.h <<\EOF
4204 #define HAVE_RES_SEARCH 1
4211 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4212 echo "configure:4213: checking for sigset in -lV3" >&5
4213 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4214 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4217 ac_save_LIBS="$LIBS"
4219 cat > conftest.$ac_ext <<EOF
4220 #line 4221 "configure"
4221 #include "confdefs.h"
4222 /* Override any gcc2 internal prototype to avoid an error. */
4223 /* We use char because int might match the return type of a gcc2
4224 builtin and then its argument prototype would still apply. */
4231 if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4233 eval "ac_cv_lib_$ac_lib_var=yes"
4235 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4238 eval "ac_cv_lib_$ac_lib_var=no"
4241 LIBS="$ac_save_LIBS"
4244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4245 echo "$ac_t""yes" 1>&6
4246 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4247 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4248 cat >> confdefs.h <<EOF
4249 #define $ac_tr_lib 1
4255 echo "$ac_t""no" 1>&6
4259 for ac_hdr in regex.h
4261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4263 echo "configure:4264: checking for $ac_hdr" >&5
4264 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4267 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4273 { (eval echo configure:4274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4275 if test -z "$ac_err"; then
4277 eval "ac_cv_header_$ac_safe=yes"
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4283 eval "ac_cv_header_$ac_safe=no"
4287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4288 echo "$ac_t""yes" 1>&6
4289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4290 cat >> confdefs.h <<EOF
4291 #define $ac_tr_hdr 1
4295 echo "$ac_t""no" 1>&6
4299 if test "$ac_cv_header_regex_h" != yes ; then
4300 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4302 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4303 echo "configure:4304: checking for regfree" >&5
4304 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4307 cat > conftest.$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4310 /* System header to define __stub macros and hopefully few prototypes,
4311 which can conflict with char regfree(); below. */
4313 /* Override any gcc2 internal prototype to avoid an error. */
4314 /* We use char because int might match the return type of a gcc2
4315 builtin and then its argument prototype would still apply. */
4321 /* The GNU C library defines this for functions which it implements
4322 to always fail with ENOSYS. Some functions are actually named
4323 something starting with __ and the normal name is an alias. */
4324 #if defined (__stub_regfree) || defined (__stub___regfree)
4332 if { (eval echo configure:4333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4334 eval "ac_cv_func_regfree=yes"
4336 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4339 eval "ac_cv_func_regfree=no"
4344 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4345 echo "$ac_t""yes" 1>&6
4348 echo "$ac_t""no" 1>&6
4349 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4354 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4355 echo "configure:4356: checking for compatible POSIX regex" >&5
4356 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4360 if test "$cross_compiling" = yes; then
4361 ol_cv_c_posix_regex=cross
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4367 #include <sys/types.h>
4369 static char *pattern, *string;
4377 if(regcomp(&re, pattern, 0)) {
4381 string = "ALL MATCH";
4383 rc = regexec(&re, string, 0, (void*)0, 0);
4390 if { (eval echo configure:4391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4392 ol_cv_c_posix_regex=yes
4394 echo "configure: failed program was:" >&5
4395 cat conftest.$ac_ext >&5
4397 ol_cv_c_posix_regex=no
4404 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4406 if test "$ol_cv_c_posix_regex" = no ; then
4407 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
4410 echo $ac_n "checking for select""... $ac_c" 1>&6
4411 echo "configure:4412: checking for select" >&5
4412 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* System header to define __stub macros and hopefully few prototypes,
4419 which can conflict with char select(); below. */
4421 /* Override any gcc2 internal prototype to avoid an error. */
4422 /* We use char because int might match the return type of a gcc2
4423 builtin and then its argument prototype would still apply. */
4429 /* The GNU C library defines this for functions which it implements
4430 to always fail with ENOSYS. Some functions are actually named
4431 something starting with __ and the normal name is an alias. */
4432 #if defined (__stub_select) || defined (__stub___select)
4440 if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4442 eval "ac_cv_func_select=yes"
4444 echo "configure: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4447 eval "ac_cv_func_select=no"
4452 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4456 echo "$ac_t""no" 1>&6
4457 { echo "configure: error: select() required." 1>&2; exit 1; }
4461 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4462 echo "configure:4463: checking types of arguments for select()" >&5
4463 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4472 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4473 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4474 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4475 cat > conftest.$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4478 #ifdef HAVE_SYS_TYPES_H
4479 #include <sys/types.h>
4481 #ifdef HAVE_SYS_TIME_H
4482 #include <sys/time.h>
4484 #ifdef HAVE_SYS_SELECT_H
4485 #include <sys/select.h>
4487 #ifdef HAVE_SYS_SOCKET_H
4488 #include <sys/socket.h>
4490 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
4495 if { (eval echo configure:4496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4497 ac_not_found=no ; break 3
4499 echo "configure: failed program was:" >&5
4500 cat conftest.$ac_ext >&5
4514 if test "$ac_not_found" = yes; then
4515 ac_cv_func_select_arg1=int
4516 ac_cv_func_select_arg234='int *'
4517 ac_cv_func_select_arg5='struct timeval *'
4519 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4520 cat >> confdefs.h <<EOF
4521 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4524 cat >> confdefs.h <<EOF
4525 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4528 cat >> confdefs.h <<EOF
4529 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4536 if test $ol_enable_ldapd != no ; then
4537 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
4539 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
4540 echo "configure:4541: checking for main in -lxtpp" >&5
4541 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
4542 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4543 echo $ac_n "(cached) $ac_c" 1>&6
4545 ac_save_LIBS="$LIBS"
4546 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
4547 cat > conftest.$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4555 if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4557 eval "ac_cv_lib_$ac_lib_var=yes"
4559 echo "configure: failed program was:" >&5
4560 cat conftest.$ac_ext >&5
4562 eval "ac_cv_lib_$ac_lib_var=no"
4565 LIBS="$ac_save_LIBS"
4568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4569 echo "$ac_t""yes" 1>&6
4572 cat >> confdefs.h <<\EOF
4576 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
4579 echo "$ac_t""no" 1>&6
4583 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
4584 echo "configure:4585: checking for main in -ldsap" >&5
4585 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
4586 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4589 ac_save_LIBS="$LIBS"
4590 LIBS="-ldsap -lisode $LIBS"
4591 cat > conftest.$ac_ext <<EOF
4592 #line 4593 "configure"
4593 #include "confdefs.h"
4599 if { (eval echo configure:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4601 eval "ac_cv_lib_$ac_lib_var=yes"
4603 echo "configure: failed program was:" >&5
4604 cat conftest.$ac_ext >&5
4606 eval "ac_cv_lib_$ac_lib_var=no"
4609 LIBS="$ac_save_LIBS"
4612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4613 echo "$ac_t""yes" 1>&6
4616 cat >> confdefs.h <<\EOF
4620 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
4623 echo "$ac_t""no" 1>&6
4627 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
4628 echo "configure:4629: checking for main in -lisode" >&5
4629 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
4630 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 ac_save_LIBS="$LIBS"
4634 LIBS="-lisode $LIBS"
4635 cat > conftest.$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4643 if { (eval echo configure:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4645 eval "ac_cv_lib_$ac_lib_var=yes"
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 eval "ac_cv_lib_$ac_lib_var=no"
4653 LIBS="$ac_save_LIBS"
4656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4657 echo "$ac_t""yes" 1>&6
4660 cat >> confdefs.h <<\EOF
4661 #define HAVE_ISODE 1
4664 LDAPD_LIBS="$LDAPD_LIBS -lisode"
4667 echo "$ac_t""no" 1>&6
4673 if test $ol_link_isode != no; then
4674 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
4675 echo "configure:4676: checking for main in -lpp" >&5
4676 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
4677 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4680 ac_save_LIBS="$LIBS"
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4690 if { (eval echo configure:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4692 eval "ac_cv_lib_$ac_lib_var=yes"
4694 echo "configure: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4697 eval "ac_cv_lib_$ac_lib_var=no"
4700 LIBS="$ac_save_LIBS"
4703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4704 echo "$ac_t""yes" 1>&6
4706 cat >> confdefs.h <<\EOF
4710 LDAPD_LIBS="-lpp $LDAPD_LIBS"
4713 echo "$ac_t""no" 1>&6
4718 # Extract the first word of "pepsy", so it can be a program name with args.
4719 set dummy pepsy; ac_word=$2
4720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4721 echo "configure:4722: checking for $ac_word" >&5
4722 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4727 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
4730 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
4733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4735 for ac_dir in $ac_dummy; do
4736 test -z "$ac_dir" && ac_dir=.
4737 if test -f $ac_dir/$ac_word; then
4738 ac_cv_path_PEPSY="$ac_dir/$ac_word"
4746 PEPSY="$ac_cv_path_PEPSY"
4747 if test -n "$PEPSY"; then
4748 echo "$ac_t""$PEPSY" 1>&6
4750 echo "$ac_t""no" 1>&6
4757 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
4758 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
4760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4762 echo "configure:4763: checking for $ac_hdr" >&5
4763 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4764 echo $ac_n "(cached) $ac_c" 1>&6
4766 cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4772 { (eval echo configure:4773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4774 if test -z "$ac_err"; then
4776 eval "ac_cv_header_$ac_safe=yes"
4779 echo "configure: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4782 eval "ac_cv_header_$ac_safe=no"
4786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4787 echo "$ac_t""yes" 1>&6
4788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4789 cat >> confdefs.h <<EOF
4790 #define $ac_tr_hdr 1
4794 echo "$ac_t""no" 1>&6
4799 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4800 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4801 echo "configure:4802: checking for main in -lkrb4" >&5
4802 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
4803 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4806 ac_save_LIBS="$LIBS"
4807 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4808 cat > conftest.$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4816 if { (eval echo configure:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4818 eval "ac_cv_lib_$ac_lib_var=yes"
4820 echo "configure: failed program was:" >&5
4821 cat conftest.$ac_ext >&5
4823 eval "ac_cv_lib_$ac_lib_var=no"
4826 LIBS="$ac_save_LIBS"
4829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4830 echo "$ac_t""yes" 1>&6
4833 echo "$ac_t""no" 1>&6
4838 if test $have_k5 = yes ; then
4839 ol_with_kerberos=found
4840 ol_link_kerberos=yes
4842 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4844 LIBS="$KRB_LIBS $LIBS"
4846 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4847 echo "configure:4848: checking for des_debug in Kerberos libraries" >&5
4848 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4853 LIBS="$KRB_LIBS $LIBS"
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4858 #include <kerberosIV/krb.h>
4859 #include <kerberosIV/des.h>
4860 extern int des_debug;
4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4870 ol_cv_var_des_debug=yes
4872 echo "configure: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4875 ol_cv_var_des_debug=no
4882 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4884 if test $ol_cv_var_des_debug = yes ; then
4885 cat >> confdefs.h <<\EOF
4886 #define HAVE_DES_DEBUG 1
4896 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4897 for ac_hdr in krb.h des.h
4899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4901 echo "configure:4902: checking for $ac_hdr" >&5
4902 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4911 { (eval echo configure:4912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4913 if test -z "$ac_err"; then
4915 eval "ac_cv_header_$ac_safe=yes"
4918 echo "configure: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
4921 eval "ac_cv_header_$ac_safe=no"
4925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4926 echo "$ac_t""yes" 1>&6
4927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4928 cat >> confdefs.h <<EOF
4929 #define $ac_tr_hdr 1
4933 echo "$ac_t""no" 1>&6
4938 if test $ac_cv_header_krb_h = yes ; then
4939 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4940 echo "configure:4941: checking for main in -lkrb" >&5
4941 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
4942 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4945 ac_save_LIBS="$LIBS"
4946 LIBS="-lkrb -ldes $LIBS"
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 eval "ac_cv_lib_$ac_lib_var=yes"
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4962 eval "ac_cv_lib_$ac_lib_var=no"
4965 LIBS="$ac_save_LIBS"
4968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4969 echo "$ac_t""yes" 1>&6
4972 echo "$ac_t""no" 1>&6
4977 if test $have_k4 = yes ; then
4978 ol_with_kerberos=found
4979 ol_link_kerberos=yes
4981 KRB_LIBS="-lkrb -ldes"
4986 if test $ol_link_kerberos = yes ; then
4987 cat >> confdefs.h <<\EOF
4988 #define HAVE_KERBEROS 1
4994 if test $ol_with_tls != no ; then
4996 for ac_hdr in openssl/ssl.h ssl.h
4998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5000 echo "configure:5001: checking for $ac_hdr" >&5
5001 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5010 { (eval echo configure:5011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5012 if test -z "$ac_err"; then
5014 eval "ac_cv_header_$ac_safe=yes"
5017 echo "configure: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5020 eval "ac_cv_header_$ac_safe=no"
5024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5025 echo "$ac_t""yes" 1>&6
5026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5027 cat >> confdefs.h <<EOF
5028 #define $ac_tr_hdr 1
5032 echo "$ac_t""no" 1>&6
5037 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5038 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5039 echo "configure:5040: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5040 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5041 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5042 echo $ac_n "(cached) $ac_c" 1>&6
5044 ac_save_LIBS="$LIBS"
5045 LIBS="-lssl -lcrypto $LIBS"
5046 cat > conftest.$ac_ext <<EOF
5047 #line 5048 "configure"
5048 #include "confdefs.h"
5049 /* Override any gcc2 internal prototype to avoid an error. */
5050 /* We use char because int might match the return type of a gcc2
5051 builtin and then its argument prototype would still apply. */
5052 char SSLeay_add_ssl_algorithms();
5055 SSLeay_add_ssl_algorithms()
5058 if { (eval echo configure:5059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5060 eval "ac_cv_lib_$ac_lib_var=yes"
5062 echo "configure: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5065 eval "ac_cv_lib_$ac_lib_var=no"
5068 LIBS="$ac_save_LIBS"
5071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5072 echo "$ac_t""yes" 1>&6
5076 echo "$ac_t""no" 1>&6
5081 if test $have_ssleay = no ; then
5082 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5083 echo "configure:5084: checking for SSL_library_init in -lssl" >&5
5084 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
5085 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 ac_save_LIBS="$LIBS"
5089 LIBS="-lssl -lcrypto $LIBS"
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5093 /* Override any gcc2 internal prototype to avoid an error. */
5094 /* We use char because int might match the return type of a gcc2
5095 builtin and then its argument prototype would still apply. */
5096 char SSL_library_init();
5102 if { (eval echo configure:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5104 eval "ac_cv_lib_$ac_lib_var=yes"
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5109 eval "ac_cv_lib_$ac_lib_var=no"
5112 LIBS="$ac_save_LIBS"
5115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5116 echo "$ac_t""yes" 1>&6
5120 echo "$ac_t""no" 1>&6
5126 if test $have_ssleay = no ; then
5127 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5128 echo "configure:5129: checking for ssl3_accept in -lssl" >&5
5129 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
5130 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5133 ac_save_LIBS="$LIBS"
5134 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5135 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5138 /* Override any gcc2 internal prototype to avoid an error. */
5139 /* We use char because int might match the return type of a gcc2
5140 builtin and then its argument prototype would still apply. */
5147 if { (eval echo configure:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5149 eval "ac_cv_lib_$ac_lib_var=yes"
5151 echo "configure: failed program was:" >&5
5152 cat conftest.$ac_ext >&5
5154 eval "ac_cv_lib_$ac_lib_var=no"
5157 LIBS="$ac_save_LIBS"
5160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5165 echo "$ac_t""no" 1>&6
5171 if test $have_ssleay = yes ; then
5175 cat >> confdefs.h <<\EOF
5176 #define HAVE_SSLEAY 1
5180 if test $need_rsaref = yes; then
5181 cat >> confdefs.h <<\EOF
5182 #define HAVE_RSAREF 1
5186 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5188 TLS_LIBS="-lssl -lcrypto"
5194 if test $ol_link_tls = yes ; then
5195 cat >> confdefs.h <<\EOF
5203 gethostbyname_r gethostbyaddr_r \
5206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5207 echo "configure:5208: checking for $ac_func" >&5
5208 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5211 cat > conftest.$ac_ext <<EOF
5212 #line 5213 "configure"
5213 #include "confdefs.h"
5214 /* System header to define __stub macros and hopefully few prototypes,
5215 which can conflict with char $ac_func(); below. */
5217 /* Override any gcc2 internal prototype to avoid an error. */
5218 /* We use char because int might match the return type of a gcc2
5219 builtin and then its argument prototype would still apply. */
5225 /* The GNU C library defines this for functions which it implements
5226 to always fail with ENOSYS. Some functions are actually named
5227 something starting with __ and the normal name is an alias. */
5228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5238 eval "ac_cv_func_$ac_func=yes"
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5243 eval "ac_cv_func_$ac_func=no"
5248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5249 echo "$ac_t""yes" 1>&6
5250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5251 cat >> confdefs.h <<EOF
5252 #define $ac_tr_func 1
5256 echo "$ac_t""no" 1>&6
5261 if test "$ac_cv_func_ctime_r" = no ; then
5262 ol_cv_func_ctime_r_nargs=0
5264 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
5265 echo "configure:5266: checking number of arguments of ctime_r" >&5
5266 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5274 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
5277 if { (eval echo configure:5278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5279 ol_cv_func_ctime_r_nargs=3
5281 echo "configure: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5284 cat > conftest.$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5289 time_t ti; char *buffer; ctime_r(&ti,buffer);
5292 if { (eval echo configure:5293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5294 ol_cv_func_ctime_r_nargs=2
5296 echo "configure: failed program was:" >&5
5297 cat conftest.$ac_ext >&5
5299 ol_cv_func_ctime_r_nargs=0
5306 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
5307 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
5308 cat >> confdefs.h <<EOF
5309 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
5316 if test "$ac_cv_func_gethostbyname_r" = yes ; then
5317 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
5318 echo "configure:5319: checking number of arguments of gethostbyname_r" >&5
5319 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 cat > conftest.$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5325 #include <sys/types.h>
5326 #include <sys/socket.h>
5327 #include <netinet/in.h>
5329 #define BUFSIZE (sizeof(struct hostent)+10)
5331 struct hostent hent; char buffer[BUFSIZE];
5332 int bufsize=BUFSIZE;int h_errno;
5333 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
5334 buffer, bufsize, &h_errno);
5337 if { (eval echo configure:5338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5339 ol_cv_func_gethostbyname_r_nargs=5
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5344 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 #include <sys/types.h>
5348 #include <sys/socket.h>
5349 #include <netinet/in.h>
5351 #define BUFSIZE (sizeof(struct hostent)+10)
5353 struct hostent hent;struct hostent *rhent;
5354 char buffer[BUFSIZE];
5355 int bufsize=BUFSIZE;int h_errno;
5356 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
5360 if { (eval echo configure:5361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5362 ol_cv_func_gethostbyname_r_nargs=6
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 ol_cv_func_gethostbyname_r_nargs=0
5374 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
5375 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
5376 cat >> confdefs.h <<EOF
5377 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
5383 ol_cv_func_gethostbyname_r_nargs=0
5386 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
5387 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
5388 echo "configure:5389: checking number of arguments of gethostbyaddr_r" >&5
5389 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 #include <sys/types.h>
5396 #include <sys/socket.h>
5397 #include <netinet/in.h>
5399 #define BUFSIZE (sizeof(struct hostent)+10)
5401 struct hostent hent; char buffer[BUFSIZE];
5403 size_t alen=sizeof(struct in_addr);
5404 int bufsize=BUFSIZE;int h_errno;
5405 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5406 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
5409 if { (eval echo configure:5410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5411 ol_cv_func_gethostbyaddr_r_nargs=7
5413 echo "configure: failed program was:" >&5
5414 cat conftest.$ac_ext >&5
5416 cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5419 #include <sys/types.h>
5420 #include <sys/socket.h>
5421 #include <netinet/in.h>
5423 #define BUFSIZE (sizeof(struct hostent)+10)
5425 struct hostent hent;
5426 struct hostent *rhent; char buffer[BUFSIZE];
5428 size_t alen=sizeof(struct in_addr);
5429 int bufsize=BUFSIZE;int h_errno;
5430 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5431 alen, AF_INET, &hent, buffer, bufsize,
5435 if { (eval echo configure:5436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5437 ol_cv_func_gethostbyaddr_r_nargs=8
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5442 ol_cv_func_gethostbyaddr_r_nargs=0
5449 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
5450 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
5451 cat >> confdefs.h <<EOF
5452 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
5458 ol_cv_func_gethostbyaddr_r_nargs=0
5461 if test "$ac_cv_func_ctime_r" = yes \
5462 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
5463 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
5464 -a "$ac_cv_func_gethostbyname_r" = yes \
5465 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
5466 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
5467 -a "$ac_cv_func_gethostbyaddr_r" = yes \
5468 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
5469 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
5472 cat >> confdefs.h <<\EOF
5473 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
5479 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5480 -o $ol_with_threads = posix ; then
5482 for ac_hdr in pthread.h sched.h
5484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5486 echo "configure:5487: checking for $ac_hdr" >&5
5487 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5490 cat > conftest.$ac_ext <<EOF
5491 #line 5492 "configure"
5492 #include "confdefs.h"
5495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5496 { (eval echo configure:5497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5498 if test -z "$ac_err"; then
5500 eval "ac_cv_header_$ac_safe=yes"
5503 echo "configure: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5506 eval "ac_cv_header_$ac_safe=no"
5510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5511 echo "$ac_t""yes" 1>&6
5512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5513 cat >> confdefs.h <<EOF
5514 #define $ac_tr_hdr 1
5518 echo "$ac_t""no" 1>&6
5523 if test $ac_cv_header_pthread_h = yes ; then
5524 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
5525 echo "configure:5526: checking POSIX thread version" >&5
5526 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
5527 echo $ac_n "(cached) $ac_c" 1>&6
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5534 # include <pthread.h>
5535 /* this check could be improved */
5536 # ifdef PTHREAD_ONCE_INIT
5537 pthread_version_final
5541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5542 egrep "pthread_version_final" >/dev/null 2>&1; then
5544 ol_pthread_final=yes
5552 cat > conftest.$ac_ext <<EOF
5553 #line 5554 "configure"
5554 #include "confdefs.h"
5556 # include <pthread.h>
5557 /* this check could be improved */
5558 # ifdef pthread_once_init
5559 pthread_version_draft4
5563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5564 egrep "pthread_version_draft4" >/dev/null 2>&1; then
5566 ol_pthread_draft4=yes
5569 ol_pthread_draft4=no
5574 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
5575 ol_cv_pthread_version=final
5576 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
5577 ol_cv_pthread_version=draft4
5579 ol_cv_pthread_version=unknown
5584 echo "$ac_t""$ol_cv_pthread_version" 1>&6
5587 if test $ol_cv_pthread_version = final ; then
5588 cat >> confdefs.h <<\EOF
5589 #define HAVE_PTHREADS_FINAL 1
5592 elif test $ol_cv_pthread_version = draft4 ; then
5593 cat >> confdefs.h <<\EOF
5594 #define HAVE_PTHREADS_D4 1
5598 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
5601 # consider threads found
5602 ol_with_threads=found
5605 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
5606 echo "configure:5607: checking for LinuxThreads pthread.h" >&5
5607 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5610 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5613 #include <pthread.h>
5615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5616 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
5618 ol_cv_header_linux_threads=yes
5621 ol_cv_header_linux_threads=no
5628 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
5629 if test $ol_cv_header_linux_threads = yes; then
5630 cat >> confdefs.h <<\EOF
5631 #define HAVE_LINUX_THREADS 1
5638 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
5639 echo "configure:5640: checking for pthread_create in default libraries" >&5
5640 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5644 if test "$cross_compiling" = yes; then
5645 ol_cv_pthread_create=yes
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5651 #include <pthread.h>
5653 #define NULL (void*)0
5656 static void *task(p)
5659 return (void *) (p == NULL);
5662 int main(argc, argv)
5669 /* make sure pthread_create() isn't just a stub */
5670 #if HAVE_PTHREADS_D4
5671 status = pthread_create(&t, pthread_attr_default, task, NULL);
5673 status = pthread_create(&t, NULL, task, NULL);
5676 if( status ) return status;
5678 /* make sure pthread_detach() isn't just a stub */
5679 #if HAVE_PTHREADS_D4
5680 status = pthread_detach( &t );
5682 status = pthread_detach( t );
5685 if( status ) return status;
5691 if { (eval echo configure:5692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5693 ol_cv_pthread_create=yes
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5698 ol_cv_pthread_create=no
5705 echo "$ac_t""$ol_cv_pthread_create" 1>&6
5707 if test $ol_cv_pthread_create != no ; then
5708 ol_link_threads=posix
5712 # Pthread try link: -mt (ol_cv_pthread_mt)
5713 if test "$ol_link_threads" = no ; then
5715 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
5716 echo "configure:5717: checking for pthread link with -mt" >&5
5717 if eval "test \"\${ol_cv_pthread_mt+set}\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5729 #include <pthread.h>
5731 #define NULL (void*)0
5738 #if HAVE_PTHREADS_D4
5739 pthread_create(&t, pthread_attr_default, NULL, NULL);
5740 pthread_detach( &t );
5742 pthread_create(&t, NULL, NULL, NULL);
5743 pthread_detach( t );
5745 #ifdef HAVE_LINUX_THREADS
5746 pthread_kill_other_threads_np();
5751 if { (eval echo configure:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5753 ol_cv_pthread_mt=yes
5755 echo "configure: failed program was:" >&5
5756 cat conftest.$ac_ext >&5
5767 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
5769 if test $ol_cv_pthread_mt = yes ; then
5770 ol_link_pthreads="-mt"
5771 ol_link_threads=posix
5775 # Pthread try link: -kthread (ol_cv_pthread_kthread)
5776 if test "$ol_link_threads" = no ; then
5778 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
5779 echo "configure:5780: checking for pthread link with -kthread" >&5
5780 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
5781 echo $ac_n "(cached) $ac_c" 1>&6
5786 LIBS="-kthread $LIBS"
5788 cat > conftest.$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5792 #include <pthread.h>
5794 #define NULL (void*)0
5801 #if HAVE_PTHREADS_D4
5802 pthread_create(&t, pthread_attr_default, NULL, NULL);
5803 pthread_detach( &t );
5805 pthread_create(&t, NULL, NULL, NULL);
5806 pthread_detach( t );
5808 #ifdef HAVE_LINUX_THREADS
5809 pthread_kill_other_threads_np();
5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5816 ol_cv_pthread_kthread=yes
5818 echo "configure: failed program was:" >&5
5819 cat conftest.$ac_ext >&5
5821 ol_cv_pthread_kthread=no
5830 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5832 if test $ol_cv_pthread_kthread = yes ; then
5833 ol_link_pthreads="-kthread"
5834 ol_link_threads=posix
5838 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5839 if test "$ol_link_threads" = no ; then
5841 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5842 echo "configure:5843: checking for pthread link with -pthread" >&5
5843 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
5844 echo $ac_n "(cached) $ac_c" 1>&6
5849 LIBS="-pthread $LIBS"
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5855 #include <pthread.h>
5857 #define NULL (void*)0
5864 #if HAVE_PTHREADS_D4
5865 pthread_create(&t, pthread_attr_default, NULL, NULL);
5866 pthread_detach( &t );
5868 pthread_create(&t, NULL, NULL, NULL);
5869 pthread_detach( t );
5871 #ifdef HAVE_LINUX_THREADS
5872 pthread_kill_other_threads_np();
5877 if { (eval echo configure:5878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5879 ol_cv_pthread_pthread=yes
5881 echo "configure: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5884 ol_cv_pthread_pthread=no
5893 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5895 if test $ol_cv_pthread_pthread = yes ; then
5896 ol_link_pthreads="-pthread"
5897 ol_link_threads=posix
5901 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5902 if test "$ol_link_threads" = no ; then
5904 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5905 echo "configure:5906: checking for pthread link with -pthreads" >&5
5906 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
5907 echo $ac_n "(cached) $ac_c" 1>&6
5912 LIBS="-pthreads $LIBS"
5914 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5918 #include <pthread.h>
5920 #define NULL (void*)0
5927 #if HAVE_PTHREADS_D4
5928 pthread_create(&t, pthread_attr_default, NULL, NULL);
5929 pthread_detach( &t );
5931 pthread_create(&t, NULL, NULL, NULL);
5932 pthread_detach( t );
5934 #ifdef HAVE_LINUX_THREADS
5935 pthread_kill_other_threads_np();
5940 if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5942 ol_cv_pthread_pthreads=yes
5944 echo "configure: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5947 ol_cv_pthread_pthreads=no
5956 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5958 if test $ol_cv_pthread_pthreads = yes ; then
5959 ol_link_pthreads="-pthreads"
5960 ol_link_threads=posix
5964 # Pthread try link: -thread (ol_cv_pthread_thread)
5965 if test "$ol_link_threads" = no ; then
5967 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5968 echo "configure:5969: checking for pthread link with -thread" >&5
5969 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
5970 echo $ac_n "(cached) $ac_c" 1>&6
5975 LIBS="-thread $LIBS"
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5981 #include <pthread.h>
5983 #define NULL (void*)0
5990 #if HAVE_PTHREADS_D4
5991 pthread_create(&t, pthread_attr_default, NULL, NULL);
5992 pthread_detach( &t );
5994 pthread_create(&t, NULL, NULL, NULL);
5995 pthread_detach( t );
5997 #ifdef HAVE_LINUX_THREADS
5998 pthread_kill_other_threads_np();
6003 if { (eval echo configure:6004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6005 ol_cv_pthread_thread=yes
6007 echo "configure: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6010 ol_cv_pthread_thread=no
6019 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
6021 if test $ol_cv_pthread_thread = yes ; then
6022 ol_link_pthreads="-thread"
6023 ol_link_threads=posix
6028 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
6029 if test "$ol_link_threads" = no ; then
6030 # try -lpthread -lmach -lexc -lc_r
6031 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
6032 echo "configure:6033: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
6033 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
6034 echo $ac_n "(cached) $ac_c" 1>&6
6039 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
6041 cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6045 #include <pthread.h>
6047 #define NULL (void*)0
6054 #if HAVE_PTHREADS_D4
6055 pthread_create(&t, pthread_attr_default, NULL, NULL);
6056 pthread_detach( &t );
6058 pthread_create(&t, NULL, NULL, NULL);
6059 pthread_detach( t );
6061 #ifdef HAVE_LINUX_THREADS
6062 pthread_kill_other_threads_np();
6067 if { (eval echo configure:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6069 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6074 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
6083 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
6085 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
6086 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
6087 ol_link_threads=posix
6091 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
6092 if test "$ol_link_threads" = no ; then
6093 # try -lpthread -lmach -lexc
6094 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
6095 echo "configure:6096: checking for pthread link with -lpthread -lmach -lexc" >&5
6096 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
6097 echo $ac_n "(cached) $ac_c" 1>&6
6102 LIBS="-lpthread -lmach -lexc $LIBS"
6104 cat > conftest.$ac_ext <<EOF
6105 #line 6106 "configure"
6106 #include "confdefs.h"
6108 #include <pthread.h>
6110 #define NULL (void*)0
6117 #if HAVE_PTHREADS_D4
6118 pthread_create(&t, pthread_attr_default, NULL, NULL);
6119 pthread_detach( &t );
6121 pthread_create(&t, NULL, NULL, NULL);
6122 pthread_detach( t );
6124 #ifdef HAVE_LINUX_THREADS
6125 pthread_kill_other_threads_np();
6130 if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6132 ol_cv_pthread_lpthread_lmach_lexc=yes
6134 echo "configure: failed program was:" >&5
6135 cat conftest.$ac_ext >&5
6137 ol_cv_pthread_lpthread_lmach_lexc=no
6146 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
6148 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
6149 ol_link_pthreads="-lpthread -lmach -lexc"
6150 ol_link_threads=posix
6155 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
6156 if test "$ol_link_threads" = no ; then
6157 # try -lpthread -Wl,-woff,85
6158 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
6159 echo "configure:6160: checking for pthread link with -lpthread -Wl,-woff,85" >&5
6160 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6166 LIBS="-lpthread -Wl,-woff,85 $LIBS"
6168 cat > conftest.$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6172 #include <pthread.h>
6174 #define NULL (void*)0
6181 #if HAVE_PTHREADS_D4
6182 pthread_create(&t, pthread_attr_default, NULL, NULL);
6183 pthread_detach( &t );
6185 pthread_create(&t, NULL, NULL, NULL);
6186 pthread_detach( t );
6188 #ifdef HAVE_LINUX_THREADS
6189 pthread_kill_other_threads_np();
6194 if { (eval echo configure:6195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6196 ol_cv_pthread_lib_lpthread_woff=yes
6198 echo "configure: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6201 ol_cv_pthread_lib_lpthread_woff=no
6210 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
6212 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
6213 ol_link_pthreads="-lpthread -Wl,-woff,85"
6214 ol_link_threads=posix
6219 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
6220 if test "$ol_link_threads" = no ; then
6222 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
6223 echo "configure:6224: checking for pthread link with -lpthread" >&5
6224 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6230 LIBS="-lpthread $LIBS"
6232 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure"
6234 #include "confdefs.h"
6236 #include <pthread.h>
6238 #define NULL (void*)0
6245 #if HAVE_PTHREADS_D4
6246 pthread_create(&t, pthread_attr_default, NULL, NULL);
6247 pthread_detach( &t );
6249 pthread_create(&t, NULL, NULL, NULL);
6250 pthread_detach( t );
6252 #ifdef HAVE_LINUX_THREADS
6253 pthread_kill_other_threads_np();
6258 if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6260 ol_cv_pthread_lpthread=yes
6262 echo "configure: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6265 ol_cv_pthread_lpthread=no
6274 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
6276 if test $ol_cv_pthread_lpthread = yes ; then
6277 ol_link_pthreads="-lpthread"
6278 ol_link_threads=posix
6282 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
6283 if test "$ol_link_threads" = no ; then
6285 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
6286 echo "configure:6287: checking for pthread link with -lc_r" >&5
6287 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
6288 echo $ac_n "(cached) $ac_c" 1>&6
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6299 #include <pthread.h>
6301 #define NULL (void*)0
6308 #if HAVE_PTHREADS_D4
6309 pthread_create(&t, pthread_attr_default, NULL, NULL);
6310 pthread_detach( &t );
6312 pthread_create(&t, NULL, NULL, NULL);
6313 pthread_detach( t );
6315 #ifdef HAVE_LINUX_THREADS
6316 pthread_kill_other_threads_np();
6321 if { (eval echo configure:6322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6323 ol_cv_pthread_lc_r=yes
6325 echo "configure: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6328 ol_cv_pthread_lc_r=no
6337 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
6339 if test $ol_cv_pthread_lc_r = yes ; then
6340 ol_link_pthreads="-lc_r"
6341 ol_link_threads=posix
6346 # Pthread try link: -threads (ol_cv_pthread_threads)
6347 if test "$ol_link_threads" = no ; then
6349 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
6350 echo "configure:6351: checking for pthread link with -threads" >&5
6351 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6357 LIBS="-threads $LIBS"
6359 cat > conftest.$ac_ext <<EOF
6360 #line 6361 "configure"
6361 #include "confdefs.h"
6363 #include <pthread.h>
6365 #define NULL (void*)0
6372 #if HAVE_PTHREADS_D4
6373 pthread_create(&t, pthread_attr_default, NULL, NULL);
6374 pthread_detach( &t );
6376 pthread_create(&t, NULL, NULL, NULL);
6377 pthread_detach( t );
6379 #ifdef HAVE_LINUX_THREADS
6380 pthread_kill_other_threads_np();
6385 if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6387 ol_cv_pthread_threads=yes
6389 echo "configure: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6392 ol_cv_pthread_threads=no
6401 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
6403 if test $ol_cv_pthread_threads = yes ; then
6404 ol_link_pthreads="-threads"
6405 ol_link_threads=posix
6410 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
6411 if test "$ol_link_threads" = no ; then
6412 # try -lpthreads -lmach -lexc -lc_r
6413 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
6414 echo "configure:6415: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
6415 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
6416 echo $ac_n "(cached) $ac_c" 1>&6
6421 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
6423 cat > conftest.$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6427 #include <pthread.h>
6429 #define NULL (void*)0
6436 #if HAVE_PTHREADS_D4
6437 pthread_create(&t, pthread_attr_default, NULL, NULL);
6438 pthread_detach( &t );
6440 pthread_create(&t, NULL, NULL, NULL);
6441 pthread_detach( t );
6443 #ifdef HAVE_LINUX_THREADS
6444 pthread_kill_other_threads_np();
6449 if { (eval echo configure:6450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6451 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
6453 echo "configure: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6456 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
6465 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
6467 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
6468 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
6469 ol_link_threads=posix
6473 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
6474 if test "$ol_link_threads" = no ; then
6475 # try -lpthreads -lmach -lexc
6476 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
6477 echo "configure:6478: checking for pthread link with -lpthreads -lmach -lexc" >&5
6478 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6484 LIBS="-lpthreads -lmach -lexc $LIBS"
6486 cat > conftest.$ac_ext <<EOF
6487 #line 6488 "configure"
6488 #include "confdefs.h"
6490 #include <pthread.h>
6492 #define NULL (void*)0
6499 #if HAVE_PTHREADS_D4
6500 pthread_create(&t, pthread_attr_default, NULL, NULL);
6501 pthread_detach( &t );
6503 pthread_create(&t, NULL, NULL, NULL);
6504 pthread_detach( t );
6506 #ifdef HAVE_LINUX_THREADS
6507 pthread_kill_other_threads_np();
6512 if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6514 ol_cv_pthread_lpthreads_lmach_lexc=yes
6516 echo "configure: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6519 ol_cv_pthread_lpthreads_lmach_lexc=no
6528 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
6530 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
6531 ol_link_pthreads="-lpthreads -lmach -lexc"
6532 ol_link_threads=posix
6536 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
6537 if test "$ol_link_threads" = no ; then
6538 # try -lpthreads -lexc
6539 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
6540 echo "configure:6541: checking for pthread link with -lpthreads -lexc" >&5
6541 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
6542 echo $ac_n "(cached) $ac_c" 1>&6
6547 LIBS="-lpthreads -lexc $LIBS"
6549 cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6553 #include <pthread.h>
6555 #define NULL (void*)0
6562 #if HAVE_PTHREADS_D4
6563 pthread_create(&t, pthread_attr_default, NULL, NULL);
6564 pthread_detach( &t );
6566 pthread_create(&t, NULL, NULL, NULL);
6567 pthread_detach( t );
6569 #ifdef HAVE_LINUX_THREADS
6570 pthread_kill_other_threads_np();
6575 if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6577 ol_cv_pthread_lpthreads_lexc=yes
6579 echo "configure: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6582 ol_cv_pthread_lpthreads_lexc=no
6591 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
6593 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
6594 ol_link_pthreads="-lpthreads -lexc"
6595 ol_link_threads=posix
6600 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
6601 if test "$ol_link_threads" = no ; then
6603 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
6604 echo "configure:6605: checking for pthread link with -lpthreads" >&5
6605 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6611 LIBS="-lpthreads $LIBS"
6613 cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6617 #include <pthread.h>
6619 #define NULL (void*)0
6626 #if HAVE_PTHREADS_D4
6627 pthread_create(&t, pthread_attr_default, NULL, NULL);
6628 pthread_detach( &t );
6630 pthread_create(&t, NULL, NULL, NULL);
6631 pthread_detach( t );
6633 #ifdef HAVE_LINUX_THREADS
6634 pthread_kill_other_threads_np();
6639 if { (eval echo configure:6640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6641 ol_cv_pthread_lib_lpthreads=yes
6643 echo "configure: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6646 ol_cv_pthread_lib_lpthreads=no
6655 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
6657 if test $ol_cv_pthread_lib_lpthreads = yes ; then
6658 ol_link_pthreads="-lpthreads"
6659 ol_link_threads=posix
6664 if test $ol_link_threads != no ; then
6665 cat >> confdefs.h <<\EOF
6666 #define HAVE_PTHREADS 1
6670 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
6672 save_CPPFLAGS="$CPPFLAGS"
6674 LIBS="$LTHREAD_LIBS $LIBS"
6676 for ac_func in sched_yield pthread_yield
6678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6679 echo "configure:6680: checking for $ac_func" >&5
6680 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6681 echo $ac_n "(cached) $ac_c" 1>&6
6683 cat > conftest.$ac_ext <<EOF
6684 #line 6685 "configure"
6685 #include "confdefs.h"
6686 /* System header to define __stub macros and hopefully few prototypes,
6687 which can conflict with char $ac_func(); below. */
6689 /* Override any gcc2 internal prototype to avoid an error. */
6690 /* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6697 /* The GNU C library defines this for functions which it implements
6698 to always fail with ENOSYS. Some functions are actually named
6699 something starting with __ and the normal name is an alias. */
6700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710 eval "ac_cv_func_$ac_func=yes"
6712 echo "configure: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6715 eval "ac_cv_func_$ac_func=no"
6720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6723 cat >> confdefs.h <<EOF
6724 #define $ac_tr_func 1
6728 echo "$ac_t""no" 1>&6
6733 if test $ac_cv_func_sched_yield = no -a \
6734 $ac_cv_func_pthread_yield = no ; then
6735 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6736 echo "configure:6737: checking for sched_yield in -lrt" >&5
6737 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
6738 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6741 ac_save_LIBS="$LIBS"
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6746 /* Override any gcc2 internal prototype to avoid an error. */
6747 /* We use char because int might match the return type of a gcc2
6748 builtin and then its argument prototype would still apply. */
6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6757 eval "ac_cv_lib_$ac_lib_var=yes"
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 eval "ac_cv_lib_$ac_lib_var=no"
6765 LIBS="$ac_save_LIBS"
6768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6769 echo "$ac_t""yes" 1>&6
6770 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
6771 cat >> confdefs.h <<\EOF
6772 #define HAVE_SCHED_YIELD 1
6775 ac_cv_func_sched_yield=yes
6777 echo "$ac_t""no" 1>&6
6778 ac_cv_func_sched_yield=no
6782 if test $ac_cv_func_sched_yield = no -a \
6783 $ac_cv_func_pthread_yield = no ; then
6784 for ac_func in thr_yield
6786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6787 echo "configure:6788: checking for $ac_func" >&5
6788 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6789 echo $ac_n "(cached) $ac_c" 1>&6
6791 cat > conftest.$ac_ext <<EOF
6792 #line 6793 "configure"
6793 #include "confdefs.h"
6794 /* System header to define __stub macros and hopefully few prototypes,
6795 which can conflict with char $ac_func(); below. */
6797 /* Override any gcc2 internal prototype to avoid an error. */
6798 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6805 /* The GNU C library defines this for functions which it implements
6806 to always fail with ENOSYS. Some functions are actually named
6807 something starting with __ and the normal name is an alias. */
6808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6816 if { (eval echo configure:6817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6818 eval "ac_cv_func_$ac_func=yes"
6820 echo "configure: failed program was:" >&5
6821 cat conftest.$ac_ext >&5
6823 eval "ac_cv_func_$ac_func=no"
6828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6829 echo "$ac_t""yes" 1>&6
6830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6831 cat >> confdefs.h <<EOF
6832 #define $ac_tr_func 1
6836 echo "$ac_t""no" 1>&6
6841 if test $ac_cv_func_sched_yield = no -a \
6842 $ac_cv_func_pthread_yield = no -a \
6843 "$ac_cv_func_thr_yield" = no ; then
6844 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6847 for ac_func in pthread_kill
6849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6850 echo "configure:6851: checking for $ac_func" >&5
6851 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6852 echo $ac_n "(cached) $ac_c" 1>&6
6854 cat > conftest.$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6857 /* System header to define __stub macros and hopefully few prototypes,
6858 which can conflict with char $ac_func(); below. */
6860 /* Override any gcc2 internal prototype to avoid an error. */
6861 /* We use char because int might match the return type of a gcc2
6862 builtin and then its argument prototype would still apply. */
6868 /* The GNU C library defines this for functions which it implements
6869 to always fail with ENOSYS. Some functions are actually named
6870 something starting with __ and the normal name is an alias. */
6871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6879 if { (eval echo configure:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6881 eval "ac_cv_func_$ac_func=yes"
6883 echo "configure: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6886 eval "ac_cv_func_$ac_func=no"
6891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6894 cat >> confdefs.h <<EOF
6895 #define $ac_tr_func 1
6899 echo "$ac_t""no" 1>&6
6904 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6905 echo "configure:6906: checking for pthread_detach with <pthread.h>" >&5
6906 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
6907 echo $ac_n "(cached) $ac_c" 1>&6
6910 cat > conftest.$ac_ext <<EOF
6911 #line 6912 "configure"
6912 #include "confdefs.h"
6914 #include <pthread.h>
6916 #define NULL (void*)0
6920 pthread_detach(NULL);
6923 if { (eval echo configure:6924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6925 ol_cv_func_pthread_detach=yes
6927 echo "configure: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6930 ol_cv_func_pthread_detach=no
6936 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6938 if test $ol_cv_func_pthread_detach = no ; then
6939 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6942 cat >> confdefs.h <<\EOF
6943 #define HAVE_PTHREAD_DETACH 1
6948 pthread_setconcurrency \
6949 pthread_getconcurrency \
6950 thr_setconcurrency \
6951 thr_getconcurrency \
6954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6955 echo "configure:6956: checking for $ac_func" >&5
6956 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6959 cat > conftest.$ac_ext <<EOF
6960 #line 6961 "configure"
6961 #include "confdefs.h"
6962 /* System header to define __stub macros and hopefully few prototypes,
6963 which can conflict with char $ac_func(); below. */
6965 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6973 /* The GNU C library defines this for functions which it implements
6974 to always fail with ENOSYS. Some functions are actually named
6975 something starting with __ and the normal name is an alias. */
6976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6984 if { (eval echo configure:6985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6986 eval "ac_cv_func_$ac_func=yes"
6988 echo "configure: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6991 eval "ac_cv_func_$ac_func=no"
6996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6997 echo "$ac_t""yes" 1>&6
6998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6999 cat >> confdefs.h <<EOF
7000 #define $ac_tr_func 1
7004 echo "$ac_t""no" 1>&6
7010 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
7011 echo "configure:7012: checking for pthread_kill_other_threads_np" >&5
7012 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
7013 echo $ac_n "(cached) $ac_c" 1>&6
7015 cat > conftest.$ac_ext <<EOF
7016 #line 7017 "configure"
7017 #include "confdefs.h"
7018 /* System header to define __stub macros and hopefully few prototypes,
7019 which can conflict with char pthread_kill_other_threads_np(); below. */
7021 /* Override any gcc2 internal prototype to avoid an error. */
7022 /* We use char because int might match the return type of a gcc2
7023 builtin and then its argument prototype would still apply. */
7024 char pthread_kill_other_threads_np();
7029 /* The GNU C library defines this for functions which it implements
7030 to always fail with ENOSYS. Some functions are actually named
7031 something starting with __ and the normal name is an alias. */
7032 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
7035 f = pthread_kill_other_threads_np;
7040 if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7042 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
7044 echo "configure: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7047 eval "ac_cv_func_pthread_kill_other_threads_np=no"
7052 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7056 echo "$ac_t""no" 1>&6
7059 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
7060 echo "configure:7061: checking for LinuxThreads implementation" >&5
7061 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
7062 echo $ac_n "(cached) $ac_c" 1>&6
7064 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
7067 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
7072 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
7073 echo "configure:7074: checking for LinuxThreads consistency" >&5
7074 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
7075 echo $ac_n "(cached) $ac_c" 1>&6
7078 if test $ol_cv_header_linux_threads = yes -a \
7079 $ol_cv_sys_linux_threads = yes; then
7080 ol_cv_linux_threads=yes
7081 elif test $ol_cv_header_linux_threads = no -a \
7082 $ol_cv_sys_linux_threads = no; then
7083 ol_cv_linux_threads=no
7085 ol_cv_linux_threads=error
7090 echo "$ac_t""$ol_cv_linux_threads" 1>&6
7093 if test $ol_cv_linux_threads = error; then
7094 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
7097 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
7098 echo "configure:7099: checking if pthread_create() works" >&5
7099 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7103 if test "$cross_compiling" = yes; then
7104 ol_cv_pthread_create_works=yes
7106 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7110 #include <pthread.h>
7112 #define NULL (void*)0
7115 static void *task(p)
7118 return (void *) (p == NULL);
7121 int main(argc, argv)
7126 #if HAVE_PTHREADS_D4
7127 exit(pthread_create(&t, pthread_attr_default, task, NULL));
7129 exit(pthread_create(&t, NULL, task, NULL));
7134 if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7136 ol_cv_pthread_create_works=yes
7138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7141 ol_cv_pthread_create_works=no
7148 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
7150 if test $ol_cv_pthread_create_works = no ; then
7151 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
7154 if test $ol_with_yielding_select = auto ; then
7155 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
7156 echo "configure:7157: checking if select yields when using pthreads" >&5
7157 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
7158 echo $ac_n "(cached) $ac_c" 1>&6
7161 if test "$cross_compiling" = yes; then
7163 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
7165 cat > conftest.$ac_ext <<EOF
7166 #line 7167 "configure"
7167 #include "confdefs.h"
7169 #include <sys/types.h>
7170 #include <sys/time.h>
7172 #include <pthread.h>
7174 #define NULL (void*) 0
7177 static int fildes[2];
7179 static void *task(p)
7191 FD_SET(fildes[0], &rfds);
7193 /* we're not interested in any fds */
7194 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
7201 exit(0); /* if we exit here, the select blocked the whole process */
7204 int main(argc, argv)
7210 /* create a pipe to select */
7211 if(pipe(&fildes[0])) {
7216 #ifdef HAVE_PTHREAD_SETCONCURRENCY
7217 (void) pthread_setconcurrency(2);
7219 #ifdef HAVE_THR_SETCONCURRENCY
7220 /* Set Solaris LWP concurrency to 2 */
7221 thr_setconcurrency(2);
7225 #if HAVE_PTHREADS_D4
7226 pthread_create(&t, pthread_attr_default, task, NULL);
7228 pthread_create(&t, NULL, task, NULL);
7231 #if HAVE_SCHED_YIELD
7232 sched_yield(); /* make sure task runs first */
7234 #ifdef HAVE_PTHREAD_YIELD
7235 pthread_yield(); /* make sure task runs first */
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7244 ol_cv_pthread_select_yields=no
7246 echo "configure: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7249 ol_cv_pthread_select_yields=yes
7256 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
7258 if test $ol_cv_pthread_select_yields = yes ; then
7259 ol_with_yielding_select=yes
7263 CPPFLAGS="$save_CPPFLAGS"
7266 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
7270 if test $ol_with_threads = posix ; then
7271 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
7275 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7276 -o $ol_with_threads = mach ; then
7278 for ac_hdr in mach/cthreads.h
7280 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7281 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7282 echo "configure:7283: checking for $ac_hdr" >&5
7283 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7284 echo $ac_n "(cached) $ac_c" 1>&6
7286 cat > conftest.$ac_ext <<EOF
7287 #line 7288 "configure"
7288 #include "confdefs.h"
7291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7292 { (eval echo configure:7293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7294 if test -z "$ac_err"; then
7296 eval "ac_cv_header_$ac_safe=yes"
7299 echo "configure: failed program was:" >&5
7300 cat conftest.$ac_ext >&5
7302 eval "ac_cv_header_$ac_safe=no"
7306 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7307 echo "$ac_t""yes" 1>&6
7308 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7309 cat >> confdefs.h <<EOF
7310 #define $ac_tr_hdr 1
7314 echo "$ac_t""no" 1>&6
7318 if test $ac_cv_header_mach_cthreads_h = yes ; then
7319 ol_with_threads=found
7321 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
7322 echo "configure:7323: checking for cthread_fork" >&5
7323 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
7324 echo $ac_n "(cached) $ac_c" 1>&6
7326 cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7329 /* System header to define __stub macros and hopefully few prototypes,
7330 which can conflict with char cthread_fork(); below. */
7332 /* Override any gcc2 internal prototype to avoid an error. */
7333 /* We use char because int might match the return type of a gcc2
7334 builtin and then its argument prototype would still apply. */
7335 char cthread_fork();
7340 /* The GNU C library defines this for functions which it implements
7341 to always fail with ENOSYS. Some functions are actually named
7342 something starting with __ and the normal name is an alias. */
7343 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
7351 if { (eval echo configure:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7353 eval "ac_cv_func_cthread_fork=yes"
7355 echo "configure: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7358 eval "ac_cv_func_cthread_fork=no"
7363 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
7364 echo "$ac_t""yes" 1>&6
7367 echo "$ac_t""no" 1>&6
7371 if test $ol_link_threads = no ; then
7372 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
7373 echo "configure:7374: checking for cthread_fork with -all_load" >&5
7374 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
7375 echo $ac_n "(cached) $ac_c" 1>&6
7379 LIBS="-all_load $LIBS"
7380 cat > conftest.$ac_ext <<EOF
7381 #line 7382 "configure"
7382 #include "confdefs.h"
7383 #include <mach/cthreads.h>
7386 cthread_fork((void *)0, (void *)0);
7390 if { (eval echo configure:7391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7392 ol_cv_cthread_all_load=yes
7394 echo "configure: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7397 ol_cv_cthread_all_load=no
7404 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
7406 if test $ol_cv_cthread_all_load = yes ; then
7407 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
7408 ol_link_threads=mach
7412 if test $ol_link_threads != no ; then
7413 : check for cthread specific functionality here
7414 cat >> confdefs.h <<\EOF
7415 #define HAVE_MACH_CTHREADS 1
7419 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
7423 if test $ol_with_threads = mach ; then
7424 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
7428 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7429 -o $ol_with_threads = lwp ; then
7431 for ac_hdr in thread.h synch.h
7433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7435 echo "configure:7436: checking for $ac_hdr" >&5
7436 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7437 echo $ac_n "(cached) $ac_c" 1>&6
7439 cat > conftest.$ac_ext <<EOF
7440 #line 7441 "configure"
7441 #include "confdefs.h"
7444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7445 { (eval echo configure:7446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7447 if test -z "$ac_err"; then
7449 eval "ac_cv_header_$ac_safe=yes"
7452 echo "configure: failed program was:" >&5
7453 cat conftest.$ac_ext >&5
7455 eval "ac_cv_header_$ac_safe=no"
7459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7460 echo "$ac_t""yes" 1>&6
7461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7462 cat >> confdefs.h <<EOF
7463 #define $ac_tr_hdr 1
7467 echo "$ac_t""no" 1>&6
7471 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
7472 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
7473 echo "configure:7474: checking for thr_create in -lthread" >&5
7474 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
7475 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7478 ac_save_LIBS="$LIBS"
7479 LIBS="-lthread $LIBS"
7480 cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7483 /* Override any gcc2 internal prototype to avoid an error. */
7484 /* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7492 if { (eval echo configure:7493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7494 eval "ac_cv_lib_$ac_lib_var=yes"
7496 echo "configure: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7499 eval "ac_cv_lib_$ac_lib_var=no"
7502 LIBS="$ac_save_LIBS"
7505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7506 echo "$ac_t""yes" 1>&6
7509 echo "$ac_t""no" 1>&6
7514 if test $have_thr = yes ; then
7515 cat >> confdefs.h <<\EOF
7519 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
7522 if test $ol_with_yielding_select = auto ; then
7523 ol_with_yielding_select=yes
7527 thr_setconcurrency \
7528 thr_getconcurrency \
7531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7532 echo "configure:7533: checking for $ac_func" >&5
7533 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7534 echo $ac_n "(cached) $ac_c" 1>&6
7536 cat > conftest.$ac_ext <<EOF
7537 #line 7538 "configure"
7538 #include "confdefs.h"
7539 /* System header to define __stub macros and hopefully few prototypes,
7540 which can conflict with char $ac_func(); below. */
7542 /* Override any gcc2 internal prototype to avoid an error. */
7543 /* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7550 /* The GNU C library defines this for functions which it implements
7551 to always fail with ENOSYS. Some functions are actually named
7552 something starting with __ and the normal name is an alias. */
7553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7561 if { (eval echo configure:7562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7563 eval "ac_cv_func_$ac_func=yes"
7565 echo "configure: failed program was:" >&5
7566 cat conftest.$ac_ext >&5
7568 eval "ac_cv_func_$ac_func=no"
7573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7574 echo "$ac_t""yes" 1>&6
7575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7576 cat >> confdefs.h <<EOF
7577 #define $ac_tr_func 1
7581 echo "$ac_t""no" 1>&6
7588 for ac_hdr in lwp/lwp.h
7590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7592 echo "configure:7593: checking for $ac_hdr" >&5
7593 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7594 echo $ac_n "(cached) $ac_c" 1>&6
7596 cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7602 { (eval echo configure:7603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7604 if test -z "$ac_err"; then
7606 eval "ac_cv_header_$ac_safe=yes"
7609 echo "configure: failed program was:" >&5
7610 cat conftest.$ac_ext >&5
7612 eval "ac_cv_header_$ac_safe=no"
7616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7617 echo "$ac_t""yes" 1>&6
7618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7619 cat >> confdefs.h <<EOF
7620 #define $ac_tr_hdr 1
7624 echo "$ac_t""no" 1>&6
7628 if test $ac_cv_header_lwp_lwp_h = yes ; then
7629 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
7630 echo "configure:7631: checking for lwp_create in -llwp" >&5
7631 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
7632 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7635 ac_save_LIBS="$LIBS"
7637 cat > conftest.$ac_ext <<EOF
7638 #line 7639 "configure"
7639 #include "confdefs.h"
7640 /* Override any gcc2 internal prototype to avoid an error. */
7641 /* We use char because int might match the return type of a gcc2
7642 builtin and then its argument prototype would still apply. */
7649 if { (eval echo configure:7650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7651 eval "ac_cv_lib_$ac_lib_var=yes"
7653 echo "configure: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7656 eval "ac_cv_lib_$ac_lib_var=no"
7659 LIBS="$ac_save_LIBS"
7662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7663 echo "$ac_t""yes" 1>&6
7666 echo "$ac_t""no" 1>&6
7671 if test $have_lwp = yes ; then
7672 cat >> confdefs.h <<\EOF
7676 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
7679 if test $ol_with_yielding_select = auto ; then
7680 ol_with_yielding_select=no
7686 if test $ol_with_yielding_select = yes ; then
7687 cat >> confdefs.h <<\EOF
7688 #define HAVE_YIELDING_SELECT 1
7693 if test $ol_with_threads = manual ; then
7696 echo "configure: warning: thread defines and link options must be set manually" 1>&2
7698 for ac_hdr in pthread.h sched.h
7700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7702 echo "configure:7703: checking for $ac_hdr" >&5
7703 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7706 cat > conftest.$ac_ext <<EOF
7707 #line 7708 "configure"
7708 #include "confdefs.h"
7711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7712 { (eval echo configure:7713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7714 if test -z "$ac_err"; then
7716 eval "ac_cv_header_$ac_safe=yes"
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7722 eval "ac_cv_header_$ac_safe=no"
7726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7729 cat >> confdefs.h <<EOF
7730 #define $ac_tr_hdr 1
7734 echo "$ac_t""no" 1>&6
7738 for ac_func in sched_yield pthread_yield
7740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7741 echo "configure:7742: checking for $ac_func" >&5
7742 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7743 echo $ac_n "(cached) $ac_c" 1>&6
7745 cat > conftest.$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 /* System header to define __stub macros and hopefully few prototypes,
7749 which can conflict with char $ac_func(); below. */
7751 /* Override any gcc2 internal prototype to avoid an error. */
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7759 /* The GNU C library defines this for functions which it implements
7760 to always fail with ENOSYS. Some functions are actually named
7761 something starting with __ and the normal name is an alias. */
7762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7770 if { (eval echo configure:7771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7772 eval "ac_cv_func_$ac_func=yes"
7774 echo "configure: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7777 eval "ac_cv_func_$ac_func=no"
7782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7783 echo "$ac_t""yes" 1>&6
7784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7785 cat >> confdefs.h <<EOF
7786 #define $ac_tr_func 1
7790 echo "$ac_t""no" 1>&6
7795 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7796 echo "configure:7797: checking for LinuxThreads pthread.h" >&5
7797 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7798 echo $ac_n "(cached) $ac_c" 1>&6
7800 cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7803 #include <pthread.h>
7805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7806 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7808 ol_cv_header_linux_threads=yes
7811 ol_cv_header_linux_threads=no
7818 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7819 if test $ol_cv_header_linux_threads = yes; then
7820 cat >> confdefs.h <<\EOF
7821 #define HAVE_LINUX_THREADS 1
7827 for ac_hdr in mach/cthreads.h
7829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7831 echo "configure:7832: checking for $ac_hdr" >&5
7832 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7833 echo $ac_n "(cached) $ac_c" 1>&6
7835 cat > conftest.$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7841 { (eval echo configure:7842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7843 if test -z "$ac_err"; then
7845 eval "ac_cv_header_$ac_safe=yes"
7848 echo "configure: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7851 eval "ac_cv_header_$ac_safe=no"
7855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7856 echo "$ac_t""yes" 1>&6
7857 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7858 cat >> confdefs.h <<EOF
7859 #define $ac_tr_hdr 1
7863 echo "$ac_t""no" 1>&6
7867 for ac_hdr in lwp/lwp.h
7869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7871 echo "configure:7872: checking for $ac_hdr" >&5
7872 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7873 echo $ac_n "(cached) $ac_c" 1>&6
7875 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7881 { (eval echo configure:7882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7883 if test -z "$ac_err"; then
7885 eval "ac_cv_header_$ac_safe=yes"
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7891 eval "ac_cv_header_$ac_safe=no"
7895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7896 echo "$ac_t""yes" 1>&6
7897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7898 cat >> confdefs.h <<EOF
7899 #define $ac_tr_hdr 1
7903 echo "$ac_t""no" 1>&6
7907 for ac_hdr in thread.h synch.h
7909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7911 echo "configure:7912: checking for $ac_hdr" >&5
7912 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7913 echo $ac_n "(cached) $ac_c" 1>&6
7915 cat > conftest.$ac_ext <<EOF
7916 #line 7917 "configure"
7917 #include "confdefs.h"
7920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7921 { (eval echo configure:7922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7923 if test -z "$ac_err"; then
7925 eval "ac_cv_header_$ac_safe=yes"
7928 echo "configure: failed program was:" >&5
7929 cat conftest.$ac_ext >&5
7931 eval "ac_cv_header_$ac_safe=no"
7935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7936 echo "$ac_t""yes" 1>&6
7937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7938 cat >> confdefs.h <<EOF
7939 #define $ac_tr_hdr 1
7943 echo "$ac_t""no" 1>&6
7949 if test $ol_link_threads != no ; then
7950 cat >> confdefs.h <<\EOF
7954 cat >> confdefs.h <<\EOF
7955 #define _REENTRANT 1
7958 cat >> confdefs.h <<\EOF
7959 #define THREAD_SAFE 1
7962 cat >> confdefs.h <<\EOF
7963 #define _THREAD_SAFE 1
7966 cat >> confdefs.h <<\EOF
7967 #define THREADSAFE 1
7970 cat >> confdefs.h <<\EOF
7971 #define _THREADSAFE 1
7974 cat >> confdefs.h <<\EOF
7975 #define _SGI_MP_SOURCE 1
7979 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7980 echo "configure:7981: checking for thread specific errno" >&5
7981 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7993 if { (eval echo configure:7994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7995 ol_cv_errno_thread_specific=yes
7997 echo "configure: failed program was:" >&5
7998 cat conftest.$ac_ext >&5
8000 ol_cv_errno_thread_specific=no
8006 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
8008 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
8009 echo "configure:8010: checking for thread specific h_errno" >&5
8010 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8022 if { (eval echo configure:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8024 ol_cv_h_errno_thread_specific=yes
8026 echo "configure: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8029 ol_cv_h_errno_thread_specific=no
8035 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
8037 if test $ol_cv_errno_thread_specific != yes \
8038 -o $ol_cv_h_errno_thread_specific != yes ; then
8039 LIBS="$LTHREAD_LIBS $LIBS"
8045 if test $ol_link_threads = no ; then
8046 if test $ol_with_threads = yes ; then
8047 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
8050 if test $ol_with_threads = auto ; then
8051 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
8055 cat >> confdefs.h <<\EOF
8056 #define NO_THREADS 1
8062 if test $ol_link_threads != no ; then
8063 cat >> confdefs.h <<\EOF
8064 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
8071 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
8072 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
8073 echo "configure:8074: checking for DB2 library" >&5
8074 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
8075 echo $ac_n "(cached) $ac_c" 1>&6
8078 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
8079 echo "configure:8080: checking for db_open in -ldb" >&5
8080 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
8081 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
8084 ac_save_LIBS="$LIBS"
8086 cat > conftest.$ac_ext <<EOF
8087 #line 8088 "configure"
8088 #include "confdefs.h"
8089 /* Override any gcc2 internal prototype to avoid an error. */
8090 /* We use char because int might match the return type of a gcc2
8091 builtin and then its argument prototype would still apply. */
8098 if { (eval echo configure:8099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8100 eval "ac_cv_lib_$ac_lib_var=yes"
8102 echo "configure: failed program was:" >&5
8103 cat conftest.$ac_ext >&5
8105 eval "ac_cv_lib_$ac_lib_var=no"
8108 LIBS="$ac_save_LIBS"
8111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8112 echo "$ac_t""yes" 1>&6
8115 echo "$ac_t""no" 1>&6
8123 echo "$ac_t""$ol_cv_lib_db2" 1>&6
8127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8129 echo "configure:8130: checking for $ac_hdr" >&5
8130 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8131 echo $ac_n "(cached) $ac_c" 1>&6
8133 cat > conftest.$ac_ext <<EOF
8134 #line 8135 "configure"
8135 #include "confdefs.h"
8138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8139 { (eval echo configure:8140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8141 if test -z "$ac_err"; then
8143 eval "ac_cv_header_$ac_safe=yes"
8146 echo "configure: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8149 eval "ac_cv_header_$ac_safe=no"
8153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8154 echo "$ac_t""yes" 1>&6
8155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8156 cat >> confdefs.h <<EOF
8157 #define $ac_tr_hdr 1
8161 echo "$ac_t""no" 1>&6
8165 if test $ac_cv_header_db_h = yes ; then
8166 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
8167 echo "configure:8168: checking if db.h is DB2" >&5
8168 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8172 cat > conftest.$ac_ext <<EOF
8173 #line 8174 "configure"
8174 #include "confdefs.h"
8177 /* this check could be improved */
8178 # ifdef DB_VERSION_MAJOR
8179 # if DB_VERSION_MAJOR == 2
8185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8186 egrep "__db_version_2" >/dev/null 2>&1; then
8188 ol_cv_header_db2=yes
8197 echo "$ac_t""$ol_cv_header_db2" 1>&6
8204 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
8205 echo "configure:8206: checking for Berkeley DB2" >&5
8206 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
8207 echo $ac_n "(cached) $ac_c" 1>&6
8210 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
8211 ol_cv_berkeley_db2=no
8213 ol_cv_berkeley_db2=yes
8218 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
8219 if test $ol_cv_berkeley_db2 = yes ; then
8220 cat >> confdefs.h <<\EOF
8221 #define HAVE_BERKELEY_DB2 1
8227 if test $ol_cv_berkeley_db2 = yes ; then
8229 ol_with_ldbm_api=db2
8231 if test $ol_with_ldbm_type = hash ; then
8232 cat >> confdefs.h <<\EOF
8233 #define LDBM_USE_DBHASH 1
8237 cat >> confdefs.h <<\EOF
8238 #define LDBM_USE_DBBTREE 1
8243 if test $ol_cv_lib_db2 != yes ; then
8244 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
8250 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
8254 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
8255 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
8256 echo "configure:8257: checking for Berkeley DB library" >&5
8257 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
8258 echo $ac_n "(cached) $ac_c" 1>&6
8261 for ac_hdr in db1/db.h
8263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8265 echo "configure:8266: checking for $ac_hdr" >&5
8266 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8267 echo $ac_n "(cached) $ac_c" 1>&6
8269 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8275 { (eval echo configure:8276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8277 if test -z "$ac_err"; then
8279 eval "ac_cv_header_$ac_safe=yes"
8282 echo "configure: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8285 eval "ac_cv_header_$ac_safe=no"
8289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8290 echo "$ac_t""yes" 1>&6
8291 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8292 cat >> confdefs.h <<EOF
8293 #define $ac_tr_hdr 1
8297 echo "$ac_t""no" 1>&6
8302 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
8303 echo "configure:8304: checking for dbopen" >&5
8304 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
8305 echo $ac_n "(cached) $ac_c" 1>&6
8307 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8310 /* System header to define __stub macros and hopefully few prototypes,
8311 which can conflict with char dbopen(); below. */
8313 /* Override any gcc2 internal prototype to avoid an error. */
8314 /* We use char because int might match the return type of a gcc2
8315 builtin and then its argument prototype would still apply. */
8321 /* The GNU C library defines this for functions which it implements
8322 to always fail with ENOSYS. Some functions are actually named
8323 something starting with __ and the normal name is an alias. */
8324 #if defined (__stub_dbopen) || defined (__stub___dbopen)
8332 if { (eval echo configure:8333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8334 eval "ac_cv_func_dbopen=yes"
8336 echo "configure: failed program was:" >&5
8337 cat conftest.$ac_ext >&5
8339 eval "ac_cv_func_dbopen=no"
8344 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
8345 echo "$ac_t""yes" 1>&6
8348 echo "$ac_t""no" 1>&6
8350 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
8351 echo "configure:8352: checking for dbopen in -ldb1" >&5
8352 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
8353 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8354 echo $ac_n "(cached) $ac_c" 1>&6
8356 ac_save_LIBS="$LIBS"
8358 cat > conftest.$ac_ext <<EOF
8359 #line 8360 "configure"
8360 #include "confdefs.h"
8361 /* Override any gcc2 internal prototype to avoid an error. */
8362 /* We use char because int might match the return type of a gcc2
8363 builtin and then its argument prototype would still apply. */
8370 if { (eval echo configure:8371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8372 eval "ac_cv_lib_$ac_lib_var=yes"
8374 echo "configure: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8377 eval "ac_cv_lib_$ac_lib_var=no"
8380 LIBS="$ac_save_LIBS"
8383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8384 echo "$ac_t""yes" 1>&6
8387 echo "$ac_t""no" 1>&6
8389 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
8390 echo "configure:8391: checking for dbopen in -ldb" >&5
8391 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
8392 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8395 ac_save_LIBS="$LIBS"
8397 cat > conftest.$ac_ext <<EOF
8398 #line 8399 "configure"
8399 #include "confdefs.h"
8400 /* Override any gcc2 internal prototype to avoid an error. */
8401 /* We use char because int might match the return type of a gcc2
8402 builtin and then its argument prototype would still apply. */
8409 if { (eval echo configure:8410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8411 eval "ac_cv_lib_$ac_lib_var=yes"
8413 echo "configure: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8416 eval "ac_cv_lib_$ac_lib_var=no"
8419 LIBS="$ac_save_LIBS"
8422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8423 echo "$ac_t""yes" 1>&6
8426 echo "$ac_t""no" 1>&6
8440 echo "$ac_t""$ol_cv_lib_db" 1>&6
8443 for ac_hdr in db_185.h
8445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8447 echo "configure:8448: checking for $ac_hdr" >&5
8448 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8449 echo $ac_n "(cached) $ac_c" 1>&6
8451 cat > conftest.$ac_ext <<EOF
8452 #line 8453 "configure"
8453 #include "confdefs.h"
8456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8457 { (eval echo configure:8458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8459 if test -z "$ac_err"; then
8461 eval "ac_cv_header_$ac_safe=yes"
8464 echo "configure: failed program was:" >&5
8465 cat conftest.$ac_ext >&5
8467 eval "ac_cv_header_$ac_safe=no"
8471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8472 echo "$ac_t""yes" 1>&6
8473 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8474 cat >> confdefs.h <<EOF
8475 #define $ac_tr_hdr 1
8479 echo "$ac_t""no" 1>&6
8483 if test "$ol_cv_header_db2" = yes ; then
8485 ol_cv_header_db=$ac_cv_header_db_185_h
8487 ol_cv_header_db=$ac_cv_header_db_h
8492 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
8493 echo "configure:8494: checking for Berkeley DB" >&5
8494 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
8495 echo $ac_n "(cached) $ac_c" 1>&6
8498 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
8499 ol_cv_berkeley_db=no
8501 ol_cv_berkeley_db=yes
8506 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
8507 if test $ol_cv_berkeley_db = yes ; then
8508 cat >> confdefs.h <<\EOF
8509 #define HAVE_BERKELEY_DB 1
8515 if test $ol_cv_berkeley_db = yes ; then
8519 if test $ol_with_ldbm_type = hash ; then
8520 cat >> confdefs.h <<\EOF
8521 #define LDBM_USE_DBHASH 1
8525 cat >> confdefs.h <<\EOF
8526 #define LDBM_USE_DBBTREE 1
8531 if test $ol_cv_lib_db != yes ; then
8532 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
8537 if test $ol_with_ldbm_api = manual ; then
8540 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
8542 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
8544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8546 echo "configure:8547: checking for $ac_hdr" >&5
8547 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8548 echo $ac_n "(cached) $ac_c" 1>&6
8550 cat > conftest.$ac_ext <<EOF
8551 #line 8552 "configure"
8552 #include "confdefs.h"
8555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8556 { (eval echo configure:8557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8558 if test -z "$ac_err"; then
8560 eval "ac_cv_header_$ac_safe=yes"
8563 echo "configure: failed program was:" >&5
8564 cat conftest.$ac_ext >&5
8566 eval "ac_cv_header_$ac_safe=no"
8570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8571 echo "$ac_t""yes" 1>&6
8572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8573 cat >> confdefs.h <<EOF
8574 #define $ac_tr_hdr 1
8578 echo "$ac_t""no" 1>&6
8584 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
8585 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
8586 ol_with_ldbm_api=none
8589 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
8590 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
8591 echo "configure:8592: checking for MDBM library" >&5
8592 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
8593 echo $ac_n "(cached) $ac_c" 1>&6
8596 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
8597 echo "configure:8598: checking for mdbm_set_chain" >&5
8598 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
8599 echo $ac_n "(cached) $ac_c" 1>&6
8601 cat > conftest.$ac_ext <<EOF
8602 #line 8603 "configure"
8603 #include "confdefs.h"
8604 /* System header to define __stub macros and hopefully few prototypes,
8605 which can conflict with char mdbm_set_chain(); below. */
8607 /* Override any gcc2 internal prototype to avoid an error. */
8608 /* We use char because int might match the return type of a gcc2
8609 builtin and then its argument prototype would still apply. */
8610 char mdbm_set_chain();
8615 /* The GNU C library defines this for functions which it implements
8616 to always fail with ENOSYS. Some functions are actually named
8617 something starting with __ and the normal name is an alias. */
8618 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
8626 if { (eval echo configure:8627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8628 eval "ac_cv_func_mdbm_set_chain=yes"
8630 echo "configure: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8633 eval "ac_cv_func_mdbm_set_chain=no"
8638 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
8639 echo "$ac_t""yes" 1>&6
8642 echo "$ac_t""no" 1>&6
8644 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
8645 echo "configure:8646: checking for mdbm_set_chain in -lmdbm" >&5
8646 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
8647 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8648 echo $ac_n "(cached) $ac_c" 1>&6
8650 ac_save_LIBS="$LIBS"
8652 cat > conftest.$ac_ext <<EOF
8653 #line 8654 "configure"
8654 #include "confdefs.h"
8655 /* Override any gcc2 internal prototype to avoid an error. */
8656 /* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8658 char mdbm_set_chain();
8664 if { (eval echo configure:8665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8666 eval "ac_cv_lib_$ac_lib_var=yes"
8668 echo "configure: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8671 eval "ac_cv_lib_$ac_lib_var=no"
8674 LIBS="$ac_save_LIBS"
8677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8678 echo "$ac_t""yes" 1>&6
8679 ol_cv_lib_mdbm=-lmdbm
8681 echo "$ac_t""no" 1>&6
8692 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
8695 for ac_hdr in mdbm.h
8697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8699 echo "configure:8700: checking for $ac_hdr" >&5
8700 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8701 echo $ac_n "(cached) $ac_c" 1>&6
8703 cat > conftest.$ac_ext <<EOF
8704 #line 8705 "configure"
8705 #include "confdefs.h"
8708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8709 { (eval echo configure:8710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8711 if test -z "$ac_err"; then
8713 eval "ac_cv_header_$ac_safe=yes"
8716 echo "configure: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8719 eval "ac_cv_header_$ac_safe=no"
8723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8724 echo "$ac_t""yes" 1>&6
8725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8726 cat >> confdefs.h <<EOF
8727 #define $ac_tr_hdr 1
8731 echo "$ac_t""no" 1>&6
8735 echo $ac_n "checking for db""... $ac_c" 1>&6
8736 echo "configure:8737: checking for db" >&5
8737 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8741 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
8749 echo "$ac_t""$ol_cv_mdbm" 1>&6
8750 if test $ol_cv_mdbm = yes ; then
8751 cat >> confdefs.h <<\EOF
8758 if test $ol_cv_mdbm = yes ; then
8760 ol_with_ldbm_api=mdbm
8761 if test $ol_cv_lib_mdbm != yes ; then
8762 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
8767 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
8768 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
8769 echo "configure:8770: checking for GDBM library" >&5
8770 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
8771 echo $ac_n "(cached) $ac_c" 1>&6
8774 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
8775 echo "configure:8776: checking for gdbm_open" >&5
8776 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8779 cat > conftest.$ac_ext <<EOF
8780 #line 8781 "configure"
8781 #include "confdefs.h"
8782 /* System header to define __stub macros and hopefully few prototypes,
8783 which can conflict with char gdbm_open(); below. */
8785 /* Override any gcc2 internal prototype to avoid an error. */
8786 /* We use char because int might match the return type of a gcc2
8787 builtin and then its argument prototype would still apply. */
8793 /* The GNU C library defines this for functions which it implements
8794 to always fail with ENOSYS. Some functions are actually named
8795 something starting with __ and the normal name is an alias. */
8796 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
8804 if { (eval echo configure:8805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8806 eval "ac_cv_func_gdbm_open=yes"
8808 echo "configure: failed program was:" >&5
8809 cat conftest.$ac_ext >&5
8811 eval "ac_cv_func_gdbm_open=no"
8816 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
8817 echo "$ac_t""yes" 1>&6
8820 echo "$ac_t""no" 1>&6
8822 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
8823 echo "configure:8824: checking for gdbm_open in -lgdbm" >&5
8824 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
8825 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8826 echo $ac_n "(cached) $ac_c" 1>&6
8828 ac_save_LIBS="$LIBS"
8830 cat > conftest.$ac_ext <<EOF
8831 #line 8832 "configure"
8832 #include "confdefs.h"
8833 /* Override any gcc2 internal prototype to avoid an error. */
8834 /* We use char because int might match the return type of a gcc2
8835 builtin and then its argument prototype would still apply. */
8842 if { (eval echo configure:8843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8844 eval "ac_cv_lib_$ac_lib_var=yes"
8846 echo "configure: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8849 eval "ac_cv_lib_$ac_lib_var=no"
8852 LIBS="$ac_save_LIBS"
8855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8856 echo "$ac_t""yes" 1>&6
8857 ol_cv_lib_gdbm=-lgdbm
8859 echo "$ac_t""no" 1>&6
8870 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8873 for ac_hdr in gdbm.h
8875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8877 echo "configure:8878: checking for $ac_hdr" >&5
8878 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8879 echo $ac_n "(cached) $ac_c" 1>&6
8881 cat > conftest.$ac_ext <<EOF
8882 #line 8883 "configure"
8883 #include "confdefs.h"
8886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8887 { (eval echo configure:8888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8889 if test -z "$ac_err"; then
8891 eval "ac_cv_header_$ac_safe=yes"
8894 echo "configure: failed program was:" >&5
8895 cat conftest.$ac_ext >&5
8897 eval "ac_cv_header_$ac_safe=no"
8901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8902 echo "$ac_t""yes" 1>&6
8903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8904 cat >> confdefs.h <<EOF
8905 #define $ac_tr_hdr 1
8909 echo "$ac_t""no" 1>&6
8913 echo $ac_n "checking for db""... $ac_c" 1>&6
8914 echo "configure:8915: checking for db" >&5
8915 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
8916 echo $ac_n "(cached) $ac_c" 1>&6
8919 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8927 echo "$ac_t""$ol_cv_gdbm" 1>&6
8928 if test $ol_cv_gdbm = yes ; then
8929 cat >> confdefs.h <<\EOF
8936 if test $ol_cv_gdbm = yes ; then
8938 ol_with_ldbm_api=gdbm
8940 if test $ol_cv_lib_gdbm != yes ; then
8941 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8946 if test $ol_with_ldbm_api = auto ; then
8947 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8948 elif test $ol_with_ldbm_api = ndbm ; then
8949 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8950 echo "configure:8951: checking for NDBM library" >&5
8951 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8955 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8956 echo "configure:8957: checking for dbm_open" >&5
8957 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
8960 cat > conftest.$ac_ext <<EOF
8961 #line 8962 "configure"
8962 #include "confdefs.h"
8963 /* System header to define __stub macros and hopefully few prototypes,
8964 which can conflict with char dbm_open(); below. */
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */
8974 /* The GNU C library defines this for functions which it implements
8975 to always fail with ENOSYS. Some functions are actually named
8976 something starting with __ and the normal name is an alias. */
8977 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8985 if { (eval echo configure:8986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8987 eval "ac_cv_func_dbm_open=yes"
8989 echo "configure: failed program was:" >&5
8990 cat conftest.$ac_ext >&5
8992 eval "ac_cv_func_dbm_open=no"
8997 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8998 echo "$ac_t""yes" 1>&6
9001 echo "$ac_t""no" 1>&6
9003 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
9004 echo "configure:9005: checking for dbm_open in -lndbm" >&5
9005 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
9006 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9007 echo $ac_n "(cached) $ac_c" 1>&6
9009 ac_save_LIBS="$LIBS"
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 /* Override any gcc2 internal prototype to avoid an error. */
9015 /* We use char because int might match the return type of a gcc2
9016 builtin and then its argument prototype would still apply. */
9023 if { (eval echo configure:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9025 eval "ac_cv_lib_$ac_lib_var=yes"
9027 echo "configure: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9030 eval "ac_cv_lib_$ac_lib_var=no"
9033 LIBS="$ac_save_LIBS"
9036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9037 echo "$ac_t""yes" 1>&6
9038 ol_cv_lib_ndbm=-lndbm
9040 echo "$ac_t""no" 1>&6
9042 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9043 echo "configure:9044: checking for dbm_open in -ldbm" >&5
9044 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
9045 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9046 echo $ac_n "(cached) $ac_c" 1>&6
9048 ac_save_LIBS="$LIBS"
9050 cat > conftest.$ac_ext <<EOF
9051 #line 9052 "configure"
9052 #include "confdefs.h"
9053 /* Override any gcc2 internal prototype to avoid an error. */
9054 /* We use char because int might match the return type of a gcc2
9055 builtin and then its argument prototype would still apply. */
9062 if { (eval echo configure:9063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9064 eval "ac_cv_lib_$ac_lib_var=yes"
9066 echo "configure: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9069 eval "ac_cv_lib_$ac_lib_var=no"
9072 LIBS="$ac_save_LIBS"
9075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9076 echo "$ac_t""yes" 1>&6
9077 ol_cv_lib_ndbm=-ldbm
9079 echo "$ac_t""no" 1>&6
9092 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
9095 for ac_hdr in ndbm.h
9097 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9099 echo "configure:9100: checking for $ac_hdr" >&5
9100 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9101 echo $ac_n "(cached) $ac_c" 1>&6
9103 cat > conftest.$ac_ext <<EOF
9104 #line 9105 "configure"
9105 #include "confdefs.h"
9108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9109 { (eval echo configure:9110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9111 if test -z "$ac_err"; then
9113 eval "ac_cv_header_$ac_safe=yes"
9116 echo "configure: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9119 eval "ac_cv_header_$ac_safe=no"
9123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9124 echo "$ac_t""yes" 1>&6
9125 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9126 cat >> confdefs.h <<EOF
9127 #define $ac_tr_hdr 1
9131 echo "$ac_t""no" 1>&6
9135 echo $ac_n "checking for db""... $ac_c" 1>&6
9136 echo "configure:9137: checking for db" >&5
9137 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
9141 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
9149 echo "$ac_t""$ol_cv_ndbm" 1>&6
9150 if test $ol_cv_ndbm = yes ; then
9151 cat >> confdefs.h <<\EOF
9158 if test $ol_cv_ndbm = yes ; then
9160 ol_with_ldbm_api=ndbm
9162 if test $ol_cv_lib_ndbm != yes ; then
9163 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
9168 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
9169 echo "configure: warning: could not find suitable LDBM backend" 1>&2
9170 if test $ol_enable_ldbm = yes ; then
9171 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
9174 echo "configure: warning: disabling LDBM" 1>&2
9178 if test $ol_enable_wrappers != no ; then
9179 for ac_hdr in tcpd.h
9181 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9182 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9183 echo "configure:9184: checking for $ac_hdr" >&5
9184 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9185 echo $ac_n "(cached) $ac_c" 1>&6
9187 cat > conftest.$ac_ext <<EOF
9188 #line 9189 "configure"
9189 #include "confdefs.h"
9192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9193 { (eval echo configure:9194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9195 if test -z "$ac_err"; then
9197 eval "ac_cv_header_$ac_safe=yes"
9200 echo "configure: failed program was:" >&5
9201 cat conftest.$ac_ext >&5
9203 eval "ac_cv_header_$ac_safe=no"
9207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9208 echo "$ac_t""yes" 1>&6
9209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9210 cat >> confdefs.h <<EOF
9211 #define $ac_tr_hdr 1
9215 echo "$ac_t""no" 1>&6
9220 if test $ac_cv_header_tcpd_h != yes ; then
9223 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
9224 echo "configure:9225: checking for main in -lwrap" >&5
9225 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
9226 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9227 echo $ac_n "(cached) $ac_c" 1>&6
9229 ac_save_LIBS="$LIBS"
9231 cat > conftest.$ac_ext <<EOF
9232 #line 9233 "configure"
9233 #include "confdefs.h"
9239 if { (eval echo configure:9240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9241 eval "ac_cv_lib_$ac_lib_var=yes"
9243 echo "configure: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9246 eval "ac_cv_lib_$ac_lib_var=no"
9249 LIBS="$ac_save_LIBS"
9252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9253 echo "$ac_t""yes" 1>&6
9256 echo "$ac_t""no" 1>&6
9262 if test $have_wrappers = yes ; then
9263 cat >> confdefs.h <<\EOF
9267 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
9269 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9270 echo "configure:9271: checking for main in -lnsl" >&5
9271 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9272 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9275 ac_save_LIBS="$LIBS"
9277 cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9285 if { (eval echo configure:9286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9287 eval "ac_cv_lib_$ac_lib_var=yes"
9289 echo "configure: failed program was:" >&5
9290 cat conftest.$ac_ext >&5
9292 eval "ac_cv_lib_$ac_lib_var=no"
9295 LIBS="$ac_save_LIBS"
9298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9299 echo "$ac_t""yes" 1>&6
9300 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9302 cat >> confdefs.h <<EOF
9303 #define $ac_tr_lib 1
9309 echo "$ac_t""no" 1>&6
9313 echo "configure: warning: could not find -lwrap" 1>&2
9314 if test $ol_enable_wrappers = yes ; then
9315 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
9318 echo "configure: warning: disabling wrappers support" 1>&2
9319 ol_enable_wrappers=no
9323 if test $ol_enable_syslog != no ; then
9324 echo $ac_n "checking for openlog""... $ac_c" 1>&6
9325 echo "configure:9326: checking for openlog" >&5
9326 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9329 cat > conftest.$ac_ext <<EOF
9330 #line 9331 "configure"
9331 #include "confdefs.h"
9332 /* System header to define __stub macros and hopefully few prototypes,
9333 which can conflict with char openlog(); below. */
9335 /* Override any gcc2 internal prototype to avoid an error. */
9336 /* We use char because int might match the return type of a gcc2
9337 builtin and then its argument prototype would still apply. */
9343 /* The GNU C library defines this for functions which it implements
9344 to always fail with ENOSYS. Some functions are actually named
9345 something starting with __ and the normal name is an alias. */
9346 #if defined (__stub_openlog) || defined (__stub___openlog)
9354 if { (eval echo configure:9355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9356 eval "ac_cv_func_openlog=yes"
9358 echo "configure: failed program was:" >&5
9359 cat conftest.$ac_ext >&5
9361 eval "ac_cv_func_openlog=no"
9366 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
9367 echo "$ac_t""yes" 1>&6
9370 echo "$ac_t""no" 1>&6
9373 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
9374 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
9376 ol_enable_syslog=$ac_cv_func_openlog
9379 if test $ol_enable_dmalloc != no ; then
9380 for ac_hdr in dmalloc.h
9382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9384 echo "configure:9385: checking for $ac_hdr" >&5
9385 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
9388 cat > conftest.$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9394 { (eval echo configure:9395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9396 if test -z "$ac_err"; then
9398 eval "ac_cv_header_$ac_safe=yes"
9401 echo "configure: failed program was:" >&5
9402 cat conftest.$ac_ext >&5
9404 eval "ac_cv_header_$ac_safe=no"
9408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9409 echo "$ac_t""yes" 1>&6
9410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9411 cat >> confdefs.h <<EOF
9412 #define $ac_tr_hdr 1
9416 echo "$ac_t""no" 1>&6
9420 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
9421 echo "configure:9422: checking for dmalloc_shutdown in -ldmalloc" >&5
9422 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
9423 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9424 echo $ac_n "(cached) $ac_c" 1>&6
9426 ac_save_LIBS="$LIBS"
9427 LIBS="-ldmalloc $LIBS"
9428 cat > conftest.$ac_ext <<EOF
9429 #line 9430 "configure"
9430 #include "confdefs.h"
9431 /* Override any gcc2 internal prototype to avoid an error. */
9432 /* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
9434 char dmalloc_shutdown();
9440 if { (eval echo configure:9441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9442 eval "ac_cv_lib_$ac_lib_var=yes"
9444 echo "configure: failed program was:" >&5
9445 cat conftest.$ac_ext >&5
9447 eval "ac_cv_lib_$ac_lib_var=no"
9450 LIBS="$ac_save_LIBS"
9453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9454 echo "$ac_t""yes" 1>&6
9455 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9457 cat >> confdefs.h <<EOF
9458 #define $ac_tr_lib 1
9461 LIBS="-ldmalloc $LIBS"
9464 echo "$ac_t""no" 1>&6
9469 if test $ol_enable_tcl != no ; then
9472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9474 echo "configure:9475: checking for $ac_hdr" >&5
9475 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9476 echo $ac_n "(cached) $ac_c" 1>&6
9478 cat > conftest.$ac_ext <<EOF
9479 #line 9480 "configure"
9480 #include "confdefs.h"
9483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9484 { (eval echo configure:9485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9486 if test -z "$ac_err"; then
9488 eval "ac_cv_header_$ac_safe=yes"
9491 echo "configure: failed program was:" >&5
9492 cat conftest.$ac_ext >&5
9494 eval "ac_cv_header_$ac_safe=no"
9498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9499 echo "$ac_t""yes" 1>&6
9500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9501 cat >> confdefs.h <<EOF
9502 #define $ac_tr_hdr 1
9506 echo "$ac_t""no" 1>&6
9511 if test $ac_cv_header_tcl_h != yes ; then
9514 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
9515 echo "configure:9516: checking for main in -ltcl" >&5
9516 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
9517 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9518 echo $ac_n "(cached) $ac_c" 1>&6
9520 ac_save_LIBS="$LIBS"
9522 cat > conftest.$ac_ext <<EOF
9523 #line 9524 "configure"
9524 #include "confdefs.h"
9530 if { (eval echo configure:9531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9532 eval "ac_cv_lib_$ac_lib_var=yes"
9534 echo "configure: failed program was:" >&5
9535 cat conftest.$ac_ext >&5
9537 eval "ac_cv_lib_$ac_lib_var=no"
9540 LIBS="$ac_save_LIBS"
9543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9544 echo "$ac_t""yes" 1>&6
9545 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
9547 echo "$ac_t""no" 1>&6
9552 if test $have_tcl != yes; then
9553 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
9554 echo "configure:9555: checking for main in -ltcl7.6" >&5
9555 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
9556 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9557 echo $ac_n "(cached) $ac_c" 1>&6
9559 ac_save_LIBS="$LIBS"
9560 LIBS="-ltcl7.6 $LIBS"
9561 cat > conftest.$ac_ext <<EOF
9562 #line 9563 "configure"
9563 #include "confdefs.h"
9569 if { (eval echo configure:9570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9571 eval "ac_cv_lib_$ac_lib_var=yes"
9573 echo "configure: failed program was:" >&5
9574 cat conftest.$ac_ext >&5
9576 eval "ac_cv_lib_$ac_lib_var=no"
9579 LIBS="$ac_save_LIBS"
9582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9583 echo "$ac_t""yes" 1>&6
9584 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
9586 echo "$ac_t""no" 1>&6
9592 if test $have_tcl != yes; then
9593 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
9594 echo "configure:9595: checking for main in -ltcl8.0" >&5
9595 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
9596 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9599 ac_save_LIBS="$LIBS"
9600 LIBS="-ltcl8.0 $LIBS"
9601 cat > conftest.$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9609 if { (eval echo configure:9610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9611 eval "ac_cv_lib_$ac_lib_var=yes"
9613 echo "configure: failed program was:" >&5
9614 cat conftest.$ac_ext >&5
9616 eval "ac_cv_lib_$ac_lib_var=no"
9619 LIBS="$ac_save_LIBS"
9622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9623 echo "$ac_t""yes" 1>&6
9624 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
9626 echo "$ac_t""no" 1>&6
9633 if test $have_tcl != yes ; then
9634 echo "configure: warning: could not find -ltcl" 1>&2
9635 if test $ol_enable_tcl = yes ; then
9636 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
9643 # ud needs termcap (should insert check here)
9645 for ac_hdr in termcap.h ncurses.h
9647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9649 echo "configure:9650: checking for $ac_hdr" >&5
9650 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6
9653 cat > conftest.$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9659 { (eval echo configure:9660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9661 if test -z "$ac_err"; then
9663 eval "ac_cv_header_$ac_safe=yes"
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9669 eval "ac_cv_header_$ac_safe=no"
9673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9674 echo "$ac_t""yes" 1>&6
9675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9676 cat >> confdefs.h <<EOF
9677 #define $ac_tr_hdr 1
9681 echo "$ac_t""no" 1>&6
9686 if test $ol_link_termcap = no ; then
9687 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
9688 echo "configure:9689: checking for tputs in -ltermcap" >&5
9689 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
9690 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9691 echo $ac_n "(cached) $ac_c" 1>&6
9693 ac_save_LIBS="$LIBS"
9694 LIBS="-ltermcap $LIBS"
9695 cat > conftest.$ac_ext <<EOF
9696 #line 9697 "configure"
9697 #include "confdefs.h"
9698 /* Override any gcc2 internal prototype to avoid an error. */
9699 /* We use char because int might match the return type of a gcc2
9700 builtin and then its argument prototype would still apply. */
9707 if { (eval echo configure:9708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9709 eval "ac_cv_lib_$ac_lib_var=yes"
9711 echo "configure: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9714 eval "ac_cv_lib_$ac_lib_var=no"
9717 LIBS="$ac_save_LIBS"
9720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9721 echo "$ac_t""yes" 1>&6
9724 echo "$ac_t""no" 1>&6
9728 if test $have_termcap = yes ; then
9729 cat >> confdefs.h <<\EOF
9730 #define HAVE_TERMCAP 1
9734 TERMCAP_LIBS=-ltermcap
9738 if test $ol_link_termcap = no ; then
9739 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
9740 echo "configure:9741: checking for initscr in -lncurses" >&5
9741 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
9742 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9743 echo $ac_n "(cached) $ac_c" 1>&6
9745 ac_save_LIBS="$LIBS"
9746 LIBS="-lncurses $LIBS"
9747 cat > conftest.$ac_ext <<EOF
9748 #line 9749 "configure"
9749 #include "confdefs.h"
9750 /* Override any gcc2 internal prototype to avoid an error. */
9751 /* We use char because int might match the return type of a gcc2
9752 builtin and then its argument prototype would still apply. */
9759 if { (eval echo configure:9760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9761 eval "ac_cv_lib_$ac_lib_var=yes"
9763 echo "configure: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9766 eval "ac_cv_lib_$ac_lib_var=no"
9769 LIBS="$ac_save_LIBS"
9772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9773 echo "$ac_t""yes" 1>&6
9776 echo "$ac_t""no" 1>&6
9780 if test $have_ncurses = yes ; then
9781 cat >> confdefs.h <<\EOF
9782 #define HAVE_NCURSES 1
9786 TERMCAP_LIBS=-lncurses
9790 if test $ol_link_termcap = no ; then
9791 cat >> confdefs.h <<\EOF
9792 #define NO_TERMCAP 1
9799 if test $ol_with_readline != no ; then
9800 for ac_hdr in readline/readline.h readline/history.h
9802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9804 echo "configure:9805: checking for $ac_hdr" >&5
9805 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9806 echo $ac_n "(cached) $ac_c" 1>&6
9808 cat > conftest.$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9814 { (eval echo configure:9815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9816 if test -z "$ac_err"; then
9818 eval "ac_cv_header_$ac_safe=yes"
9821 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5
9824 eval "ac_cv_header_$ac_safe=no"
9828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9829 echo "$ac_t""yes" 1>&6
9830 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9831 cat >> confdefs.h <<EOF
9832 #define $ac_tr_hdr 1
9836 echo "$ac_t""no" 1>&6
9841 if test $ac_cv_header_readline_readline_h = yes ; then
9843 LIBS="$TERMCAP_LIBS $LIBS"
9844 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
9845 echo "configure:9846: checking for readline in -lreadline" >&5
9846 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
9847 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9848 echo $ac_n "(cached) $ac_c" 1>&6
9850 ac_save_LIBS="$LIBS"
9851 LIBS="-lreadline $LIBS"
9852 cat > conftest.$ac_ext <<EOF
9853 #line 9854 "configure"
9854 #include "confdefs.h"
9855 /* Override any gcc2 internal prototype to avoid an error. */
9856 /* We use char because int might match the return type of a gcc2
9857 builtin and then its argument prototype would still apply. */
9864 if { (eval echo configure:9865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9866 eval "ac_cv_lib_$ac_lib_var=yes"
9868 echo "configure: failed program was:" >&5
9869 cat conftest.$ac_ext >&5
9871 eval "ac_cv_lib_$ac_lib_var=no"
9874 LIBS="$ac_save_LIBS"
9877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9878 echo "$ac_t""yes" 1>&6
9881 echo "$ac_t""no" 1>&6
9887 if test $have_readline = yes ; then
9888 ol_with_readline=found
9889 ol_link_readline=yes
9891 READLINE_LIBS="-lreadline"
9896 if test $ol_link_readline = yes ; then
9897 cat >> confdefs.h <<\EOF
9898 #define HAVE_READLINE 1
9904 # FreeBSD (and others) have crypt(3) in -lcrypt
9905 if test $ol_enable_crypt != no ; then
9906 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9907 echo "configure:9908: checking for crypt" >&5
9908 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
9909 echo $ac_n "(cached) $ac_c" 1>&6
9911 cat > conftest.$ac_ext <<EOF
9912 #line 9913 "configure"
9913 #include "confdefs.h"
9914 /* System header to define __stub macros and hopefully few prototypes,
9915 which can conflict with char crypt(); below. */
9917 /* Override any gcc2 internal prototype to avoid an error. */
9918 /* We use char because int might match the return type of a gcc2
9919 builtin and then its argument prototype would still apply. */
9925 /* The GNU C library defines this for functions which it implements
9926 to always fail with ENOSYS. Some functions are actually named
9927 something starting with __ and the normal name is an alias. */
9928 #if defined (__stub_crypt) || defined (__stub___crypt)
9936 if { (eval echo configure:9937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9938 eval "ac_cv_func_crypt=yes"
9940 echo "configure: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9943 eval "ac_cv_func_crypt=no"
9948 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9949 echo "$ac_t""yes" 1>&6
9952 echo "$ac_t""no" 1>&6
9954 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9955 echo "configure:9956: checking for crypt in -lcrypt" >&5
9956 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
9957 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9958 echo $ac_n "(cached) $ac_c" 1>&6
9960 ac_save_LIBS="$LIBS"
9961 LIBS="-lcrypt $LIBS"
9962 cat > conftest.$ac_ext <<EOF
9963 #line 9964 "configure"
9964 #include "confdefs.h"
9965 /* Override any gcc2 internal prototype to avoid an error. */
9966 /* We use char because int might match the return type of a gcc2
9967 builtin and then its argument prototype would still apply. */
9974 if { (eval echo configure:9975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9976 eval "ac_cv_lib_$ac_lib_var=yes"
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9981 eval "ac_cv_lib_$ac_lib_var=no"
9984 LIBS="$ac_save_LIBS"
9987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9988 echo "$ac_t""yes" 1>&6
9989 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9992 echo "$ac_t""no" 1>&6
9999 if test $have_crypt = yes ; then
10000 cat >> confdefs.h <<\EOF
10001 #define HAVE_CRYPT 1
10005 echo "configure: warning: could not find crypt" 1>&2
10006 if test $ol_enable_crypt = yes ; then
10007 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
10010 echo "configure: warning: disabling crypt support" 1>&2
10015 # FreeBSD (and others) have setproctitle(3) in -lutil
10016 if test $ol_enable_proctitle != no ; then
10017 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
10018 echo "configure:10019: checking for setproctitle" >&5
10019 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10022 cat > conftest.$ac_ext <<EOF
10023 #line 10024 "configure"
10024 #include "confdefs.h"
10025 /* System header to define __stub macros and hopefully few prototypes,
10026 which can conflict with char setproctitle(); below. */
10027 #include <assert.h>
10028 /* Override any gcc2 internal prototype to avoid an error. */
10029 /* We use char because int might match the return type of a gcc2
10030 builtin and then its argument prototype would still apply. */
10031 char setproctitle();
10036 /* The GNU C library defines this for functions which it implements
10037 to always fail with ENOSYS. Some functions are actually named
10038 something starting with __ and the normal name is an alias. */
10039 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
10047 if { (eval echo configure:10048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10049 eval "ac_cv_func_setproctitle=yes"
10051 echo "configure: failed program was:" >&5
10052 cat conftest.$ac_ext >&5
10054 eval "ac_cv_func_setproctitle=no"
10059 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
10060 echo "$ac_t""yes" 1>&6
10061 have_setproctitle=yes
10063 echo "$ac_t""no" 1>&6
10065 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
10066 echo "configure:10067: checking for setproctitle in -lutil" >&5
10067 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
10068 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10071 ac_save_LIBS="$LIBS"
10072 LIBS="-lutil $LIBS"
10073 cat > conftest.$ac_ext <<EOF
10074 #line 10075 "configure"
10075 #include "confdefs.h"
10076 /* Override any gcc2 internal prototype to avoid an error. */
10077 /* We use char because int might match the return type of a gcc2
10078 builtin and then its argument prototype would still apply. */
10079 char setproctitle();
10085 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10087 eval "ac_cv_lib_$ac_lib_var=yes"
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10092 eval "ac_cv_lib_$ac_lib_var=no"
10095 LIBS="$ac_save_LIBS"
10098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10099 echo "$ac_t""yes" 1>&6
10100 have_setproctitle=yes
10101 LUTIL_LIBS="$LUTIL_LIBS -lutil"
10103 echo "$ac_t""no" 1>&6
10104 have_setproctitle=no
10105 LIBOBJS="$LIBOBJS setproctitle.o"
10111 if test $have_setproctitle = yes ; then
10112 cat >> confdefs.h <<\EOF
10113 #define HAVE_SETPROCTITLE 1
10120 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
10121 echo "configure:10122: checking for EBCDIC" >&5
10122 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
10123 echo $ac_n "(cached) $ac_c" 1>&6
10126 cat > conftest.$ac_ext <<EOF
10127 #line 10128 "configure"
10128 #include "confdefs.h"
10131 #include <__ASCII__/generate_error.h>
10135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10136 { (eval echo configure:10137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10138 if test -z "$ac_err"; then
10140 ol_cv_cpp_ebcdic=yes
10143 echo "configure: failed program was:" >&5
10144 cat conftest.$ac_ext >&5
10146 ol_cv_cpp_ebcdic=no
10151 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
10152 if test $ol_cv_cpp_ebcdic = yes ; then
10153 cat >> confdefs.h <<\EOF
10154 #define HAVE_EBCDIC 1
10159 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10160 echo "configure:10161: checking for ANSI C header files" >&5
10161 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
10162 echo $ac_n "(cached) $ac_c" 1>&6
10164 cat > conftest.$ac_ext <<EOF
10165 #line 10166 "configure"
10166 #include "confdefs.h"
10167 #include <stdlib.h>
10168 #include <stdarg.h>
10169 #include <string.h>
10172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10173 { (eval echo configure:10174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10175 if test -z "$ac_err"; then
10177 ol_cv_header_stdc=yes
10180 echo "configure: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10183 ol_cv_header_stdc=no
10187 if test $ol_cv_header_stdc = yes; then
10188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10189 cat > conftest.$ac_ext <<EOF
10190 #line 10191 "configure"
10191 #include "confdefs.h"
10192 #include <string.h>
10194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10195 egrep "memchr" >/dev/null 2>&1; then
10199 ol_cv_header_stdc=no
10205 if test $ol_cv_header_stdc = yes; then
10206 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10207 cat > conftest.$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10210 #include <stdlib.h>
10212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10213 egrep "free" >/dev/null 2>&1; then
10217 ol_cv_header_stdc=no
10223 if test $ol_cv_header_stdc = yes; then
10224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10225 if test "$cross_compiling" = yes; then
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10232 #ifndef HAVE_EBCDIC
10233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10236 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10237 || ('j' <= (c) && (c) <= 'r') \
10238 || ('s' <= (c) && (c) <= 'z'))
10239 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10242 int main () { int i; for (i = 0; i < 256; i++)
10243 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10247 if { (eval echo configure:10248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10251 echo "configure: failed program was:" >&5
10252 cat conftest.$ac_ext >&5
10254 ol_cv_header_stdc=no
10262 echo "$ac_t""$ol_cv_header_stdc" 1>&6
10263 if test $ol_cv_header_stdc = yes; then
10264 cat >> confdefs.h <<\EOF
10265 #define STDC_HEADERS 1
10269 ac_cv_header_stdc=disable
10272 if test $ol_cv_header_stdc != yes; then
10273 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
10276 ac_header_dirent=no
10277 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
10279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10280 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
10281 echo "configure:10282: checking for $ac_hdr that defines DIR" >&5
10282 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
10283 echo $ac_n "(cached) $ac_c" 1>&6
10285 cat > conftest.$ac_ext <<EOF
10286 #line 10287 "configure"
10287 #include "confdefs.h"
10288 #include <sys/types.h>
10294 if { (eval echo configure:10295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10296 eval "ac_cv_header_dirent_$ac_safe=yes"
10298 echo "configure: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10301 eval "ac_cv_header_dirent_$ac_safe=no"
10305 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
10306 echo "$ac_t""yes" 1>&6
10307 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10308 cat >> confdefs.h <<EOF
10309 #define $ac_tr_hdr 1
10311 ac_header_dirent=$ac_hdr; break
10313 echo "$ac_t""no" 1>&6
10316 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10317 if test $ac_header_dirent = dirent.h; then
10318 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
10319 echo "configure:10320: checking for opendir in -ldir" >&5
10320 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
10321 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10324 ac_save_LIBS="$LIBS"
10326 cat > conftest.$ac_ext <<EOF
10327 #line 10328 "configure"
10328 #include "confdefs.h"
10329 /* Override any gcc2 internal prototype to avoid an error. */
10330 /* We use char because int might match the return type of a gcc2
10331 builtin and then its argument prototype would still apply. */
10338 if { (eval echo configure:10339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10340 eval "ac_cv_lib_$ac_lib_var=yes"
10342 echo "configure: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10345 eval "ac_cv_lib_$ac_lib_var=no"
10348 LIBS="$ac_save_LIBS"
10351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10352 echo "$ac_t""yes" 1>&6
10355 echo "$ac_t""no" 1>&6
10359 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
10360 echo "configure:10361: checking for opendir in -lx" >&5
10361 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
10362 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10363 echo $ac_n "(cached) $ac_c" 1>&6
10365 ac_save_LIBS="$LIBS"
10367 cat > conftest.$ac_ext <<EOF
10368 #line 10369 "configure"
10369 #include "confdefs.h"
10370 /* Override any gcc2 internal prototype to avoid an error. */
10371 /* We use char because int might match the return type of a gcc2
10372 builtin and then its argument prototype would still apply. */
10379 if { (eval echo configure:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10381 eval "ac_cv_lib_$ac_lib_var=yes"
10383 echo "configure: failed program was:" >&5
10384 cat conftest.$ac_ext >&5
10386 eval "ac_cv_lib_$ac_lib_var=no"
10389 LIBS="$ac_save_LIBS"
10392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10393 echo "$ac_t""yes" 1>&6
10396 echo "$ac_t""no" 1>&6
10401 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
10402 echo "configure:10403: checking for sys/wait.h that is POSIX.1 compatible" >&5
10403 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10406 cat > conftest.$ac_ext <<EOF
10407 #line 10408 "configure"
10408 #include "confdefs.h"
10409 #include <sys/types.h>
10410 #include <sys/wait.h>
10411 #ifndef WEXITSTATUS
10412 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10415 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10420 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10423 if { (eval echo configure:10424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10425 ac_cv_header_sys_wait_h=yes
10427 echo "configure: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10430 ac_cv_header_sys_wait_h=no
10435 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
10436 if test $ac_cv_header_sys_wait_h = yes; then
10437 cat >> confdefs.h <<\EOF
10438 #define HAVE_SYS_WAIT_H 1
10443 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
10444 echo "configure:10445: checking POSIX termios" >&5
10445 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
10446 echo $ac_n "(cached) $ac_c" 1>&6
10448 cat > conftest.$ac_ext <<EOF
10449 #line 10450 "configure"
10450 #include "confdefs.h"
10451 #include <sys/types.h>
10452 #include <unistd.h>
10453 #include <termios.h>
10455 /* SunOS 4.0.3 has termios.h but not the library calls. */
10459 if { (eval echo configure:10460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10461 am_cv_sys_posix_termios=yes
10463 echo "configure: failed program was:" >&5
10464 cat conftest.$ac_ext >&5
10466 am_cv_sys_posix_termios=no
10471 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
10474 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
10475 echo "configure:10476: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
10476 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10479 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
10481 gwinsz_in_termios_h=no
10482 if test $am_cv_sys_posix_termios = yes; then
10483 cat > conftest.$ac_ext <<EOF
10484 #line 10485 "configure"
10485 #include "confdefs.h"
10486 #include <sys/types.h>
10487 # include <termios.h>
10493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10494 egrep "yes" >/dev/null 2>&1; then
10496 gwinsz_in_termios_h=yes
10502 if test $gwinsz_in_termios_h = no; then
10503 cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10506 #include <sys/types.h>
10507 # include <sys/ioctl.h>
10513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10514 egrep "yes" >/dev/null 2>&1; then
10516 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
10524 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
10525 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
10526 cat >> confdefs.h <<\EOF
10527 #define GWINSZ_IN_SYS_IOCTL 1
10532 if test $am_cv_sys_posix_termios = yes ; then
10533 cat >> confdefs.h <<\EOF
10534 #define HAVE_POSIX_TERMIOS 1
10580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10582 echo "configure:10583: checking for $ac_hdr" >&5
10583 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10586 cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure"
10588 #include "confdefs.h"
10591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10592 { (eval echo configure:10593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10594 if test -z "$ac_err"; then
10596 eval "ac_cv_header_$ac_safe=yes"
10599 echo "configure: failed program was:" >&5
10600 cat conftest.$ac_ext >&5
10602 eval "ac_cv_header_$ac_safe=no"
10606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10607 echo "$ac_t""yes" 1>&6
10608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10609 cat >> confdefs.h <<EOF
10610 #define $ac_tr_hdr 1
10614 echo "$ac_t""no" 1>&6
10619 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10620 echo "configure:10621: checking for uid_t in sys/types.h" >&5
10621 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10624 cat > conftest.$ac_ext <<EOF
10625 #line 10626 "configure"
10626 #include "confdefs.h"
10627 #include <sys/types.h>
10629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10630 egrep "uid_t" >/dev/null 2>&1; then
10632 ac_cv_type_uid_t=yes
10635 ac_cv_type_uid_t=no
10641 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10642 if test $ac_cv_type_uid_t = no; then
10643 cat >> confdefs.h <<\EOF
10647 cat >> confdefs.h <<\EOF
10653 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
10654 echo "configure:10655: checking type of array argument to getgroups" >&5
10655 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
10656 echo $ac_n "(cached) $ac_c" 1>&6
10658 if test "$cross_compiling" = yes; then
10659 ac_cv_type_getgroups=cross
10661 cat > conftest.$ac_ext <<EOF
10662 #line 10663 "configure"
10663 #include "confdefs.h"
10665 /* Thanks to Mike Rendell for this test. */
10666 #include <sys/types.h>
10669 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10672 gid_t gidset[NGID];
10674 union { gid_t gval; long lval; } val;
10677 for (i = 0; i < NGID; i++)
10678 gidset[i] = val.gval;
10679 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10681 /* Exit non-zero if getgroups seems to require an array of ints. This
10682 happens when gid_t is short but getgroups modifies an array of ints. */
10683 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10687 if { (eval echo configure:10688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10689 ac_cv_type_getgroups=gid_t
10691 echo "configure: failed program was:" >&5
10692 cat conftest.$ac_ext >&5
10694 ac_cv_type_getgroups=int
10699 if test $ac_cv_type_getgroups = cross; then
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10703 #include <unistd.h>
10705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10706 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10708 ac_cv_type_getgroups=gid_t
10711 ac_cv_type_getgroups=int
10718 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
10719 cat >> confdefs.h <<EOF
10720 #define GETGROUPS_T $ac_cv_type_getgroups
10723 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10724 echo "configure:10725: checking for ANSI C header files" >&5
10725 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
10726 echo $ac_n "(cached) $ac_c" 1>&6
10728 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10731 #include <stdlib.h>
10732 #include <stdarg.h>
10733 #include <string.h>
10736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10737 { (eval echo configure:10738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10739 if test -z "$ac_err"; then
10741 ac_cv_header_stdc=yes
10744 echo "configure: failed program was:" >&5
10745 cat conftest.$ac_ext >&5
10747 ac_cv_header_stdc=no
10751 if test $ac_cv_header_stdc = yes; then
10752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10753 cat > conftest.$ac_ext <<EOF
10754 #line 10755 "configure"
10755 #include "confdefs.h"
10756 #include <string.h>
10758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10759 egrep "memchr" >/dev/null 2>&1; then
10763 ac_cv_header_stdc=no
10769 if test $ac_cv_header_stdc = yes; then
10770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10771 cat > conftest.$ac_ext <<EOF
10772 #line 10773 "configure"
10773 #include "confdefs.h"
10774 #include <stdlib.h>
10776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10777 egrep "free" >/dev/null 2>&1; then
10781 ac_cv_header_stdc=no
10787 if test $ac_cv_header_stdc = yes; then
10788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10789 if test "$cross_compiling" = yes; then
10792 cat > conftest.$ac_ext <<EOF
10793 #line 10794 "configure"
10794 #include "confdefs.h"
10796 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10797 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10799 int main () { int i; for (i = 0; i < 256; i++)
10800 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10804 if { (eval echo configure:10805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10808 echo "configure: failed program was:" >&5
10809 cat conftest.$ac_ext >&5
10811 ac_cv_header_stdc=no
10819 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10820 if test $ac_cv_header_stdc = yes; then
10821 cat >> confdefs.h <<\EOF
10822 #define STDC_HEADERS 1
10827 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10828 echo "configure:10829: checking for mode_t" >&5
10829 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
10830 echo $ac_n "(cached) $ac_c" 1>&6
10832 cat > conftest.$ac_ext <<EOF
10833 #line 10834 "configure"
10834 #include "confdefs.h"
10835 #include <sys/types.h>
10837 #include <stdlib.h>
10838 #include <stddef.h>
10841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10842 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10844 eval "ac_cv_type_mode_t=yes"
10847 eval "ac_cv_type_mode_t=no"
10852 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
10853 echo "$ac_t""yes" 1>&6
10855 echo "$ac_t""no" 1>&6
10856 cat >> confdefs.h <<EOF
10862 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10863 echo "configure:10864: checking for off_t" >&5
10864 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
10865 echo $ac_n "(cached) $ac_c" 1>&6
10867 cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10870 #include <sys/types.h>
10872 #include <stdlib.h>
10873 #include <stddef.h>
10876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10877 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10879 eval "ac_cv_type_off_t=yes"
10882 eval "ac_cv_type_off_t=no"
10887 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
10888 echo "$ac_t""yes" 1>&6
10890 echo "$ac_t""no" 1>&6
10891 cat >> confdefs.h <<EOF
10897 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10898 echo "configure:10899: checking for pid_t" >&5
10899 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
10900 echo $ac_n "(cached) $ac_c" 1>&6
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10905 #include <sys/types.h>
10907 #include <stdlib.h>
10908 #include <stddef.h>
10911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10912 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10914 eval "ac_cv_type_pid_t=yes"
10917 eval "ac_cv_type_pid_t=no"
10922 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
10923 echo "$ac_t""yes" 1>&6
10925 echo "$ac_t""no" 1>&6
10926 cat >> confdefs.h <<EOF
10932 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10933 echo "configure:10934: checking for ptrdiff_t" >&5
10934 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10937 cat > conftest.$ac_ext <<EOF
10938 #line 10939 "configure"
10939 #include "confdefs.h"
10940 #include <stddef.h>
10945 if { (eval echo configure:10946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10947 am_cv_type_ptrdiff_t=yes
10949 echo "configure: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
10952 am_cv_type_ptrdiff_t=no
10957 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10958 if test $am_cv_type_ptrdiff_t = yes; then
10959 cat >> confdefs.h <<\EOF
10960 #define HAVE_PTRDIFF_T 1
10965 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10966 echo "configure:10967: checking return type of signal handlers" >&5
10967 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
10968 echo $ac_n "(cached) $ac_c" 1>&6
10970 cat > conftest.$ac_ext <<EOF
10971 #line 10972 "configure"
10972 #include "confdefs.h"
10973 #include <sys/types.h>
10974 #include <signal.h>
10979 extern "C" void (*signal (int, void (*)(int)))(int);
10981 void (*signal ()) ();
10988 if { (eval echo configure:10989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10990 ac_cv_type_signal=void
10992 echo "configure: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10995 ac_cv_type_signal=int
11000 echo "$ac_t""$ac_cv_type_signal" 1>&6
11001 cat >> confdefs.h <<EOF
11002 #define RETSIGTYPE $ac_cv_type_signal
11006 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
11007 echo "configure:11008: checking for sig_atomic_t" >&5
11008 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
11009 echo $ac_n "(cached) $ac_c" 1>&6
11011 cat > conftest.$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11014 #include <signal.h>
11016 sig_atomic_t atomic;
11019 if { (eval echo configure:11020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11021 ol_cv_type_sig_atomic_t=yes
11023 echo "configure: failed program was:" >&5
11024 cat conftest.$ac_ext >&5
11026 ol_cv_type_sig_atomic_t=no
11031 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
11032 if test $ol_cv_type_sig_atomic_t = no; then
11033 cat >> confdefs.h <<\EOF
11034 #define sig_atomic_t int
11039 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11040 echo "configure:11041: checking for size_t" >&5
11041 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
11042 echo $ac_n "(cached) $ac_c" 1>&6
11044 cat > conftest.$ac_ext <<EOF
11045 #line 11046 "configure"
11046 #include "confdefs.h"
11047 #include <sys/types.h>
11049 #include <stdlib.h>
11050 #include <stddef.h>
11053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11054 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11056 eval "ac_cv_type_size_t=yes"
11059 eval "ac_cv_type_size_t=no"
11064 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
11065 echo "$ac_t""yes" 1>&6
11067 echo "$ac_t""no" 1>&6
11068 cat >> confdefs.h <<EOF
11069 #define size_t unsigned
11074 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11075 echo "configure:11076: checking for socklen_t" >&5
11076 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
11077 echo $ac_n "(cached) $ac_c" 1>&6
11079 cat > conftest.$ac_ext <<EOF
11080 #line 11081 "configure"
11081 #include "confdefs.h"
11083 #ifdef HAVE_SYS_TYPES_H
11084 #include <sys/types.h>
11086 #ifdef HAVE_SYS_SOCKET_H
11087 #include <sys/socket.h>
11094 if { (eval echo configure:11095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11096 ol_cv_type_socklen_t=yes
11098 echo "configure: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11101 ol_cv_type_socklen_t=no
11106 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
11107 if test $ol_cv_type_socklen_t = no; then
11108 cat >> confdefs.h <<\EOF
11109 #define socklen_t int
11114 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
11115 echo "configure:11116: checking for member st_blksize in aggregate type struct stat" >&5
11116 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
11117 echo $ac_n "(cached) $ac_c" 1>&6
11119 cat > conftest.$ac_ext <<EOF
11120 #line 11121 "configure"
11121 #include "confdefs.h"
11122 #include <sys/types.h>
11123 #include <sys/stat.h>
11125 struct stat foo; foo.st_blksize;
11128 if { (eval echo configure:11129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11130 ac_cv_c_struct_member_st_blksize=yes
11132 echo "configure: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11135 ac_cv_c_struct_member_st_blksize=no
11140 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
11141 st_blksize="$ac_cv_c_struct_member_st_blksize"
11142 if test $ac_cv_c_struct_member_st_blksize = yes; then
11143 cat >> confdefs.h <<\EOF
11144 #define HAVE_ST_BLKSIZE 1
11149 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
11150 echo "configure:11151: checking whether time.h and sys/time.h may both be included" >&5
11151 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
11152 echo $ac_n "(cached) $ac_c" 1>&6
11154 cat > conftest.$ac_ext <<EOF
11155 #line 11156 "configure"
11156 #include "confdefs.h"
11157 #include <sys/types.h>
11158 #include <sys/time.h>
11164 if { (eval echo configure:11165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11166 ac_cv_header_time=yes
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11171 ac_cv_header_time=no
11176 echo "$ac_t""$ac_cv_header_time" 1>&6
11177 if test $ac_cv_header_time = yes; then
11178 cat >> confdefs.h <<\EOF
11179 #define TIME_WITH_SYS_TIME 1
11184 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
11185 echo "configure:11186: checking whether struct tm is in sys/time.h or time.h" >&5
11186 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
11187 echo $ac_n "(cached) $ac_c" 1>&6
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11192 #include <sys/types.h>
11195 struct tm *tp; tp->tm_sec;
11198 if { (eval echo configure:11199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11200 ac_cv_struct_tm=time.h
11202 echo "configure: failed program was:" >&5
11203 cat conftest.$ac_ext >&5
11205 ac_cv_struct_tm=sys/time.h
11210 echo "$ac_t""$ac_cv_struct_tm" 1>&6
11211 if test $ac_cv_struct_tm = sys/time.h; then
11212 cat >> confdefs.h <<\EOF
11213 #define TM_IN_SYS_TIME 1
11218 # test for pw_gecos in struct passwd
11219 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
11220 echo "configure:11221: checking struct passwd for pw_gecos" >&5
11221 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
11222 echo $ac_n "(cached) $ac_c" 1>&6
11225 cat > conftest.$ac_ext <<EOF
11226 #line 11227 "configure"
11227 #include "confdefs.h"
11232 pwd.pw_gecos = pwd.pw_name;
11236 if { (eval echo configure:11237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11238 ol_cv_struct_passwd_pw_gecos=yes
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11243 ol_cv_struct_passwd_pw_gecos=no
11248 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
11249 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
11250 cat >> confdefs.h <<\EOF
11251 #define HAVE_PW_GECOS 1
11256 # test for pw_passwd in struct passwd
11257 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
11258 echo "configure:11259: checking struct passwd for pw_passwd" >&5
11259 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
11260 echo $ac_n "(cached) $ac_c" 1>&6
11263 cat > conftest.$ac_ext <<EOF
11264 #line 11265 "configure"
11265 #include "confdefs.h"
11270 pwd.pw_passwd = pwd.pw_name;
11274 if { (eval echo configure:11275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11276 ol_cv_struct_passwd_pw_passwd=yes
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11281 ol_cv_struct_passwd_pw_passwd=no
11286 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
11287 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
11288 cat >> confdefs.h <<\EOF
11289 #define HAVE_PW_PASSWD 1
11296 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
11297 echo "configure:11298: checking if toupper() requires islower()" >&5
11298 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
11302 if test "$cross_compiling" = yes; then
11303 ol_cv_c_upper_lower=safe
11305 cat > conftest.$ac_ext <<EOF
11306 #line 11307 "configure"
11307 #include "confdefs.h"
11312 if ('C' == toupper('C'))
11318 if { (eval echo configure:11319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11320 ol_cv_c_upper_lower=no
11322 echo "configure: failed program was:" >&5
11323 cat conftest.$ac_ext >&5
11325 ol_cv_c_upper_lower=yes
11332 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
11333 if test $ol_cv_c_upper_lower != no ; then
11334 cat >> confdefs.h <<\EOF
11335 #define C_UPPER_LOWER 1
11340 echo $ac_n "checking for working const""... $ac_c" 1>&6
11341 echo "configure:11342: checking for working const" >&5
11342 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
11343 echo $ac_n "(cached) $ac_c" 1>&6
11345 cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11351 /* Ultrix mips cc rejects this. */
11352 typedef int charset[2]; const charset x;
11353 /* SunOS 4.1.1 cc rejects this. */
11354 char const *const *ccp;
11356 /* NEC SVR4.0.2 mips cc rejects this. */
11357 struct point {int x, y;};
11358 static struct point const zero = {0,0};
11359 /* AIX XL C 1.02.0.0 rejects this.
11360 It does not let you subtract one const X* pointer from another in an arm
11361 of an if-expression whose if-part is not a constant expression */
11362 const char *g = "string";
11363 ccp = &g + (g ? g-g : 0);
11364 /* HPUX 7.0 cc rejects these. */
11367 ccp = (char const *const *) p;
11368 { /* SCO 3.2v4 cc rejects this. */
11370 char const *s = 0 ? (char *) 0 : (char const *) 0;
11374 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11375 int x[] = {25, 17};
11376 const int *foo = &x[0];
11379 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11380 typedef const int *iptr;
11384 { /* AIX XL C 1.02.0.0 rejects this saying
11385 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11386 struct s { int j; const int *ap[3]; };
11387 struct s *b; b->j = 5;
11389 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11390 const int foo = 10;
11395 if { (eval echo configure:11396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11399 echo "configure: failed program was:" >&5
11400 cat conftest.$ac_ext >&5
11407 echo "$ac_t""$ac_cv_c_const" 1>&6
11408 if test $ac_cv_c_const = no; then
11409 cat >> confdefs.h <<\EOF
11415 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
11416 echo "configure:11417: checking if compiler understands volatile" >&5
11417 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
11418 echo $ac_n "(cached) $ac_c" 1>&6
11420 cat > conftest.$ac_ext <<EOF
11421 #line 11422 "configure"
11422 #include "confdefs.h"
11425 volatile int a; int * volatile b = x ? &y : &z;
11426 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
11430 if { (eval echo configure:11431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11432 ol_cv_c_volatile=yes
11434 echo "configure: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11437 ol_cv_c_volatile=no
11442 echo "$ac_t""$ol_cv_c_volatile" 1>&6
11443 if test $ol_cv_c_volatile = yes; then
11446 cat >> confdefs.h <<\EOF
11453 if test $cross_compiling = yes ; then
11454 cat >> confdefs.h <<\EOF
11455 #define CROSS_COMPILING 1
11459 cat >> confdefs.h <<\EOF
11460 #define LBER_INT_T long
11463 cat >> confdefs.h <<\EOF
11464 #define LBER_TAG_T long
11467 cat >> confdefs.h <<\EOF
11468 #define LBER_SOCKET_T int
11473 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11474 echo "configure:11475: checking whether byte ordering is bigendian" >&5
11475 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
11476 echo $ac_n "(cached) $ac_c" 1>&6
11478 ac_cv_c_bigendian=unknown
11479 # See if sys/param.h defines the BYTE_ORDER macro.
11480 cat > conftest.$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11483 #include <sys/types.h>
11484 #include <sys/param.h>
11487 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11488 bogus endian macros
11492 if { (eval echo configure:11493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11494 # It does; now see whether it defined to BIG_ENDIAN or not.
11495 cat > conftest.$ac_ext <<EOF
11496 #line 11497 "configure"
11497 #include "confdefs.h"
11498 #include <sys/types.h>
11499 #include <sys/param.h>
11502 #if BYTE_ORDER != BIG_ENDIAN
11507 if { (eval echo configure:11508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11509 ac_cv_c_bigendian=yes
11511 echo "configure: failed program was:" >&5
11512 cat conftest.$ac_ext >&5
11514 ac_cv_c_bigendian=no
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11522 if test $ac_cv_c_bigendian = unknown; then
11523 if test "$cross_compiling" = yes; then
11524 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11526 cat > conftest.$ac_ext <<EOF
11527 #line 11528 "configure"
11528 #include "confdefs.h"
11530 /* Are we little or big endian? From Harbison&Steele. */
11534 char c[sizeof (long)];
11537 exit (u.c[sizeof (long) - 1] == 1);
11540 if { (eval echo configure:11541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11542 ac_cv_c_bigendian=no
11544 echo "configure: failed program was:" >&5
11545 cat conftest.$ac_ext >&5
11547 ac_cv_c_bigendian=yes
11555 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11556 if test $ac_cv_c_bigendian = yes; then
11557 cat >> confdefs.h <<\EOF
11558 #define WORDS_BIGENDIAN 1
11563 echo $ac_n "checking size of short""... $ac_c" 1>&6
11564 echo "configure:11565: checking size of short" >&5
11565 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
11566 echo $ac_n "(cached) $ac_c" 1>&6
11568 if test "$cross_compiling" = yes; then
11569 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11571 cat > conftest.$ac_ext <<EOF
11572 #line 11573 "configure"
11573 #include "confdefs.h"
11577 FILE *f=fopen("conftestval", "w");
11579 fprintf(f, "%d\n", sizeof(short));
11583 if { (eval echo configure:11584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11585 ac_cv_sizeof_short=`cat conftestval`
11587 echo "configure: failed program was:" >&5
11588 cat conftest.$ac_ext >&5
11590 ac_cv_sizeof_short=0
11596 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11597 cat >> confdefs.h <<EOF
11598 #define SIZEOF_SHORT $ac_cv_sizeof_short
11602 echo $ac_n "checking size of int""... $ac_c" 1>&6
11603 echo "configure:11604: checking size of int" >&5
11604 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
11605 echo $ac_n "(cached) $ac_c" 1>&6
11607 if test "$cross_compiling" = yes; then
11608 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11610 cat > conftest.$ac_ext <<EOF
11611 #line 11612 "configure"
11612 #include "confdefs.h"
11616 FILE *f=fopen("conftestval", "w");
11618 fprintf(f, "%d\n", sizeof(int));
11622 if { (eval echo configure:11623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11624 ac_cv_sizeof_int=`cat conftestval`
11626 echo "configure: failed program was:" >&5
11627 cat conftest.$ac_ext >&5
11635 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11636 cat >> confdefs.h <<EOF
11637 #define SIZEOF_INT $ac_cv_sizeof_int
11641 echo $ac_n "checking size of long""... $ac_c" 1>&6
11642 echo "configure:11643: checking size of long" >&5
11643 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
11644 echo $ac_n "(cached) $ac_c" 1>&6
11646 if test "$cross_compiling" = yes; then
11647 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11649 cat > conftest.$ac_ext <<EOF
11650 #line 11651 "configure"
11651 #include "confdefs.h"
11655 FILE *f=fopen("conftestval", "w");
11657 fprintf(f, "%d\n", sizeof(long));
11661 if { (eval echo configure:11662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11663 ac_cv_sizeof_long=`cat conftestval`
11665 echo "configure: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11668 ac_cv_sizeof_long=0
11674 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11675 cat >> confdefs.h <<EOF
11676 #define SIZEOF_LONG $ac_cv_sizeof_long
11681 if test "$ac_cv_sizeof_int" -lt 4 ; then
11682 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
11684 cat >> confdefs.h <<\EOF
11685 #define LBER_INT_T long
11688 cat >> confdefs.h <<\EOF
11689 #define LBER_TAG_T long
11692 cat >> confdefs.h <<\EOF
11693 #define LBER_SOCKET_T int
11697 cat >> confdefs.h <<\EOF
11698 #define LBER_INT_T int
11701 cat >> confdefs.h <<\EOF
11702 #define LBER_TAG_T long
11705 cat >> confdefs.h <<\EOF
11706 #define LBER_SOCKET_T int
11712 cat >> confdefs.h <<\EOF
11713 #define LBER_LEN_T long
11717 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
11718 echo "configure:11719: checking for 8-bit clean memcmp" >&5
11719 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
11720 echo $ac_n "(cached) $ac_c" 1>&6
11722 if test "$cross_compiling" = yes; then
11723 ac_cv_func_memcmp_clean=no
11725 cat > conftest.$ac_ext <<EOF
11726 #line 11727 "configure"
11727 #include "confdefs.h"
11731 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11732 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
11736 if { (eval echo configure:11737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11738 ac_cv_func_memcmp_clean=yes
11740 echo "configure: failed program was:" >&5
11741 cat conftest.$ac_ext >&5
11743 ac_cv_func_memcmp_clean=no
11750 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
11751 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
11753 echo $ac_n "checking for strftime""... $ac_c" 1>&6
11754 echo "configure:11755: checking for strftime" >&5
11755 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
11756 echo $ac_n "(cached) $ac_c" 1>&6
11758 cat > conftest.$ac_ext <<EOF
11759 #line 11760 "configure"
11760 #include "confdefs.h"
11761 /* System header to define __stub macros and hopefully few prototypes,
11762 which can conflict with char strftime(); below. */
11763 #include <assert.h>
11764 /* Override any gcc2 internal prototype to avoid an error. */
11765 /* We use char because int might match the return type of a gcc2
11766 builtin and then its argument prototype would still apply. */
11772 /* The GNU C library defines this for functions which it implements
11773 to always fail with ENOSYS. Some functions are actually named
11774 something starting with __ and the normal name is an alias. */
11775 #if defined (__stub_strftime) || defined (__stub___strftime)
11783 if { (eval echo configure:11784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11785 eval "ac_cv_func_strftime=yes"
11787 echo "configure: failed program was:" >&5
11788 cat conftest.$ac_ext >&5
11790 eval "ac_cv_func_strftime=no"
11795 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
11796 echo "$ac_t""yes" 1>&6
11797 cat >> confdefs.h <<\EOF
11798 #define HAVE_STRFTIME 1
11802 echo "$ac_t""no" 1>&6
11803 # strftime is in -lintl on SCO UNIX.
11804 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
11805 echo "configure:11806: checking for strftime in -lintl" >&5
11806 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
11807 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11808 echo $ac_n "(cached) $ac_c" 1>&6
11810 ac_save_LIBS="$LIBS"
11811 LIBS="-lintl $LIBS"
11812 cat > conftest.$ac_ext <<EOF
11813 #line 11814 "configure"
11814 #include "confdefs.h"
11815 /* Override any gcc2 internal prototype to avoid an error. */
11816 /* We use char because int might match the return type of a gcc2
11817 builtin and then its argument prototype would still apply. */
11824 if { (eval echo configure:11825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11826 eval "ac_cv_lib_$ac_lib_var=yes"
11828 echo "configure: failed program was:" >&5
11829 cat conftest.$ac_ext >&5
11831 eval "ac_cv_lib_$ac_lib_var=no"
11834 LIBS="$ac_save_LIBS"
11837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11838 echo "$ac_t""yes" 1>&6
11839 cat >> confdefs.h <<\EOF
11840 #define HAVE_STRFTIME 1
11843 LIBS="-lintl $LIBS"
11845 echo "$ac_t""no" 1>&6
11851 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
11852 echo "configure:11853: checking for vprintf" >&5
11853 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
11854 echo $ac_n "(cached) $ac_c" 1>&6
11856 cat > conftest.$ac_ext <<EOF
11857 #line 11858 "configure"
11858 #include "confdefs.h"
11859 /* System header to define __stub macros and hopefully few prototypes,
11860 which can conflict with char vprintf(); below. */
11861 #include <assert.h>
11862 /* Override any gcc2 internal prototype to avoid an error. */
11863 /* We use char because int might match the return type of a gcc2
11864 builtin and then its argument prototype would still apply. */
11870 /* The GNU C library defines this for functions which it implements
11871 to always fail with ENOSYS. Some functions are actually named
11872 something starting with __ and the normal name is an alias. */
11873 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11881 if { (eval echo configure:11882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11883 eval "ac_cv_func_vprintf=yes"
11885 echo "configure: failed program was:" >&5
11886 cat conftest.$ac_ext >&5
11888 eval "ac_cv_func_vprintf=no"
11893 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11894 echo "$ac_t""yes" 1>&6
11895 cat >> confdefs.h <<\EOF
11896 #define HAVE_VPRINTF 1
11900 echo "$ac_t""no" 1>&6
11903 if test "$ac_cv_func_vprintf" != yes; then
11904 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11905 echo "configure:11906: checking for _doprnt" >&5
11906 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
11907 echo $ac_n "(cached) $ac_c" 1>&6
11909 cat > conftest.$ac_ext <<EOF
11910 #line 11911 "configure"
11911 #include "confdefs.h"
11912 /* System header to define __stub macros and hopefully few prototypes,
11913 which can conflict with char _doprnt(); below. */
11914 #include <assert.h>
11915 /* Override any gcc2 internal prototype to avoid an error. */
11916 /* We use char because int might match the return type of a gcc2
11917 builtin and then its argument prototype would still apply. */
11923 /* The GNU C library defines this for functions which it implements
11924 to always fail with ENOSYS. Some functions are actually named
11925 something starting with __ and the normal name is an alias. */
11926 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11934 if { (eval echo configure:11935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11936 eval "ac_cv_func__doprnt=yes"
11938 echo "configure: failed program was:" >&5
11939 cat conftest.$ac_ext >&5
11941 eval "ac_cv_func__doprnt=no"
11946 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11947 echo "$ac_t""yes" 1>&6
11948 cat >> confdefs.h <<\EOF
11949 #define HAVE_DOPRNT 1
11953 echo "$ac_t""no" 1>&6
11959 if test $ac_cv_func_vprintf = yes ; then
11960 for ac_func in vsnprintf vsprintf
11962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11963 echo "configure:11964: checking for $ac_func" >&5
11964 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11965 echo $ac_n "(cached) $ac_c" 1>&6
11967 cat > conftest.$ac_ext <<EOF
11968 #line 11969 "configure"
11969 #include "confdefs.h"
11970 /* System header to define __stub macros and hopefully few prototypes,
11971 which can conflict with char $ac_func(); below. */
11972 #include <assert.h>
11973 /* Override any gcc2 internal prototype to avoid an error. */
11974 /* We use char because int might match the return type of a gcc2
11975 builtin and then its argument prototype would still apply. */
11981 /* The GNU C library defines this for functions which it implements
11982 to always fail with ENOSYS. Some functions are actually named
11983 something starting with __ and the normal name is an alias. */
11984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11992 if { (eval echo configure:11993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11994 eval "ac_cv_func_$ac_func=yes"
11996 echo "configure: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11999 eval "ac_cv_func_$ac_func=no"
12004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12005 echo "$ac_t""yes" 1>&6
12006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12007 cat >> confdefs.h <<EOF
12008 #define $ac_tr_func 1
12012 echo "$ac_t""no" 1>&6
12066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12067 echo "configure:12068: checking for $ac_func" >&5
12068 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12069 echo $ac_n "(cached) $ac_c" 1>&6
12071 cat > conftest.$ac_ext <<EOF
12072 #line 12073 "configure"
12073 #include "confdefs.h"
12074 /* System header to define __stub macros and hopefully few prototypes,
12075 which can conflict with char $ac_func(); below. */
12076 #include <assert.h>
12077 /* Override any gcc2 internal prototype to avoid an error. */
12078 /* We use char because int might match the return type of a gcc2
12079 builtin and then its argument prototype would still apply. */
12085 /* The GNU C library defines this for functions which it implements
12086 to always fail with ENOSYS. Some functions are actually named
12087 something starting with __ and the normal name is an alias. */
12088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12096 if { (eval echo configure:12097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12098 eval "ac_cv_func_$ac_func=yes"
12100 echo "configure: failed program was:" >&5
12101 cat conftest.$ac_ext >&5
12103 eval "ac_cv_func_$ac_func=no"
12108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12109 echo "$ac_t""yes" 1>&6
12110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12111 cat >> confdefs.h <<EOF
12112 #define $ac_tr_func 1
12116 echo "$ac_t""no" 1>&6
12121 for ac_func in getopt tempnam
12123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12124 echo "configure:12125: checking for $ac_func" >&5
12125 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12126 echo $ac_n "(cached) $ac_c" 1>&6
12128 cat > conftest.$ac_ext <<EOF
12129 #line 12130 "configure"
12130 #include "confdefs.h"
12131 /* System header to define __stub macros and hopefully few prototypes,
12132 which can conflict with char $ac_func(); below. */
12133 #include <assert.h>
12134 /* Override any gcc2 internal prototype to avoid an error. */
12135 /* We use char because int might match the return type of a gcc2
12136 builtin and then its argument prototype would still apply. */
12142 /* The GNU C library defines this for functions which it implements
12143 to always fail with ENOSYS. Some functions are actually named
12144 something starting with __ and the normal name is an alias. */
12145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12153 if { (eval echo configure:12154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12155 eval "ac_cv_func_$ac_func=yes"
12157 echo "configure: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12160 eval "ac_cv_func_$ac_func=no"
12165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12166 echo "$ac_t""yes" 1>&6
12167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12168 cat >> confdefs.h <<EOF
12169 #define $ac_tr_func 1
12173 echo "$ac_t""no" 1>&6
12174 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
12180 # Check Configuration
12182 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
12183 echo "configure:12184: checking declaration of sys_errlist" >&5
12184 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
12185 echo $ac_n "(cached) $ac_c" 1>&6
12188 cat > conftest.$ac_ext <<EOF
12189 #line 12190 "configure"
12190 #include "confdefs.h"
12193 #include <sys/types.h>
12196 char *c = (char *) *sys_errlist
12199 if { (eval echo configure:12200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12201 ol_cv_dcl_sys_errlist=yes
12203 echo "configure: failed program was:" >&5
12204 cat conftest.$ac_ext >&5
12206 ol_cv_dcl_sys_errlist=no
12211 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
12212 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
12213 if test $ol_cv_dcl_sys_errlist = no ; then
12214 cat >> confdefs.h <<\EOF
12215 #define DECL_SYS_ERRLIST 1
12218 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
12219 echo "configure:12220: checking existence of sys_errlist" >&5
12220 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
12221 echo $ac_n "(cached) $ac_c" 1>&6
12224 cat > conftest.$ac_ext <<EOF
12225 #line 12226 "configure"
12226 #include "confdefs.h"
12229 char *c = (char *) *sys_errlist
12232 if { (eval echo configure:12233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12234 ol_cv_have_sys_errlist=yes
12236 echo "configure: failed program was:" >&5
12237 cat conftest.$ac_ext >&5
12239 ol_cv_have_sys_errlist=no
12244 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
12245 if test $ol_cv_have_sys_errlist = yes ; then
12246 cat >> confdefs.h <<\EOF
12247 #define HAVE_SYS_ERRLIST 1
12255 if test "$ol_enable_debug" != no ; then
12256 cat >> confdefs.h <<\EOF
12257 #define LDAP_DEBUG 1
12261 if test "$ol_enable_syslog" = yes ; then
12262 cat >> confdefs.h <<\EOF
12263 #define LDAP_SYSLOG 1
12267 if test "$ol_enable_libui" = yes ; then
12268 cat >> confdefs.h <<\EOF
12269 #define LDAP_LIBUI 1
12273 if test "$ol_enable_cache" = no ; then
12274 cat >> confdefs.h <<\EOF
12275 #define LDAP_NOCACHE 1
12279 if test "$ol_enable_dns" != no ; then
12280 cat >> confdefs.h <<\EOF
12281 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
12285 if test "$ol_enable_proctitle" != no ; then
12286 cat >> confdefs.h <<\EOF
12287 #define LDAP_PROCTITLE 1
12291 if test "$ol_enable_referrals" != no ; then
12292 cat >> confdefs.h <<\EOF
12293 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
12297 if test "$ol_enable_cldap" != no ; then
12298 cat >> confdefs.h <<\EOF
12299 #define LDAP_CONNECTIONLESS 1
12304 if test "$ol_enable_crypt" != no ; then
12305 cat >> confdefs.h <<\EOF
12306 #define SLAPD_CRYPT 1
12310 if test "$ol_enable_cleartext" != no ; then
12311 cat >> confdefs.h <<\EOF
12312 #define SLAPD_CLEARTEXT 1
12316 if test "$ol_enable_phonetic" != no ; then
12317 cat >> confdefs.h <<\EOF
12318 #define SLAPD_PHONETIC 1
12322 if test "$ol_enable_rlookups" != no ; then
12323 cat >> confdefs.h <<\EOF
12324 #define SLAPD_RLOOKUPS 1
12329 if test "$ol_link_modules" != no ; then
12330 cat >> confdefs.h <<\EOF
12331 #define SLAPD_MODULES 1
12337 if test "$ol_link_bdb2" != no ; then
12338 cat >> confdefs.h <<\EOF
12339 #define SLAPD_BDB2 1
12344 if test "$ol_with_bdb2_module" != static ; then
12345 cat >> confdefs.h <<\EOF
12346 #define SLAPD_BDB2_DYNAMIC 1
12349 BUILD_BDB2_DYNAMIC=yes
12353 if test "$ol_enable_ldap" != no ; then
12354 cat >> confdefs.h <<\EOF
12355 #define SLAPD_LDAP 1
12360 if test "$ol_with_ldap_module" != static ; then
12361 cat >> confdefs.h <<\EOF
12362 #define SLAPD_LDAP_DYNAMIC 1
12365 BUILD_LDAP_DYNAMIC=yes
12369 if test "$ol_link_ldbm" != no ; then
12370 cat >> confdefs.h <<\EOF
12371 #define SLAPD_LDBM 1
12376 if test "$ol_with_ldbm_module" != static ; then
12377 cat >> confdefs.h <<\EOF
12378 #define SLAPD_LDBM_DYNAMIC 1
12381 BUILD_LDBM_DYNAMIC=yes
12385 if test "$ol_enable_passwd" != no ; then
12386 cat >> confdefs.h <<\EOF
12387 #define SLAPD_PASSWD 1
12392 if test "$ol_with_passwd_module" != static ; then
12393 cat >> confdefs.h <<\EOF
12394 #define SLAPD_PASSWD_DYNAMIC 1
12397 BUILD_PASSWD_DYNAMIC=yes
12401 if test "$ol_link_perl" != no ; then
12402 cat >> confdefs.h <<\EOF
12403 #define SLAPD_PERL 1
12408 if test "$ol_with_perl_module" != static ; then
12409 cat >> confdefs.h <<\EOF
12410 #define SLAPD_PERL_DYNAMIC 1
12413 BUILD_PERL_DYNAMIC=yes
12417 if test "$ol_enable_shell" != no ; then
12418 cat >> confdefs.h <<\EOF
12419 #define SLAPD_SHELL 1
12424 if test "$ol_with_shell_module" != static ; then
12425 cat >> confdefs.h <<\EOF
12426 #define SLAPD_SHELL_DYNAMIC 1
12429 BUILD_SHELL_DYNAMIC=yes
12433 if test "$ol_enable_tcl" != no ; then
12434 cat >> confdefs.h <<\EOF
12435 #define SLAPD_TCL 1
12440 if test "$ol_with_tcl_module" != static; then
12441 cat >> confdefs.h <<\EOF
12442 #define SLAPD_TCL_DYNAMIC 1
12445 BUILD_TCL_DYNAMIC=yes
12449 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
12450 $BUILD_SLAPD = yes ; then
12454 if test "$ol_link_isode" != no ; then
12499 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12502 # Let make expand exec_prefix.
12503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12505 # Any assignment to VPATH causes Sun make to only execute
12506 # the first set of double-colon rules, so remove it if not needed.
12507 # If there is a colon in the path, we need to keep it.
12508 if test "x$srcdir" = x.; then
12509 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12512 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12514 DEFS=-DHAVE_CONFIG_H
12516 # Without the "./", some shells look in PATH for config.status.
12517 : ${CONFIG_STATUS=./config.status}
12519 echo creating $CONFIG_STATUS
12520 rm -f $CONFIG_STATUS
12521 cat > $CONFIG_STATUS <<EOF
12523 # Generated automatically by configure.
12524 # Run this file to recreate the current configuration.
12525 # This directory was configured as follows,
12526 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12528 # $0 $ac_configure_args
12530 # Compiler output produced by configure, useful for debugging
12531 # configure, is in ./config.log if it exists.
12533 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12536 case "\$ac_option" in
12537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12538 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12539 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12540 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12541 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
12543 -help | --help | --hel | --he | --h)
12544 echo "\$ac_cs_usage"; exit 0 ;;
12545 *) echo "\$ac_cs_usage"; exit 1 ;;
12549 ac_given_srcdir=$srcdir
12550 ac_given_INSTALL="$INSTALL"
12552 trap 'rm -fr `echo "\
12553 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12554 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12555 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12556 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12557 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12558 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12559 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12560 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12561 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12562 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12563 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12564 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12565 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12566 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12567 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12568 include/Makefile:build/top.mk:include/Makefile.in \
12569 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12570 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12571 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12572 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12573 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12574 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12575 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12576 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12577 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12578 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12579 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12580 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12581 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12582 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12583 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12584 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12585 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12586 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12587 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12588 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12589 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12590 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12591 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12592 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12593 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12594 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12595 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12597 cat >> $CONFIG_STATUS <<EOF
12599 # Protect against being on the right side of a sed subst in config.status.
12600 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12601 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12605 s%@CFLAGS@%$CFLAGS%g
12606 s%@CPPFLAGS@%$CPPFLAGS%g
12607 s%@CXXFLAGS@%$CXXFLAGS%g
12608 s%@FFLAGS@%$FFLAGS%g
12610 s%@LDFLAGS@%$LDFLAGS%g
12612 s%@exec_prefix@%$exec_prefix%g
12613 s%@prefix@%$prefix%g
12614 s%@program_transform_name@%$program_transform_name%g
12615 s%@bindir@%$bindir%g
12616 s%@sbindir@%$sbindir%g
12617 s%@libexecdir@%$libexecdir%g
12618 s%@datadir@%$datadir%g
12619 s%@sysconfdir@%$sysconfdir%g
12620 s%@sharedstatedir@%$sharedstatedir%g
12621 s%@localstatedir@%$localstatedir%g
12622 s%@libdir@%$libdir%g
12623 s%@includedir@%$includedir%g
12624 s%@oldincludedir@%$oldincludedir%g
12625 s%@infodir@%$infodir%g
12626 s%@mandir@%$mandir%g
12628 s%@host_alias@%$host_alias%g
12629 s%@host_cpu@%$host_cpu%g
12630 s%@host_vendor@%$host_vendor%g
12631 s%@host_os@%$host_os%g
12632 s%@target@%$target%g
12633 s%@target_alias@%$target_alias%g
12634 s%@target_cpu@%$target_cpu%g
12635 s%@target_vendor@%$target_vendor%g
12636 s%@target_os@%$target_os%g
12638 s%@build_alias@%$build_alias%g
12639 s%@build_cpu@%$build_cpu%g
12640 s%@build_vendor@%$build_vendor%g
12641 s%@build_os@%$build_os%g
12642 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12643 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12644 s%@INSTALL_DATA@%$INSTALL_DATA%g
12645 s%@PACKAGE@%$PACKAGE%g
12646 s%@VERSION@%$VERSION%g
12647 s%@ACLOCAL@%$ACLOCAL%g
12648 s%@AUTOCONF@%$AUTOCONF%g
12649 s%@AUTOMAKE@%$AUTOMAKE%g
12650 s%@AUTOHEADER@%$AUTOHEADER%g
12651 s%@MAKEINFO@%$MAKEINFO%g
12652 s%@install_sh@%$install_sh%g
12655 s%@AMTARFLAGS@%$AMTARFLAGS%g
12656 s%@SET_MAKE@%$SET_MAKE%g
12657 s%@top_builddir@%$top_builddir%g
12658 s%@ldap_subdir@%$ldap_subdir%g
12660 s%@RANLIB@%$RANLIB%g
12664 s%@LIBTOOL@%$LIBTOOL%g
12666 s%@SENDMAIL@%$SENDMAIL%g
12667 s%@EDITOR@%$EDITOR%g
12668 s%@FINGER@%$FINGER%g
12669 s%@GLIBCONFIG@%$GLIBCONFIG%g
12670 s%@PERLBIN@%$PERLBIN%g
12672 s%@EXEEXT@%$EXEEXT%g
12673 s%@OBJEXT@%$OBJEXT%g
12674 s%@OL_MKDEP@%$OL_MKDEP%g
12675 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
12677 s%@LIBOBJS@%$LIBOBJS%g
12678 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
12679 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
12680 s%@BUILD_BDB2@%$BUILD_BDB2%g
12681 s%@BUILD_LDAP@%$BUILD_LDAP%g
12682 s%@BUILD_LDBM@%$BUILD_LDBM%g
12683 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
12684 s%@BUILD_PERL@%$BUILD_PERL%g
12685 s%@BUILD_SHELL@%$BUILD_SHELL%g
12686 s%@BUILD_TCL@%$BUILD_TCL%g
12687 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
12688 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
12689 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
12690 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
12691 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
12692 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
12693 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
12694 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
12695 s%@LDAP_LIBS@%$LDAP_LIBS%g
12696 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
12697 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
12698 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
12699 s%@LDBM_LIBS@%$LDBM_LIBS%g
12700 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
12701 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
12702 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
12703 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
12704 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
12705 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
12706 s%@KRB_LIBS@%$KRB_LIBS%g
12707 s%@READLINE_LIBS@%$READLINE_LIBS%g
12708 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
12709 s%@TLS_LIBS@%$TLS_LIBS%g
12714 cat >> $CONFIG_STATUS <<\EOF
12716 # Split the substitutions into bite-sized pieces for seds with
12717 # small command number limits, like on Digital OSF/1 and HP-UX.
12718 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12719 ac_file=1 # Number of current file.
12720 ac_beg=1 # First line for current file.
12721 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12724 while $ac_more_lines; do
12725 if test $ac_beg -gt 1; then
12726 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12728 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12730 if test ! -s conftest.s$ac_file; then
12731 ac_more_lines=false
12732 rm -f conftest.s$ac_file
12734 if test -z "$ac_sed_cmds"; then
12735 ac_sed_cmds="sed -f conftest.s$ac_file"
12737 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12739 ac_file=`expr $ac_file + 1`
12741 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12744 if test -z "$ac_sed_cmds"; then
12749 cat >> $CONFIG_STATUS <<EOF
12751 CONFIG_FILES=\${CONFIG_FILES-"\
12752 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12753 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12754 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12755 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12756 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12757 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12758 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12759 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12760 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12761 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12762 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12763 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12764 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12765 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12766 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12767 include/Makefile:build/top.mk:include/Makefile.in \
12768 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12769 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12770 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12771 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12772 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12773 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12774 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12775 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12776 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12777 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12778 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12779 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12780 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12781 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12782 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12783 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12784 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12785 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12786 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12787 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12788 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12789 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12790 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12791 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12792 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12793 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12796 cat >> $CONFIG_STATUS <<\EOF
12797 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12798 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12800 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12801 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12802 *) ac_file_in="${ac_file}.in" ;;
12805 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12807 # Remove last slash and all that follows it. Not all systems have dirname.
12808 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12809 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12810 # The file is in a subdirectory.
12811 test ! -d "$ac_dir" && mkdir "$ac_dir"
12812 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12813 # A "../" for each directory in $ac_dir_suffix.
12814 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12816 ac_dir_suffix= ac_dots=
12819 case "$ac_given_srcdir" in
12821 if test -z "$ac_dots"; then top_srcdir=.
12822 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12823 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12824 *) # Relative path.
12825 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12826 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12829 case "$ac_given_INSTALL" in
12830 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12831 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12834 echo creating "$ac_file"
12836 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12838 *Makefile*) ac_comsub="1i\\
12839 # $configure_input" ;;
12843 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12845 s%@configure_input@%$configure_input%g
12846 s%@srcdir@%$srcdir%g
12847 s%@top_srcdir@%$top_srcdir%g
12848 s%@INSTALL@%$INSTALL%g
12849 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12853 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12854 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12856 # ac_d sets the value in "#define NAME VALUE" lines.
12857 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12858 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12861 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12862 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12863 ac_uB='\([ ]\)%\1#\2define\3'
12866 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12867 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12868 ac_eB='$%\1#\2define\3'
12872 if test "${CONFIG_HEADERS+set}" != set; then
12874 cat >> $CONFIG_STATUS <<EOF
12875 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
12877 cat >> $CONFIG_STATUS <<\EOF
12879 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12880 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12882 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12883 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12884 *) ac_file_in="${ac_file}.in" ;;
12887 echo creating $ac_file
12889 rm -f conftest.frag conftest.in conftest.out
12890 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12891 cat $ac_file_inputs > conftest.in
12895 # Transform confdefs.h into a sed script conftest.vals that substitutes
12896 # the proper values into config.h.in to produce config.h. And first:
12897 # Protect against being on the right side of a sed subst in config.status.
12898 # Protect against being in an unquoted here document in config.status.
12899 rm -f conftest.vals
12900 cat > conftest.hdr <<\EOF
12903 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12907 sed -n -f conftest.hdr confdefs.h > conftest.vals
12910 # This sed command replaces #undef with comments. This is necessary, for
12911 # example, in the case of _POSIX_SOURCE, which is predefined and required
12912 # on some systems where configure will not decide to define it.
12913 cat >> conftest.vals <<\EOF
12914 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12917 # Break up conftest.vals because some shells have a limit on
12918 # the size of here documents, and old seds have small limits too.
12920 rm -f conftest.tail
12923 ac_lines=`grep -c . conftest.vals`
12924 # grep -c gives empty output for an empty file on some AIX systems.
12925 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12926 # Write a limited-size here document to conftest.frag.
12927 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12928 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12930 sed -f conftest.frag conftest.in > conftest.out
12932 mv conftest.out conftest.in
12933 ' >> $CONFIG_STATUS
12934 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12935 rm -f conftest.vals
12936 mv conftest.tail conftest.vals
12938 rm -f conftest.vals
12940 cat >> $CONFIG_STATUS <<\EOF
12941 rm -f conftest.frag conftest.h
12942 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12943 cat conftest.in >> conftest.h
12945 if cmp -s $ac_file conftest.h 2>/dev/null; then
12946 echo "$ac_file is unchanged"
12949 # Remove last slash and all that follows it. Not all systems have dirname.
12950 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12951 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12952 # The file is in a subdirectory.
12953 test ! -d "$ac_dir" && mkdir "$ac_dir"
12956 mv conftest.h $ac_file
12961 cat >> $CONFIG_STATUS <<EOF
12964 cat >> $CONFIG_STATUS <<\EOF
12967 echo Please \"make depend\" to build dependencies
12971 chmod +x $CONFIG_STATUS
12972 rm -fr confdefs* $ac_clean_files
12973 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1