3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --enable-debug enable debugging (yes)"
18 --enable-syslog enable syslog support (no)"
20 --enable-libui enable library user interface (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable dns support (no)"
26 --enable-referrals enable referrals (yes)"
28 --enable-clapd enable connectionless ldap (no)"
30 --with-kerberos use Kerberos (no)"
32 --with-kerberos-afs use AFS Kerberos (no)"
34 --with-threads use threads (yes)"
36 --enable-ldapd enable building ldapd (no)"
38 --enable-slapd enable building slapd (yes)"
40 --enable-aclgroup enable ACL group support (yes)"
42 --enable-crypt enable crypt(3) passwords (yes)"
44 --enable-md5 enable MD5 passwords (yes)"
46 --enable-sha1 enable SHA1 passwords (yes)"
48 --enable-wrappers enable tcp wrapper support (no)"
50 --enable-phonetic enable phonetic/soundex (no)"
52 --enable-rlookups enable reverse lookups (yes)"
54 --enable-ldbm enable ldbm backend (yes)"
56 --enable-passwd enable passwd backend (yes)"
58 --enable-shell enable shell backend (yes)"
60 --with-ndbm use NDB for LDBM backend (any)"
62 --with-gdbm use GDBM for LDBM backend (any)"
64 --with-dbhash use Berkeley DB Hash for LDBM backend (any)"
66 --with-dbbtree use Berkeley DB Btrees for LDBM backend (any)"
68 --with-db2 use Berkeley DB2 API (any)"
70 --enable-slurpd enable building slurpd (yes)"
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
76 cache_file=./config.cache
85 program_transform_name=s,x,x,
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
109 # Maximum number of lines to put in a shell here document.
116 # If the previous option needs an argument, assign it.
117 if test -n "$ac_prev"; then
118 eval "$ac_prev=\$ac_option"
124 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
128 # Accept the important Cygnus configure options, so we can diagnose typos.
132 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
135 bindir="$ac_optarg" ;;
137 -build | --build | --buil | --bui | --bu)
139 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
140 build="$ac_optarg" ;;
142 -cache-file | --cache-file | --cache-fil | --cache-fi \
143 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
144 ac_prev=cache_file ;;
145 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
146 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
147 cache_file="$ac_optarg" ;;
149 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 datadir="$ac_optarg" ;;
155 -disable-* | --disable-*)
156 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
162 eval "enable_${ac_feature}=no" ;;
164 -enable-* | --enable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}='$ac_optarg'" ;;
177 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
178 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
179 | --exec | --exe | --ex)
180 ac_prev=exec_prefix ;;
181 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
182 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
183 | --exec=* | --exe=* | --ex=*)
184 exec_prefix="$ac_optarg" ;;
186 -gas | --gas | --ga | --g)
187 # Obsolete; use --with-gas.
190 -help | --help | --hel | --he)
191 # Omit some internal or obsolete options to make the list less imposing.
192 # This message is too long to be a string in the A/UX 3.1 sh.
194 Usage: configure [options] [host]
195 Options: [defaults in brackets after descriptions]
197 --cache-file=FILE cache test results in FILE
198 --help print this message
199 --no-create do not create output files
200 --quiet, --silent do not print \`checking...' messages
201 --version print the version of autoconf that created configure
202 Directory and file names:
203 --prefix=PREFIX install architecture-independent files in PREFIX
205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 --bindir=DIR user executables in DIR [EPREFIX/bin]
208 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
209 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
210 --datadir=DIR read-only architecture-independent data in DIR
212 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
213 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
216 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
217 --includedir=DIR C header files in DIR [PREFIX/include]
218 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
219 --infodir=DIR info documentation in DIR [PREFIX/info]
220 --mandir=DIR man documentation in DIR [PREFIX/man]
221 --srcdir=DIR find the sources in DIR [configure dir or ..]
222 --program-prefix=PREFIX prepend PREFIX to installed program names
223 --program-suffix=SUFFIX append SUFFIX to installed program names
224 --program-transform-name=PROGRAM
225 run sed PROGRAM on installed program names
229 --build=BUILD configure for building on BUILD [BUILD=HOST]
230 --host=HOST configure for HOST [guessed]
231 --target=TARGET configure for TARGET [TARGET=HOST]
232 Features and packages:
233 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
234 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
235 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
236 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
237 --x-includes=DIR X include files are in DIR
238 --x-libraries=DIR X library files are in DIR
240 if test -n "$ac_help"; then
241 echo "--enable and --with options recognized:$ac_help"
245 -host | --host | --hos | --ho)
247 -host=* | --host=* | --hos=* | --ho=*)
250 -includedir | --includedir | --includedi | --included | --include \
251 | --includ | --inclu | --incl | --inc)
252 ac_prev=includedir ;;
253 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
254 | --includ=* | --inclu=* | --incl=* | --inc=*)
255 includedir="$ac_optarg" ;;
257 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
260 infodir="$ac_optarg" ;;
262 -libdir | --libdir | --libdi | --libd)
264 -libdir=* | --libdir=* | --libdi=* | --libd=*)
265 libdir="$ac_optarg" ;;
267 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
268 | --libexe | --libex | --libe)
269 ac_prev=libexecdir ;;
270 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
271 | --libexe=* | --libex=* | --libe=*)
272 libexecdir="$ac_optarg" ;;
274 -localstatedir | --localstatedir | --localstatedi | --localstated \
275 | --localstate | --localstat | --localsta | --localst \
276 | --locals | --local | --loca | --loc | --lo)
277 ac_prev=localstatedir ;;
278 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
279 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
280 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
281 localstatedir="$ac_optarg" ;;
283 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
286 mandir="$ac_optarg" ;;
289 # Obsolete; use --without-fp.
292 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
297 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
300 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
301 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
302 | --oldin | --oldi | --old | --ol | --o)
303 ac_prev=oldincludedir ;;
304 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
305 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
306 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
307 oldincludedir="$ac_optarg" ;;
309 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
312 prefix="$ac_optarg" ;;
314 -program-prefix | --program-prefix | --program-prefi | --program-pref \
315 | --program-pre | --program-pr | --program-p)
316 ac_prev=program_prefix ;;
317 -program-prefix=* | --program-prefix=* | --program-prefi=* \
318 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
319 program_prefix="$ac_optarg" ;;
321 -program-suffix | --program-suffix | --program-suffi | --program-suff \
322 | --program-suf | --program-su | --program-s)
323 ac_prev=program_suffix ;;
324 -program-suffix=* | --program-suffix=* | --program-suffi=* \
325 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
326 program_suffix="$ac_optarg" ;;
328 -program-transform-name | --program-transform-name \
329 | --program-transform-nam | --program-transform-na \
330 | --program-transform-n | --program-transform- \
331 | --program-transform | --program-transfor \
332 | --program-transfo | --program-transf \
333 | --program-trans | --program-tran \
334 | --progr-tra | --program-tr | --program-t)
335 ac_prev=program_transform_name ;;
336 -program-transform-name=* | --program-transform-name=* \
337 | --program-transform-nam=* | --program-transform-na=* \
338 | --program-transform-n=* | --program-transform-=* \
339 | --program-transform=* | --program-transfor=* \
340 | --program-transfo=* | --program-transf=* \
341 | --program-trans=* | --program-tran=* \
342 | --progr-tra=* | --program-tr=* | --program-t=*)
343 program_transform_name="$ac_optarg" ;;
345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
346 | -silent | --silent | --silen | --sile | --sil)
349 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 sbindir="$ac_optarg" ;;
355 -sharedstatedir | --sharedstatedir | --sharedstatedi \
356 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
357 | --sharedst | --shareds | --shared | --share | --shar \
359 ac_prev=sharedstatedir ;;
360 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
361 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
362 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 sharedstatedir="$ac_optarg" ;;
366 -site | --site | --sit)
368 -site=* | --site=* | --sit=*)
371 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
374 srcdir="$ac_optarg" ;;
376 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
377 | --syscon | --sysco | --sysc | --sys | --sy)
378 ac_prev=sysconfdir ;;
379 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
380 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
381 sysconfdir="$ac_optarg" ;;
383 -target | --target | --targe | --targ | --tar | --ta | --t)
385 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
386 target="$ac_optarg" ;;
388 -v | -verbose | --verbose | --verbos | --verbo | --verb)
391 -version | --version | --versio | --versi | --vers)
392 echo "configure generated by autoconf version 2.12"
396 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes="$ac_optarg" ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries="$ac_optarg" ;;
435 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
439 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
440 echo "configure: warning: $ac_option: invalid host type" 1>&2
442 if test "x$nonopt" != xNONE; then
443 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
451 if test -n "$ac_prev"; then
452 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
455 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457 # File descriptor usage:
460 # 2 errors and warnings
461 # 3 some systems may open it to /dev/tty
462 # 4 used on the Kubota Titan
463 # 6 checking for... messages and results
464 # 5 compiler messages saved in config.log
465 if test "$silent" = yes; then
473 This file contains any messages produced by compilers while
474 running configure, to aid debugging if configure makes a mistake.
477 # Strip out --no-create and --no-recursion so they do not pile up.
478 # Also quote any args containing shell metacharacters.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c) ;;
485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
488 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
489 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 # Only set these to C if already set. These must not be set unconditionally
495 # because not all systems understand e.g. LANG=C (notably SCO).
496 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
497 # Non-C LC_CTYPE values break the ctype check.
498 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
499 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
500 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
501 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
504 rm -rf conftest* confdefs.h
505 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 # A filename unique to this package, relative to the directory that
509 # configure is in, which we can look for to find out if srcdir is correct.
510 ac_unique_file=include/ldap.h
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
533 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535 # Prefer explicitly selected file to automatically selected ones.
536 if test -z "$CONFIG_SITE"; then
537 if test "x$prefix" != xNONE; then
538 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
543 for ac_site_file in $CONFIG_SITE; do
544 if test -r "$ac_site_file"; then
545 echo "loading site script $ac_site_file"
550 if test -r "$cache_file"; then
551 echo "loading cache $cache_file"
554 echo "creating cache $cache_file"
559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
560 ac_cpp='$CPP $CPPFLAGS'
561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
562 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
563 cross_compiling=$ac_cv_prog_cc_cross
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='\c' ac_t=
579 for ac_dir in build $srcdir/build; do
580 if test -f $ac_dir/install-sh; then
582 ac_install_sh="$ac_aux_dir/install-sh -c"
584 elif test -f $ac_dir/install.sh; then
586 ac_install_sh="$ac_aux_dir/install.sh -c"
590 if test -z "$ac_aux_dir"; then
591 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
593 ac_config_guess=$ac_aux_dir/config.guess
594 ac_config_sub=$ac_aux_dir/config.sub
595 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
597 echo $ac_n "checking arguments""... $ac_c" 1>&6
598 echo "configure:599: checking arguments" >&5
601 # Check whether --enable-debug or --disable-debug was given.
602 if test "${enable_debug+set}" = set; then
603 enableval="$enable_debug"
604 test "$enableval" != no && enableval=yes
605 if test "$enableval" != "yes" ; then
616 # Check whether --enable-syslog or --disable-syslog was given.
617 if test "${enable_syslog+set}" = set; then
618 enableval="$enable_syslog"
619 test "$enableval" != yes && enableval=no
620 if test "$enableval" != "no" ; then
631 # Check whether --enable-libui or --disable-libui was given.
632 if test "${enable_libui+set}" = set; then
633 enableval="$enable_libui"
634 test "$enableval" != no && enableval=yes
635 if test "$enableval" != "yes" ; then
646 # Check whether --enable-cache or --disable-cache was given.
647 if test "${enable_cache+set}" = set; then
648 enableval="$enable_cache"
649 test "$enableval" != no && enableval=yes
650 if test "$enableval" != "yes" ; then
661 # Check whether --enable-dns or --disable-dns was given.
662 if test "${enable_dns+set}" = set; then
663 enableval="$enable_dns"
664 test "$enableval" != yes && enableval=no
665 if test "$enableval" != "no" ; then
676 # Check whether --enable-referrals or --disable-referrals was given.
677 if test "${enable_referrals+set}" = set; then
678 enableval="$enable_referrals"
679 test "$enableval" != no && enableval=yes
680 if test "$enableval" != "yes" ; then
692 # Check whether --enable-cldap or --disable-cldap was given.
693 if test "${enable_cldap+set}" = set; then
694 enableval="$enable_cldap"
695 test "$enableval" != yes && enableval=no
696 if test "$enableval" != "no" ; then
708 # Check whether --with-kerberos or --without-kerberos was given.
709 if test "${with_kerberos+set}" = set; then
710 withval="$with_kerberos"
717 # Check whether --with-kerberos-afs or --without-kerberos-afs was given.
718 if test "${with_kerberos_afs+set}" = set; then
719 withval="$with_kerberos_afs"
726 # Check whether --with-threads or --without-threads was given.
727 if test "${with_threads+set}" = set; then
728 withval="$with_threads"
737 # Check whether --enable-ldapd or --disable-ldapd was given.
738 if test "${enable_ldapd+set}" = set; then
739 enableval="$enable_ldapd"
740 test "$enableval" != yes && enableval=no
741 if test "$enableval" != "no" ; then
753 # Check whether --enable-slapd or --disable-slapd was given.
754 if test "${enable_slapd+set}" = set; then
755 enableval="$enable_slapd"
756 test "$enableval" != no && enableval=yes
757 if test "$enableval" != "yes" ; then
768 # Check whether --enable-aclgroup or --disable-aclgroup was given.
769 if test "${enable_aclgroup+set}" = set; then
770 enableval="$enable_aclgroup"
771 test "$enableval" != no && enableval=yes
772 if test "$enableval" != "yes" ; then
783 # Check whether --enable-crypt or --disable-crypt was given.
784 if test "${enable_crypt+set}" = set; then
785 enableval="$enable_crypt"
786 test "$enableval" != no && enableval=yes
787 if test "$enableval" != "yes" ; then
798 # Check whether --enable-md5 or --disable-md5 was given.
799 if test "${enable_md5+set}" = set; then
800 enableval="$enable_md5"
801 test "$enableval" != no && enableval=yes
802 if test "$enableval" != "yes" ; then
813 # Check whether --enable-sha1 or --disable-sha1 was given.
814 if test "${enable_sha1+set}" = set; then
815 enableval="$enable_sha1"
816 test "$enableval" != no && enableval=yes
817 if test "$enableval" != "yes" ; then
828 # Check whether --enable-wrappers or --disable-wrappers was given.
829 if test "${enable_wrappers+set}" = set; then
830 enableval="$enable_wrappers"
831 test "$enableval" != yes && enableval=no
832 if test "$enableval" != "no" ; then
834 SLAPD_TCP_WRAPPERS=yes
836 SLAPD_TCP_WRAPPERS=no
840 SLAPD_TCP_WRAPPERS=no
843 # Check whether --enable-phonetic or --disable-phonetic was given.
844 if test "${enable_phonetic+set}" = set; then
845 enableval="$enable_phonetic"
846 test "$enableval" != yes && enableval=no
847 if test "$enableval" != "no" ; then
858 # Check whether --enable-rlookups or --disable-rlookups was given.
859 if test "${enable_rlookups+set}" = set; then
860 enableval="$enable_rlookups"
861 test "$enableval" != no && enableval=yes
862 if test "$enableval" != "yes" ; then
874 # Check whether --enable-ldbm or --disable-ldbm was given.
875 if test "${enable_ldbm+set}" = set; then
876 enableval="$enable_ldbm"
877 test "$enableval" != no && enableval=yes
878 if test "$enableval" != "yes" ; then
889 # Check whether --enable-passwd or --disable-passwd was given.
890 if test "${enable_passwd+set}" = set; then
891 enableval="$enable_passwd"
892 test "$enableval" != no && enableval=yes
893 if test "$enableval" != "yes" ; then
904 # Check whether --enable-shell or --disable-shell was given.
905 if test "${enable_shell+set}" = set; then
906 enableval="$enable_shell"
907 test "$enableval" != no && enableval=yes
908 if test "$enableval" != "yes" ; then
920 # Check whether --with-ndbm or --without-ndbm was given.
921 if test "${with_ndbm+set}" = set; then
929 # Check whether --with-gdbm or --without-gdbm was given.
930 if test "${with_gdbm+set}" = set; then
938 # Check whether --with-dbhash or --without-dbhash was given.
939 if test "${with_dbhash+set}" = set; then
940 withval="$with_dbhash"
947 # Check whether --with-dbbtree or --without-dbbtree was given.
948 if test "${with_dbbtree+set}" = set; then
949 withval="$with_dbbtree"
956 # Check whether --with-db2 or --without-db2 was given.
957 if test "${with_db2+set}" = set; then
966 # Check whether --enable-slurpd or --disable-slurpd was given.
967 if test "${enable_slurpd+set}" = set; then
968 enableval="$enable_slurpd"
969 test "$enableval" != no && enableval=yes
970 if test "$enableval" != "yes" ; then
982 echo "$ac_t""done" 1>&6
984 echo $ac_n "checking LDBM preferences""... $ac_c" 1>&6
985 echo "configure:986: checking LDBM preferences" >&5
988 if test "$opt_ndbm" = yes ; then
991 if test "$opt_gdbm" = yes ; then
994 if test "$opt_dbhash" = yes ; then
997 if test "$opt_dbbtree" = yes ; then
1000 echo "$ac_t""$ldbm_prefer" 1>&6
1002 if test "$BUILD_SLAPD" != "yes" ; then
1010 ## general LDAP arguments
1018 if test "$LDAP_DEBUG" = "yes" ; then
1019 LDAP_DEFS="$LDAP_DEFS -DLDAP_DEBUG"
1021 if test "$LDAP_SYSLOG" = "yes" ; then
1022 LDAP_DEFS="$LDAP_DEFS -DLDAP_SYSLOG"
1024 if test "$LDAP_DNS" = "yes" ; then
1025 LDAP_DEFS="$LDAP_DEFS -DLDAP_DNS"
1027 if test "$LDAP_REFERRALS" = "yes" ; then
1028 LDAP_DEFS="$LDAP_DEFS -DLDAP_REFERRALS"
1030 if test "$LDAP_CACHE" = "no" ; then
1031 cat >> confdefs.h <<\EOF
1032 #define LDAP_NOCACHE 1
1035 LDAP_DEFS="$LDAP_DEFS -DNO_CACHE"
1037 if test "$LDAP_CLDAP" = "yes" ; then
1038 cat >> confdefs.h <<\EOF
1039 #define LDAP_CONNECTIONLESS 1
1042 LDAP_DEFS="$LDAP_DEFS -DCLDAP"
1052 if test "$SLAPD_PHONETIC" = "yes" ; then
1053 cat >> confdefs.h <<\EOF
1054 #define SLAPD_PHONETIC 1
1057 SLAPD_DEFS="$SLAPD_DEFS -DSOUNDEX"
1060 if test "$SLAPD_MD5" = "yes" ; then
1061 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_MD5"
1064 if test "$SLAPD_SHA1" = "yes" ; then
1065 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_SHA1"
1069 if test "$SLAPD_LDBM" = "yes" ; then
1071 LDBM_DEFS="$LDBM_DEFS -DLDAP_LDBM"
1073 if test "$SLAPD_PASSWD" = "yes" ; then
1074 SLAPD_DEFS="$SLAPD_DEFS -DLDAP_PASSWD"
1076 if test "$SLAPD_SHELL" = "yes" ; then
1077 SLAPD_DEFS="$SLAPD_DEFS -DLDAP_SHELL"
1084 # Extract the first word of "gcc", so it can be a program name with args.
1085 set dummy gcc; ac_word=$2
1086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1087 echo "configure:1088: checking for $ac_word" >&5
1088 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 if test -n "$CC"; then
1092 ac_cv_prog_CC="$CC" # Let the user override the test.
1094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1095 for ac_dir in $PATH; do
1096 test -z "$ac_dir" && ac_dir=.
1097 if test -f $ac_dir/$ac_word; then
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1109 echo "$ac_t""no" 1>&6
1112 if test -z "$CC"; then
1113 # Extract the first word of "cc", so it can be a program name with args.
1114 set dummy cc; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$CC"; then
1121 ac_cv_prog_CC="$CC" # Let the user override the test.
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1125 for ac_dir in $PATH; do
1126 test -z "$ac_dir" && ac_dir=.
1127 if test -f $ac_dir/$ac_word; then
1128 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1129 ac_prog_rejected=yes
1137 if test $ac_prog_rejected = yes; then
1138 # We found a bogon in the path, so make sure we never use it.
1139 set dummy $ac_cv_prog_CC
1141 if test $# -gt 0; then
1142 # We chose a different compiler from the bogus one.
1143 # However, it has the same basename, so the bogon will be chosen
1144 # first if we set CC to just the basename; use the full file name.
1146 set dummy "$ac_dir/$ac_word" "$@"
1154 if test -n "$CC"; then
1155 echo "$ac_t""$CC" 1>&6
1157 echo "$ac_t""no" 1>&6
1160 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1163 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1167 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1168 ac_cpp='$CPP $CPPFLAGS'
1169 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1170 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1171 cross_compiling=$ac_cv_prog_cc_cross
1173 cat > conftest.$ac_ext <<EOF
1174 #line 1175 "configure"
1175 #include "confdefs.h"
1178 if { (eval echo configure:1179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1179 ac_cv_prog_cc_works=yes
1180 # If we can't run a trivial program, we are probably using a cross compiler.
1181 if (./conftest; exit) 2>/dev/null; then
1182 ac_cv_prog_cc_cross=no
1184 ac_cv_prog_cc_cross=yes
1187 echo "configure: failed program was:" >&5
1188 cat conftest.$ac_ext >&5
1189 ac_cv_prog_cc_works=no
1193 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1194 if test $ac_cv_prog_cc_works = no; then
1195 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1197 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1198 echo "configure:1199: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1199 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1200 cross_compiling=$ac_cv_prog_cc_cross
1202 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1203 echo "configure:1204: checking whether we are using GNU C" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 cat > conftest.c <<EOF
1212 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1219 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1221 if test $ac_cv_prog_gcc = yes; then
1223 ac_test_CFLAGS="${CFLAGS+set}"
1224 ac_save_CFLAGS="$CFLAGS"
1226 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether ${CC-cc} accepts -g" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 echo 'void f(){}' > conftest.c
1232 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1241 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1242 if test "$ac_test_CFLAGS" = set; then
1243 CFLAGS="$ac_save_CFLAGS"
1244 elif test $ac_cv_prog_cc_g = yes; then
1251 test "${CFLAGS+set}" = set || CFLAGS="-g"
1254 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1255 echo "configure:1256: checking how to run the C preprocessor" >&5
1256 # On Suns, sometimes $CPP names a directory.
1257 if test -n "$CPP" && test -d "$CPP"; then
1260 if test -z "$CPP"; then
1261 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 # This must be in double quotes, not single quotes, because CPP may get
1265 # substituted into the Makefile and "${CC-cc}" will confuse make.
1267 # On the NeXT, cc -E runs the code through the compiler's parser,
1268 # not just through cpp.
1269 cat > conftest.$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1276 { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1277 ac_err=`grep -v '^ *+' conftest.out`
1278 if test -z "$ac_err"; then
1282 echo "configure: failed program was:" >&5
1283 cat conftest.$ac_ext >&5
1285 CPP="${CC-cc} -E -traditional-cpp"
1286 cat > conftest.$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1293 { (eval echo configure:1294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1294 ac_err=`grep -v '^ *+' conftest.out`
1295 if test -z "$ac_err"; then
1299 echo "configure: failed program was:" >&5
1300 cat conftest.$ac_ext >&5
1307 ac_cv_prog_CPP="$CPP"
1309 CPP="$ac_cv_prog_CPP"
1311 ac_cv_prog_CPP="$CPP"
1313 echo "$ac_t""$CPP" 1>&6
1315 if test $ac_cv_prog_gcc = yes; then
1316 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1317 echo "configure:1318: checking whether ${CC-cc} needs -traditional" >&5
1318 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 ac_pattern="Autoconf.*'x'"
1322 cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1329 egrep "$ac_pattern" >/dev/null 2>&1; then
1331 ac_cv_prog_gcc_traditional=yes
1334 ac_cv_prog_gcc_traditional=no
1339 if test $ac_cv_prog_gcc_traditional = no; then
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1347 egrep "$ac_pattern" >/dev/null 2>&1; then
1349 ac_cv_prog_gcc_traditional=yes
1356 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1357 if test $ac_cv_prog_gcc_traditional = yes; then
1358 CC="$CC -traditional"
1363 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1364 echo "configure:1365: checking whether ln -s works" >&5
1365 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1369 if ln -s X conftestdata 2>/dev/null
1372 ac_cv_prog_LN_S="ln -s"
1377 LN_S="$ac_cv_prog_LN_S"
1378 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1379 echo "$ac_t""yes" 1>&6
1381 echo "$ac_t""no" 1>&6
1384 # Find a good install program. We prefer a C program (faster),
1385 # so one script is as good as another. But avoid the broken or
1386 # incompatible versions:
1387 # SysV /etc/install, /usr/sbin/install
1388 # SunOS /usr/etc/install
1389 # IRIX /sbin/install
1391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1393 # ./install, which can be erroneously created by make from ./install.sh.
1394 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1395 echo "configure:1396: checking for a BSD compatible install" >&5
1396 if test -z "$INSTALL"; then
1397 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1401 for ac_dir in $PATH; do
1402 # Account for people who put trailing slashes in PATH elements.
1404 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1406 # OSF1 and SCO ODT 3.0 have their own names for install.
1407 for ac_prog in ginstall installbsd scoinst install; do
1408 if test -f $ac_dir/$ac_prog; then
1409 if test $ac_prog = install &&
1410 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1411 # AIX install. It has an incompatible calling convention.
1412 # OSF/1 installbsd also uses dspmsg, but is usable.
1415 ac_cv_path_install="$ac_dir/$ac_prog -c"
1426 if test "${ac_cv_path_install+set}" = set; then
1427 INSTALL="$ac_cv_path_install"
1429 # As a last resort, use the slow shell script. We don't cache a
1430 # path for INSTALL within a source directory, because that will
1431 # break other packages using the cache if that directory is
1432 # removed, or if the path is relative.
1433 INSTALL="$ac_install_sh"
1436 echo "$ac_t""$INSTALL" 1>&6
1438 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1439 # It thinks the first close brace ends the variable substitution.
1440 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1442 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1444 # Extract the first word of "ranlib", so it can be a program name with args.
1445 set dummy ranlib; ac_word=$2
1446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1447 echo "configure:1448: checking for $ac_word" >&5
1448 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1449 echo $ac_n "(cached) $ac_c" 1>&6
1451 if test -n "$RANLIB"; then
1452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1455 for ac_dir in $PATH; do
1456 test -z "$ac_dir" && ac_dir=.
1457 if test -f $ac_dir/$ac_word; then
1458 ac_cv_prog_RANLIB="ranlib"
1463 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1466 RANLIB="$ac_cv_prog_RANLIB"
1467 if test -n "$RANLIB"; then
1468 echo "$ac_t""$RANLIB" 1>&6
1470 echo "$ac_t""no" 1>&6
1473 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1474 echo "configure:1475: checking whether ${MAKE-make} sets \${MAKE}" >&5
1475 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1476 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1479 cat > conftestmake <<\EOF
1481 @echo 'ac_maketemp="${MAKE}"'
1483 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1484 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1485 if test -n "$ac_maketemp"; then
1486 eval ac_cv_prog_make_${ac_make}_set=yes
1488 eval ac_cv_prog_make_${ac_make}_set=no
1492 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1493 echo "$ac_t""yes" 1>&6
1496 echo "$ac_t""no" 1>&6
1497 SET_MAKE="MAKE=${MAKE-make}"
1501 # Extract the first word of "sendmail", so it can be a program name with args.
1502 set dummy sendmail; ac_word=$2
1503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1504 echo "configure:1505: checking for $ac_word" >&5
1505 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1510 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
1513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1514 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
1515 test -z "$ac_dir" && ac_dir=.
1516 if test -f $ac_dir/$ac_word; then
1517 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
1522 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
1526 SENDMAIL="$ac_cv_path_SENDMAIL"
1527 if test -n "$SENDMAIL"; then
1528 echo "$ac_t""$SENDMAIL" 1>&6
1530 echo "$ac_t""no" 1>&6
1533 # Extract the first word of "vi", so it can be a program name with args.
1534 set dummy vi; ac_word=$2
1535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1536 echo "configure:1537: checking for $ac_word" >&5
1537 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1542 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
1545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1546 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1547 test -z "$ac_dir" && ac_dir=.
1548 if test -f $ac_dir/$ac_word; then
1549 ac_cv_path_EDITOR="$ac_dir/$ac_word"
1554 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
1558 EDITOR="$ac_cv_path_EDITOR"
1559 if test -n "$EDITOR"; then
1560 echo "$ac_t""$EDITOR" 1>&6
1562 echo "$ac_t""no" 1>&6
1565 # Extract the first word of "finger", so it can be a program name with args.
1566 set dummy finger; ac_word=$2
1567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1568 echo "configure:1569: checking for $ac_word" >&5
1569 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1574 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
1577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1578 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1579 test -z "$ac_dir" && ac_dir=.
1580 if test -f $ac_dir/$ac_word; then
1581 ac_cv_path_FINGER="$ac_dir/$ac_word"
1586 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
1590 FINGER="$ac_cv_path_FINGER"
1591 if test -n "$FINGER"; then
1592 echo "$ac_t""$FINGER" 1>&6
1594 echo "$ac_t""no" 1>&6
1600 if test "$opt_thread" = "no" ; then
1601 LTHREAD_DEFS="-DNO_THREADS"
1604 for ac_hdr in pthread.h sched.h
1606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1608 echo "configure:1609: checking for $ac_hdr" >&5
1609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1618 { (eval echo configure:1619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1619 ac_err=`grep -v '^ *+' conftest.out`
1620 if test -z "$ac_err"; then
1622 eval "ac_cv_header_$ac_safe=yes"
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1628 eval "ac_cv_header_$ac_safe=no"
1632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1633 echo "$ac_t""yes" 1>&6
1634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1635 cat >> confdefs.h <<EOF
1636 #define $ac_tr_hdr 1
1640 echo "$ac_t""no" 1>&6
1645 if test "$ac_cv_header_pthread_h" = yes ; then
1646 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
1647 echo "configure:1648: checking POSIX thread version" >&5
1648 if eval "test \"`echo '$''{'cf_cv_pthread_version'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1656 #include <pthread.h>
1657 /* this check could be improved */
1658 #ifdef PTHREAD_ONCE_INIT
1663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1664 egrep "final" >/dev/null 2>&1; then
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1678 #include <pthread.h>
1679 /* this check could be improved */
1680 #ifdef pthread_once_init
1685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1686 egrep "draft4" >/dev/null 2>&1; then
1696 if test $pthread_final = yes -a $pthread_draft4 = no; then
1697 cf_cv_pthread_version=final
1698 elif test $pthread_final = no -a $pthread_draft4 = yes; then
1699 cf_cv_pthread_version=draft4
1701 cf_cv_pthread_version=unknown
1706 echo "$ac_t""$cf_cv_pthread_version" 1>&6
1708 if test $cf_cv_pthread_version = final ; then
1709 LTHREAD_DEFS="$LTHREAD_DEFS -DPOSIX_THREADS"
1710 elif test $cf_cv_pthread_version = draft4 ; then
1711 LTHREAD_DEFS="$LTHREAD_DEFS -DTHREAD_MIT_PTHREADS"
1713 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
1716 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
1717 echo "configure:1718: checking for LinuxThreads" >&5
1718 if eval "test \"`echo '$''{'cf_cv_linux_threads'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1722 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
1723 if test "$res" -gt 0 ; then
1724 cf_cv_linux_threads=yes
1726 cf_cv_linux_threads=no
1731 echo "$ac_t""$cf_cv_linux_threads" 1>&6
1733 if test $cf_cv_linux_threads = yes ; then
1734 LTHREAD_DEFS="$LTHREAD_DEFS -DHAVE_LINUX_THREADS"
1738 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
1739 echo "configure:1740: checking for pthread_create" >&5
1740 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1743 cat > conftest.$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1746 /* System header to define __stub macros and hopefully few prototypes,
1747 which can conflict with char pthread_create(); below. */
1749 /* Override any gcc2 internal prototype to avoid an error. */
1750 /* We use char because int might match the return type of a gcc2
1751 builtin and then its argument prototype would still apply. */
1752 char pthread_create();
1756 /* The GNU C library defines this for functions which it implements
1757 to always fail with ENOSYS. Some functions are actually named
1758 something starting with __ and the normal name is an alias. */
1759 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
1767 if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1769 eval "ac_cv_func_pthread_create=yes"
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1774 eval "ac_cv_func_pthread_create=no"
1779 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
1780 echo "$ac_t""yes" 1>&6
1783 echo "$ac_t""no" 1>&6
1788 if test $pthread_link = no ; then
1789 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
1790 echo "configure:1791: checking for pthread_create with -pthread" >&5
1791 if eval "test \"`echo '$''{'cf_cv_pthread_flag'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1796 LIBS="-pthread $LIBS"
1797 cat > conftest.$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1800 #include <pthread.h>
1803 pthread_create((pthread_t*) 0,
1804 (pthread_attr_t*) 0, 0, 0);
1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1810 cf_cv_pthread_flag=yes
1812 echo "configure: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1815 cf_cv_pthread_flag=no
1822 echo "$ac_t""$cf_cv_pthread_flag" 1>&6
1824 if test $cf_cv_pthread_flag = yes ; then
1825 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
1830 if test $pthread_link = no ; then
1832 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1833 echo "configure:1834: checking for pthread_create in -lpthread" >&5
1834 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 ac_save_LIBS="$LIBS"
1839 LIBS="-lpthread $LIBS"
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 /* Override any gcc2 internal prototype to avoid an error. */
1844 /* We use char because int might match the return type of a gcc2
1845 builtin and then its argument prototype would still apply. */
1846 char pthread_create();
1852 if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1854 eval "ac_cv_lib_$ac_lib_var=yes"
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1859 eval "ac_cv_lib_$ac_lib_var=no"
1862 LIBS="$ac_save_LIBS"
1865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1866 echo "$ac_t""yes" 1>&6
1869 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
1871 echo "$ac_t""no" 1>&6
1877 if test $pthread_link = no ; then
1879 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1880 echo "configure:1881: checking for pthread_create in -lc_r" >&5
1881 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
1882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 ac_save_LIBS="$LIBS"
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 /* Override any gcc2 internal prototype to avoid an error. */
1891 /* We use char because int might match the return type of a gcc2
1892 builtin and then its argument prototype would still apply. */
1893 char pthread_create();
1899 if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1901 eval "ac_cv_lib_$ac_lib_var=yes"
1903 echo "configure: failed program was:" >&5
1904 cat conftest.$ac_ext >&5
1906 eval "ac_cv_lib_$ac_lib_var=no"
1909 LIBS="$ac_save_LIBS"
1912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1913 echo "$ac_t""yes" 1>&6
1916 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
1918 echo "$ac_t""no" 1>&6
1924 if test $pthread_link = no ; then
1926 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1927 echo "configure:1928: checking for pthread_create in -lpthread" >&5
1928 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 ac_save_LIBS="$LIBS"
1933 LIBS="-lpthread -lmach -lexc -lc $LIBS"
1934 cat > conftest.$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1937 /* Override any gcc2 internal prototype to avoid an error. */
1938 /* We use char because int might match the return type of a gcc2
1939 builtin and then its argument prototype would still apply. */
1940 char pthread_create();
1946 if { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1948 eval "ac_cv_lib_$ac_lib_var=yes"
1950 echo "configure: failed program was:" >&5
1951 cat conftest.$ac_ext >&5
1953 eval "ac_cv_lib_$ac_lib_var=no"
1956 LIBS="$ac_save_LIBS"
1959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1960 echo "$ac_t""yes" 1>&6
1963 LTHREAD_DEFS="$LTHREAD_DEFS -DDEC_THREADS"
1964 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc"
1966 echo "$ac_t""no" 1>&6
1973 LTHREAD_DEFS="-DNO_THREADS"
1977 # check for strtok_r (and presumely other reentrant functions)
1979 LIBS="$save_LIBS $LTHREAD_LIBS"
1980 echo $ac_n "checking for strtok_r in -lpthread""... $ac_c" 1>&6
1981 echo "configure:1982: checking for strtok_r in -lpthread" >&5
1982 ac_lib_var=`echo pthread'_'strtok_r | sed 'y%./+-%__p_%'`
1983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 ac_save_LIBS="$LIBS"
1987 LIBS="-lpthread $LIBS"
1988 cat > conftest.$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 /* Override any gcc2 internal prototype to avoid an error. */
1992 /* We use char because int might match the return type of a gcc2
1993 builtin and then its argument prototype would still apply. */
2000 if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2002 eval "ac_cv_lib_$ac_lib_var=yes"
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2007 eval "ac_cv_lib_$ac_lib_var=no"
2010 LIBS="$ac_save_LIBS"
2013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2016 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2017 cat >> confdefs.h <<EOF
2018 #define $ac_tr_lib 1
2021 LIBS="-lpthread $LIBS"
2024 echo "$ac_t""no" 1>&6
2028 if test $ac_cv_lib_pthread_strtok_r = no ; then
2029 LIBS="$save_LIBS $LTHREAD_LIBS"
2030 echo $ac_n "checking for strtok_r in -lc_r""... $ac_c" 1>&6
2031 echo "configure:2032: checking for strtok_r in -lc_r" >&5
2032 ac_lib_var=`echo c_r'_'strtok_r | sed 'y%./+-%__p_%'`
2033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 ac_save_LIBS="$LIBS"
2038 cat > conftest.$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2041 /* Override any gcc2 internal prototype to avoid an error. */
2042 /* We use char because int might match the return type of a gcc2
2043 builtin and then its argument prototype would still apply. */
2050 if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2052 eval "ac_cv_lib_$ac_lib_var=yes"
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 eval "ac_cv_lib_$ac_lib_var=no"
2060 LIBS="$ac_save_LIBS"
2063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2064 echo "$ac_t""yes" 1>&6
2065 ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2066 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2067 cat >> confdefs.h <<EOF
2068 #define $ac_tr_lib 1
2074 echo "$ac_t""no" 1>&6
2077 for ac_func in strtok_r sched_yield
2079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2080 echo "configure:2081: checking for $ac_func" >&5
2081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2084 cat > conftest.$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2087 /* System header to define __stub macros and hopefully few prototypes,
2088 which can conflict with char $ac_func(); below. */
2090 /* Override any gcc2 internal prototype to avoid an error. */
2091 /* We use char because int might match the return type of a gcc2
2092 builtin and then its argument prototype would still apply. */
2097 /* The GNU C library defines this for functions which it implements
2098 to always fail with ENOSYS. Some functions are actually named
2099 something starting with __ and the normal name is an alias. */
2100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2108 if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2110 eval "ac_cv_func_$ac_func=yes"
2112 echo "configure: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2115 eval "ac_cv_func_$ac_func=no"
2120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2121 echo "$ac_t""yes" 1>&6
2122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2123 cat >> confdefs.h <<EOF
2124 #define $ac_tr_func 1
2128 echo "$ac_t""no" 1>&6
2132 if test $ac_cv_lib_c_r_strtok_r = yes ; then
2133 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
2136 for ac_func in strtok_r sched_yield
2138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2139 echo "configure:2140: checking for $ac_func" >&5
2140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 cat > conftest.$ac_ext <<EOF
2144 #line 2145 "configure"
2145 #include "confdefs.h"
2146 /* System header to define __stub macros and hopefully few prototypes,
2147 which can conflict with char $ac_func(); below. */
2149 /* Override any gcc2 internal prototype to avoid an error. */
2150 /* We use char because int might match the return type of a gcc2
2151 builtin and then its argument prototype would still apply. */
2156 /* The GNU C library defines this for functions which it implements
2157 to always fail with ENOSYS. Some functions are actually named
2158 something starting with __ and the normal name is an alias. */
2159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2169 eval "ac_cv_func_$ac_func=yes"
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2174 eval "ac_cv_func_$ac_func=no"
2179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2182 cat >> confdefs.h <<EOF
2183 #define $ac_tr_func 1
2187 echo "$ac_t""no" 1>&6
2197 if test "$SLAPD_LDBM" = "yes" ; then
2198 if test $ldbm_prefer = any -o $ldbm_prefer = dbbtree \
2199 -o $ldbm_prefer = dbhash ; then
2200 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
2201 echo "configure:2202: checking for dbopen" >&5
2202 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2208 /* System header to define __stub macros and hopefully few prototypes,
2209 which can conflict with char dbopen(); below. */
2211 /* Override any gcc2 internal prototype to avoid an error. */
2212 /* We use char because int might match the return type of a gcc2
2213 builtin and then its argument prototype would still apply. */
2218 /* The GNU C library defines this for functions which it implements
2219 to always fail with ENOSYS. Some functions are actually named
2220 something starting with __ and the normal name is an alias. */
2221 #if defined (__stub_dbopen) || defined (__stub___dbopen)
2229 if { (eval echo configure:2230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2231 eval "ac_cv_func_dbopen=yes"
2233 echo "configure: failed program was:" >&5
2234 cat conftest.$ac_ext >&5
2236 eval "ac_cv_func_dbopen=no"
2241 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
2242 echo "$ac_t""yes" 1>&6
2244 ldbm_use=$ldbm_prefer
2247 echo "$ac_t""no" 1>&6
2249 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
2250 echo "configure:2251: checking for dbopen in -ldb" >&5
2251 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
2252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 ac_save_LIBS="$LIBS"
2257 cat > conftest.$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2260 /* Override any gcc2 internal prototype to avoid an error. */
2261 /* We use char because int might match the return type of a gcc2
2262 builtin and then its argument prototype would still apply. */
2269 if { (eval echo configure:2270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2271 eval "ac_cv_lib_$ac_lib_var=yes"
2273 echo "configure: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2276 eval "ac_cv_lib_$ac_lib_var=no"
2279 LIBS="$ac_save_LIBS"
2282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2283 echo "$ac_t""yes" 1>&6
2285 ldbm_use=$ldbm_prefer
2287 LDBM_LIBS="$LDBM_LIBS -ldb"
2290 echo "$ac_t""no" 1>&6
2297 if test $ldbm_prefer = found ; then
2298 if test $ldbm_use = dbhash ; then
2299 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBHASH"
2301 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBBTREE"
2305 echo $ac_n "checking for db2""... $ac_c" 1>&6
2306 echo "configure:2307: checking for db2" >&5
2307 if eval "test \"`echo '$''{'cf_cv_db2'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2311 cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2316 /* this check could be improved */
2317 #ifdef DB_VERSION_MAJOR
2318 #if DB_VERSION_MAJOR == 2
2324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2325 egrep "__db_version_2" >/dev/null 2>&1; then
2336 echo "$ac_t""$cf_cv_db2" 1>&6
2338 if test $cf_cv_db2 = yes ; then
2339 if test $opt_db2 = yes ; then
2340 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2"
2342 for ac_hdr in db_185.h
2344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_hdr" >&5
2347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2356 { (eval echo configure:2357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2357 ac_err=`grep -v '^ *+' conftest.out`
2358 if test -z "$ac_err"; then
2360 eval "ac_cv_header_$ac_safe=yes"
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2366 eval "ac_cv_header_$ac_safe=no"
2370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2373 cat >> confdefs.h <<EOF
2374 #define $ac_tr_hdr 1
2378 echo "$ac_t""no" 1>&6
2382 if test $ac_cv_header_db_185_h = no ; then
2383 { echo "configure: error: select --with-db2 or install db2 with 1.85 compatibility" 1>&2; exit 1; }
2386 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2_COMPAT185"
2389 if test $opt_db2 = yes ; then
2390 { echo "configure: error: could not local DB2" 1>&2; exit 1; }
2395 if test $ldbm_prefer = any -o $ldbm_prefer = gdbm ; then
2396 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
2397 echo "configure:2398: checking for gdbm_open in -lgdbm" >&5
2398 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
2399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 ac_save_LIBS="$LIBS"
2404 cat > conftest.$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2407 /* Override any gcc2 internal prototype to avoid an error. */
2408 /* We use char because int might match the return type of a gcc2
2409 builtin and then its argument prototype would still apply. */
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2418 eval "ac_cv_lib_$ac_lib_var=yes"
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 eval "ac_cv_lib_$ac_lib_var=no"
2426 LIBS="$ac_save_LIBS"
2429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2430 echo "$ac_t""yes" 1>&6
2432 ldbm_use=$ldbm_prefer
2434 LDBM_LIBS="$LDBM_LIBS -lgdbm"
2435 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_GDBM"
2438 echo "$ac_t""no" 1>&6
2442 if test $ldbm_prefer = any -o $ldbm_prefer = ndbm ; then
2443 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
2444 echo "configure:2445: checking for dbm_open in -ldbm" >&5
2445 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
2446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 ac_save_LIBS="$LIBS"
2451 cat > conftest.$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2454 /* Override any gcc2 internal prototype to avoid an error. */
2455 /* We use char because int might match the return type of a gcc2
2456 builtin and then its argument prototype would still apply. */
2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2465 eval "ac_cv_lib_$ac_lib_var=yes"
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2470 eval "ac_cv_lib_$ac_lib_var=no"
2473 LIBS="$ac_save_LIBS"
2476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2481 LDBM_LIBS="$LDBM_LIBS -ldbm"
2482 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_NDBM"
2485 echo "$ac_t""no" 1>&6
2490 if test $ldbm_prefer != found ; then
2491 { echo "configure: error: could not find suitable db for $ldbm_prefer backend" 1>&2; exit 1; }
2494 if test $ldbm_use = ndbm ; then
2495 echo "configure: warning: LDBM using NDBM" 1>&2
2499 if test "$SLAPD_TCP_WRAPPERS" = "yes" ; then
2500 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
2501 echo "configure:2502: checking for hosts_access in -lwrap" >&5
2502 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
2503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 ac_save_LIBS="$LIBS"
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 /* Override any gcc2 internal prototype to avoid an error. */
2512 /* We use char because int might match the return type of a gcc2
2513 builtin and then its argument prototype would still apply. */
2514 char hosts_access();
2520 if { (eval echo configure:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2522 eval "ac_cv_lib_$ac_lib_var=yes"
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2527 eval "ac_cv_lib_$ac_lib_var=no"
2530 LIBS="$ac_save_LIBS"
2533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2534 echo "$ac_t""yes" 1>&6
2536 SLAPD_DEFS="$SLAPD_DEFS -DTCP_WRAPPERS"
2537 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
2540 echo "$ac_t""no" 1>&6
2545 # ud needs termcap (should insert check here)
2546 LIBTERMCAP="-ltermcap"
2549 # FreeBSD (and others) have crypt(3) in -lcrypt
2550 if test "$SLAPD_CRYPT" = "yes" ; then
2551 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2552 echo "configure:2553: checking for crypt" >&5
2553 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2556 cat > conftest.$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char crypt(); below. */
2562 /* Override any gcc2 internal prototype to avoid an error. */
2563 /* We use char because int might match the return type of a gcc2
2564 builtin and then its argument prototype would still apply. */
2569 /* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572 #if defined (__stub_crypt) || defined (__stub___crypt)
2580 if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2582 eval "ac_cv_func_crypt=yes"
2584 echo "configure: failed program was:" >&5
2585 cat conftest.$ac_ext >&5
2587 eval "ac_cv_func_crypt=no"
2592 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2593 echo "$ac_t""yes" 1>&6
2596 echo "$ac_t""no" 1>&6
2598 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2599 echo "configure:2600: checking for crypt in -lcrypt" >&5
2600 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 ac_save_LIBS="$LIBS"
2605 LIBS="-lcrypt $LIBS"
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 /* Override any gcc2 internal prototype to avoid an error. */
2610 /* We use char because int might match the return type of a gcc2
2611 builtin and then its argument prototype would still apply. */
2618 if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2620 eval "ac_cv_lib_$ac_lib_var=yes"
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2625 eval "ac_cv_lib_$ac_lib_var=no"
2628 LIBS="$ac_save_LIBS"
2631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2633 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
2636 echo "$ac_t""no" 1>&6
2643 if test $have_crypt = yes ; then
2644 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_CRYPT"
2646 echo "configure: warning: could not find crypt" 1>&2
2651 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2654 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2655 echo "configure:2656: checking for $ac_hdr that defines DIR" >&5
2656 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 #include <sys/types.h>
2668 if { (eval echo configure:2669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2670 eval "ac_cv_header_dirent_$ac_safe=yes"
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2675 eval "ac_cv_header_dirent_$ac_safe=no"
2679 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2682 cat >> confdefs.h <<EOF
2683 #define $ac_tr_hdr 1
2685 ac_header_dirent=$ac_hdr; break
2687 echo "$ac_t""no" 1>&6
2690 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2691 if test $ac_header_dirent = dirent.h; then
2692 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2693 echo "configure:2694: checking for opendir in -ldir" >&5
2694 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 ac_save_LIBS="$LIBS"
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 /* Override any gcc2 internal prototype to avoid an error. */
2704 /* We use char because int might match the return type of a gcc2
2705 builtin and then its argument prototype would still apply. */
2712 if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2714 eval "ac_cv_lib_$ac_lib_var=yes"
2716 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2719 eval "ac_cv_lib_$ac_lib_var=no"
2722 LIBS="$ac_save_LIBS"
2725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2729 echo "$ac_t""no" 1>&6
2733 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2734 echo "configure:2735: checking for opendir in -lx" >&5
2735 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 ac_save_LIBS="$LIBS"
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 /* Override any gcc2 internal prototype to avoid an error. */
2745 /* We use char because int might match the return type of a gcc2
2746 builtin and then its argument prototype would still apply. */
2753 if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2755 eval "ac_cv_lib_$ac_lib_var=yes"
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2760 eval "ac_cv_lib_$ac_lib_var=no"
2763 LIBS="$ac_save_LIBS"
2766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2767 echo "$ac_t""yes" 1>&6
2770 echo "$ac_t""no" 1>&6
2775 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2776 echo "configure:2777: checking for ANSI C header files" >&5
2777 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 cat > conftest.$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2789 { (eval echo configure:2790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2790 ac_err=`grep -v '^ *+' conftest.out`
2791 if test -z "$ac_err"; then
2793 ac_cv_header_stdc=yes
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2799 ac_cv_header_stdc=no
2803 if test $ac_cv_header_stdc = yes; then
2804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2811 egrep "memchr" >/dev/null 2>&1; then
2815 ac_cv_header_stdc=no
2821 if test $ac_cv_header_stdc = yes; then
2822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2829 egrep "free" >/dev/null 2>&1; then
2833 ac_cv_header_stdc=no
2839 if test $ac_cv_header_stdc = yes; then
2840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2841 if test "$cross_compiling" = yes; then
2844 cat > conftest.$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2848 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2849 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2851 int main () { int i; for (i = 0; i < 256; i++)
2852 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2856 if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2863 ac_cv_header_stdc=no
2871 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2872 if test $ac_cv_header_stdc = yes; then
2873 cat >> confdefs.h <<\EOF
2874 #define STDC_HEADERS 1
2879 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2880 echo "configure:2881: checking for sys/wait.h that is POSIX.1 compatible" >&5
2881 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 cat > conftest.$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2887 #include <sys/types.h>
2888 #include <sys/wait.h>
2890 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2893 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2898 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2901 if { (eval echo configure:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2903 ac_cv_header_sys_wait_h=yes
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2908 ac_cv_header_sys_wait_h=no
2913 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2914 if test $ac_cv_header_sys_wait_h = yes; then
2915 cat >> confdefs.h <<\EOF
2916 #define HAVE_SYS_WAIT_H 1
2935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2937 echo "configure:2938: checking for $ac_hdr" >&5
2938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2947 { (eval echo configure:2948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2948 ac_err=`grep -v '^ *+' conftest.out`
2949 if test -z "$ac_err"; then
2951 eval "ac_cv_header_$ac_safe=yes"
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2957 eval "ac_cv_header_$ac_safe=no"
2961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2962 echo "$ac_t""yes" 1>&6
2963 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2964 cat >> confdefs.h <<EOF
2965 #define $ac_tr_hdr 1
2969 echo "$ac_t""no" 1>&6
2974 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2975 echo "configure:2976: checking for uid_t in sys/types.h" >&5
2976 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 #include <sys/types.h>
2984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2985 egrep "uid_t" >/dev/null 2>&1; then
2987 ac_cv_type_uid_t=yes
2996 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2997 if test $ac_cv_type_uid_t = no; then
2998 cat >> confdefs.h <<\EOF
3002 cat >> confdefs.h <<\EOF
3008 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3009 echo "configure:3010: checking type of array argument to getgroups" >&5
3010 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 if test "$cross_compiling" = yes; then
3014 ac_cv_type_getgroups=cross
3016 cat > conftest.$ac_ext <<EOF
3017 #line 3018 "configure"
3018 #include "confdefs.h"
3020 /* Thanks to Mike Rendell for this test. */
3021 #include <sys/types.h>
3024 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3029 union { gid_t gval; long lval; } val;
3032 for (i = 0; i < NGID; i++)
3033 gidset[i] = val.gval;
3034 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3036 /* Exit non-zero if getgroups seems to require an array of ints. This
3037 happens when gid_t is short but getgroups modifies an array of ints. */
3038 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3042 if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3044 ac_cv_type_getgroups=gid_t
3046 echo "configure: failed program was:" >&5
3047 cat conftest.$ac_ext >&5
3049 ac_cv_type_getgroups=int
3054 if test $ac_cv_type_getgroups = cross; then
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3061 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3063 ac_cv_type_getgroups=gid_t
3066 ac_cv_type_getgroups=int
3073 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3074 cat >> confdefs.h <<EOF
3075 #define GETGROUPS_T $ac_cv_type_getgroups
3079 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3080 echo "configure:3081: checking for mode_t" >&5
3081 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3087 #include <sys/types.h>
3093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3094 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3096 ac_cv_type_mode_t=yes
3099 ac_cv_type_mode_t=no
3104 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3105 if test $ac_cv_type_mode_t = no; then
3106 cat >> confdefs.h <<\EOF
3112 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3113 echo "configure:3114: checking for off_t" >&5
3114 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 #include <sys/types.h>
3126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3127 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3129 ac_cv_type_off_t=yes
3137 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3138 if test $ac_cv_type_off_t = no; then
3139 cat >> confdefs.h <<\EOF
3145 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3146 echo "configure:3147: checking for pid_t" >&5
3147 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3153 #include <sys/types.h>
3159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3162 ac_cv_type_pid_t=yes
3170 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3171 if test $ac_cv_type_pid_t = no; then
3172 cat >> confdefs.h <<\EOF
3178 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3179 echo "configure:3180: checking return type of signal handlers" >&5
3180 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186 #include <sys/types.h>
3192 extern "C" void (*signal (int, void (*)(int)))(int);
3194 void (*signal ()) ();
3201 if { (eval echo configure:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203 ac_cv_type_signal=void
3205 echo "configure: failed program was:" >&5
3206 cat conftest.$ac_ext >&5
3208 ac_cv_type_signal=int
3213 echo "$ac_t""$ac_cv_type_signal" 1>&6
3214 cat >> confdefs.h <<EOF
3215 #define RETSIGTYPE $ac_cv_type_signal
3219 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3220 echo "configure:3221: checking for size_t" >&5
3221 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 #include <sys/types.h>
3233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3234 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3236 ac_cv_type_size_t=yes
3239 ac_cv_type_size_t=no
3244 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3245 if test $ac_cv_type_size_t = no; then
3246 cat >> confdefs.h <<\EOF
3247 #define size_t unsigned
3252 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3253 echo "configure:3254: checking for uid_t in sys/types.h" >&5
3254 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3255 echo $ac_n "(cached) $ac_c" 1>&6
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 #include <sys/types.h>
3262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263 egrep "uid_t" >/dev/null 2>&1; then
3265 ac_cv_type_uid_t=yes
3274 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3275 if test $ac_cv_type_uid_t = no; then
3276 cat >> confdefs.h <<\EOF
3280 cat >> confdefs.h <<\EOF
3286 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3287 echo "configure:3288: checking for st_blksize in struct stat" >&5
3288 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 #include <sys/types.h>
3295 #include <sys/stat.h>
3297 struct stat s; s.st_blksize;
3300 if { (eval echo configure:3301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3302 ac_cv_struct_st_blksize=yes
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 ac_cv_struct_st_blksize=no
3312 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3313 if test $ac_cv_struct_st_blksize = yes; then
3314 cat >> confdefs.h <<\EOF
3315 #define HAVE_ST_BLKSIZE 1
3320 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3321 echo "configure:3322: checking whether time.h and sys/time.h may both be included" >&5
3322 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <sys/types.h>
3329 #include <sys/time.h>
3335 if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3337 ac_cv_header_time=yes
3339 echo "configure: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3342 ac_cv_header_time=no
3347 echo "$ac_t""$ac_cv_header_time" 1>&6
3348 if test $ac_cv_header_time = yes; then
3349 cat >> confdefs.h <<\EOF
3350 #define TIME_WITH_SYS_TIME 1
3355 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3356 echo "configure:3357: checking whether struct tm is in sys/time.h or time.h" >&5
3357 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 #include <sys/types.h>
3366 struct tm *tp; tp->tm_sec;
3369 if { (eval echo configure:3370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3371 ac_cv_struct_tm=time.h
3373 echo "configure: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3376 ac_cv_struct_tm=sys/time.h
3381 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3382 if test $ac_cv_struct_tm = sys/time.h; then
3383 cat >> confdefs.h <<\EOF
3384 #define TM_IN_SYS_TIME 1
3390 echo $ac_n "checking for working const""... $ac_c" 1>&6
3391 echo "configure:3392: checking for working const" >&5
3392 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3401 /* Ultrix mips cc rejects this. */
3402 typedef int charset[2]; const charset x;
3403 /* SunOS 4.1.1 cc rejects this. */
3404 char const *const *ccp;
3406 /* NEC SVR4.0.2 mips cc rejects this. */
3407 struct point {int x, y;};
3408 static struct point const zero = {0,0};
3409 /* AIX XL C 1.02.0.0 rejects this.
3410 It does not let you subtract one const X* pointer from another in an arm
3411 of an if-expression whose if-part is not a constant expression */
3412 const char *g = "string";
3413 ccp = &g + (g ? g-g : 0);
3414 /* HPUX 7.0 cc rejects these. */
3417 ccp = (char const *const *) p;
3418 { /* SCO 3.2v4 cc rejects this. */
3420 char const *s = 0 ? (char *) 0 : (char const *) 0;
3424 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3426 const int *foo = &x[0];
3429 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3430 typedef const int *iptr;
3434 { /* AIX XL C 1.02.0.0 rejects this saying
3435 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3436 struct s { int j; const int *ap[3]; };
3437 struct s *b; b->j = 5;
3439 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3445 if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3457 echo "$ac_t""$ac_cv_c_const" 1>&6
3458 if test $ac_cv_c_const = no; then
3459 cat >> confdefs.h <<\EOF
3466 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3467 echo "configure:3468: checking for 8-bit clean memcmp" >&5
3468 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 if test "$cross_compiling" = yes; then
3472 ac_cv_func_memcmp_clean=no
3474 cat > conftest.$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3480 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3481 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3485 if { (eval echo configure:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3487 ac_cv_func_memcmp_clean=yes
3489 echo "configure: failed program was:" >&5
3490 cat conftest.$ac_ext >&5
3492 ac_cv_func_memcmp_clean=no
3499 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3500 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3502 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3503 echo "configure:3504: checking return type of signal handlers" >&5
3504 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 #include <sys/types.h>
3516 extern "C" void (*signal (int, void (*)(int)))(int);
3518 void (*signal ()) ();
3525 if { (eval echo configure:3526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3527 ac_cv_type_signal=void
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3532 ac_cv_type_signal=int
3537 echo "$ac_t""$ac_cv_type_signal" 1>&6
3538 cat >> confdefs.h <<EOF
3539 #define RETSIGTYPE $ac_cv_type_signal
3543 echo $ac_n "checking for strftime""... $ac_c" 1>&6
3544 echo "configure:3545: checking for strftime" >&5
3545 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 /* System header to define __stub macros and hopefully few prototypes,
3552 which can conflict with char strftime(); below. */
3554 /* Override any gcc2 internal prototype to avoid an error. */
3555 /* We use char because int might match the return type of a gcc2
3556 builtin and then its argument prototype would still apply. */
3561 /* The GNU C library defines this for functions which it implements
3562 to always fail with ENOSYS. Some functions are actually named
3563 something starting with __ and the normal name is an alias. */
3564 #if defined (__stub_strftime) || defined (__stub___strftime)
3572 if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3574 eval "ac_cv_func_strftime=yes"
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3579 eval "ac_cv_func_strftime=no"
3584 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
3585 echo "$ac_t""yes" 1>&6
3586 cat >> confdefs.h <<\EOF
3587 #define HAVE_STRFTIME 1
3591 echo "$ac_t""no" 1>&6
3592 # strftime is in -lintl on SCO UNIX.
3593 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
3594 echo "configure:3595: checking for strftime in -lintl" >&5
3595 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
3596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3599 ac_save_LIBS="$LIBS"
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3604 /* Override any gcc2 internal prototype to avoid an error. */
3605 /* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3613 if { (eval echo configure:3614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3615 eval "ac_cv_lib_$ac_lib_var=yes"
3617 echo "configure: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3620 eval "ac_cv_lib_$ac_lib_var=no"
3623 LIBS="$ac_save_LIBS"
3626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3627 echo "$ac_t""yes" 1>&6
3628 cat >> confdefs.h <<\EOF
3629 #define HAVE_STRFTIME 1
3634 echo "$ac_t""no" 1>&6
3639 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3640 echo "configure:3641: checking for vprintf" >&5
3641 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3642 echo $ac_n "(cached) $ac_c" 1>&6
3644 cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3647 /* System header to define __stub macros and hopefully few prototypes,
3648 which can conflict with char vprintf(); below. */
3650 /* Override any gcc2 internal prototype to avoid an error. */
3651 /* We use char because int might match the return type of a gcc2
3652 builtin and then its argument prototype would still apply. */
3657 /* The GNU C library defines this for functions which it implements
3658 to always fail with ENOSYS. Some functions are actually named
3659 something starting with __ and the normal name is an alias. */
3660 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3668 if { (eval echo configure:3669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3670 eval "ac_cv_func_vprintf=yes"
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3675 eval "ac_cv_func_vprintf=no"
3680 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3681 echo "$ac_t""yes" 1>&6
3682 cat >> confdefs.h <<\EOF
3683 #define HAVE_VPRINTF 1
3687 echo "$ac_t""no" 1>&6
3690 if test "$ac_cv_func_vprintf" != yes; then
3691 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3692 echo "configure:3693: checking for _doprnt" >&5
3693 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 /* System header to define __stub macros and hopefully few prototypes,
3700 which can conflict with char _doprnt(); below. */
3702 /* Override any gcc2 internal prototype to avoid an error. */
3703 /* We use char because int might match the return type of a gcc2
3704 builtin and then its argument prototype would still apply. */
3709 /* The GNU C library defines this for functions which it implements
3710 to always fail with ENOSYS. Some functions are actually named
3711 something starting with __ and the normal name is an alias. */
3712 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3720 if { (eval echo configure:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3722 eval "ac_cv_func__doprnt=yes"
3724 echo "configure: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3727 eval "ac_cv_func__doprnt=no"
3732 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3733 echo "$ac_t""yes" 1>&6
3734 cat >> confdefs.h <<\EOF
3735 #define HAVE_DOPRNT 1
3739 echo "$ac_t""no" 1>&6
3744 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
3745 echo "configure:3746: checking for wait3 that fills in rusage" >&5
3746 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 if test "$cross_compiling" = yes; then
3750 ac_cv_func_wait3_rusage=no
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3755 #include <sys/types.h>
3756 #include <sys/time.h>
3757 #include <sys/resource.h>
3759 /* HP-UX has wait3 but does not fill in rusage at all. */
3763 /* Use a field that we can force nonzero --
3764 voluntary context switches.
3765 For systems like NeXT and OSF/1 that don't set it,
3766 also use the system CPU time. And page faults (I/O) for Linux. */
3768 r.ru_stime.tv_sec = 0;
3769 r.ru_stime.tv_usec = 0;
3770 r.ru_majflt = r.ru_minflt = 0;
3772 case 0: /* Child. */
3773 sleep(1); /* Give up the CPU. */
3775 case -1: _exit(0); /* What can we do? */
3776 default: /* Parent. */
3778 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
3779 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
3780 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
3784 if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3786 ac_cv_func_wait3_rusage=yes
3788 echo "configure: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3791 ac_cv_func_wait3_rusage=no
3798 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
3799 if test $ac_cv_func_wait3_rusage = yes; then
3800 cat >> confdefs.h <<\EOF
3801 #define HAVE_WAIT3 1
3824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3825 echo "configure:3826: checking for $ac_func" >&5
3826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3832 /* System header to define __stub macros and hopefully few prototypes,
3833 which can conflict with char $ac_func(); below. */
3835 /* Override any gcc2 internal prototype to avoid an error. */
3836 /* We use char because int might match the return type of a gcc2
3837 builtin and then its argument prototype would still apply. */
3842 /* The GNU C library defines this for functions which it implements
3843 to always fail with ENOSYS. Some functions are actually named
3844 something starting with __ and the normal name is an alias. */
3845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3853 if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3855 eval "ac_cv_func_$ac_func=yes"
3857 echo "configure: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3860 eval "ac_cv_func_$ac_func=no"
3865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3868 cat >> confdefs.h <<EOF
3869 #define $ac_tr_func 1
3873 echo "$ac_t""no" 1>&6
3878 for ac_func in strdup
3880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3881 echo "configure:3882: checking for $ac_func" >&5
3882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3888 /* System header to define __stub macros and hopefully few prototypes,
3889 which can conflict with char $ac_func(); below. */
3891 /* Override any gcc2 internal prototype to avoid an error. */
3892 /* We use char because int might match the return type of a gcc2
3893 builtin and then its argument prototype would still apply. */
3898 /* The GNU C library defines this for functions which it implements
3899 to always fail with ENOSYS. Some functions are actually named
3900 something starting with __ and the normal name is an alias. */
3901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3911 eval "ac_cv_func_$ac_func=yes"
3913 echo "configure: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3916 eval "ac_cv_func_$ac_func=no"
3921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3922 echo "$ac_t""yes" 1>&6
3923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3924 cat >> confdefs.h <<EOF
3925 #define $ac_tr_func 1
3929 echo "$ac_t""no" 1>&6
3930 LIBOBJS="$LIBOBJS ${ac_func}.o"
3936 # Check Configuration
3938 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
3939 echo "configure:3940: checking declaration of sys_errlist" >&5
3940 if eval "test \"`echo '$''{'cf_cv_dcl_sys_errlist'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3949 #include <sys/types.h>
3952 char *c = (char *) *sys_errlist
3955 if { (eval echo configure:3956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3957 cf_cv_dcl_sys_errlist=yes
3959 echo "configure: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3962 cf_cv_dcl_sys_errlist=no
3967 echo "$ac_t""$cf_cv_dcl_sys_errlist" 1>&6
3969 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
3970 if test $cf_cv_dcl_sys_errlist = no ; then
3971 cat >> confdefs.h <<\EOF
3972 #define DECL_SYS_ERRLIST 1
3975 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
3976 echo "configure:3977: checking existence of sys_errlist" >&5
3977 if eval "test \"`echo '$''{'cf_cv_have_sys_errlist'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3986 char *c = (char *) *sys_errlist
3989 if { (eval echo configure:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3991 cf_cv_have_sys_errlist=yes
3993 echo "configure: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3996 cf_cv_have_sys_errlist=no
4001 echo "$ac_t""$cf_cv_have_sys_errlist" 1>&6
4034 cat > confcache <<\EOF
4035 # This file is a shell script that caches the results of configure
4036 # tests run on this system so they can be shared between configure
4037 # scripts and configure runs. It is not useful on other systems.
4038 # If it contains results you don't want to keep, you may remove or edit it.
4040 # By default, configure uses ./config.cache as the cache file,
4041 # creating it if it does not exist already. You can give configure
4042 # the --cache-file=FILE option to use a different cache file; that is
4043 # what configure does when it calls configure scripts in
4044 # subdirectories, so they share the cache.
4045 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4046 # config.status only pays attention to the cache file if you give it the
4047 # --recheck option to rerun configure.
4050 # The following way of writing the cache mishandles newlines in values,
4051 # but we know of no workaround that is simple, portable, and efficient.
4052 # So, don't put newlines in cache variables' values.
4053 # Ultrix sh set writes to stderr and can't be redirected directly,
4054 # and sets the high bit in the cache file unless we assign to the vars.
4056 case `(ac_space=' '; set) 2>&1` in
4058 # `set' does not quote correctly, so add quotes (double-quote substitution
4059 # turns \\\\ into \\, and sed turns \\ into \).
4061 -e "s/'/'\\\\''/g" \
4062 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4065 # `set' quotes correctly as required by POSIX, so do not add quotes.
4066 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4069 if cmp -s $cache_file confcache; then
4072 if test -w $cache_file; then
4073 echo "updating cache $cache_file"
4074 cat confcache > $cache_file
4076 echo "not updating unwritable cache $cache_file"
4081 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4084 # Let make expand exec_prefix.
4085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4087 # Any assignment to VPATH causes Sun make to only execute
4088 # the first set of double-colon rules, so remove it if not needed.
4089 # If there is a colon in the path, we need to keep it.
4090 if test "x$srcdir" = x.; then
4091 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4094 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4096 DEFS=-DHAVE_CONFIG_H
4098 # Without the "./", some shells look in PATH for config.status.
4099 : ${CONFIG_STATUS=./config.status}
4101 echo creating $CONFIG_STATUS
4102 rm -f $CONFIG_STATUS
4103 cat > $CONFIG_STATUS <<EOF
4105 # Generated automatically by configure.
4106 # Run this file to recreate the current configuration.
4107 # This directory was configured as follows,
4108 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4110 # $0 $ac_configure_args
4112 # Compiler output produced by configure, useful for debugging
4113 # configure, is in ./config.log if it exists.
4115 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4118 case "\$ac_option" in
4119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4120 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4121 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4122 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4123 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4125 -help | --help | --hel | --he | --h)
4126 echo "\$ac_cs_usage"; exit 0 ;;
4127 *) echo "\$ac_cs_usage"; exit 1 ;;
4131 ac_given_srcdir=$srcdir
4132 ac_given_INSTALL="$INSTALL"
4134 trap 'rm -fr `echo "\
4135 Makefile:build/top.mk:Makefile.in:build/dir.mk \
4136 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
4137 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
4138 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
4139 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
4140 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
4141 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
4142 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
4143 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
4144 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
4145 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
4146 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
4147 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
4148 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
4149 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
4150 include/Makefile:build/top.mk:include/Makefile.in \
4151 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
4152 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
4153 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
4154 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
4155 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
4156 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
4157 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
4158 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
4159 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
4160 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
4161 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
4162 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
4163 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
4164 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
4165 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
4166 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
4167 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
4168 tests/Makefile:build/top.mk:tests/Makefile.in \
4169 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4171 cat >> $CONFIG_STATUS <<EOF
4173 # Protect against being on the right side of a sed subst in config.status.
4174 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4175 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4178 s%@CFLAGS@%$CFLAGS%g
4179 s%@CPPFLAGS@%$CPPFLAGS%g
4180 s%@CXXFLAGS@%$CXXFLAGS%g
4182 s%@LDFLAGS@%$LDFLAGS%g
4184 s%@exec_prefix@%$exec_prefix%g
4185 s%@prefix@%$prefix%g
4186 s%@program_transform_name@%$program_transform_name%g
4187 s%@bindir@%$bindir%g
4188 s%@sbindir@%$sbindir%g
4189 s%@libexecdir@%$libexecdir%g
4190 s%@datadir@%$datadir%g
4191 s%@sysconfdir@%$sysconfdir%g
4192 s%@sharedstatedir@%$sharedstatedir%g
4193 s%@localstatedir@%$localstatedir%g
4194 s%@libdir@%$libdir%g
4195 s%@includedir@%$includedir%g
4196 s%@oldincludedir@%$oldincludedir%g
4197 s%@infodir@%$infodir%g
4198 s%@mandir@%$mandir%g
4202 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4203 s%@INSTALL_DATA@%$INSTALL_DATA%g
4204 s%@RANLIB@%$RANLIB%g
4205 s%@SET_MAKE@%$SET_MAKE%g
4206 s%@SENDMAIL@%$SENDMAIL%g
4207 s%@EDITOR@%$EDITOR%g
4208 s%@FINGER@%$FINGER%g
4209 s%@LIBTERMCAP@%$LIBTERMCAP%g
4210 s%@LIBOBJS@%$LIBOBJS%g
4211 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
4212 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
4213 s%@BUILD_LDBM@%$BUILD_LDBM%g
4214 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
4215 s%@BUILD_SHELL@%$BUILD_SHELL%g
4216 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
4217 s%@LDAP_DEFS@%$LDAP_DEFS%g
4218 s%@LDAP_LIBS@%$LDAP_LIBS%g
4219 s%@LDAPD_DEFS@%$LDAPD_DEFS%g
4220 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
4221 s%@SLAPD_DEFS@%$SLAPD_DEFS%g
4222 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
4223 s%@SLAPD_LDBM@%$SLAPD_LDBM%g
4224 s%@SLAPD_PASSWD@%$SLAPD_PASSWD%g
4225 s%@SLAPD_SHELL@%$SLAPD_SHELL%g
4226 s%@SLURPD_DEFS@%$SLURPD_DEFS%g
4227 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
4228 s%@LDBM_DEFS@%$LDBM_DEFS%g
4229 s%@LDBM_LIBS@%$LDBM_LIBS%g
4230 s%@LTHREAD_DEFS@%$LTHREAD_DEFS%g
4231 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
4232 s%@LUTIL_DEFS@%$LUTIL_DEFS%g
4233 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
4238 cat >> $CONFIG_STATUS <<\EOF
4240 # Split the substitutions into bite-sized pieces for seds with
4241 # small command number limits, like on Digital OSF/1 and HP-UX.
4242 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4243 ac_file=1 # Number of current file.
4244 ac_beg=1 # First line for current file.
4245 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4248 while $ac_more_lines; do
4249 if test $ac_beg -gt 1; then
4250 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4252 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4254 if test ! -s conftest.s$ac_file; then
4256 rm -f conftest.s$ac_file
4258 if test -z "$ac_sed_cmds"; then
4259 ac_sed_cmds="sed -f conftest.s$ac_file"
4261 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4263 ac_file=`expr $ac_file + 1`
4265 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4268 if test -z "$ac_sed_cmds"; then
4273 cat >> $CONFIG_STATUS <<EOF
4275 CONFIG_FILES=\${CONFIG_FILES-"\
4276 Makefile:build/top.mk:Makefile.in:build/dir.mk \
4277 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
4278 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
4279 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
4280 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
4281 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
4282 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
4283 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
4284 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
4285 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
4286 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
4287 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
4288 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
4289 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
4290 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
4291 include/Makefile:build/top.mk:include/Makefile.in \
4292 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
4293 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
4294 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
4295 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
4296 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
4297 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
4298 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
4299 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
4300 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
4301 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
4302 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
4303 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
4304 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
4305 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
4306 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
4307 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
4308 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
4309 tests/Makefile:build/top.mk:tests/Makefile.in \
4312 cat >> $CONFIG_STATUS <<\EOF
4313 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4314 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4316 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4317 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4318 *) ac_file_in="${ac_file}.in" ;;
4321 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4323 # Remove last slash and all that follows it. Not all systems have dirname.
4324 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4325 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4326 # The file is in a subdirectory.
4327 test ! -d "$ac_dir" && mkdir "$ac_dir"
4328 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4329 # A "../" for each directory in $ac_dir_suffix.
4330 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4332 ac_dir_suffix= ac_dots=
4335 case "$ac_given_srcdir" in
4337 if test -z "$ac_dots"; then top_srcdir=.
4338 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4339 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4341 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4342 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4345 case "$ac_given_INSTALL" in
4346 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4347 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4350 echo creating "$ac_file"
4352 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4354 *Makefile*) ac_comsub="1i\\
4355 # $configure_input" ;;
4359 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4361 s%@configure_input@%$configure_input%g
4362 s%@srcdir@%$srcdir%g
4363 s%@top_srcdir@%$top_srcdir%g
4364 s%@INSTALL@%$INSTALL%g
4365 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4369 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4370 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4372 # ac_d sets the value in "#define NAME VALUE" lines.
4373 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4374 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4377 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4378 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4379 ac_uB='\([ ]\)%\1#\2define\3'
4382 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4383 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4384 ac_eB='$%\1#\2define\3'
4388 if test "${CONFIG_HEADERS+set}" != set; then
4390 cat >> $CONFIG_STATUS <<EOF
4391 CONFIG_HEADERS="include/portable.h"
4393 cat >> $CONFIG_STATUS <<\EOF
4395 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4398 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4399 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4400 *) ac_file_in="${ac_file}.in" ;;
4403 echo creating $ac_file
4405 rm -f conftest.frag conftest.in conftest.out
4406 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4407 cat $ac_file_inputs > conftest.in
4411 # Transform confdefs.h into a sed script conftest.vals that substitutes
4412 # the proper values into config.h.in to produce config.h. And first:
4413 # Protect against being on the right side of a sed subst in config.status.
4414 # Protect against being in an unquoted here document in config.status.
4416 cat > conftest.hdr <<\EOF
4419 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4423 sed -n -f conftest.hdr confdefs.h > conftest.vals
4426 # This sed command replaces #undef with comments. This is necessary, for
4427 # example, in the case of _POSIX_SOURCE, which is predefined and required
4428 # on some systems where configure will not decide to define it.
4429 cat >> conftest.vals <<\EOF
4430 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4433 # Break up conftest.vals because some shells have a limit on
4434 # the size of here documents, and old seds have small limits too.
4439 ac_lines=`grep -c . conftest.vals`
4440 # grep -c gives empty output for an empty file on some AIX systems.
4441 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4442 # Write a limited-size here document to conftest.frag.
4443 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4444 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4446 sed -f conftest.frag conftest.in > conftest.out
4448 mv conftest.out conftest.in
4450 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4452 mv conftest.tail conftest.vals
4456 cat >> $CONFIG_STATUS <<\EOF
4457 rm -f conftest.frag conftest.h
4458 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4459 cat conftest.in >> conftest.h
4461 if cmp -s $ac_file conftest.h 2>/dev/null; then
4462 echo "$ac_file is unchanged"
4465 # Remove last slash and all that follows it. Not all systems have dirname.
4466 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4467 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4468 # The file is in a subdirectory.
4469 test ! -d "$ac_dir" && mkdir "$ac_dir"
4472 mv conftest.h $ac_file
4477 cat >> $CONFIG_STATUS <<EOF
4480 cat >> $CONFIG_STATUS <<\EOF
4484 chmod +x $CONFIG_STATUS
4485 rm -fr confdefs* $ac_clean_files
4486 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1