2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
270 ac_unique_file="include/includes.h"
271 ac_default_prefix=/usr/local/samba
272 # Factoring default headers for most tests.
273 ac_includes_default="\
276 # include <sys/types.h>
279 # include <sys/stat.h>
290 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <strings.h>
299 # include <inttypes.h>
309 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configdir lockdir piddir logfilebase privatedir swatdir RUNPROG MPROGS LDSHFLAGS SONAMEFLAG SHLD HOST_OS PAM_MOD WRAP WRAP32 WRAPPROG PICFLAG PICSUFFIX POBAD_CC SHLIBEXT LIBSMBCLIENT_SHARED LIBSMBCLIENT PRINTLIBS AUTHLIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK BROKEN_CC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP CUPS_CONFIG LIBOBJS TERMLIBS TERMLDFLAGS ROFF DYNEXP MYSQL_CONFIG MYSQL_CFLAGS MYSQL_LIBS XML2_CONFIG XML_CFLAGS XML_LIBS QUOTAOBJS manlangs WINBIND_TARGETS WINBIND_STARGETS WINBIND_LTARGETS WINBIND_PAM_TARGETS WINBIND_NSS_EXTRA_OBJS WINBIND_NSS_EXTRA_LIBS BUILD_POPT FLAGS1 PYTHON builddir LTLIBOBJS'
312 # Initialize some variables set by options.
314 ac_init_version=false
315 # The variables have the same names as the options, with
316 # dashes changed to underlines.
324 program_transform_name=s,x,x,
332 # Installation directory options.
333 # These are left unexpanded so users can "make install exec_prefix=/foo"
334 # and all the variables that are supposed to be based on exec_prefix
335 # by default will actually change.
336 # Use braces instead of parens because sh, perl, etc. also accept them.
337 bindir='${exec_prefix}/bin'
338 sbindir='${exec_prefix}/sbin'
339 libexecdir='${exec_prefix}/libexec'
340 datadir='${prefix}/share'
341 sysconfdir='${prefix}/etc'
342 sharedstatedir='${prefix}/com'
343 localstatedir='${prefix}/var'
344 libdir='${exec_prefix}/lib'
345 includedir='${prefix}/include'
346 oldincludedir='/usr/include'
347 infodir='${prefix}/info'
348 mandir='${prefix}/man'
353 # If the previous option needs an argument, assign it.
354 if test -n "$ac_prev"; then
355 eval "$ac_prev=\$ac_option"
360 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
362 # Accept the important Cygnus configure options, so we can diagnose typos.
366 -bindir | --bindir | --bindi | --bind | --bin | --bi)
368 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 -build | --build | --buil | --bui | --bu)
372 ac_prev=build_alias ;;
373 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374 build_alias=$ac_optarg ;;
376 -cache-file | --cache-file | --cache-fil | --cache-fi \
377 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378 ac_prev=cache_file ;;
379 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381 cache_file=$ac_optarg ;;
384 cache_file=config.cache ;;
386 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
388 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
390 datadir=$ac_optarg ;;
392 -disable-* | --disable-*)
393 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394 # Reject names that are not valid shell variable names.
395 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397 { (exit 1); exit 1; }; }
398 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399 eval "enable_$ac_feature=no" ;;
401 -enable-* | --enable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
409 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 eval "enable_$ac_feature='$ac_optarg'" ;;
414 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
415 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
416 | --exec | --exe | --ex)
417 ac_prev=exec_prefix ;;
418 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
419 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
420 | --exec=* | --exe=* | --ex=*)
421 exec_prefix=$ac_optarg ;;
423 -gas | --gas | --ga | --g)
424 # Obsolete; use --with-gas.
427 -help | --help | --hel | --he | -h)
429 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
430 ac_init_help=recursive ;;
431 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
432 ac_init_help=short ;;
434 -host | --host | --hos | --ho)
435 ac_prev=host_alias ;;
436 -host=* | --host=* | --hos=* | --ho=*)
437 host_alias=$ac_optarg ;;
439 -includedir | --includedir | --includedi | --included | --include \
440 | --includ | --inclu | --incl | --inc)
441 ac_prev=includedir ;;
442 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
443 | --includ=* | --inclu=* | --incl=* | --inc=*)
444 includedir=$ac_optarg ;;
446 -infodir | --infodir | --infodi | --infod | --info | --inf)
448 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
449 infodir=$ac_optarg ;;
451 -libdir | --libdir | --libdi | --libd)
453 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
457 | --libexe | --libex | --libe)
458 ac_prev=libexecdir ;;
459 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
460 | --libexe=* | --libex=* | --libe=*)
461 libexecdir=$ac_optarg ;;
463 -localstatedir | --localstatedir | --localstatedi | --localstated \
464 | --localstate | --localstat | --localsta | --localst \
465 | --locals | --local | --loca | --loc | --lo)
466 ac_prev=localstatedir ;;
467 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
468 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
469 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
470 localstatedir=$ac_optarg ;;
472 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
474 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 # Obsolete; use --without-fp.
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c | -n)
485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
490 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
491 | --oldin | --oldi | --old | --ol | --o)
492 ac_prev=oldincludedir ;;
493 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
494 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
495 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
496 oldincludedir=$ac_optarg ;;
498 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
500 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 -program-prefix | --program-prefix | --program-prefi | --program-pref \
504 | --program-pre | --program-pr | --program-p)
505 ac_prev=program_prefix ;;
506 -program-prefix=* | --program-prefix=* | --program-prefi=* \
507 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
508 program_prefix=$ac_optarg ;;
510 -program-suffix | --program-suffix | --program-suffi | --program-suff \
511 | --program-suf | --program-su | --program-s)
512 ac_prev=program_suffix ;;
513 -program-suffix=* | --program-suffix=* | --program-suffi=* \
514 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
515 program_suffix=$ac_optarg ;;
517 -program-transform-name | --program-transform-name \
518 | --program-transform-nam | --program-transform-na \
519 | --program-transform-n | --program-transform- \
520 | --program-transform | --program-transfor \
521 | --program-transfo | --program-transf \
522 | --program-trans | --program-tran \
523 | --progr-tra | --program-tr | --program-t)
524 ac_prev=program_transform_name ;;
525 -program-transform-name=* | --program-transform-name=* \
526 | --program-transform-nam=* | --program-transform-na=* \
527 | --program-transform-n=* | --program-transform-=* \
528 | --program-transform=* | --program-transfor=* \
529 | --program-transfo=* | --program-transf=* \
530 | --program-trans=* | --program-tran=* \
531 | --progr-tra=* | --program-tr=* | --program-t=*)
532 program_transform_name=$ac_optarg ;;
534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
535 | -silent | --silent | --silen | --sile | --sil)
538 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
540 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
542 sbindir=$ac_optarg ;;
544 -sharedstatedir | --sharedstatedir | --sharedstatedi \
545 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
546 | --sharedst | --shareds | --shared | --share | --shar \
548 ac_prev=sharedstatedir ;;
549 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
550 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
551 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
553 sharedstatedir=$ac_optarg ;;
555 -site | --site | --sit)
557 -site=* | --site=* | --sit=*)
560 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
562 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
566 | --syscon | --sysco | --sysc | --sys | --sy)
567 ac_prev=sysconfdir ;;
568 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
569 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
570 sysconfdir=$ac_optarg ;;
572 -target | --target | --targe | --targ | --tar | --ta | --t)
573 ac_prev=target_alias ;;
574 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
575 target_alias=$ac_optarg ;;
577 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 -version | --version | --versio | --versi | --vers | -V)
584 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585 # Reject names that are not valid shell variable names.
586 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587 { echo "$as_me: error: invalid package name: $ac_package" >&2
588 { (exit 1); exit 1; }; }
589 ac_package=`echo $ac_package| sed 's/-/_/g'`
591 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 eval "with_$ac_package='$ac_optarg'" ;;
596 -without-* | --without-*)
597 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598 # Reject names that are not valid shell variable names.
599 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
600 { echo "$as_me: error: invalid package name: $ac_package" >&2
601 { (exit 1); exit 1; }; }
602 ac_package=`echo $ac_package | sed 's/-/_/g'`
603 eval "with_$ac_package=no" ;;
606 # Obsolete; use --with-x.
609 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
610 | --x-incl | --x-inc | --x-in | --x-i)
611 ac_prev=x_includes ;;
612 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
613 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
614 x_includes=$ac_optarg ;;
616 -x-libraries | --x-libraries | --x-librarie | --x-librari \
617 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
618 ac_prev=x_libraries ;;
619 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
620 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
621 x_libraries=$ac_optarg ;;
623 -*) { echo "$as_me: error: unrecognized option: $ac_option
624 Try \`$0 --help' for more information." >&2
625 { (exit 1); exit 1; }; }
629 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
630 # Reject names that are not valid shell variable names.
631 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
632 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633 { (exit 1); exit 1; }; }
634 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635 eval "$ac_envvar='$ac_optarg'"
639 # FIXME: should be removed in autoconf 3.0.
640 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
642 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 if test -n "$ac_prev"; then
650 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
651 { echo "$as_me: error: missing argument to $ac_option" >&2
652 { (exit 1); exit 1; }; }
655 # Be sure to have absolute paths.
656 for ac_var in exec_prefix prefix
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # Be sure to have absolute paths.
667 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668 localstatedir libdir includedir oldincludedir infodir mandir
670 eval ac_val=$`echo $ac_var`
672 [\\/$]* | ?:[\\/]* ) ;;
673 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674 { (exit 1); exit 1; }; };;
678 # There might be people who depend on the old broken behavior: `$host'
679 # used to hold the argument of --host etc.
680 # FIXME: To remove some day.
685 # FIXME: To remove some day.
686 if test "x$host_alias" != x; then
687 if test "x$build_alias" = x; then
688 cross_compiling=maybe
689 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690 If a cross compiler is detected then cross compile mode will be used." >&2
691 elif test "x$build_alias" != "x$host_alias"; then
697 test -n "$host_alias" && ac_tool_prefix=$host_alias-
699 test "$silent" = yes && exec 6>/dev/null
702 # Find the source files, if location was not specified.
703 if test -z "$srcdir"; then
704 ac_srcdir_defaulted=yes
705 # Try the directory containing this script, then its parent.
706 ac_confdir=`(dirname "$0") 2>/dev/null ||
707 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708 X"$0" : 'X\(//\)[^/]' \| \
709 X"$0" : 'X\(//\)$' \| \
710 X"$0" : 'X\(/\)' \| \
711 . : '\(.\)' 2>/dev/null ||
713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715 /^X\(\/\/\)$/{ s//\1/; q; }
716 /^X\(\/\).*/{ s//\1/; q; }
719 if test ! -r $srcdir/$ac_unique_file; then
723 ac_srcdir_defaulted=no
725 if test ! -r $srcdir/$ac_unique_file; then
726 if test "$ac_srcdir_defaulted" = yes; then
727 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728 { (exit 1); exit 1; }; }
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731 { (exit 1); exit 1; }; }
734 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
735 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736 { (exit 1); exit 1; }; }
737 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738 ac_env_build_alias_set=${build_alias+set}
739 ac_env_build_alias_value=$build_alias
740 ac_cv_env_build_alias_set=${build_alias+set}
741 ac_cv_env_build_alias_value=$build_alias
742 ac_env_host_alias_set=${host_alias+set}
743 ac_env_host_alias_value=$host_alias
744 ac_cv_env_host_alias_set=${host_alias+set}
745 ac_cv_env_host_alias_value=$host_alias
746 ac_env_target_alias_set=${target_alias+set}
747 ac_env_target_alias_value=$target_alias
748 ac_cv_env_target_alias_set=${target_alias+set}
749 ac_cv_env_target_alias_value=$target_alias
750 ac_env_CC_set=${CC+set}
752 ac_cv_env_CC_set=${CC+set}
753 ac_cv_env_CC_value=$CC
754 ac_env_CFLAGS_set=${CFLAGS+set}
755 ac_env_CFLAGS_value=$CFLAGS
756 ac_cv_env_CFLAGS_set=${CFLAGS+set}
757 ac_cv_env_CFLAGS_value=$CFLAGS
758 ac_env_LDFLAGS_set=${LDFLAGS+set}
759 ac_env_LDFLAGS_value=$LDFLAGS
760 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_cv_env_LDFLAGS_value=$LDFLAGS
762 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
763 ac_env_CPPFLAGS_value=$CPPFLAGS
764 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
766 ac_env_CPP_set=${CPP+set}
767 ac_env_CPP_value=$CPP
768 ac_cv_env_CPP_set=${CPP+set}
769 ac_cv_env_CPP_value=$CPP
772 # Report the --help message.
774 if test "$ac_init_help" = "long"; then
775 # Omit some internal or obsolete options to make the list less imposing.
776 # This message is too long to be a string in the A/UX 3.1 sh.
778 \`configure' configures this package to adapt to many kinds of systems.
780 Usage: $0 [OPTION]... [VAR=VALUE]...
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE. See below for descriptions of some of the useful variables.
785 Defaults for the options are specified in brackets.
788 -h, --help display this help and exit
789 --help=short display options specific to this package
790 --help=recursive display the short help of all the included packages
791 -V, --version display version information and exit
792 -q, --quiet, --silent do not print \`checking...' messages
793 --cache-file=FILE cache test results in FILE [disabled]
794 -C, --config-cache alias for \`--cache-file=config.cache'
795 -n, --no-create do not create output files
796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 Installation directories:
802 --prefix=PREFIX install architecture-independent files in PREFIX
804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
812 For better control, use the options below.
814 Fine tuning of the installation directories:
815 --bindir=DIR user executables [EPREFIX/bin]
816 --sbindir=DIR system admin executables [EPREFIX/sbin]
817 --libexecdir=DIR program executables [EPREFIX/libexec]
818 --datadir=DIR read-only architecture-independent data [PREFIX/share]
819 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822 --libdir=DIR object code libraries [EPREFIX/lib]
823 --includedir=DIR C header files [PREFIX/include]
824 --oldincludedir=DIR C header files for non-gcc [/usr/include]
825 --infodir=DIR info documentation [PREFIX/info]
826 --mandir=DIR man documentation [PREFIX/man]
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 --target=TARGET configure for building compilers for TARGET [HOST]
838 if test -n "$ac_init_help"; then
843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
845 --enable-debug Turn on compiler debugging information (default=no)
846 --enable-developer Turn on developer warnings and debugging (default=no)
847 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
848 --enable-dmalloc Enable heap debugging default=no
849 --enable-cups Turn on CUPS support (default=auto)
850 --disable-mysqltest Do not try to compile and run a test MYSQL program
851 --disable-xmltest Do not try to compile and run a test LIBXML program
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --with-fhs Use FHS-compliant paths (default=no)
857 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)
858 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)
859 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)
860 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)
861 --with-configdir=DIR Where to put configuration files (\$libdir)
862 --with-logfilebase=DIR Where to put log files (\$(VARDIR))
863 --with-readline=DIR Look for readline include/libs in DIR (default=auto)
864 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
865 --with-smbwrapper Include SMB wrapper support (default=no)
866 --with-afs Include AFS clear-text auth support (default=no)
867 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)
868 --with-ads Active Directory support (default yes)
869 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)
870 --with-ldap LDAP support (default yes)
871 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)
872 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
873 --with-xml-prefix=PFX Prefix where libxml is installed (optional)
874 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
875 --with-automount Include AUTOMOUNT support (default=no)
876 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)
877 --with-pam Include PAM support (default=no)
878 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)
879 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)
880 --with-tdbsam Include experimental TDB SAM support (default=no)
881 --with-nisplussam Include NISPLUS SAM support (default=no)
882 --with-nisplus-home Include NISPLUS_HOME support (default=no)
883 --with-syslog Include experimental SYSLOG support (default=no)
884 --with-profiling-data Include gathering source code profile information (default=no)
885 --with-quotas Include experimental disk-quota support (default=no)
886 --with-utmp Include experimental utmp accounting (default=no)
887 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)
888 --with-libsmbclient Build the libsmbclient shared library (default=yes)
889 --with-spinlocks Use spin locks instead of fcntl locks (default=no)
890 --with-acl-support Include ACL support (default=no)
891 --with-sendfile-support Check for sendfile support (default=yes)
892 --with-winbind Build winbind (default, if supported by OS)
893 --with-included-popt use bundled popt library, not from system
894 --with-python=PYTHONNAME build Python libraries
896 Some influential environment variables:
897 CC C compiler command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900 nonstandard directory <lib dir>
901 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902 headers in a nonstandard directory <include dir>
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
911 if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
918 if test "$ac_dir" != .; then
919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 ac_dir_suffix= ac_top_builddir=
927 .) # No --srcdir option. We are building in place.
929 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934 [\\/]* | ?:[\\/]* ) # Absolute path.
935 ac_srcdir=$srcdir$ac_dir_suffix;
936 ac_top_srcdir=$srcdir ;;
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
944 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
945 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
946 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
971 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
972 Free Software Foundation, Inc.
973 This configure script is free software; the Free Software Foundation
974 gives unlimited permission to copy, distribute and modify it.
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
983 It was created by $as_me, which was
984 generated by GNU Autoconf 2.54. Invocation command line was
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1005 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1008 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1009 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1010 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 test -z "$as_dir" && as_dir=.
1019 echo "PATH: $as_dir"
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Also quote any args containing shell meta-characters.
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n ) continue ;;
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1051 # Get rid of the leading space.
1055 # When interrupted or exit'd, cleanup temporary files, and complete
1056 # config.log. We remove comments because anyway the quotes in there
1057 # would cause problems or look ugly.
1058 # WARNING: Be sure not to use single quotes in there, as some shells,
1059 # such as our DU 5.0 friend, will then `close' the trap.
1060 trap 'exit_status=$?
1061 # Save into config.log some information that might help in debugging.
1066 ## ---------------- ##
1067 ## Cache variables. ##
1068 ## ---------------- ##
1071 # The following way of writing the cache mishandles newlines in values,
1074 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1077 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1089 ## ----------------- ##
1090 ## Output variables. ##
1091 ## ----------------- ##
1094 for ac_var in $ac_subst_vars
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1101 if test -n "$ac_subst_files"; then
1108 for ac_var in $ac_subst_files
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1116 if test -s confdefs.h; then
1123 sed "/^$/d" confdefs.h | sort
1126 test "$ac_signal" != 0 &&
1127 echo "$as_me: caught signal $ac_signal"
1128 echo "$as_me: exit $exit_status"
1130 rm -f core core.* *.core &&
1131 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1134 for ac_signal in 1 2 13 15; do
1135 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140 rm -rf conftest* confdefs.h
1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1144 # Predefined preprocessor variables.
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_NAME "$PACKAGE_NAME"
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_STRING "$PACKAGE_STRING"
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1171 # Let the site file select an alternate cache file if it wants to.
1172 # Prefer explicitly selected file to automatically selected ones.
1173 if test -z "$CONFIG_SITE"; then
1174 if test "x$prefix" != xNONE; then
1175 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1180 for ac_site_file in $CONFIG_SITE; do
1181 if test -r "$ac_site_file"; then
1182 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183 echo "$as_me: loading site script $ac_site_file" >&6;}
1184 sed 's/^/| /' "$ac_site_file" >&5
1189 if test -r "$cache_file"; then
1190 # Some versions of bash will fail to source /dev/null (special
1191 # files actually), so we avoid doing that.
1192 if test -f "$cache_file"; then
1193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194 echo "$as_me: loading cache $cache_file" >&6;}
1196 [\\/]* | ?:[\\/]* ) . $cache_file;;
1197 *) . ./$cache_file;;
1201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202 echo "$as_me: creating cache $cache_file" >&6;}
1206 # Check that the precious variables saved in the cache have kept the same
1208 ac_cache_corrupted=false
1209 for ac_var in `(set) 2>&1 |
1210 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212 eval ac_new_set=\$ac_env_${ac_var}_set
1213 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214 eval ac_new_val="\$ac_env_${ac_var}_value"
1215 case $ac_old_set,$ac_new_set in
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1221 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223 ac_cache_corrupted=: ;;
1226 if test "x$ac_old_val" != "x$ac_new_val"; then
1227 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1230 echo "$as_me: former value: $ac_old_val" >&2;}
1231 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1232 echo "$as_me: current value: $ac_new_val" >&2;}
1233 ac_cache_corrupted=:
1236 # Pass precious variables to config.status.
1237 if test "$ac_new_set" = set; then
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 *) ac_arg=$ac_var=$ac_new_val ;;
1243 case " $ac_configure_args " in
1244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1245 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1249 if $ac_cache_corrupted; then
1250 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254 { (exit 1); exit 1; }; }
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1281 ac_config_headers="$ac_config_headers include/config.h"
1284 #################################################
1285 # Directory handling stuff to support both the
1286 # legacy SAMBA directories and FHS compliant
1291 # Check whether --with-fhs or --without-fhs was given.
1292 if test "${with_fhs+set}" = set; then
1294 configdir="${sysconfdir}/samba"
1295 lockdir="\${VARDIR}/cache/samba"
1296 piddir="\$(VARDIR)/run/samba"
1297 logfilebase="\${VARDIR}/log/samba"
1298 privatedir="\${CONFIGDIR}/private"
1299 swatdir="\${DATADIR}/samba/swat"
1301 configdir="\$(LIBDIR)"
1302 logfilebase="\$(VARDIR)"
1303 lockdir="\${VARDIR}/locks"
1304 piddir="\$(VARDIR)/locks"
1305 privatedir="\${prefix}/private"
1306 swatdir="\${prefix}/swat"
1309 #################################################
1310 # set private directory location
1312 # Check whether --with-privatedir or --without-privatedir was given.
1313 if test "${with_privatedir+set}" = set; then
1314 withval="$with_privatedir"
1318 # Just in case anybody calls it without argument
1320 { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1321 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1324 privatedir="$withval"
1329 #################################################
1330 # set lock directory location
1332 # Check whether --with-lockdir or --without-lockdir was given.
1333 if test "${with_lockdir+set}" = set; then
1334 withval="$with_lockdir"
1338 # Just in case anybody calls it without argument
1340 { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1341 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1349 #################################################
1350 # set pid directory location
1352 # Check whether --with-piddir or --without-piddir was given.
1353 if test "${with_piddir+set}" = set; then
1354 withval="$with_piddir"
1358 # Just in case anybody calls it without argument
1360 { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1361 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1369 #################################################
1370 # set SWAT directory location
1372 # Check whether --with-swatdir or --without-swatdir was given.
1373 if test "${with_swatdir+set}" = set; then
1374 withval="$with_swatdir"
1378 # Just in case anybody does it
1380 { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1381 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1389 #################################################
1390 # set configuration directory location
1392 # Check whether --with-configdir or --without-configdir was given.
1393 if test "${with_configdir+set}" = set; then
1394 withval="$with_configdir"
1398 # Just in case anybody does it
1400 { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1401 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1404 configdir="$withval"
1409 #################################################
1410 # set log directory location
1412 # Check whether --with-logfilebase or --without-logfilebase was given.
1413 if test "${with_logfilebase+set}" = set; then
1414 withval="$with_logfilebase"
1418 # Just in case anybody does it
1420 { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1421 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1424 logfilebase="$withval"
1458 # compile with optimization and without debugging by default
1459 CFLAGS="-O ${CFLAGS}"
1461 # Check whether --enable-debug or --disable-debug was given.
1462 if test "${enable_debug+set}" = set; then
1463 enableval="$enable_debug"
1464 if eval "test x$enable_debug = xyes"; then
1465 CFLAGS="${CFLAGS} -g"
1469 # Check whether --enable-developer or --disable-developer was given.
1470 if test "${enable_developer+set}" = set; then
1471 enableval="$enable_developer"
1472 if eval "test x$enable_developer = xyes"; then
1473 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1477 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1478 if test "${enable_krb5developer+set}" = set; then
1479 enableval="$enable_krb5developer"
1480 if eval "test x$enable_krb5developer = xyes"; then
1481 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1485 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1486 if test "${enable_dmalloc+set}" = set; then
1487 enableval="$enable_dmalloc"
1491 if test "x$enable_dmalloc" = xyes
1494 cat >>confdefs.h <<\_ACEOF
1495 #define ENABLE_DMALLOC 1
1499 cat >>confdefs.h <<\_ACEOF
1500 #define DMALLOC_FUNC_CHECK 1
1503 LIBS="$LIBS -ldmalloc"
1507 ac_cpp='$CPP $CPPFLAGS'
1508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511 if test -n "$ac_tool_prefix"; then
1512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 if test -n "$CC"; then
1520 ac_cv_prog_CC="$CC" # Let the user override the test.
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 if test -n "$CC"; then
1540 echo "$as_me:$LINENO: result: $CC" >&5
1541 echo "${ECHO_T}$CC" >&6
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1548 if test -z "$ac_cv_prog_CC"; then
1550 # Extract the first word of "gcc", so it can be a program name with args.
1551 set dummy gcc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 if test -n "$ac_ct_CC"; then
1558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_prog_ac_ct_CC="gcc"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1577 if test -n "$ac_ct_CC"; then
1578 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1579 echo "${ECHO_T}$ac_ct_CC" >&6
1581 echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1590 if test -z "$CC"; then
1591 if test -n "$ac_tool_prefix"; then
1592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1593 set dummy ${ac_tool_prefix}cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC="$CC" # Let the user override the test.
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_CC="${ac_tool_prefix}cc"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 if test -n "$CC"; then
1620 echo "$as_me:$LINENO: result: $CC" >&5
1621 echo "${ECHO_T}$CC" >&6
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1628 if test -z "$ac_cv_prog_CC"; then
1630 # Extract the first word of "cc", so it can be a program name with args.
1631 set dummy cc; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 if test -n "$ac_ct_CC"; then
1638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 test -z "$as_dir" && as_dir=.
1645 for ac_exec_ext in '' $ac_executable_extensions; do
1646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1647 ac_cv_prog_ac_ct_CC="cc"
1648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1657 if test -n "$ac_ct_CC"; then
1658 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1659 echo "${ECHO_T}$ac_ct_CC" >&6
1661 echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1671 if test -z "$CC"; then
1672 # Extract the first word of "cc", so it can be a program name with args.
1673 set dummy cc; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_CC+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 if test -n "$CC"; then
1680 ac_cv_prog_CC="$CC" # Let the user override the test.
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1691 ac_prog_rejected=yes
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 if test $ac_prog_rejected = yes; then
1702 # We found a bogon in the path, so make sure we never use it.
1703 set dummy $ac_cv_prog_CC
1705 if test $# != 0; then
1706 # We chose a different compiler from the bogus one.
1707 # However, it has the same basename, so the bogon will be chosen
1708 # first if we set CC to just the basename; use the full file name.
1710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1716 if test -n "$CC"; then
1717 echo "$as_me:$LINENO: result: $CC" >&5
1718 echo "${ECHO_T}$CC" >&6
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1725 if test -z "$CC"; then
1726 if test -n "$ac_tool_prefix"; then
1729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_CC+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 if test -n "$CC"; then
1737 ac_cv_prog_CC="$CC" # Let the user override the test.
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 if test -n "$CC"; then
1757 echo "$as_me:$LINENO: result: $CC" >&5
1758 echo "${ECHO_T}$CC" >&6
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764 test -n "$CC" && break
1767 if test -z "$CC"; then
1771 # Extract the first word of "$ac_prog", so it can be a program name with args.
1772 set dummy $ac_prog; ac_word=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 if test -n "$ac_ct_CC"; then
1779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 test -z "$as_dir" && as_dir=.
1786 for ac_exec_ext in '' $ac_executable_extensions; do
1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788 ac_cv_prog_ac_ct_CC="$ac_prog"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1798 if test -n "$ac_ct_CC"; then
1799 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1800 echo "${ECHO_T}$ac_ct_CC" >&6
1802 echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1806 test -n "$ac_ct_CC" && break
1815 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1816 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1817 { (exit 1); exit 1; }; }
1819 # Provide some information about the compiler.
1820 echo "$as_me:$LINENO:" \
1821 "checking for C compiler version" >&5
1822 ac_compiler=`set X $ac_compile; echo $2`
1823 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1824 (eval $ac_compiler --version </dev/null >&5) 2>&5
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); }
1828 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1829 (eval $ac_compiler -v </dev/null >&5) 2>&5
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); }
1833 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1834 (eval $ac_compiler -V </dev/null >&5) 2>&5
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }
1839 cat >conftest.$ac_ext <<_ACEOF
1840 #line $LINENO "configure"
1841 #include "confdefs.h"
1851 ac_clean_files_save=$ac_clean_files
1852 ac_clean_files="$ac_clean_files a.out a.exe"
1853 # Try to create an executable without -o first, disregard a.out.
1854 # It will help us diagnose broken compilers, and finding out an intuition
1856 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1857 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1858 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1859 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1860 (eval $ac_link_default) 2>&5
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }; then
1864 # Find the output, starting from the most likely. This scheme is
1865 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1868 # Be careful to initialize this variable, since it used to be cached.
1869 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1871 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1872 test -f "$ac_file" || continue
1874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1875 a.out ) # We found the default executable, but exeext='' is most
1878 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1879 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1886 echo "$as_me: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1888 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1889 check \`config.log' for details." >&5
1890 echo "$as_me: error: C compiler cannot create executables
1891 check \`config.log' for details." >&2;}
1892 { (exit 77); exit 77; }; }
1895 ac_exeext=$ac_cv_exeext
1896 echo "$as_me:$LINENO: result: $ac_file" >&5
1897 echo "${ECHO_T}$ac_file" >&6
1899 # Check the compiler produces executables we can run. If not, either
1900 # the compiler is broken, or we cross compile.
1901 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1902 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1903 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1904 # If not cross compiling, check that we can run a simple program.
1905 if test "$cross_compiling" != yes; then
1906 if { ac_try='./$ac_file'
1907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }; }; then
1914 if test "$cross_compiling" = maybe; then
1917 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1918 If you meant to cross compile, use \`--host'." >&5
1919 echo "$as_me: error: cannot run C compiled programs.
1920 If you meant to cross compile, use \`--host'." >&2;}
1921 { (exit 1); exit 1; }; }
1925 echo "$as_me:$LINENO: result: yes" >&5
1926 echo "${ECHO_T}yes" >&6
1928 rm -f a.out a.exe conftest$ac_cv_exeext
1929 ac_clean_files=$ac_clean_files_save
1930 # Check the compiler produces executables we can run. If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1933 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1934 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1935 echo "${ECHO_T}$cross_compiling" >&6
1937 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1938 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1940 (eval $ac_link) 2>&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1945 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1946 # work properly (i.e., refer to `conftest.exe'), while it won't with
1948 for ac_file in conftest.exe conftest conftest.*; do
1949 test -f "$ac_file" || continue
1951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1952 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1959 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1960 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1961 { (exit 1); exit 1; }; }
1964 rm -f conftest$ac_cv_exeext
1965 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1966 echo "${ECHO_T}$ac_cv_exeext" >&6
1968 rm -f conftest.$ac_ext
1969 EXEEXT=$ac_cv_exeext
1971 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1972 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1973 if test "${ac_cv_objext+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 cat >conftest.$ac_ext <<_ACEOF
1977 #line $LINENO "configure"
1978 #include "confdefs.h"
1988 rm -f conftest.o conftest.obj
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }; then
1994 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1997 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2002 echo "$as_me: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2004 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2005 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2006 { (exit 1); exit 1; }; }
2009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2011 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2012 echo "${ECHO_T}$ac_cv_objext" >&6
2013 OBJEXT=$ac_cv_objext
2015 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2016 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 cat >conftest.$ac_ext <<_ACEOF
2021 #line $LINENO "configure"
2022 #include "confdefs.h"
2035 rm -f conftest.$ac_objext
2036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2049 echo "$as_me: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2053 rm -f conftest.$ac_objext conftest.$ac_ext
2054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060 ac_test_CFLAGS=${CFLAGS+set}
2061 ac_save_CFLAGS=$CFLAGS
2063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_g+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 cat >conftest.$ac_ext <<_ACEOF
2069 #line $LINENO "configure"
2070 #include "confdefs.h"
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2094 echo "$as_me: failed program was:" >&5
2095 cat conftest.$ac_ext >&5
2098 rm -f conftest.$ac_objext conftest.$ac_ext
2100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2101 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2102 if test "$ac_test_CFLAGS" = set; then
2103 CFLAGS=$ac_save_CFLAGS
2104 elif test $ac_cv_prog_cc_g = yes; then
2105 if test "$GCC" = yes; then
2111 if test "$GCC" = yes; then
2117 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2118 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 ac_cv_prog_cc_stdc=no
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line $LINENO "configure"
2126 #include "confdefs.h"
2129 #include <sys/types.h>
2130 #include <sys/stat.h>
2131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2132 struct buf { int x; };
2133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2134 static char *e (p, i)
2140 static char *f (char * (*g) (char **, int), char **p, ...)
2145 s = g (p, va_arg (v,int));
2149 int test (int i, double x);
2150 struct s1 {int (*f) (int a);};
2151 struct s2 {int (*f) (double a);};
2152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2163 # Don't try gcc -ansi; that turns off useful extensions and
2164 # breaks some systems' header files.
2165 # AIX -qlanglvl=ansi
2166 # Ultrix and OSF/1 -std1
2167 # HP-UX 10.20 and later -Ae
2168 # HP-UX older versions -Aa -D_HPUX_SOURCE
2169 # SVR4 -Xc -D__EXTENSIONS__
2170 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2172 CC="$ac_save_CC $ac_arg"
2173 rm -f conftest.$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 ac_cv_prog_cc_stdc=$ac_arg
2188 echo "$as_me: failed program was:" >&5
2189 cat conftest.$ac_ext >&5
2191 rm -f conftest.$ac_objext
2193 rm -f conftest.$ac_ext conftest.$ac_objext
2198 case "x$ac_cv_prog_cc_stdc" in
2200 echo "$as_me:$LINENO: result: none needed" >&5
2201 echo "${ECHO_T}none needed" >&6 ;;
2203 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2204 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2205 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208 # Some people use a C++ compiler to compile C. Since we use `exit',
2209 # in C++ we need to declare it. In case someone uses the same compiler
2210 # for both compiling C and C++ we need to have the C++ compiler decide
2211 # the declaration of exit, since it's the most demanding environment.
2212 cat >conftest.$ac_ext <<_ACEOF
2217 rm -f conftest.$ac_objext
2218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2219 (eval $ac_compile) 2>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try='test -s conftest.$ac_objext'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 for ac_declaration in \
2231 '#include <stdlib.h>' \
2232 'extern "C" void std::exit (int) throw (); using std::exit;' \
2233 'extern "C" void std::exit (int); using std::exit;' \
2234 'extern "C" void exit (int) throw ();' \
2235 'extern "C" void exit (int);' \
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2240 #include "confdefs.h"
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 echo "$as_me: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2269 rm -f conftest.$ac_objext conftest.$ac_ext
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #line $LINENO "configure"
2272 #include "confdefs.h"
2282 rm -f conftest.$ac_objext
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284 (eval $ac_compile) 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2296 echo "$as_me: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2299 rm -f conftest.$ac_objext conftest.$ac_ext
2302 if test -n "$ac_declaration"; then
2303 echo '#ifdef __cplusplus' >>confdefs.h
2304 echo $ac_declaration >>confdefs.h
2305 echo '#endif' >>confdefs.h
2309 echo "$as_me: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2314 ac_cpp='$CPP $CPPFLAGS'
2315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2321 if test -f $ac_dir/install-sh; then
2323 ac_install_sh="$ac_aux_dir/install-sh -c"
2325 elif test -f $ac_dir/install.sh; then
2327 ac_install_sh="$ac_aux_dir/install.sh -c"
2329 elif test -f $ac_dir/shtool; then
2331 ac_install_sh="$ac_aux_dir/shtool install -c"
2335 if test -z "$ac_aux_dir"; then
2336 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2337 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2338 { (exit 1); exit 1; }; }
2340 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2341 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2342 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2344 # Find a good install program. We prefer a C program (faster),
2345 # so one script is as good as another. But avoid the broken or
2346 # incompatible versions:
2347 # SysV /etc/install, /usr/sbin/install
2348 # SunOS /usr/etc/install
2349 # IRIX /sbin/install
2351 # AmigaOS /C/install, which installs bootblocks on floppy discs
2352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2355 # ./install, which can be erroneously created by make from ./install.sh.
2356 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2357 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2358 if test -z "$INSTALL"; then
2359 if test "${ac_cv_path_install+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 test -z "$as_dir" && as_dir=.
2367 # Account for people who put trailing slashes in PATH elements.
2369 ./ | .// | /cC/* | \
2370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2373 # OSF1 and SCO ODT 3.0 have their own names for install.
2374 # Don't use installbsd from OSF since it installs stuff as root
2376 for ac_prog in ginstall scoinst install; do
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2379 if test $ac_prog = install &&
2380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381 # AIX install. It has an incompatible calling convention.
2383 elif test $ac_prog = install &&
2384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2385 # program-specific install script used by HP pwplus--don't use.
2388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2400 if test "${ac_cv_path_install+set}" = set; then
2401 INSTALL=$ac_cv_path_install
2403 # As a last resort, use the slow shell script. We don't cache a
2404 # path for INSTALL within a source directory, because that will
2405 # break other packages using the cache if that directory is
2406 # removed, or if the path is relative.
2407 INSTALL=$ac_install_sh
2410 echo "$as_me:$LINENO: result: $INSTALL" >&5
2411 echo "${ECHO_T}$INSTALL" >&6
2413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2414 # It thinks the first close brace ends the variable substitution.
2415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2417 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2421 for ac_prog in gawk mawk nawk awk
2423 # Extract the first word of "$ac_prog", so it can be a program name with args.
2424 set dummy $ac_prog; ac_word=$2
2425 echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2427 if test "${ac_cv_prog_AWK+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 if test -n "$AWK"; then
2431 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2440 ac_cv_prog_AWK="$ac_prog"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 if test -n "$AWK"; then
2451 echo "$as_me:$LINENO: result: $AWK" >&5
2452 echo "${ECHO_T}$AWK" >&6
2454 echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6
2458 test -n "$AWK" && break
2463 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2464 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2465 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2469 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2470 ac_cv_prog_gnu_ld=yes
2472 ac_cv_prog_gnu_ld=no
2475 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2476 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2480 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2481 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2482 if test "${ac_cv_search_strerror+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 ac_func_search_save_LIBS=$LIBS
2486 ac_cv_search_strerror=no
2487 cat >conftest.$ac_ext <<_ACEOF
2488 #line $LINENO "configure"
2489 #include "confdefs.h"
2491 /* Override any gcc2 internal prototype to avoid an error. */
2495 /* We use char because int might match the return type of a gcc2
2496 builtin and then its argument prototype would still apply. */
2506 rm -f conftest.$ac_objext conftest$ac_exeext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2508 (eval $ac_link) 2>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -s conftest$ac_exeext'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2518 ac_cv_search_strerror="none required"
2520 echo "$as_me: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2524 if test "$ac_cv_search_strerror" = no; then
2525 for ac_lib in cposix; do
2526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 #include "confdefs.h"
2531 /* Override any gcc2 internal prototype to avoid an error. */
2535 /* We use char because int might match the return type of a gcc2
2536 builtin and then its argument prototype would still apply. */
2546 rm -f conftest.$ac_objext conftest$ac_exeext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2548 (eval $ac_link) 2>&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -s conftest$ac_exeext'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2558 ac_cv_search_strerror="-l$ac_lib"
2561 echo "$as_me: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2567 LIBS=$ac_func_search_save_LIBS
2569 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2570 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2571 if test "$ac_cv_search_strerror" != no; then
2572 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2577 if test "x$CC" != xcc; then
2578 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2579 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2581 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2582 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2584 set dummy $CC; ac_cc=`echo $2 |
2585 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2586 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 cat >conftest.$ac_ext <<_ACEOF
2590 #line $LINENO "configure"
2591 #include "confdefs.h"
2601 # Make sure it works both with $CC and with simple cc.
2602 # We do the test twice because some compilers refuse to overwrite an
2603 # existing .o file with -o, though they will create one.
2604 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2605 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); };
2616 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2617 if test "x$CC" != xcc; then
2618 # Test first that cc exists at all.
2619 if { ac_try='cc -c conftest.$ac_ext >&5'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2626 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
2631 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); };
2640 # cc exists but doesn't like -o.
2641 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2646 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2651 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2652 echo "$as_me:$LINENO: result: yes" >&5
2653 echo "${ECHO_T}yes" >&6
2655 echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2658 cat >>confdefs.h <<\_ACEOF
2659 #define NO_MINUS_C_MINUS_O 1
2664 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2671 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2672 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2673 if test "${samba_cv_volatile+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2689 rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691 (eval $ac_compile) 2>&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } &&
2695 { ac_try='test -s conftest.$ac_objext'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2701 samba_cv_volatile=yes
2703 echo "$as_me: failed program was:" >&5
2704 cat conftest.$ac_ext >&5
2705 samba_cv_volatile=no
2707 rm -f conftest.$ac_objext conftest.$ac_ext
2709 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2710 echo "${ECHO_T}$samba_cv_volatile" >&6
2711 if test x"$samba_cv_volatile" = x"yes"; then
2713 cat >>confdefs.h <<\_ACEOF
2714 #define HAVE_VOLATILE 1
2720 # Make sure we can run config.sub.
2721 $ac_config_sub sun4 >/dev/null 2>&1 ||
2722 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2723 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2724 { (exit 1); exit 1; }; }
2726 echo "$as_me:$LINENO: checking build system type" >&5
2727 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2728 if test "${ac_cv_build+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 ac_cv_build_alias=$build_alias
2732 test -z "$ac_cv_build_alias" &&
2733 ac_cv_build_alias=`$ac_config_guess`
2734 test -z "$ac_cv_build_alias" &&
2735 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2736 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2737 { (exit 1); exit 1; }; }
2738 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2739 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2740 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2741 { (exit 1); exit 1; }; }
2744 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2745 echo "${ECHO_T}$ac_cv_build" >&6
2747 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2748 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2749 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2752 echo "$as_me:$LINENO: checking host system type" >&5
2753 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2754 if test "${ac_cv_host+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 ac_cv_host_alias=$host_alias
2758 test -z "$ac_cv_host_alias" &&
2759 ac_cv_host_alias=$ac_cv_build_alias
2760 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2761 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2762 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2763 { (exit 1); exit 1; }; }
2766 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2767 echo "${ECHO_T}$ac_cv_host" >&6
2769 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2770 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2771 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2774 echo "$as_me:$LINENO: checking target system type" >&5
2775 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2776 if test "${ac_cv_target+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 ac_cv_target_alias=$target_alias
2780 test "x$ac_cv_target_alias" = "x" &&
2781 ac_cv_target_alias=$ac_cv_host_alias
2782 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2783 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2784 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2785 { (exit 1); exit 1; }; }
2788 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2789 echo "${ECHO_T}$ac_cv_target" >&6
2790 target=$ac_cv_target
2791 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2792 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2793 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2796 # The aliases save the names the user supplied, while $host etc.
2797 # will get canonicalized.
2798 test -n "$target_alias" &&
2799 test "$program_prefix$program_suffix$program_transform_name" = \
2801 program_prefix=${target_alias}-
2804 *irix6*) cat >> confdefs.h <<\EOF
2805 #include <standards.h>
2813 echo "$as_me:$LINENO: checking config.cache system type" >&5
2814 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2815 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2816 test x"$ac_cv_host_system_type" != x"$host"; } ||
2817 { test x"${ac_cv_build_system_type+set}" = x"set" &&
2818 test x"$ac_cv_build_system_type" != x"$build"; } ||
2819 { test x"${ac_cv_target_system_type+set}" = x"set" &&
2820 test x"$ac_cv_target_system_type" != x"$target"; }; then
2821 echo "$as_me:$LINENO: result: different" >&5
2822 echo "${ECHO_T}different" >&6
2823 { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2824 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2825 { (exit 1); exit 1; }; }
2827 echo "$as_me:$LINENO: result: same" >&5
2828 echo "${ECHO_T}same" >&6
2830 ac_cv_host_system_type="$host"
2831 ac_cv_build_system_type="$build"
2832 ac_cv_target_system_type="$target"
2838 # Config CPPFLAG settings for strange OS's that must be set
2839 # before other tests.
2842 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2845 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2846 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2847 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 echo 'void f(){}' > conftest.c
2851 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2852 ac_cv_prog_cc_Ae=yes
2859 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2860 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2861 # mmap on HPUX is completely broken...
2863 cat >>confdefs.h <<\_ACEOF
2864 #define MMAP_BLACKLIST 1
2867 if test $ac_cv_prog_cc_Ae = yes; then
2868 CPPFLAGS="$CPPFLAGS -Ae"
2871 # Defines needed for HPUX support.
2872 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2873 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2877 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2879 cat >>confdefs.h <<\_ACEOF
2880 #define USE_BOTH_CRYPT_CALLS 1
2884 cat >>confdefs.h <<\_ACEOF
2885 #define _HPUX_SOURCE 1
2889 cat >>confdefs.h <<\_ACEOF
2890 #define _POSIX_SOURCE 1
2894 cat >>confdefs.h <<\_ACEOF
2895 #define _ALIGNMENT_REQUIRED 1
2899 cat >>confdefs.h <<\_ACEOF
2900 #define _MAX_ALIGNMENT 4
2905 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2907 cat >>confdefs.h <<\_ACEOF
2908 #define USE_BOTH_CRYPT_CALLS 1
2912 cat >>confdefs.h <<\_ACEOF
2913 #define _HPUX_SOURCE 1
2917 cat >>confdefs.h <<\_ACEOF
2918 #define _POSIX_SOURCE 1
2922 cat >>confdefs.h <<\_ACEOF
2923 #define _LARGEFILE64_SOURCE 1
2927 cat >>confdefs.h <<\_ACEOF
2928 #define _ALIGNMENT_REQUIRED 1
2932 cat >>confdefs.h <<\_ACEOF
2933 #define _MAX_ALIGNMENT 4
2942 # CRAY Unicos has broken const handling
2944 echo "$as_me:$LINENO: result: disabling const" >&5
2945 echo "${ECHO_T}disabling const" >&6
2946 CPPFLAGS="$CPPFLAGS -Dconst="
2950 # AIX4.x doesn't even admit to having large
2951 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2954 echo "$as_me:$LINENO: result: enabling large file support" >&5
2955 echo "${ECHO_T}enabling large file support" >&6
2956 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2958 cat >>confdefs.h <<\_ACEOF
2959 #define _LARGE_FILES 1
2964 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2965 # to the existance of large files..
2966 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2967 # recommendations on large file support, however it makes the
2968 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2969 # recommendation makes the compile fail on gcc2.7. JRA.
2973 5.0*|5.1*|5.2*|5.3*|5.5*)
2974 echo "$as_me:$LINENO: result: no large file support" >&5
2975 echo "${ECHO_T}no large file support" >&6
2978 echo "$as_me:$LINENO: result: enabling large file support" >&5
2979 echo "${ECHO_T}enabling large file support" >&6
2980 if test "$ac_cv_c_compiler_gnu" = yes; then
2981 ${CC-cc} -v >conftest.c 2>&1
2982 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2984 case "$ac_cv_gcc_compiler_version_number" in
2985 *"gcc version 2.6"*|*"gcc version 2.7"*)
2986 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2988 cat >>confdefs.h <<\_ACEOF
2989 #define _LARGEFILE64_SOURCE 1
2994 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2996 cat >>confdefs.h <<\_ACEOF
2997 #define _LARGEFILE64_SOURCE 1
3001 cat >>confdefs.h <<\_ACEOF
3002 #define _FILE_OFFSET_BITS 64
3008 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
3010 cat >>confdefs.h <<\_ACEOF
3011 #define _LARGEFILE64_SOURCE 1
3015 cat >>confdefs.h <<\_ACEOF
3016 #define _FILE_OFFSET_BITS 64
3024 # Tests needed for SINIX large file support.
3027 if test $host = mips-sni-sysv4 ; then
3028 echo "$as_me:$LINENO: checking for LFS support" >&5
3029 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3030 old_CPPFLAGS="$CPPFLAGS"
3031 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3032 if test "$cross_compiling" = yes; then
3033 SINIX_LFS_SUPPORT=cross
3035 cat >conftest.$ac_ext <<_ACEOF
3036 #line $LINENO "configure"
3037 #include "confdefs.h"
3041 #if _LFS64_LARGEFILE == 1
3048 rm -f conftest$ac_exeext
3049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3050 (eval $ac_link) 2>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 SINIX_LFS_SUPPORT=yes
3061 echo "$as_me: program exited with status $ac_status" >&5
3062 echo "$as_me: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 SINIX_LFS_SUPPORT=no
3067 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3069 CPPFLAGS="$old_CPPFLAGS"
3070 if test x$SINIX_LFS_SUPPORT = xyes ; then
3071 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3073 cat >>confdefs.h <<\_ACEOF
3074 #define _LARGEFILE64_SOURCE 1
3077 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3078 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3079 LIBS="`getconf LFS64_LIBS` $LIBS"
3081 echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3082 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3086 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3089 echo "$as_me:$LINENO: checking for LFS support" >&5
3090 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3091 old_CPPFLAGS="$CPPFLAGS"
3092 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3093 if test "$cross_compiling" = yes; then
3094 LINUX_LFS_SUPPORT=cross
3096 cat >conftest.$ac_ext <<_ACEOF
3097 #line $LINENO "configure"
3098 #include "confdefs.h"
3101 #include <sys/utsname.h>
3103 #if _LFS64_LARGEFILE == 1
3108 /* Ensure this is glibc 2.2 or higher */
3109 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3110 int libc_major = __GLIBC__;
3111 int libc_minor = __GLIBC_MINOR__;
3119 /* Ensure this is kernel 2.4 or higher */
3122 release = uts.release;
3123 major = atoi(strsep(&release, "."));
3124 minor = atoi(strsep(&release, "."));
3126 if (major > 2 || (major == 2 && minor > 3))
3135 rm -f conftest$ac_exeext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3137 (eval $ac_link) 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 LINUX_LFS_SUPPORT=yes
3148 echo "$as_me: program exited with status $ac_status" >&5
3149 echo "$as_me: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3152 LINUX_LFS_SUPPORT=no
3154 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3156 CPPFLAGS="$old_CPPFLAGS"
3157 if test x$LINUX_LFS_SUPPORT = xyes ; then
3158 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3160 cat >>confdefs.h <<\_ACEOF
3161 #define _LARGEFILE64_SOURCE 1
3165 cat >>confdefs.h <<\_ACEOF
3166 #define _FILE_OFFSET_BITS 64
3170 cat >>confdefs.h <<\_ACEOF
3171 #define _GNU_SOURCE 1
3175 echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3176 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3180 echo "$as_me:$LINENO: checking for LFS support" >&5
3181 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3182 old_CPPFLAGS="$CPPFLAGS"
3183 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3184 if test "$cross_compiling" = yes; then
3185 GLIBC_LFS_SUPPORT=cross
3187 cat >conftest.$ac_ext <<_ACEOF
3188 #line $LINENO "configure"
3189 #include "confdefs.h"
3193 #if _LFS64_LARGEFILE == 1
3200 rm -f conftest$ac_exeext
3201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3202 (eval $ac_link) 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 GLIBC_LFS_SUPPORT=yes
3213 echo "$as_me: program exited with status $ac_status" >&5
3214 echo "$as_me: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3217 GLIBC_LFS_SUPPORT=no
3219 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3221 CPPFLAGS="$old_CPPFLAGS"
3222 if test x$GLIBC_LFS_SUPPORT = xyes ; then
3223 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3225 cat >>confdefs.h <<\_ACEOF
3226 #define _LARGEFILE64_SOURCE 1
3230 cat >>confdefs.h <<\_ACEOF
3231 #define _GNU_SOURCE 1
3235 echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3236 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3241 echo "$as_me:$LINENO: checking for inline" >&5
3242 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3243 if test "${ac_cv_c_inline+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 for ac_kw in inline __inline__ __inline; do
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 #include "confdefs.h"
3253 static $ac_kw foo_t static_foo () {return 0; }
3254 $ac_kw foo_t foo () {return 0; }
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_cv_c_inline=$ac_kw; break
3272 echo "$as_me: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 rm -f conftest.$ac_objext conftest.$ac_ext
3279 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3280 echo "${ECHO_T}$ac_cv_c_inline" >&6
3281 case $ac_cv_c_inline in
3284 cat >>confdefs.h <<\_ACEOF
3288 *) cat >>confdefs.h <<_ACEOF
3289 #define inline $ac_cv_c_inline
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3300 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3301 # On Suns, sometimes $CPP names a directory.
3302 if test -n "$CPP" && test -d "$CPP"; then
3305 if test -z "$CPP"; then
3306 if test "${ac_cv_prog_CPP+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 # Double quotes because CPP needs to be expanded
3310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3313 for ac_c_preproc_warn_flag in '' yes
3315 # Use a header file that comes with gcc, so configuring glibc
3316 # with a fresh cross-compiler works.
3317 # On the NeXT, cc -E runs the code through the compiler's parser,
3318 # not just through cpp. "Syntax error" is here to catch this case.
3319 cat >conftest.$ac_ext <<_ACEOF
3320 #line $LINENO "configure"
3321 #include "confdefs.h"
3325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3328 grep -v '^ *+' conftest.er1 >conftest.err
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } >/dev/null; then
3333 if test -s conftest.err; then
3334 ac_cpp_err=$ac_c_preproc_warn_flag
3341 if test -z "$ac_cpp_err"; then
3344 echo "$as_me: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3346 # Broken: fails on valid input.
3349 rm -f conftest.err conftest.$ac_ext
3351 # OK, works on sane cases. Now check whether non-existent headers
3352 # can be detected and how.
3353 cat >conftest.$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3355 #include "confdefs.h"
3356 #include <ac_nonexistent.h>
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3374 if test -z "$ac_cpp_err"; then
3375 # Broken: success on invalid input.
3378 echo "$as_me: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3380 # Passes both tests.
3384 rm -f conftest.err conftest.$ac_ext
3387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3388 rm -f conftest.err conftest.$ac_ext
3389 if $ac_preproc_ok; then
3401 echo "$as_me:$LINENO: result: $CPP" >&5
3402 echo "${ECHO_T}$CPP" >&6
3404 for ac_c_preproc_warn_flag in '' yes
3406 # Use a header file that comes with gcc, so configuring glibc
3407 # with a fresh cross-compiler works.
3408 # On the NeXT, cc -E runs the code through the compiler's parser,
3409 # not just through cpp. "Syntax error" is here to catch this case.
3410 cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 #include "confdefs.h"
3416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3419 grep -v '^ *+' conftest.er1 >conftest.err
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev/null; then
3424 if test -s conftest.err; then
3425 ac_cpp_err=$ac_c_preproc_warn_flag
3432 if test -z "$ac_cpp_err"; then
3435 echo "$as_me: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3437 # Broken: fails on valid input.
3440 rm -f conftest.err conftest.$ac_ext
3442 # OK, works on sane cases. Now check whether non-existent headers
3443 # can be detected and how.
3444 cat >conftest.$ac_ext <<_ACEOF
3445 #line $LINENO "configure"
3446 #include "confdefs.h"
3447 #include <ac_nonexistent.h>
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3465 if test -z "$ac_cpp_err"; then
3466 # Broken: success on invalid input.
3469 echo "$as_me: failed program was:" >&5
3470 cat conftest.$ac_ext >&5
3471 # Passes both tests.
3475 rm -f conftest.err conftest.$ac_ext
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3483 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3484 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3485 { (exit 1); exit 1; }; }
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 echo "$as_me:$LINENO: checking for egrep" >&5
3496 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3497 if test "${ac_cv_prog_egrep+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3501 then ac_cv_prog_egrep='grep -E'
3502 else ac_cv_prog_egrep='egrep'
3505 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3506 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3507 EGREP=$ac_cv_prog_egrep
3510 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3511 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3512 if test "${ac_cv_header_stdc+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 cat >conftest.$ac_ext <<_ACEOF
3516 #line $LINENO "configure"
3517 #include "confdefs.h"
3524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3540 if test -z "$ac_cpp_err"; then
3541 ac_cv_header_stdc=yes
3543 echo "$as_me: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3545 ac_cv_header_stdc=no
3547 rm -f conftest.err conftest.$ac_ext
3549 if test $ac_cv_header_stdc = yes; then
3550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3551 cat >conftest.$ac_ext <<_ACEOF
3552 #line $LINENO "configure"
3553 #include "confdefs.h"
3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558 $EGREP "memchr" >/dev/null 2>&1; then
3561 ac_cv_header_stdc=no
3567 if test $ac_cv_header_stdc = yes; then
3568 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3571 #include "confdefs.h"
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576 $EGREP "free" >/dev/null 2>&1; then
3579 ac_cv_header_stdc=no
3585 if test $ac_cv_header_stdc = yes; then
3586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3587 if test "$cross_compiling" = yes; then
3590 cat >conftest.$ac_ext <<_ACEOF
3591 #line $LINENO "configure"
3592 #include "confdefs.h"
3594 #if ((' ' & 0x0FF) == 0x020)
3595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3598 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3599 || ('j' <= (c) && (c) <= 'r') \
3600 || ('s' <= (c) && (c) <= 'z'))
3601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3609 for (i = 0; i < 256; i++)
3610 if (XOR (islower (i), ISLOWER (i))
3611 || toupper (i) != TOUPPER (i))
3616 rm -f conftest$ac_exeext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618 (eval $ac_link) 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3629 echo "$as_me: program exited with status $ac_status" >&5
3630 echo "$as_me: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 ac_cv_header_stdc=no
3635 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3639 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3640 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3641 if test $ac_cv_header_stdc = yes; then
3643 cat >>confdefs.h <<\_ACEOF
3644 #define STDC_HEADERS 1
3655 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3656 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3657 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3658 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 cat >conftest.$ac_ext <<_ACEOF
3663 #line $LINENO "configure"
3664 #include "confdefs.h"
3665 #include <sys/types.h>
3677 rm -f conftest.$ac_objext
3678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3679 (eval $ac_compile) 2>&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try='test -s conftest.$ac_objext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 eval "$as_ac_Header=yes"
3691 echo "$as_me: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3693 eval "$as_ac_Header=no"
3695 rm -f conftest.$ac_objext conftest.$ac_ext
3697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3700 cat >>confdefs.h <<_ACEOF
3701 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3704 ac_header_dirent=$ac_hdr; break
3708 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3709 if test $ac_header_dirent = dirent.h; then
3710 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3711 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3712 if test "${ac_cv_search_opendir+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 ac_func_search_save_LIBS=$LIBS
3716 ac_cv_search_opendir=no
3717 cat >conftest.$ac_ext <<_ACEOF
3718 #line $LINENO "configure"
3719 #include "confdefs.h"
3721 /* Override any gcc2 internal prototype to avoid an error. */
3725 /* We use char because int might match the return type of a gcc2
3726 builtin and then its argument prototype would still apply. */
3736 rm -f conftest.$ac_objext conftest$ac_exeext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738 (eval $ac_link) 2>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -s conftest$ac_exeext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_search_opendir="none required"
3750 echo "$as_me: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3754 if test "$ac_cv_search_opendir" = no; then
3755 for ac_lib in dir; do
3756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3757 cat >conftest.$ac_ext <<_ACEOF
3758 #line $LINENO "configure"
3759 #include "confdefs.h"
3761 /* Override any gcc2 internal prototype to avoid an error. */
3765 /* We use char because int might match the return type of a gcc2
3766 builtin and then its argument prototype would still apply. */
3776 rm -f conftest.$ac_objext conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778 (eval $ac_link) 2>&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } &&
3782 { ac_try='test -s conftest$ac_exeext'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 ac_cv_search_opendir="-l$ac_lib"
3791 echo "$as_me: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3797 LIBS=$ac_func_search_save_LIBS
3799 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3800 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3801 if test "$ac_cv_search_opendir" != no; then
3802 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3807 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3808 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3809 if test "${ac_cv_search_opendir+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 ac_func_search_save_LIBS=$LIBS
3813 ac_cv_search_opendir=no
3814 cat >conftest.$ac_ext <<_ACEOF
3815 #line $LINENO "configure"
3816 #include "confdefs.h"
3818 /* Override any gcc2 internal prototype to avoid an error. */
3822 /* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3833 rm -f conftest.$ac_objext conftest$ac_exeext
3834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3835 (eval $ac_link) 2>&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -s conftest$ac_exeext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_cv_search_opendir="none required"
3847 echo "$as_me: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3851 if test "$ac_cv_search_opendir" = no; then
3853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3854 cat >conftest.$ac_ext <<_ACEOF
3855 #line $LINENO "configure"
3856 #include "confdefs.h"
3858 /* Override any gcc2 internal prototype to avoid an error. */
3862 /* We use char because int might match the return type of a gcc2
3863 builtin and then its argument prototype would still apply. */
3873 rm -f conftest.$ac_objext conftest$ac_exeext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3875 (eval $ac_link) 2>&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -s conftest$ac_exeext'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 ac_cv_search_opendir="-l$ac_lib"
3888 echo "$as_me: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3894 LIBS=$ac_func_search_save_LIBS
3896 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3897 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3898 if test "$ac_cv_search_opendir" != no; then
3899 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3905 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3906 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3907 if test "${ac_cv_header_time+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 cat >conftest.$ac_ext <<_ACEOF
3911 #line $LINENO "configure"
3912 #include "confdefs.h"
3913 #include <sys/types.h>
3914 #include <sys/time.h>
3920 if ((struct tm *) 0)
3926 rm -f conftest.$ac_objext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -s conftest.$ac_objext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_header_time=yes
3940 echo "$as_me: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3942 ac_cv_header_time=no
3944 rm -f conftest.$ac_objext conftest.$ac_ext
3946 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3947 echo "${ECHO_T}$ac_cv_header_time" >&6
3948 if test $ac_cv_header_time = yes; then
3950 cat >>confdefs.h <<\_ACEOF
3951 #define TIME_WITH_SYS_TIME 1
3956 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3957 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3958 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 cat >conftest.$ac_ext <<_ACEOF
3962 #line $LINENO "configure"
3963 #include "confdefs.h"
3964 #include <sys/types.h>
3965 #include <sys/wait.h>
3967 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3970 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3978 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3983 rm -f conftest.$ac_objext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3985 (eval $ac_compile) 2>&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } &&
3989 { ac_try='test -s conftest.$ac_objext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_header_sys_wait_h=yes
3997 echo "$as_me: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
3999 ac_cv_header_sys_wait_h=no
4001 rm -f conftest.$ac_objext conftest.$ac_ext
4003 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4004 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4005 if test $ac_cv_header_sys_wait_h = yes; then
4007 cat >>confdefs.h <<\_ACEOF
4008 #define HAVE_SYS_WAIT_H 1
4013 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4023 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4024 inttypes.h stdint.h unistd.h
4026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4027 echo "$as_me:$LINENO: checking for $ac_header" >&5
4028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 cat >conftest.$ac_ext <<_ACEOF
4033 #line $LINENO "configure"
4034 #include "confdefs.h"
4035 $ac_includes_default
4037 #include <$ac_header>
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -s conftest.$ac_objext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 eval "$as_ac_Header=yes"
4053 echo "$as_me: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4055 eval "$as_ac_Header=no"
4057 rm -f conftest.$ac_objext conftest.$ac_ext
4059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4062 cat >>confdefs.h <<_ACEOF
4063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4077 for ac_header in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
4079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4081 echo "$as_me:$LINENO: checking for $ac_header" >&5
4082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4089 # Is the header compilable?
4090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4092 cat >conftest.$ac_ext <<_ACEOF
4093 #line $LINENO "configure"
4094 #include "confdefs.h"
4095 $ac_includes_default
4096 #include <$ac_header>
4098 rm -f conftest.$ac_objext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100 (eval $ac_compile) 2>&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -s conftest.$ac_objext'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 ac_header_compiler=yes
4112 echo "$as_me: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4114 ac_header_compiler=no
4116 rm -f conftest.$ac_objext conftest.$ac_ext
4117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4118 echo "${ECHO_T}$ac_header_compiler" >&6
4120 # Is the header present?
4121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4123 cat >conftest.$ac_ext <<_ACEOF
4124 #line $LINENO "configure"
4125 #include "confdefs.h"
4126 #include <$ac_header>
4128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4131 grep -v '^ *+' conftest.er1 >conftest.err
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } >/dev/null; then
4136 if test -s conftest.err; then
4137 ac_cpp_err=$ac_c_preproc_warn_flag
4144 if test -z "$ac_cpp_err"; then
4145 ac_header_preproc=yes
4147 echo "$as_me: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4149 ac_header_preproc=no
4151 rm -f conftest.err conftest.$ac_ext
4152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4153 echo "${ECHO_T}$ac_header_preproc" >&6
4155 # So? What about this header?
4156 case $ac_header_compiler:$ac_header_preproc in
4158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4170 echo "$as_me:$LINENO: checking for $ac_header" >&5
4171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 eval "$as_ac_Header=$ac_header_preproc"
4177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4182 cat >>confdefs.h <<_ACEOF
4183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4197 for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
4199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4201 echo "$as_me:$LINENO: checking for $ac_header" >&5
4202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4209 # Is the header compilable?
4210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4213 #line $LINENO "configure"
4214 #include "confdefs.h"
4215 $ac_includes_default
4216 #include <$ac_header>
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_header_compiler=yes
4232 echo "$as_me: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 ac_header_compiler=no
4236 rm -f conftest.$ac_objext conftest.$ac_ext
4237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4238 echo "${ECHO_T}$ac_header_compiler" >&6
4240 # Is the header present?
4241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4243 cat >conftest.$ac_ext <<_ACEOF
4244 #line $LINENO "configure"
4245 #include "confdefs.h"
4246 #include <$ac_header>
4248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4251 grep -v '^ *+' conftest.er1 >conftest.err
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } >/dev/null; then
4256 if test -s conftest.err; then
4257 ac_cpp_err=$ac_c_preproc_warn_flag
4264 if test -z "$ac_cpp_err"; then
4265 ac_header_preproc=yes
4267 echo "$as_me: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 ac_header_preproc=no
4271 rm -f conftest.err conftest.$ac_ext
4272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4273 echo "${ECHO_T}$ac_header_preproc" >&6
4275 # So? What about this header?
4276 case $ac_header_compiler:$ac_header_preproc in
4278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4290 echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 eval "$as_ac_Header=$ac_header_preproc"
4297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302 cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4315 for ac_header in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
4317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4319 echo "$as_me:$LINENO: checking for $ac_header" >&5
4320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4327 # Is the header compilable?
4328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4330 cat >conftest.$ac_ext <<_ACEOF
4331 #line $LINENO "configure"
4332 #include "confdefs.h"
4333 $ac_includes_default
4334 #include <$ac_header>
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_header_compiler=yes
4350 echo "$as_me: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4352 ac_header_compiler=no
4354 rm -f conftest.$ac_objext conftest.$ac_ext
4355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4356 echo "${ECHO_T}$ac_header_compiler" >&6
4358 # Is the header present?
4359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4361 cat >conftest.$ac_ext <<_ACEOF
4362 #line $LINENO "configure"
4363 #include "confdefs.h"
4364 #include <$ac_header>
4366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4369 grep -v '^ *+' conftest.er1 >conftest.err
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } >/dev/null; then
4374 if test -s conftest.err; then
4375 ac_cpp_err=$ac_c_preproc_warn_flag
4382 if test -z "$ac_cpp_err"; then
4383 ac_header_preproc=yes
4385 echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 ac_header_preproc=no
4389 rm -f conftest.err conftest.$ac_ext
4390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4391 echo "${ECHO_T}$ac_header_preproc" >&6
4393 # So? What about this header?
4394 case $ac_header_compiler:$ac_header_preproc in
4396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4408 echo "$as_me:$LINENO: checking for $ac_header" >&5
4409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 eval "$as_ac_Header=$ac_header_preproc"
4415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4420 cat >>confdefs.h <<_ACEOF
4421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4435 for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
4437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4439 echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4447 # Is the header compilable?
4448 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4450 cat >conftest.$ac_ext <<_ACEOF
4451 #line $LINENO "configure"
4452 #include "confdefs.h"
4453 $ac_includes_default
4454 #include <$ac_header>
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458 (eval $ac_compile) 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 ac_header_compiler=yes
4470 echo "$as_me: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4472 ac_header_compiler=no
4474 rm -f conftest.$ac_objext conftest.$ac_ext
4475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4476 echo "${ECHO_T}$ac_header_compiler" >&6
4478 # Is the header present?
4479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4481 cat >conftest.$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4483 #include "confdefs.h"
4484 #include <$ac_header>
4486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4489 grep -v '^ *+' conftest.er1 >conftest.err
4491 cat conftest.err >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } >/dev/null; then
4494 if test -s conftest.err; then
4495 ac_cpp_err=$ac_c_preproc_warn_flag
4502 if test -z "$ac_cpp_err"; then
4503 ac_header_preproc=yes
4505 echo "$as_me: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4507 ac_header_preproc=no
4509 rm -f conftest.err conftest.$ac_ext
4510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4511 echo "${ECHO_T}$ac_header_preproc" >&6
4513 # So? What about this header?
4514 case $ac_header_compiler:$ac_header_preproc in
4516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4528 echo "$as_me:$LINENO: checking for $ac_header" >&5
4529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 eval "$as_ac_Header=$ac_header_preproc"
4535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4540 cat >>confdefs.h <<_ACEOF
4541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4556 for ac_header in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
4558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4560 echo "$as_me:$LINENO: checking for $ac_header" >&5
4561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4568 # Is the header compilable?
4569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4573 #include "confdefs.h"
4574 $ac_includes_default
4575 #include <$ac_header>
4577 rm -f conftest.$ac_objext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -s conftest.$ac_objext'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4589 ac_header_compiler=yes
4591 echo "$as_me: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4593 ac_header_compiler=no
4595 rm -f conftest.$ac_objext conftest.$ac_ext
4596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4597 echo "${ECHO_T}$ac_header_compiler" >&6
4599 # Is the header present?
4600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4602 cat >conftest.$ac_ext <<_ACEOF
4603 #line $LINENO "configure"
4604 #include "confdefs.h"
4605 #include <$ac_header>
4607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4610 grep -v '^ *+' conftest.er1 >conftest.err
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } >/dev/null; then
4615 if test -s conftest.err; then
4616 ac_cpp_err=$ac_c_preproc_warn_flag
4623 if test -z "$ac_cpp_err"; then
4624 ac_header_preproc=yes
4626 echo "$as_me: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4628 ac_header_preproc=no
4630 rm -f conftest.err conftest.$ac_ext
4631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4632 echo "${ECHO_T}$ac_header_preproc" >&6
4634 # So? What about this header?
4635 case $ac_header_compiler:$ac_header_preproc in
4637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4649 echo "$as_me:$LINENO: checking for $ac_header" >&5
4650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 eval "$as_ac_Header=$ac_header_preproc"
4656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4661 cat >>confdefs.h <<_ACEOF
4662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4675 for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
4677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4679 echo "$as_me:$LINENO: checking for $ac_header" >&5
4680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4687 # Is the header compilable?
4688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4690 cat >conftest.$ac_ext <<_ACEOF
4691 #line $LINENO "configure"
4692 #include "confdefs.h"
4693 $ac_includes_default
4694 #include <$ac_header>
4696 rm -f conftest.$ac_objext
4697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698 (eval $ac_compile) 2>&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -s conftest.$ac_objext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4708 ac_header_compiler=yes
4710 echo "$as_me: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4712 ac_header_compiler=no
4714 rm -f conftest.$ac_objext conftest.$ac_ext
4715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4716 echo "${ECHO_T}$ac_header_compiler" >&6
4718 # Is the header present?
4719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4721 cat >conftest.$ac_ext <<_ACEOF
4722 #line $LINENO "configure"
4723 #include "confdefs.h"
4724 #include <$ac_header>
4726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4729 grep -v '^ *+' conftest.er1 >conftest.err
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } >/dev/null; then
4734 if test -s conftest.err; then
4735 ac_cpp_err=$ac_c_preproc_warn_flag
4742 if test -z "$ac_cpp_err"; then
4743 ac_header_preproc=yes
4745 echo "$as_me: failed program was:" >&5
4746 cat conftest.$ac_ext >&5
4747 ac_header_preproc=no
4749 rm -f conftest.err conftest.$ac_ext
4750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4751 echo "${ECHO_T}$ac_header_preproc" >&6
4753 # So? What about this header?
4754 case $ac_header_compiler:$ac_header_preproc in
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4768 echo "$as_me:$LINENO: checking for $ac_header" >&5
4769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 eval "$as_ac_Header=$ac_header_preproc"
4775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4780 cat >>confdefs.h <<_ACEOF
4781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4794 for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
4796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4798 echo "$as_me:$LINENO: checking for $ac_header" >&5
4799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4806 # Is the header compilable?
4807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4810 #line $LINENO "configure"
4811 #include "confdefs.h"
4812 $ac_includes_default
4813 #include <$ac_header>
4815 rm -f conftest.$ac_objext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_header_compiler=yes
4829 echo "$as_me: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4831 ac_header_compiler=no
4833 rm -f conftest.$ac_objext conftest.$ac_ext
4834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4835 echo "${ECHO_T}$ac_header_compiler" >&6
4837 # Is the header present?
4838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4840 cat >conftest.$ac_ext <<_ACEOF
4841 #line $LINENO "configure"
4842 #include "confdefs.h"
4843 #include <$ac_header>
4845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4848 grep -v '^ *+' conftest.er1 >conftest.err
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } >/dev/null; then
4853 if test -s conftest.err; then
4854 ac_cpp_err=$ac_c_preproc_warn_flag
4861 if test -z "$ac_cpp_err"; then
4862 ac_header_preproc=yes
4864 echo "$as_me: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4866 ac_header_preproc=no
4868 rm -f conftest.err conftest.$ac_ext
4869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6
4872 # So? What about this header?
4873 case $ac_header_compiler:$ac_header_preproc in
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4887 echo "$as_me:$LINENO: checking for $ac_header" >&5
4888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 eval "$as_ac_Header=$ac_header_preproc"
4894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4899 cat >>confdefs.h <<_ACEOF
4900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4912 for ac_header in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
4914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4916 echo "$as_me:$LINENO: checking for $ac_header" >&5
4917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4924 # Is the header compilable?
4925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4927 cat >conftest.$ac_ext <<_ACEOF
4928 #line $LINENO "configure"
4929 #include "confdefs.h"
4930 $ac_includes_default
4931 #include <$ac_header>
4933 rm -f conftest.$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -s conftest.$ac_objext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4945 ac_header_compiler=yes
4947 echo "$as_me: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4949 ac_header_compiler=no
4951 rm -f conftest.$ac_objext conftest.$ac_ext
4952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4953 echo "${ECHO_T}$ac_header_compiler" >&6
4955 # Is the header present?
4956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4958 cat >conftest.$ac_ext <<_ACEOF
4959 #line $LINENO "configure"
4960 #include "confdefs.h"
4961 #include <$ac_header>
4963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4966 grep -v '^ *+' conftest.er1 >conftest.err
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } >/dev/null; then
4971 if test -s conftest.err; then
4972 ac_cpp_err=$ac_c_preproc_warn_flag
4979 if test -z "$ac_cpp_err"; then
4980 ac_header_preproc=yes
4982 echo "$as_me: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4984 ac_header_preproc=no
4986 rm -f conftest.err conftest.$ac_ext
4987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4988 echo "${ECHO_T}$ac_header_preproc" >&6
4990 # So? What about this header?
4991 case $ac_header_compiler:$ac_header_preproc in
4993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5005 echo "$as_me:$LINENO: checking for $ac_header" >&5
5006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 eval "$as_ac_Header=$ac_header_preproc"
5012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5017 cat >>confdefs.h <<_ACEOF
5018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5027 for ac_header in sys/syslog.h syslog.h
5029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5031 echo "$as_me:$LINENO: checking for $ac_header" >&5
5032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5039 # Is the header compilable?
5040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5042 cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5044 #include "confdefs.h"
5045 $ac_includes_default
5046 #include <$ac_header>
5048 rm -f conftest.$ac_objext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5050 (eval $ac_compile) 2>&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } &&
5054 { ac_try='test -s conftest.$ac_objext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 ac_header_compiler=yes
5062 echo "$as_me: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5064 ac_header_compiler=no
5066 rm -f conftest.$ac_objext conftest.$ac_ext
5067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5068 echo "${ECHO_T}$ac_header_compiler" >&6
5070 # Is the header present?
5071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5073 cat >conftest.$ac_ext <<_ACEOF
5074 #line $LINENO "configure"
5075 #include "confdefs.h"
5076 #include <$ac_header>
5078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5081 grep -v '^ *+' conftest.er1 >conftest.err
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev/null; then
5086 if test -s conftest.err; then
5087 ac_cpp_err=$ac_c_preproc_warn_flag
5094 if test -z "$ac_cpp_err"; then
5095 ac_header_preproc=yes
5097 echo "$as_me: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5099 ac_header_preproc=no
5101 rm -f conftest.err conftest.$ac_ext
5102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5103 echo "${ECHO_T}$ac_header_preproc" >&6
5105 # So? What about this header?
5106 case $ac_header_compiler:$ac_header_preproc in
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5120 echo "$as_me:$LINENO: checking for $ac_header" >&5
5121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 eval "$as_ac_Header=$ac_header_preproc"
5127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5132 cat >>confdefs.h <<_ACEOF
5133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5142 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
5143 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
5147 cat >conftest.$ac_ext <<_ACEOF
5148 #line $LINENO "configure"
5149 #include "confdefs.h"
5159 rm -f conftest.$ac_objext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161 (eval $ac_compile) 2>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -s conftest.$ac_objext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 ac_cv_header_shadow_h=yes
5173 echo "$as_me: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5175 ac_cv_header_shadow_h=no
5177 rm -f conftest.$ac_objext conftest.$ac_ext
5178 if test x"$ac_cv_header_shadow_h" = x"yes"; then
5180 cat >>confdefs.h <<\_ACEOF
5181 #define HAVE_SHADOW_H 1
5192 for ac_header in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
5194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5196 echo "$as_me:$LINENO: checking for $ac_header" >&5
5197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5204 # Is the header compilable?
5205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5207 cat >conftest.$ac_ext <<_ACEOF
5208 #line $LINENO "configure"
5209 #include "confdefs.h"
5210 $ac_includes_default
5211 #include <$ac_header>
5213 rm -f conftest.$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215 (eval $ac_compile) 2>&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try='test -s conftest.$ac_objext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5225 ac_header_compiler=yes
5227 echo "$as_me: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5229 ac_header_compiler=no
5231 rm -f conftest.$ac_objext conftest.$ac_ext
5232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5233 echo "${ECHO_T}$ac_header_compiler" >&6
5235 # Is the header present?
5236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5238 cat >conftest.$ac_ext <<_ACEOF
5239 #line $LINENO "configure"
5240 #include "confdefs.h"
5241 #include <$ac_header>
5243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5246 grep -v '^ *+' conftest.er1 >conftest.err
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null; then
5251 if test -s conftest.err; then
5252 ac_cpp_err=$ac_c_preproc_warn_flag
5259 if test -z "$ac_cpp_err"; then
5260 ac_header_preproc=yes
5262 echo "$as_me: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5264 ac_header_preproc=no
5266 rm -f conftest.err conftest.$ac_ext
5267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5268 echo "${ECHO_T}$ac_header_preproc" >&6
5270 # So? What about this header?
5271 case $ac_header_compiler:$ac_header_preproc in
5273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5285 echo "$as_me:$LINENO: checking for $ac_header" >&5
5286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 eval "$as_ac_Header=$ac_header_preproc"
5292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5297 cat >>confdefs.h <<_ACEOF
5298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5311 for ac_header in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
5313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5315 echo "$as_me:$LINENO: checking for $ac_header" >&5
5316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5323 # Is the header compilable?
5324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5326 cat >conftest.$ac_ext <<_ACEOF
5327 #line $LINENO "configure"
5328 #include "confdefs.h"
5329 $ac_includes_default
5330 #include <$ac_header>
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_header_compiler=yes
5346 echo "$as_me: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5348 ac_header_compiler=no
5350 rm -f conftest.$ac_objext conftest.$ac_ext
5351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5352 echo "${ECHO_T}$ac_header_compiler" >&6
5354 # Is the header present?
5355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5357 cat >conftest.$ac_ext <<_ACEOF
5358 #line $LINENO "configure"
5359 #include "confdefs.h"
5360 #include <$ac_header>
5362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5365 grep -v '^ *+' conftest.er1 >conftest.err
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } >/dev/null; then
5370 if test -s conftest.err; then
5371 ac_cpp_err=$ac_c_preproc_warn_flag
5378 if test -z "$ac_cpp_err"; then
5379 ac_header_preproc=yes
5381 echo "$as_me: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 ac_header_preproc=no
5385 rm -f conftest.err conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5387 echo "${ECHO_T}$ac_header_preproc" >&6
5389 # So? What about this header?
5390 case $ac_header_compiler:$ac_header_preproc in
5392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5404 echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 eval "$as_ac_Header=$ac_header_preproc"
5411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5426 for ac_header in stropts.h poll.h
5428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5430 echo "$as_me:$LINENO: checking for $ac_header" >&5
5431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5438 # Is the header compilable?
5439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5441 cat >conftest.$ac_ext <<_ACEOF
5442 #line $LINENO "configure"
5443 #include "confdefs.h"
5444 $ac_includes_default
5445 #include <$ac_header>
5447 rm -f conftest.$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449 (eval $ac_compile) 2>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_header_compiler=yes
5461 echo "$as_me: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5463 ac_header_compiler=no
5465 rm -f conftest.$ac_objext conftest.$ac_ext
5466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5467 echo "${ECHO_T}$ac_header_compiler" >&6
5469 # Is the header present?
5470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5472 cat >conftest.$ac_ext <<_ACEOF
5473 #line $LINENO "configure"
5474 #include "confdefs.h"
5475 #include <$ac_header>
5477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5480 grep -v '^ *+' conftest.er1 >conftest.err
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } >/dev/null; then
5485 if test -s conftest.err; then
5486 ac_cpp_err=$ac_c_preproc_warn_flag
5493 if test -z "$ac_cpp_err"; then
5494 ac_header_preproc=yes
5496 echo "$as_me: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5498 ac_header_preproc=no
5500 rm -f conftest.err conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5502 echo "${ECHO_T}$ac_header_preproc" >&6
5504 # So? What about this header?
5505 case $ac_header_compiler:$ac_header_preproc in
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5519 echo "$as_me:$LINENO: checking for $ac_header" >&5
5520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 eval "$as_ac_Header=$ac_header_preproc"
5526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5531 cat >>confdefs.h <<_ACEOF
5532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5542 for ac_header in sys/capability.h syscall.h sys/syscall.h
5544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5546 echo "$as_me:$LINENO: checking for $ac_header" >&5
5547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5554 # Is the header compilable?
5555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5557 cat >conftest.$ac_ext <<_ACEOF
5558 #line $LINENO "configure"
5559 #include "confdefs.h"
5560 $ac_includes_default
5561 #include <$ac_header>
5563 rm -f conftest.$ac_objext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565 (eval $ac_compile) 2>&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
5569 { ac_try='test -s conftest.$ac_objext'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
5575 ac_header_compiler=yes
5577 echo "$as_me: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5579 ac_header_compiler=no
5581 rm -f conftest.$ac_objext conftest.$ac_ext
5582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5583 echo "${ECHO_T}$ac_header_compiler" >&6
5585 # Is the header present?
5586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5588 cat >conftest.$ac_ext <<_ACEOF
5589 #line $LINENO "configure"
5590 #include "confdefs.h"
5591 #include <$ac_header>
5593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5596 grep -v '^ *+' conftest.er1 >conftest.err
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } >/dev/null; then
5601 if test -s conftest.err; then
5602 ac_cpp_err=$ac_c_preproc_warn_flag
5609 if test -z "$ac_cpp_err"; then
5610 ac_header_preproc=yes
5612 echo "$as_me: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5614 ac_header_preproc=no
5616 rm -f conftest.err conftest.$ac_ext
5617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5618 echo "${ECHO_T}$ac_header_preproc" >&6
5620 # So? What about this header?
5621 case $ac_header_compiler:$ac_header_preproc in
5623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5635 echo "$as_me:$LINENO: checking for $ac_header" >&5
5636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 eval "$as_ac_Header=$ac_header_preproc"
5642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647 cat >>confdefs.h <<_ACEOF
5648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5658 for ac_header in sys/acl.h sys/cdefs.h glob.h
5660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5662 echo "$as_me:$LINENO: checking for $ac_header" >&5
5663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5670 # Is the header compilable?
5671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5673 cat >conftest.$ac_ext <<_ACEOF
5674 #line $LINENO "configure"
5675 #include "confdefs.h"
5676 $ac_includes_default
5677 #include <$ac_header>
5679 rm -f conftest.$ac_objext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5681 (eval $ac_compile) 2>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -s conftest.$ac_objext'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
5691 ac_header_compiler=yes
5693 echo "$as_me: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5695 ac_header_compiler=no
5697 rm -f conftest.$ac_objext conftest.$ac_ext
5698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5699 echo "${ECHO_T}$ac_header_compiler" >&6
5701 # Is the header present?
5702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5704 cat >conftest.$ac_ext <<_ACEOF
5705 #line $LINENO "configure"
5706 #include "confdefs.h"
5707 #include <$ac_header>
5709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5712 grep -v '^ *+' conftest.er1 >conftest.err
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } >/dev/null; then
5717 if test -s conftest.err; then
5718 ac_cpp_err=$ac_c_preproc_warn_flag
5725 if test -z "$ac_cpp_err"; then
5726 ac_header_preproc=yes
5728 echo "$as_me: failed program was:" >&5
5729 cat conftest.$ac_ext >&5
5730 ac_header_preproc=no
5732 rm -f conftest.err conftest.$ac_ext
5733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5734 echo "${ECHO_T}$ac_header_preproc" >&6
5736 # So? What about this header?
5737 case $ac_header_compiler:$ac_header_preproc in
5739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5751 echo "$as_me:$LINENO: checking for $ac_header" >&5
5752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 eval "$as_ac_Header=$ac_header_preproc"
5758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5763 cat >>confdefs.h <<_ACEOF
5764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5772 # For experimental utmp support (lastlog on some BSD-like systems)
5776 for ac_header in utmp.h utmpx.h lastlog.h
5778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5780 echo "$as_me:$LINENO: checking for $ac_header" >&5
5781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788 # Is the header compilable?
5789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 #include "confdefs.h"
5794 $ac_includes_default
5795 #include <$ac_header>
5797 rm -f conftest.$ac_objext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799 (eval $ac_compile) 2>&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -s conftest.$ac_objext'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 ac_header_compiler=yes
5811 echo "$as_me: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5813 ac_header_compiler=no
5815 rm -f conftest.$ac_objext conftest.$ac_ext
5816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5817 echo "${ECHO_T}$ac_header_compiler" >&6
5819 # Is the header present?
5820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5822 cat >conftest.$ac_ext <<_ACEOF
5823 #line $LINENO "configure"
5824 #include "confdefs.h"
5825 #include <$ac_header>
5827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5830 grep -v '^ *+' conftest.er1 >conftest.err
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null; then
5835 if test -s conftest.err; then
5836 ac_cpp_err=$ac_c_preproc_warn_flag
5843 if test -z "$ac_cpp_err"; then
5844 ac_header_preproc=yes
5846 echo "$as_me: failed program was:" >&5
5847 cat conftest.$ac_ext >&5
5848 ac_header_preproc=no
5850 rm -f conftest.err conftest.$ac_ext
5851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5852 echo "${ECHO_T}$ac_header_preproc" >&6
5854 # So? What about this header?
5855 case $ac_header_compiler:$ac_header_preproc in
5857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5869 echo "$as_me:$LINENO: checking for $ac_header" >&5
5870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 eval "$as_ac_Header=$ac_header_preproc"
5876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5881 cat >>confdefs.h <<_ACEOF
5882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5890 # For quotas on Veritas VxFS filesystems
5892 for ac_header in sys/fs/vx_quota.h
5894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5896 echo "$as_me:$LINENO: checking for $ac_header" >&5
5897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5904 # Is the header compilable?
5905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5907 cat >conftest.$ac_ext <<_ACEOF
5908 #line $LINENO "configure"
5909 #include "confdefs.h"
5910 $ac_includes_default
5911 #include <$ac_header>
5913 rm -f conftest.$ac_objext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915 (eval $ac_compile) 2>&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -s conftest.$ac_objext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 ac_header_compiler=yes
5927 echo "$as_me: failed program was:" >&5
5928 cat conftest.$ac_ext >&5
5929 ac_header_compiler=no
5931 rm -f conftest.$ac_objext conftest.$ac_ext
5932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5933 echo "${ECHO_T}$ac_header_compiler" >&6
5935 # Is the header present?
5936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5938 cat >conftest.$ac_ext <<_ACEOF
5939 #line $LINENO "configure"
5940 #include "confdefs.h"
5941 #include <$ac_header>
5943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5946 grep -v '^ *+' conftest.er1 >conftest.err
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } >/dev/null; then
5951 if test -s conftest.err; then
5952 ac_cpp_err=$ac_c_preproc_warn_flag
5959 if test -z "$ac_cpp_err"; then
5960 ac_header_preproc=yes
5962 echo "$as_me: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5964 ac_header_preproc=no
5966 rm -f conftest.err conftest.$ac_ext
5967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5968 echo "${ECHO_T}$ac_header_preproc" >&6
5970 # So? What about this header?
5971 case $ac_header_compiler:$ac_header_preproc in
5973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5985 echo "$as_me:$LINENO: checking for $ac_header" >&5
5986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 eval "$as_ac_Header=$ac_header_preproc"
5992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5997 cat >>confdefs.h <<_ACEOF
5998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6006 # For quotas on Linux XFS filesystems
6008 for ac_header in linux/xqm.h
6010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6012 echo "$as_me:$LINENO: checking for $ac_header" >&5
6013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6020 # Is the header compilable?
6021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6023 cat >conftest.$ac_ext <<_ACEOF
6024 #line $LINENO "configure"
6025 #include "confdefs.h"
6026 $ac_includes_default
6027 #include <$ac_header>
6029 rm -f conftest.$ac_objext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031 (eval $ac_compile) 2>&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } &&
6035 { ac_try='test -s conftest.$ac_objext'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 ac_header_compiler=yes
6043 echo "$as_me: failed program was:" >&5
6044 cat conftest.$ac_ext >&5
6045 ac_header_compiler=no
6047 rm -f conftest.$ac_objext conftest.$ac_ext
6048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6049 echo "${ECHO_T}$ac_header_compiler" >&6
6051 # Is the header present?
6052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6054 cat >conftest.$ac_ext <<_ACEOF
6055 #line $LINENO "configure"
6056 #include "confdefs.h"
6057 #include <$ac_header>
6059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6062 grep -v '^ *+' conftest.er1 >conftest.err
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } >/dev/null; then
6067 if test -s conftest.err; then
6068 ac_cpp_err=$ac_c_preproc_warn_flag
6075 if test -z "$ac_cpp_err"; then
6076 ac_header_preproc=yes
6078 echo "$as_me: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6080 ac_header_preproc=no
6082 rm -f conftest.err conftest.$ac_ext
6083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6084 echo "${ECHO_T}$ac_header_preproc" >&6
6086 # So? What about this header?
6087 case $ac_header_compiler:$ac_header_preproc in
6089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6101 echo "$as_me:$LINENO: checking for $ac_header" >&5
6102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 eval "$as_ac_Header=$ac_header_preproc"
6108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6113 cat >>confdefs.h <<_ACEOF
6114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6122 echo "$as_me:$LINENO: checking for int" >&5
6123 echo $ECHO_N "checking for int... $ECHO_C" >&6
6124 if test "${ac_cv_type_int+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 cat >conftest.$ac_ext <<_ACEOF
6128 #line $LINENO "configure"
6129 #include "confdefs.h"
6130 $ac_includes_default
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -s conftest.$ac_objext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6156 echo "$as_me: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6160 rm -f conftest.$ac_objext conftest.$ac_ext
6162 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6163 echo "${ECHO_T}$ac_cv_type_int" >&6
6165 echo "$as_me:$LINENO: checking size of int" >&5
6166 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6167 if test "${ac_cv_sizeof_int+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 if test "$ac_cv_type_int" = yes; then
6171 # The cast to unsigned long works around a bug in the HP C Compiler
6172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6174 # This bug is HP SR number 8606223364.
6175 if test "$cross_compiling" = yes; then
6176 # Depending upon the size, compute the lo and hi bounds.
6177 cat >conftest.$ac_ext <<_ACEOF
6178 #line $LINENO "configure"
6179 #include "confdefs.h"
6180 $ac_includes_default
6184 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193 (eval $ac_compile) 2>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try='test -s conftest.$ac_objext'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; }; then
6205 cat >conftest.$ac_ext <<_ACEOF
6206 #line $LINENO "configure"
6207 #include "confdefs.h"
6208 $ac_includes_default
6212 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6219 rm -f conftest.$ac_objext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221 (eval $ac_compile) 2>&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_hi=$ac_mid; break
6233 echo "$as_me: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6235 ac_lo=`expr $ac_mid + 1`
6236 if test $ac_lo -le $ac_mid; then
6240 ac_mid=`expr 2 '*' $ac_mid + 1`
6242 rm -f conftest.$ac_objext conftest.$ac_ext
6245 echo "$as_me: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6247 cat >conftest.$ac_ext <<_ACEOF
6248 #line $LINENO "configure"
6249 #include "confdefs.h"
6250 $ac_includes_default
6254 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6261 rm -f conftest.$ac_objext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263 (eval $ac_compile) 2>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -s conftest.$ac_objext'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6275 cat >conftest.$ac_ext <<_ACEOF
6276 #line $LINENO "configure"
6277 #include "confdefs.h"
6278 $ac_includes_default
6282 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6289 rm -f conftest.$ac_objext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291 (eval $ac_compile) 2>&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -s conftest.$ac_objext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 ac_lo=$ac_mid; break
6303 echo "$as_me: failed program was:" >&5
6304 cat conftest.$ac_ext >&5
6305 ac_hi=`expr '(' $ac_mid ')' - 1`
6306 if test $ac_mid -le $ac_hi; then
6310 ac_mid=`expr 2 '*' $ac_mid`
6312 rm -f conftest.$ac_objext conftest.$ac_ext
6315 echo "$as_me: failed program was:" >&5
6316 cat conftest.$ac_ext >&5
6319 rm -f conftest.$ac_objext conftest.$ac_ext
6321 rm -f conftest.$ac_objext conftest.$ac_ext
6322 # Binary search between lo and hi bounds.
6323 while test "x$ac_lo" != "x$ac_hi"; do
6324 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6325 cat >conftest.$ac_ext <<_ACEOF
6326 #line $LINENO "configure"
6327 #include "confdefs.h"
6328 $ac_includes_default
6332 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6339 rm -f conftest.$ac_objext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try='test -s conftest.$ac_objext'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6353 echo "$as_me: failed program was:" >&5
6354 cat conftest.$ac_ext >&5
6355 ac_lo=`expr '(' $ac_mid ')' + 1`
6357 rm -f conftest.$ac_objext conftest.$ac_ext
6360 ?*) ac_cv_sizeof_int=$ac_lo;;
6361 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6362 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6363 { (exit 1); exit 1; }; } ;;
6366 if test "$cross_compiling" = yes; then
6367 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6368 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6369 { (exit 1); exit 1; }; }
6371 cat >conftest.$ac_ext <<_ACEOF
6372 #line $LINENO "configure"
6373 #include "confdefs.h"
6374 $ac_includes_default
6375 long longval () { return (long) (sizeof (int)); }
6376 unsigned long ulongval () { return (long) (sizeof (int)); }
6383 FILE *f = fopen ("conftest.val", "w");
6386 if (((long) (sizeof (int))) < 0)
6388 long i = longval ();
6389 if (i != ((long) (sizeof (int))))
6391 fprintf (f, "%ld\n", i);
6395 unsigned long i = ulongval ();
6396 if (i != ((long) (sizeof (int))))
6398 fprintf (f, "%lu\n", i);
6400 exit (ferror (f) || fclose (f) != 0);
6406 rm -f conftest$ac_exeext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6408 (eval $ac_link) 2>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 ac_cv_sizeof_int=`cat conftest.val`
6419 echo "$as_me: program exited with status $ac_status" >&5
6420 echo "$as_me: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6423 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6424 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6425 { (exit 1); exit 1; }; }
6427 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6436 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6437 cat >>confdefs.h <<_ACEOF
6438 #define SIZEOF_INT $ac_cv_sizeof_int
6442 echo "$as_me:$LINENO: checking for long" >&5
6443 echo $ECHO_N "checking for long... $ECHO_C" >&6
6444 if test "${ac_cv_type_long+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 cat >conftest.$ac_ext <<_ACEOF
6448 #line $LINENO "configure"
6449 #include "confdefs.h"
6450 $ac_includes_default
6462 rm -f conftest.$ac_objext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6464 (eval $ac_compile) 2>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try='test -s conftest.$ac_objext'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
6476 echo "$as_me: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6480 rm -f conftest.$ac_objext conftest.$ac_ext
6482 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6483 echo "${ECHO_T}$ac_cv_type_long" >&6
6485 echo "$as_me:$LINENO: checking size of long" >&5
6486 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6487 if test "${ac_cv_sizeof_long+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 if test "$ac_cv_type_long" = yes; then
6491 # The cast to unsigned long works around a bug in the HP C Compiler
6492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6494 # This bug is HP SR number 8606223364.
6495 if test "$cross_compiling" = yes; then
6496 # Depending upon the size, compute the lo and hi bounds.
6497 cat >conftest.$ac_ext <<_ACEOF
6498 #line $LINENO "configure"
6499 #include "confdefs.h"
6500 $ac_includes_default
6504 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6511 rm -f conftest.$ac_objext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -s conftest.$ac_objext'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6525 cat >conftest.$ac_ext <<_ACEOF
6526 #line $LINENO "configure"
6527 #include "confdefs.h"
6528 $ac_includes_default
6532 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 ac_hi=$ac_mid; break
6553 echo "$as_me: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 ac_lo=`expr $ac_mid + 1`
6556 if test $ac_lo -le $ac_mid; then
6560 ac_mid=`expr 2 '*' $ac_mid + 1`
6562 rm -f conftest.$ac_objext conftest.$ac_ext
6565 echo "$as_me: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6567 cat >conftest.$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6569 #include "confdefs.h"
6570 $ac_includes_default
6574 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6581 rm -f conftest.$ac_objext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583 (eval $ac_compile) 2>&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -s conftest.$ac_objext'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; }; then
6595 cat >conftest.$ac_ext <<_ACEOF
6596 #line $LINENO "configure"
6597 #include "confdefs.h"
6598 $ac_includes_default
6602 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6609 rm -f conftest.$ac_objext
6610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611 (eval $ac_compile) 2>&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try='test -s conftest.$ac_objext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_lo=$ac_mid; break
6623 echo "$as_me: failed program was:" >&5
6624 cat conftest.$ac_ext >&5
6625 ac_hi=`expr '(' $ac_mid ')' - 1`
6626 if test $ac_mid -le $ac_hi; then
6630 ac_mid=`expr 2 '*' $ac_mid`
6632 rm -f conftest.$ac_objext conftest.$ac_ext
6635 echo "$as_me: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6639 rm -f conftest.$ac_objext conftest.$ac_ext
6641 rm -f conftest.$ac_objext conftest.$ac_ext
6642 # Binary search between lo and hi bounds.
6643 while test "x$ac_lo" != "x$ac_hi"; do
6644 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6645 cat >conftest.$ac_ext <<_ACEOF
6646 #line $LINENO "configure"
6647 #include "confdefs.h"
6648 $ac_includes_default
6652 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6659 rm -f conftest.$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661 (eval $ac_compile) 2>&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } &&
6665 { ac_try='test -s conftest.$ac_objext'
6666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6673 echo "$as_me: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6675 ac_lo=`expr '(' $ac_mid ')' + 1`
6677 rm -f conftest.$ac_objext conftest.$ac_ext
6680 ?*) ac_cv_sizeof_long=$ac_lo;;
6681 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6682 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6683 { (exit 1); exit 1; }; } ;;
6686 if test "$cross_compiling" = yes; then
6687 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6688 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6689 { (exit 1); exit 1; }; }
6691 cat >conftest.$ac_ext <<_ACEOF
6692 #line $LINENO "configure"
6693 #include "confdefs.h"
6694 $ac_includes_default
6695 long longval () { return (long) (sizeof (long)); }
6696 unsigned long ulongval () { return (long) (sizeof (long)); }
6703 FILE *f = fopen ("conftest.val", "w");
6706 if (((long) (sizeof (long))) < 0)
6708 long i = longval ();
6709 if (i != ((long) (sizeof (long))))
6711 fprintf (f, "%ld\n", i);
6715 unsigned long i = ulongval ();
6716 if (i != ((long) (sizeof (long))))
6718 fprintf (f, "%lu\n", i);
6720 exit (ferror (f) || fclose (f) != 0);
6726 rm -f conftest$ac_exeext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6728 (eval $ac_link) 2>&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6737 ac_cv_sizeof_long=`cat conftest.val`
6739 echo "$as_me: program exited with status $ac_status" >&5
6740 echo "$as_me: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6744 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6745 { (exit 1); exit 1; }; }
6747 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6755 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6756 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6757 cat >>confdefs.h <<_ACEOF
6758 #define SIZEOF_LONG $ac_cv_sizeof_long
6762 echo "$as_me:$LINENO: checking for short" >&5
6763 echo $ECHO_N "checking for short... $ECHO_C" >&6
6764 if test "${ac_cv_type_short+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 cat >conftest.$ac_ext <<_ACEOF
6768 #line $LINENO "configure"
6769 #include "confdefs.h"
6770 $ac_includes_default
6782 rm -f conftest.$ac_objext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6784 (eval $ac_compile) 2>&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } &&
6788 { ac_try='test -s conftest.$ac_objext'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; }; then
6794 ac_cv_type_short=yes
6796 echo "$as_me: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6800 rm -f conftest.$ac_objext conftest.$ac_ext
6802 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6803 echo "${ECHO_T}$ac_cv_type_short" >&6
6805 echo "$as_me:$LINENO: checking size of short" >&5
6806 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6807 if test "${ac_cv_sizeof_short+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 if test "$ac_cv_type_short" = yes; then
6811 # The cast to unsigned long works around a bug in the HP C Compiler
6812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6814 # This bug is HP SR number 8606223364.
6815 if test "$cross_compiling" = yes; then
6816 # Depending upon the size, compute the lo and hi bounds.
6817 cat >conftest.$ac_ext <<_ACEOF
6818 #line $LINENO "configure"
6819 #include "confdefs.h"
6820 $ac_includes_default
6824 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6831 rm -f conftest.$ac_objext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6833 (eval $ac_compile) 2>&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
6837 { ac_try='test -s conftest.$ac_objext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6845 cat >conftest.$ac_ext <<_ACEOF
6846 #line $LINENO "configure"
6847 #include "confdefs.h"
6848 $ac_includes_default
6852 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6859 rm -f conftest.$ac_objext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861 (eval $ac_compile) 2>&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } &&
6865 { ac_try='test -s conftest.$ac_objext'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; }; then
6871 ac_hi=$ac_mid; break
6873 echo "$as_me: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6875 ac_lo=`expr $ac_mid + 1`
6876 if test $ac_lo -le $ac_mid; then
6880 ac_mid=`expr 2 '*' $ac_mid + 1`
6882 rm -f conftest.$ac_objext conftest.$ac_ext
6885 echo "$as_me: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6887 cat >conftest.$ac_ext <<_ACEOF
6888 #line $LINENO "configure"
6889 #include "confdefs.h"
6890 $ac_includes_default
6894 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6901 rm -f conftest.$ac_objext
6902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6903 (eval $ac_compile) 2>&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } &&
6907 { ac_try='test -s conftest.$ac_objext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6915 cat >conftest.$ac_ext <<_ACEOF
6916 #line $LINENO "configure"
6917 #include "confdefs.h"
6918 $ac_includes_default
6922 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6929 rm -f conftest.$ac_objext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } &&
6935 { ac_try='test -s conftest.$ac_objext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_lo=$ac_mid; break
6943 echo "$as_me: failed program was:" >&5
6944 cat conftest.$ac_ext >&5
6945 ac_hi=`expr '(' $ac_mid ')' - 1`
6946 if test $ac_mid -le $ac_hi; then
6950 ac_mid=`expr 2 '*' $ac_mid`
6952 rm -f conftest.$ac_objext conftest.$ac_ext
6955 echo "$as_me: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6959 rm -f conftest.$ac_objext conftest.$ac_ext
6961 rm -f conftest.$ac_objext conftest.$ac_ext
6962 # Binary search between lo and hi bounds.
6963 while test "x$ac_lo" != "x$ac_hi"; do
6964 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6965 cat >conftest.$ac_ext <<_ACEOF
6966 #line $LINENO "configure"
6967 #include "confdefs.h"
6968 $ac_includes_default
6972 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6979 rm -f conftest.$ac_objext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981 (eval $ac_compile) 2>&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -s conftest.$ac_objext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6993 echo "$as_me: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6995 ac_lo=`expr '(' $ac_mid ')' + 1`
6997 rm -f conftest.$ac_objext conftest.$ac_ext
7000 ?*) ac_cv_sizeof_short=$ac_lo;;
7001 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7002 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7003 { (exit 1); exit 1; }; } ;;
7006 if test "$cross_compiling" = yes; then
7007 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7008 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7009 { (exit 1); exit 1; }; }
7011 cat >conftest.$ac_ext <<_ACEOF
7012 #line $LINENO "configure"
7013 #include "confdefs.h"
7014 $ac_includes_default
7015 long longval () { return (long) (sizeof (short)); }
7016 unsigned long ulongval () { return (long) (sizeof (short)); }
7023 FILE *f = fopen ("conftest.val", "w");
7026 if (((long) (sizeof (short))) < 0)
7028 long i = longval ();
7029 if (i != ((long) (sizeof (short))))
7031 fprintf (f, "%ld\n", i);
7035 unsigned long i = ulongval ();
7036 if (i != ((long) (sizeof (short))))
7038 fprintf (f, "%lu\n", i);
7040 exit (ferror (f) || fclose (f) != 0);
7046 rm -f conftest$ac_exeext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7048 (eval $ac_link) 2>&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_sizeof_short=`cat conftest.val`
7059 echo "$as_me: program exited with status $ac_status" >&5
7060 echo "$as_me: failed program was:" >&5
7061 cat conftest.$ac_ext >&5
7063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7064 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7065 { (exit 1); exit 1; }; }
7067 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7072 ac_cv_sizeof_short=0
7075 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7076 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7077 cat >>confdefs.h <<_ACEOF
7078 #define SIZEOF_SHORT $ac_cv_sizeof_short
7083 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7084 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7085 if test "${ac_cv_c_const+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 cat >conftest.$ac_ext <<_ACEOF
7089 #line $LINENO "configure"
7090 #include "confdefs.h"
7095 /* FIXME: Include the comments suggested by Paul. */
7097 /* Ultrix mips cc rejects this. */
7098 typedef int charset[2];
7100 /* SunOS 4.1.1 cc rejects this. */
7101 char const *const *ccp;
7103 /* NEC SVR4.0.2 mips cc rejects this. */
7104 struct point {int x, y;};
7105 static struct point const zero = {0,0};
7106 /* AIX XL C 1.02.0.0 rejects this.
7107 It does not let you subtract one const X* pointer from another in
7108 an arm of an if-expression whose if-part is not a constant
7110 const char *g = "string";
7111 ccp = &g + (g ? g-g : 0);
7112 /* HPUX 7.0 cc rejects these. */
7115 ccp = (char const *const *) p;
7116 { /* SCO 3.2v4 cc rejects this. */
7118 char const *s = 0 ? (char *) 0 : (char const *) 0;
7122 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7124 const int *foo = &x[0];
7127 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7128 typedef const int *iptr;
7132 { /* AIX XL C 1.02.0.0 rejects this saying
7133 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7134 struct s { int j; const int *ap[3]; };
7135 struct s *b; b->j = 5;
7137 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7146 rm -f conftest.$ac_objext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7148 (eval $ac_compile) 2>&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -s conftest.$ac_objext'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; }; then
7160 echo "$as_me: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7164 rm -f conftest.$ac_objext conftest.$ac_ext
7166 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7167 echo "${ECHO_T}$ac_cv_c_const" >&6
7168 if test $ac_cv_c_const = no; then
7170 cat >>confdefs.h <<\_ACEOF
7176 echo "$as_me:$LINENO: checking for inline" >&5
7177 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7178 if test "${ac_cv_c_inline+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 for ac_kw in inline __inline__ __inline; do
7183 cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 #include "confdefs.h"
7188 static $ac_kw foo_t static_foo () {return 0; }
7189 $ac_kw foo_t foo () {return 0; }
7193 rm -f conftest.$ac_objext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7195 (eval $ac_compile) 2>&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try='test -s conftest.$ac_objext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_cv_c_inline=$ac_kw; break
7207 echo "$as_me: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7210 rm -f conftest.$ac_objext conftest.$ac_ext
7214 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7215 echo "${ECHO_T}$ac_cv_c_inline" >&6
7216 case $ac_cv_c_inline in
7219 cat >>confdefs.h <<\_ACEOF
7223 *) cat >>confdefs.h <<_ACEOF
7224 #define inline $ac_cv_c_inline
7229 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7230 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7231 if test "${ac_cv_c_bigendian+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 # See if sys/param.h defines the BYTE_ORDER macro.
7235 cat >conftest.$ac_ext <<_ACEOF
7236 #line $LINENO "configure"
7237 #include "confdefs.h"
7238 #include <sys/types.h>
7239 #include <sys/param.h>
7244 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } &&
7258 { ac_try='test -s conftest.$ac_objext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 # It does; now see whether it defined to BIG_ENDIAN or not.
7265 cat >conftest.$ac_ext <<_ACEOF
7266 #line $LINENO "configure"
7267 #include "confdefs.h"
7268 #include <sys/types.h>
7269 #include <sys/param.h>
7274 #if BYTE_ORDER != BIG_ENDIAN
7282 rm -f conftest.$ac_objext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7284 (eval $ac_compile) 2>&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -s conftest.$ac_objext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 ac_cv_c_bigendian=yes
7296 echo "$as_me: failed program was:" >&5
7297 cat conftest.$ac_ext >&5
7298 ac_cv_c_bigendian=no
7300 rm -f conftest.$ac_objext conftest.$ac_ext
7302 echo "$as_me: failed program was:" >&5
7303 cat conftest.$ac_ext >&5
7304 # It does not; compile a test program.
7305 if test "$cross_compiling" = yes; then
7306 # try to guess the endianness by grepping values into an object file
7307 ac_cv_c_bigendian=unknown
7308 cat >conftest.$ac_ext <<_ACEOF
7309 #line $LINENO "configure"
7310 #include "confdefs.h"
7311 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7312 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7313 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7314 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7315 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7316 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7320 _ascii (); _ebcdic ();
7325 rm -f conftest.$ac_objext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7327 (eval $ac_compile) 2>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } &&
7331 { ac_try='test -s conftest.$ac_objext'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7337 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7338 ac_cv_c_bigendian=yes
7340 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7341 if test "$ac_cv_c_bigendian" = unknown; then
7342 ac_cv_c_bigendian=no
7344 # finding both strings is unlikely to happen, but who knows?
7345 ac_cv_c_bigendian=unknown
7349 echo "$as_me: failed program was:" >&5
7350 cat conftest.$ac_ext >&5
7352 rm -f conftest.$ac_objext conftest.$ac_ext
7354 cat >conftest.$ac_ext <<_ACEOF
7355 #line $LINENO "configure"
7356 #include "confdefs.h"
7360 /* Are we little or big endian? From Harbison&Steele. */
7364 char c[sizeof (long)];
7367 exit (u.c[sizeof (long) - 1] == 1);
7370 rm -f conftest$ac_exeext
7371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7372 (eval $ac_link) 2>&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); }; }; then
7381 ac_cv_c_bigendian=no
7383 echo "$as_me: program exited with status $ac_status" >&5
7384 echo "$as_me: failed program was:" >&5
7385 cat conftest.$ac_ext >&5
7387 ac_cv_c_bigendian=yes
7389 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7392 rm -f conftest.$ac_objext conftest.$ac_ext
7394 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7395 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7396 case $ac_cv_c_bigendian in
7399 cat >>confdefs.h <<\_ACEOF
7400 #define WORDS_BIGENDIAN 1
7406 { { echo "$as_me:$LINENO: error: unknown endianness
7407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7408 echo "$as_me: error: unknown endianness
7409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7410 { (exit 1); exit 1; }; } ;;
7414 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7415 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7416 if test "${ac_cv_c_char_unsigned+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 cat >conftest.$ac_ext <<_ACEOF
7420 #line $LINENO "configure"
7421 #include "confdefs.h"
7422 $ac_includes_default
7426 static int test_array [1 - 2 * !(((char) -1) < 0)];
7433 rm -f conftest.$ac_objext
7434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7435 (eval $ac_compile) 2>&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } &&
7439 { ac_try='test -s conftest.$ac_objext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 ac_cv_c_char_unsigned=no
7447 echo "$as_me: failed program was:" >&5
7448 cat conftest.$ac_ext >&5
7449 ac_cv_c_char_unsigned=yes
7451 rm -f conftest.$ac_objext conftest.$ac_ext
7453 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7454 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7455 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7456 cat >>confdefs.h <<\_ACEOF
7457 #define __CHAR_UNSIGNED__ 1
7463 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7464 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7465 if test "${ac_cv_type_signal+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 cat >conftest.$ac_ext <<_ACEOF
7469 #line $LINENO "configure"
7470 #include "confdefs.h"
7471 #include <sys/types.h>
7477 extern "C" void (*signal (int, void (*)(int)))(int);
7479 void (*signal ()) ();
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492 (eval $ac_compile) 2>&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try='test -s conftest.$ac_objext'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502 ac_cv_type_signal=void
7504 echo "$as_me: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7506 ac_cv_type_signal=int
7508 rm -f conftest.$ac_objext conftest.$ac_ext
7510 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7511 echo "${ECHO_T}$ac_cv_type_signal" >&6
7513 cat >>confdefs.h <<_ACEOF
7514 #define RETSIGTYPE $ac_cv_type_signal
7518 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7519 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7520 if test "${ac_cv_type_uid_t+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 cat >conftest.$ac_ext <<_ACEOF
7524 #line $LINENO "configure"
7525 #include "confdefs.h"
7526 #include <sys/types.h>
7529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7530 $EGREP "uid_t" >/dev/null 2>&1; then
7531 ac_cv_type_uid_t=yes
7538 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7539 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7540 if test $ac_cv_type_uid_t = no; then
7542 cat >>confdefs.h <<\_ACEOF
7547 cat >>confdefs.h <<\_ACEOF
7553 echo "$as_me:$LINENO: checking for mode_t" >&5
7554 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7555 if test "${ac_cv_type_mode_t+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 cat >conftest.$ac_ext <<_ACEOF
7559 #line $LINENO "configure"
7560 #include "confdefs.h"
7561 $ac_includes_default
7567 if (sizeof (mode_t))
7573 rm -f conftest.$ac_objext
7574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7575 (eval $ac_compile) 2>&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -s conftest.$ac_objext'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
7585 ac_cv_type_mode_t=yes
7587 echo "$as_me: failed program was:" >&5
7588 cat conftest.$ac_ext >&5
7589 ac_cv_type_mode_t=no
7591 rm -f conftest.$ac_objext conftest.$ac_ext
7593 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7594 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7595 if test $ac_cv_type_mode_t = yes; then
7599 cat >>confdefs.h <<_ACEOF
7605 echo "$as_me:$LINENO: checking for off_t" >&5
7606 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7607 if test "${ac_cv_type_off_t+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 cat >conftest.$ac_ext <<_ACEOF
7611 #line $LINENO "configure"
7612 #include "confdefs.h"
7613 $ac_includes_default
7625 rm -f conftest.$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627 (eval $ac_compile) 2>&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } &&
7631 { ac_try='test -s conftest.$ac_objext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 ac_cv_type_off_t=yes
7639 echo "$as_me: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7643 rm -f conftest.$ac_objext conftest.$ac_ext
7645 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7646 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7647 if test $ac_cv_type_off_t = yes; then
7651 cat >>confdefs.h <<_ACEOF
7657 echo "$as_me:$LINENO: checking for size_t" >&5
7658 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7659 if test "${ac_cv_type_size_t+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 cat >conftest.$ac_ext <<_ACEOF
7663 #line $LINENO "configure"
7664 #include "confdefs.h"
7665 $ac_includes_default
7671 if (sizeof (size_t))
7677 rm -f conftest.$ac_objext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7679 (eval $ac_compile) 2>&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -s conftest.$ac_objext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_cv_type_size_t=yes
7691 echo "$as_me: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 ac_cv_type_size_t=no
7695 rm -f conftest.$ac_objext conftest.$ac_ext
7697 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7698 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7699 if test $ac_cv_type_size_t = yes; then
7703 cat >>confdefs.h <<_ACEOF
7704 #define size_t unsigned
7709 echo "$as_me:$LINENO: checking for pid_t" >&5
7710 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7711 if test "${ac_cv_type_pid_t+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 cat >conftest.$ac_ext <<_ACEOF
7715 #line $LINENO "configure"
7716 #include "confdefs.h"
7717 $ac_includes_default
7729 rm -f conftest.$ac_objext
7730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7731 (eval $ac_compile) 2>&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } &&
7735 { ac_try='test -s conftest.$ac_objext'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 ac_cv_type_pid_t=yes
7743 echo "$as_me: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7747 rm -f conftest.$ac_objext conftest.$ac_ext
7749 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7750 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7751 if test $ac_cv_type_pid_t = yes; then
7755 cat >>confdefs.h <<_ACEOF
7762 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7763 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7764 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 cat >conftest.$ac_ext <<_ACEOF
7768 #line $LINENO "configure"
7769 #include "confdefs.h"
7770 $ac_includes_default
7774 static struct stat ac_aggr;
7775 if (ac_aggr.st_rdev)
7781 rm -f conftest.$ac_objext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783 (eval $ac_compile) 2>&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try='test -s conftest.$ac_objext'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7793 ac_cv_member_struct_stat_st_rdev=yes
7795 echo "$as_me: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7797 cat >conftest.$ac_ext <<_ACEOF
7798 #line $LINENO "configure"
7799 #include "confdefs.h"
7800 $ac_includes_default
7804 static struct stat ac_aggr;
7805 if (sizeof ac_aggr.st_rdev)
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } &&
7817 { ac_try='test -s conftest.$ac_objext'
7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; }; then
7823 ac_cv_member_struct_stat_st_rdev=yes
7825 echo "$as_me: failed program was:" >&5
7826 cat conftest.$ac_ext >&5
7827 ac_cv_member_struct_stat_st_rdev=no
7829 rm -f conftest.$ac_objext conftest.$ac_ext
7831 rm -f conftest.$ac_objext conftest.$ac_ext
7833 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7834 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7835 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838 #define HAVE_STRUCT_STAT_ST_RDEV 1
7842 cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_ST_RDEV 1
7849 echo "$as_me:$LINENO: checking for d_off in dirent" >&5
7850 echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
7851 if test "${ac_cv_dirent_d_off+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 cat >conftest.$ac_ext <<_ACEOF
7855 #line $LINENO "configure"
7856 #include "confdefs.h"
7859 #include <sys/types.h>
7864 struct dirent d; d.d_off;
7869 rm -f conftest.$ac_objext
7870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7871 (eval $ac_compile) 2>&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } &&
7875 { ac_try='test -s conftest.$ac_objext'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 ac_cv_dirent_d_off=yes
7883 echo "$as_me: failed program was:" >&5
7884 cat conftest.$ac_ext >&5
7885 ac_cv_dirent_d_off=no
7887 rm -f conftest.$ac_objext conftest.$ac_ext
7889 echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
7890 echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
7891 if test $ac_cv_dirent_d_off = yes; then
7893 cat >>confdefs.h <<\_ACEOF
7894 #define HAVE_DIRENT_D_OFF 1
7899 echo "$as_me:$LINENO: checking for ino_t" >&5
7900 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
7901 if test "${ac_cv_type_ino_t+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 cat >conftest.$ac_ext <<_ACEOF
7905 #line $LINENO "configure"
7906 #include "confdefs.h"
7907 $ac_includes_default
7919 rm -f conftest.$ac_objext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7921 (eval $ac_compile) 2>&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } &&
7925 { ac_try='test -s conftest.$ac_objext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_type_ino_t=yes
7933 echo "$as_me: failed program was:" >&5
7934 cat conftest.$ac_ext >&5
7937 rm -f conftest.$ac_objext conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
7940 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
7941 if test $ac_cv_type_ino_t = yes; then
7945 cat >>confdefs.h <<_ACEOF
7946 #define ino_t unsigned
7951 echo "$as_me:$LINENO: checking for loff_t" >&5
7952 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
7953 if test "${ac_cv_type_loff_t+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 cat >conftest.$ac_ext <<_ACEOF
7957 #line $LINENO "configure"
7958 #include "confdefs.h"
7959 $ac_includes_default
7965 if (sizeof (loff_t))
7971 rm -f conftest.$ac_objext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973 (eval $ac_compile) 2>&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } &&
7977 { ac_try='test -s conftest.$ac_objext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7983 ac_cv_type_loff_t=yes
7985 echo "$as_me: failed program was:" >&5
7986 cat conftest.$ac_ext >&5
7987 ac_cv_type_loff_t=no
7989 rm -f conftest.$ac_objext conftest.$ac_ext
7991 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
7992 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
7993 if test $ac_cv_type_loff_t = yes; then
7997 cat >>confdefs.h <<_ACEOF
7998 #define loff_t off_t
8003 echo "$as_me:$LINENO: checking for offset_t" >&5
8004 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
8005 if test "${ac_cv_type_offset_t+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8010 #include "confdefs.h"
8011 $ac_includes_default
8017 if (sizeof (offset_t))
8023 rm -f conftest.$ac_objext
8024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8025 (eval $ac_compile) 2>&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try='test -s conftest.$ac_objext'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 ac_cv_type_offset_t=yes
8037 echo "$as_me: failed program was:" >&5
8038 cat conftest.$ac_ext >&5
8039 ac_cv_type_offset_t=no
8041 rm -f conftest.$ac_objext conftest.$ac_ext
8043 echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
8044 echo "${ECHO_T}$ac_cv_type_offset_t" >&6
8045 if test $ac_cv_type_offset_t = yes; then
8049 cat >>confdefs.h <<_ACEOF
8050 #define offset_t loff_t
8055 echo "$as_me:$LINENO: checking for ssize_t" >&5
8056 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8057 if test "${ac_cv_type_ssize_t+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 #include "confdefs.h"
8063 $ac_includes_default
8069 if (sizeof (ssize_t))
8075 rm -f conftest.$ac_objext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8077 (eval $ac_compile) 2>&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -s conftest.$ac_objext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 ac_cv_type_ssize_t=yes
8089 echo "$as_me: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091 ac_cv_type_ssize_t=no
8093 rm -f conftest.$ac_objext conftest.$ac_ext
8095 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8096 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8097 if test $ac_cv_type_ssize_t = yes; then
8101 cat >>confdefs.h <<_ACEOF
8107 echo "$as_me:$LINENO: checking for wchar_t" >&5
8108 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8109 if test "${ac_cv_type_wchar_t+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 cat >conftest.$ac_ext <<_ACEOF
8113 #line $LINENO "configure"
8114 #include "confdefs.h"
8115 $ac_includes_default
8121 if (sizeof (wchar_t))
8127 rm -f conftest.$ac_objext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129 (eval $ac_compile) 2>&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -s conftest.$ac_objext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_cv_type_wchar_t=yes
8141 echo "$as_me: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8143 ac_cv_type_wchar_t=no
8145 rm -f conftest.$ac_objext conftest.$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
8148 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
8149 if test $ac_cv_type_wchar_t = yes; then
8153 cat >>confdefs.h <<_ACEOF
8154 #define wchar_t unsigned short
8160 ############################################
8161 # for cups support we need libcups, and a handful of header files
8163 # Check whether --enable-cups or --disable-cups was given.
8164 if test "${enable_cups+set}" = set; then
8165 enableval="$enable_cups"
8169 if test x$enable_cups != xno; then
8170 # Extract the first word of "cups-config", so it can be a program name with args.
8171 set dummy cups-config; ac_word=$2
8172 echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8174 if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 case $CUPS_CONFIG in
8179 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
8201 if test -n "$CUPS_CONFIG"; then
8202 echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
8203 echo "${ECHO_T}$CUPS_CONFIG" >&6
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8210 if test "x$CUPS_CONFIG" != x; then
8212 cat >>confdefs.h <<\_ACEOF
8216 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
8217 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
8218 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
8222 ############################################
8223 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
8225 for ac_func in dlopen
8227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8228 echo "$as_me:$LINENO: checking for $ac_func" >&5
8229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8230 if eval "test \"\${$as_ac_var+set}\" = set"; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 cat >conftest.$ac_ext <<_ACEOF
8234 #line $LINENO "configure"
8235 #include "confdefs.h"
8236 /* System header to define __stub macros and hopefully few prototypes,
8237 which can conflict with char $ac_func (); below. */
8239 /* Override any gcc2 internal prototype to avoid an error. */
8243 /* We use char because int might match the return type of a gcc2
8244 builtin and then its argument prototype would still apply. */
8251 /* The GNU C library defines this for functions which it implements
8252 to always fail with ENOSYS. Some functions are actually named
8253 something starting with __ and the normal name is an alias. */
8254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -s conftest$ac_exeext'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
8276 eval "$as_ac_var=yes"
8278 echo "$as_me: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8280 eval "$as_ac_var=no"
8282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8286 if test `eval echo '${'$as_ac_var'}'` = yes; then
8287 cat >>confdefs.h <<_ACEOF
8288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8294 if test x"$ac_cv_func_dlopen" = x"no"; then
8295 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8296 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8297 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 ac_check_lib_save_LIBS=$LIBS
8302 cat >conftest.$ac_ext <<_ACEOF
8303 #line $LINENO "configure"
8304 #include "confdefs.h"
8306 /* Override any gcc2 internal prototype to avoid an error. */
8310 /* We use char because int might match the return type of a gcc2
8311 builtin and then its argument prototype would still apply. */
8321 rm -f conftest.$ac_objext conftest$ac_exeext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8323 (eval $ac_link) 2>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -s conftest$ac_exeext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8333 ac_cv_lib_dl_dlopen=yes
8335 echo "$as_me: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8337 ac_cv_lib_dl_dlopen=no
8339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8340 LIBS=$ac_check_lib_save_LIBS
8342 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8343 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8344 if test $ac_cv_lib_dl_dlopen = yes; then
8347 cat >>confdefs.h <<\_ACEOF
8348 #define HAVE_DLOPEN 1
8354 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
8356 ############################################
8357 # check if the compiler can do immediate structures
8358 echo "$as_me:$LINENO: checking for immediate structures" >&5
8359 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
8360 if test "${samba_cv_immediate_structures+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 cat >conftest.$ac_ext <<_ACEOF
8365 #line $LINENO "configure"
8366 #include "confdefs.h"
8373 typedef struct {unsigned x;} FOOBAR;
8374 #define X_FOOBAR(x) ((FOOBAR) { x })
8375 #define FOO_ONE X_FOOBAR(1)
8387 rm -f conftest.$ac_objext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8389 (eval $ac_compile) 2>&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -s conftest.$ac_objext'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 samba_cv_immediate_structures=yes
8401 echo "$as_me: failed program was:" >&5
8402 cat conftest.$ac_ext >&5
8403 samba_cv_immediate_structures=no
8405 rm -f conftest.$ac_objext conftest.$ac_ext
8407 echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
8408 echo "${ECHO_T}$samba_cv_immediate_structures" >&6
8409 if test x"$samba_cv_immediate_structures" = x"yes"; then
8411 cat >>confdefs.h <<\_ACEOF
8412 #define HAVE_IMMEDIATE_STRUCTURES 1
8417 ############################################
8418 # check for unix domain sockets
8419 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8420 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
8421 if test "${samba_cv_unixsocket+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 cat >conftest.$ac_ext <<_ACEOF
8426 #line $LINENO "configure"
8427 #include "confdefs.h"
8429 #include <sys/types.h>
8432 #include <sys/socket.h>
8438 struct sockaddr_un sunaddr;
8439 sunaddr.sun_family = AF_UNIX;
8445 rm -f conftest.$ac_objext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447 (eval $ac_compile) 2>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -s conftest.$ac_objext'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
8457 samba_cv_unixsocket=yes
8459 echo "$as_me: failed program was:" >&5
8460 cat conftest.$ac_ext >&5
8461 samba_cv_unixsocket=no
8463 rm -f conftest.$ac_objext conftest.$ac_ext
8465 echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
8466 echo "${ECHO_T}$samba_cv_unixsocket" >&6
8467 if test x"$samba_cv_unixsocket" = x"yes"; then
8469 cat >>confdefs.h <<\_ACEOF
8470 #define HAVE_UNIXSOCKET 1
8476 echo "$as_me:$LINENO: checking for socklen_t type" >&5
8477 echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
8478 if test "${samba_cv_socklen_t+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 cat >conftest.$ac_ext <<_ACEOF
8483 #line $LINENO "configure"
8484 #include "confdefs.h"
8486 #include <sys/types.h>
8491 #include <sys/socket.h>
8500 rm -f conftest.$ac_objext
8501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8502 (eval $ac_compile) 2>&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -s conftest.$ac_objext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 samba_cv_socklen_t=yes
8514 echo "$as_me: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8516 samba_cv_socklen_t=no
8518 rm -f conftest.$ac_objext conftest.$ac_ext
8520 echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
8521 echo "${ECHO_T}$samba_cv_socklen_t" >&6
8522 if test x"$samba_cv_socklen_t" = x"yes"; then
8524 cat >>confdefs.h <<\_ACEOF
8525 #define HAVE_SOCKLEN_T_TYPE 1
8530 echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
8531 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
8532 if test "${samba_cv_sig_atomic_t+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 cat >conftest.$ac_ext <<_ACEOF
8537 #line $LINENO "configure"
8538 #include "confdefs.h"
8540 #include <sys/types.h>
8554 rm -f conftest.$ac_objext
8555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8556 (eval $ac_compile) 2>&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 samba_cv_sig_atomic_t=yes
8568 echo "$as_me: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8570 samba_cv_sig_atomic_t=no
8572 rm -f conftest.$ac_objext conftest.$ac_ext
8574 echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
8575 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
8576 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
8578 cat >>confdefs.h <<\_ACEOF
8579 #define HAVE_SIG_ATOMIC_T_TYPE 1
8584 # stupid headers have the functions but no declaration. grrrr.
8586 echo "$as_me:$LINENO: checking for errno declaration" >&5
8587 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
8588 if test "${ac_cv_have_errno_decl+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 cat >conftest.$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8594 #include "confdefs.h"
8604 rm -f conftest.$ac_objext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try='test -s conftest.$ac_objext'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; }; then
8616 ac_cv_have_errno_decl=yes
8618 echo "$as_me: failed program was:" >&5
8619 cat conftest.$ac_ext >&5
8620 ac_cv_have_errno_decl=no
8622 rm -f conftest.$ac_objext conftest.$ac_ext
8624 echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
8625 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
8626 if test x"$ac_cv_have_errno_decl" = x"yes"; then
8628 cat >>confdefs.h <<\_ACEOF
8629 #define HAVE_ERRNO_DECL 1
8635 echo "$as_me:$LINENO: checking for setresuid declaration" >&5
8636 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
8637 if test "${ac_cv_have_setresuid_decl+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 cat >conftest.$ac_ext <<_ACEOF
8642 #line $LINENO "configure"
8643 #include "confdefs.h"
8648 int i = (int)setresuid
8653 rm -f conftest.$ac_objext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8655 (eval $ac_compile) 2>&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -s conftest.$ac_objext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_have_setresuid_decl=yes
8667 echo "$as_me: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8669 ac_cv_have_setresuid_decl=no
8671 rm -f conftest.$ac_objext conftest.$ac_ext
8673 echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
8674 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
8675 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
8677 cat >>confdefs.h <<\_ACEOF
8678 #define HAVE_SETRESUID_DECL 1
8684 echo "$as_me:$LINENO: checking for setresgid declaration" >&5
8685 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
8686 if test "${ac_cv_have_setresgid_decl+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 cat >conftest.$ac_ext <<_ACEOF
8691 #line $LINENO "configure"
8692 #include "confdefs.h"
8697 int i = (int)setresgid
8702 rm -f conftest.$ac_objext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8704 (eval $ac_compile) 2>&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try='test -s conftest.$ac_objext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 ac_cv_have_setresgid_decl=yes
8716 echo "$as_me: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8718 ac_cv_have_setresgid_decl=no
8720 rm -f conftest.$ac_objext conftest.$ac_ext
8722 echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
8723 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
8724 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
8726 cat >>confdefs.h <<\_ACEOF
8727 #define HAVE_SETRESGID_DECL 1
8733 echo "$as_me:$LINENO: checking for asprintf declaration" >&5
8734 echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
8735 if test "${ac_cv_have_asprintf_decl+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 cat >conftest.$ac_ext <<_ACEOF
8740 #line $LINENO "configure"
8741 #include "confdefs.h"
8746 int i = (int)asprintf
8751 rm -f conftest.$ac_objext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8753 (eval $ac_compile) 2>&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -s conftest.$ac_objext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 ac_cv_have_asprintf_decl=yes
8765 echo "$as_me: failed program was:" >&5
8766 cat conftest.$ac_ext >&5
8767 ac_cv_have_asprintf_decl=no
8769 rm -f conftest.$ac_objext conftest.$ac_ext
8771 echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
8772 echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
8773 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
8775 cat >>confdefs.h <<\_ACEOF
8776 #define HAVE_ASPRINTF_DECL 1
8782 echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
8783 echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
8784 if test "${ac_cv_have_vasprintf_decl+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 #include "confdefs.h"
8795 int i = (int)vasprintf
8800 rm -f conftest.$ac_objext
8801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8802 (eval $ac_compile) 2>&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try='test -s conftest.$ac_objext'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; }; then
8812 ac_cv_have_vasprintf_decl=yes
8814 echo "$as_me: failed program was:" >&5
8815 cat conftest.$ac_ext >&5
8816 ac_cv_have_vasprintf_decl=no
8818 rm -f conftest.$ac_objext conftest.$ac_ext
8820 echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
8821 echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
8822 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
8824 cat >>confdefs.h <<\_ACEOF
8825 #define HAVE_VASPRINTF_DECL 1
8831 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
8832 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
8833 if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 cat >conftest.$ac_ext <<_ACEOF
8838 #line $LINENO "configure"
8839 #include "confdefs.h"
8844 int i = (int)vsnprintf
8849 rm -f conftest.$ac_objext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8851 (eval $ac_compile) 2>&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -s conftest.$ac_objext'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8861 ac_cv_have_vsnprintf_decl=yes
8863 echo "$as_me: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8865 ac_cv_have_vsnprintf_decl=no
8867 rm -f conftest.$ac_objext conftest.$ac_ext
8869 echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
8870 echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
8871 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_VSNPRINTF_DECL 1
8880 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
8881 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
8882 if test "${ac_cv_have_snprintf_decl+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 cat >conftest.$ac_ext <<_ACEOF
8887 #line $LINENO "configure"
8888 #include "confdefs.h"
8893 int i = (int)snprintf
8898 rm -f conftest.$ac_objext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try='test -s conftest.$ac_objext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910 ac_cv_have_snprintf_decl=yes
8912 echo "$as_me: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8914 ac_cv_have_snprintf_decl=no
8916 rm -f conftest.$ac_objext conftest.$ac_ext
8918 echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
8919 echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
8920 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
8922 cat >>confdefs.h <<\_ACEOF
8923 #define HAVE_SNPRINTF_DECL 1
8929 # and glibc has setresuid under linux but the function does
8930 # nothing until kernel 2.1.44! very dumb.
8931 echo "$as_me:$LINENO: checking for real setresuid" >&5
8932 echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
8933 if test "${samba_cv_have_setresuid+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 if test "$cross_compiling" = yes; then
8938 samba_cv_have_setresuid=cross
8940 cat >conftest.$ac_ext <<_ACEOF
8941 #line $LINENO "configure"
8942 #include "confdefs.h"
8944 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
8946 rm -f conftest$ac_exeext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 samba_cv_have_setresuid=yes
8959 echo "$as_me: program exited with status $ac_status" >&5
8960 echo "$as_me: failed program was:" >&5
8961 cat conftest.$ac_ext >&5
8963 samba_cv_have_setresuid=no
8965 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8968 echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
8969 echo "${ECHO_T}$samba_cv_have_setresuid" >&6
8970 if test x"$samba_cv_have_setresuid" = x"yes"; then
8972 cat >>confdefs.h <<\_ACEOF
8973 #define HAVE_SETRESUID 1
8978 # Do the same check for setresguid...
8980 echo "$as_me:$LINENO: checking for real setresgid" >&5
8981 echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
8982 if test "${samba_cv_have_setresgid+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 if test "$cross_compiling" = yes; then
8987 samba_cv_have_setresgid=cross
8989 cat >conftest.$ac_ext <<_ACEOF
8990 #line $LINENO "configure"
8991 #include "confdefs.h"
8994 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
8996 rm -f conftest$ac_exeext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 samba_cv_have_setresgid=yes
9009 echo "$as_me: program exited with status $ac_status" >&5
9010 echo "$as_me: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9013 samba_cv_have_setresgid=no
9015 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9018 echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
9019 echo "${ECHO_T}$samba_cv_have_setresgid" >&6
9020 if test x"$samba_cv_have_setresgid" = x"yes"; then
9022 cat >>confdefs.h <<\_ACEOF
9023 #define HAVE_SETRESGID 1
9028 echo "$as_me:$LINENO: checking for working memcmp" >&5
9029 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9030 if test "${ac_cv_func_memcmp_working+set}" = set; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 if test "$cross_compiling" = yes; then
9034 ac_cv_func_memcmp_working=no
9036 cat >conftest.$ac_ext <<_ACEOF
9037 #line $LINENO "configure"
9038 #include "confdefs.h"
9044 /* Some versions of memcmp are not 8-bit clean. */
9045 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9046 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9049 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9050 or more and with at least one buffer not starting on a 4-byte boundary.
9051 William Lewis provided this test program. */
9056 for (i = 0; i < 4; i++)
9060 strcpy (a, "--------01111111");
9061 strcpy (b, "--------10000000");
9062 if (memcmp (a, b, 16) >= 0)
9072 rm -f conftest$ac_exeext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074 (eval $ac_link) 2>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; }; then
9083 ac_cv_func_memcmp_working=yes
9085 echo "$as_me: program exited with status $ac_status" >&5
9086 echo "$as_me: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9089 ac_cv_func_memcmp_working=no
9091 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9094 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9095 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9096 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9099 ###############################################
9100 # test for where we get crypt() from
9102 for ac_func in crypt
9104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9105 echo "$as_me:$LINENO: checking for $ac_func" >&5
9106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9107 if eval "test \"\${$as_ac_var+set}\" = set"; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 cat >conftest.$ac_ext <<_ACEOF
9111 #line $LINENO "configure"
9112 #include "confdefs.h"
9113 /* System header to define __stub macros and hopefully few prototypes,
9114 which can conflict with char $ac_func (); below. */
9116 /* Override any gcc2 internal prototype to avoid an error. */
9120 /* We use char because int might match the return type of a gcc2
9121 builtin and then its argument prototype would still apply. */
9128 /* The GNU C library defines this for functions which it implements
9129 to always fail with ENOSYS. Some functions are actually named
9130 something starting with __ and the normal name is an alias. */
9131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9141 rm -f conftest.$ac_objext conftest$ac_exeext
9142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9143 (eval $ac_link) 2>&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } &&
9147 { ac_try='test -s conftest$ac_exeext'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 eval "$as_ac_var=yes"
9155 echo "$as_me: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9157 eval "$as_ac_var=no"
9159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9163 if test `eval echo '${'$as_ac_var'}'` = yes; then
9164 cat >>confdefs.h <<_ACEOF
9165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9171 if test x"$ac_cv_func_crypt" = x"no"; then
9172 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9173 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9174 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 ac_check_lib_save_LIBS=$LIBS
9178 LIBS="-lcrypt $LIBS"
9179 cat >conftest.$ac_ext <<_ACEOF
9180 #line $LINENO "configure"
9181 #include "confdefs.h"
9183 /* Override any gcc2 internal prototype to avoid an error. */
9187 /* We use char because int might match the return type of a gcc2
9188 builtin and then its argument prototype would still apply. */
9198 rm -f conftest.$ac_objext conftest$ac_exeext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200 (eval $ac_link) 2>&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } &&
9204 { ac_try='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_lib_crypt_crypt=yes
9212 echo "$as_me: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9214 ac_cv_lib_crypt_crypt=no
9216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9217 LIBS=$ac_check_lib_save_LIBS
9219 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9220 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9221 if test $ac_cv_lib_crypt_crypt = yes; then
9222 AUTHLIBS="$AUTHLIBS -lcrypt";
9224 cat >>confdefs.h <<\_ACEOF
9225 #define HAVE_CRYPT 1
9233 ###############################################
9234 # Readline included by default unless explicitly asked not to
9235 test "${with_readline+set}" != "set" && with_readline=yes
9237 # test for where we get readline() from
9238 echo "$as_me:$LINENO: checking whether to use readline" >&5
9239 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
9241 # Check whether --with-readline or --without-readline was given.
9242 if test "${with_readline+set}" = set; then
9243 withval="$with_readline"
9244 case "$with_readline" in
9246 echo "$as_me:$LINENO: result: yes" >&5
9247 echo "${ECHO_T}yes" >&6
9252 for ac_header in readline.h history.h readline/readline.h
9254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9256 echo "$as_me:$LINENO: checking for $ac_header" >&5
9257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9264 # Is the header compilable?
9265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9267 cat >conftest.$ac_ext <<_ACEOF
9268 #line $LINENO "configure"
9269 #include "confdefs.h"
9270 $ac_includes_default
9271 #include <$ac_header>
9273 rm -f conftest.$ac_objext
9274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9275 (eval $ac_compile) 2>&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } &&
9279 { ac_try='test -s conftest.$ac_objext'
9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; }; then
9285 ac_header_compiler=yes
9287 echo "$as_me: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9289 ac_header_compiler=no
9291 rm -f conftest.$ac_objext conftest.$ac_ext
9292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9293 echo "${ECHO_T}$ac_header_compiler" >&6
9295 # Is the header present?
9296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9298 cat >conftest.$ac_ext <<_ACEOF
9299 #line $LINENO "configure"
9300 #include "confdefs.h"
9301 #include <$ac_header>
9303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9306 grep -v '^ *+' conftest.er1 >conftest.err
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } >/dev/null; then
9311 if test -s conftest.err; then
9312 ac_cpp_err=$ac_c_preproc_warn_flag
9319 if test -z "$ac_cpp_err"; then
9320 ac_header_preproc=yes
9322 echo "$as_me: failed program was:" >&5
9323 cat conftest.$ac_ext >&5
9324 ac_header_preproc=no
9326 rm -f conftest.err conftest.$ac_ext
9327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9328 echo "${ECHO_T}$ac_header_preproc" >&6
9330 # So? What about this header?
9331 case $ac_header_compiler:$ac_header_preproc in
9333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9345 echo "$as_me:$LINENO: checking for $ac_header" >&5
9346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 eval "$as_ac_Header=$ac_header_preproc"
9352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9357 cat >>confdefs.h <<_ACEOF
9358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9366 for ac_header in readline/history.h
9368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9370 echo "$as_me:$LINENO: checking for $ac_header" >&5
9371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9378 # Is the header compilable?
9379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9381 cat >conftest.$ac_ext <<_ACEOF
9382 #line $LINENO "configure"
9383 #include "confdefs.h"
9384 $ac_includes_default
9385 #include <$ac_header>
9387 rm -f conftest.$ac_objext
9388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9389 (eval $ac_compile) 2>&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -s conftest.$ac_objext'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; }; then
9399 ac_header_compiler=yes
9401 echo "$as_me: failed program was:" >&5
9402 cat conftest.$ac_ext >&5
9403 ac_header_compiler=no
9405 rm -f conftest.$ac_objext conftest.$ac_ext
9406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9407 echo "${ECHO_T}$ac_header_compiler" >&6
9409 # Is the header present?
9410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9412 cat >conftest.$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9414 #include "confdefs.h"
9415 #include <$ac_header>
9417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9420 grep -v '^ *+' conftest.er1 >conftest.err
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } >/dev/null; then
9425 if test -s conftest.err; then
9426 ac_cpp_err=$ac_c_preproc_warn_flag
9433 if test -z "$ac_cpp_err"; then
9434 ac_header_preproc=yes
9436 echo "$as_me: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 ac_header_preproc=no
9440 rm -f conftest.err conftest.$ac_ext
9441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9442 echo "${ECHO_T}$ac_header_preproc" >&6
9444 # So? What about this header?
9445 case $ac_header_compiler:$ac_header_preproc in
9447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9459 echo "$as_me:$LINENO: checking for $ac_header" >&5
9460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 eval "$as_ac_Header=$ac_header_preproc"
9466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9471 cat >>confdefs.h <<_ACEOF
9472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9482 for ac_header in readline.h readline/readline.h
9484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9486 echo "$as_me:$LINENO: checking for $ac_header" >&5
9487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9494 # Is the header compilable?
9495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9497 cat >conftest.$ac_ext <<_ACEOF
9498 #line $LINENO "configure"
9499 #include "confdefs.h"
9500 $ac_includes_default
9501 #include <$ac_header>
9503 rm -f conftest.$ac_objext
9504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9505 (eval $ac_compile) 2>&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -s conftest.$ac_objext'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
9515 ac_header_compiler=yes
9517 echo "$as_me: failed program was:" >&5
9518 cat conftest.$ac_ext >&5
9519 ac_header_compiler=no
9521 rm -f conftest.$ac_objext conftest.$ac_ext
9522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9523 echo "${ECHO_T}$ac_header_compiler" >&6
9525 # Is the header present?
9526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9528 cat >conftest.$ac_ext <<_ACEOF
9529 #line $LINENO "configure"
9530 #include "confdefs.h"
9531 #include <$ac_header>
9533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9536 grep -v '^ *+' conftest.er1 >conftest.err
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } >/dev/null; then
9541 if test -s conftest.err; then
9542 ac_cpp_err=$ac_c_preproc_warn_flag
9549 if test -z "$ac_cpp_err"; then
9550 ac_header_preproc=yes
9552 echo "$as_me: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9554 ac_header_preproc=no
9556 rm -f conftest.err conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9558 echo "${ECHO_T}$ac_header_preproc" >&6
9560 # So? What about this header?
9561 case $ac_header_compiler:$ac_header_preproc in
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9575 echo "$as_me:$LINENO: checking for $ac_header" >&5
9576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 eval "$as_ac_Header=$ac_header_preproc"
9582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9587 cat >>confdefs.h <<_ACEOF
9588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9591 for termlib in ncurses curses termcap terminfo termlib; do
9592 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
9593 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
9594 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
9595 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 ac_check_lib_save_LIBS=$LIBS
9599 LIBS="-l${termlib} $LIBS"
9600 cat >conftest.$ac_ext <<_ACEOF
9601 #line $LINENO "configure"
9602 #include "confdefs.h"
9604 /* Override any gcc2 internal prototype to avoid an error. */
9608 /* We use char because int might match the return type of a gcc2
9609 builtin and then its argument prototype would still apply. */
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621 (eval $ac_link) 2>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 eval "$as_ac_Lib=yes"
9633 echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 eval "$as_ac_Lib=no"
9637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9638 LIBS=$ac_check_lib_save_LIBS
9640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9641 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9642 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9643 TERMLIBS="-l${termlib}"; break
9647 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
9648 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
9649 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 ac_check_lib_save_LIBS=$LIBS
9653 LIBS="-lreadline $TERMLIBS $LIBS"
9654 cat >conftest.$ac_ext <<_ACEOF
9655 #line $LINENO "configure"
9656 #include "confdefs.h"
9658 /* Override any gcc2 internal prototype to avoid an error. */
9662 /* We use char because int might match the return type of a gcc2
9663 builtin and then its argument prototype would still apply. */
9664 char rl_callback_handler_install ();
9668 rl_callback_handler_install ();
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675 (eval $ac_link) 2>&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try='test -s conftest$ac_exeext'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; }; then
9685 ac_cv_lib_readline_rl_callback_handler_install=yes
9687 echo "$as_me: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9689 ac_cv_lib_readline_rl_callback_handler_install=no
9691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9692 LIBS=$ac_check_lib_save_LIBS
9694 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
9695 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
9696 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
9697 TERMLIBS="-lreadline $TERMLIBS"
9699 cat >>confdefs.h <<\_ACEOF
9700 #define HAVE_LIBREADLINE 1
9714 echo "$as_me:$LINENO: result: no" >&5
9715 echo "${ECHO_T}no" >&6
9718 echo "$as_me:$LINENO: result: yes" >&5
9719 echo "${ECHO_T}yes" >&6
9721 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
9722 # alternate readline path
9724 _cppflags=${CPPFLAGS}
9726 # Add additional search path
9727 LDFLAGS="-L$with_readline/lib $LDFLAGS"
9728 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
9733 for ac_header in readline.h history.h readline/readline.h
9735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9737 echo "$as_me:$LINENO: checking for $ac_header" >&5
9738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9745 # Is the header compilable?
9746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9748 cat >conftest.$ac_ext <<_ACEOF
9749 #line $LINENO "configure"
9750 #include "confdefs.h"
9751 $ac_includes_default
9752 #include <$ac_header>
9754 rm -f conftest.$ac_objext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -s conftest.$ac_objext'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 ac_header_compiler=yes
9768 echo "$as_me: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 ac_header_compiler=no
9772 rm -f conftest.$ac_objext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 echo "${ECHO_T}$ac_header_compiler" >&6
9776 # Is the header present?
9777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9779 cat >conftest.$ac_ext <<_ACEOF
9780 #line $LINENO "configure"
9781 #include "confdefs.h"
9782 #include <$ac_header>
9784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9787 grep -v '^ *+' conftest.er1 >conftest.err
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } >/dev/null; then
9792 if test -s conftest.err; then
9793 ac_cpp_err=$ac_c_preproc_warn_flag
9800 if test -z "$ac_cpp_err"; then
9801 ac_header_preproc=yes
9803 echo "$as_me: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9805 ac_header_preproc=no
9807 rm -f conftest.err conftest.$ac_ext
9808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9809 echo "${ECHO_T}$ac_header_preproc" >&6
9811 # So? What about this header?
9812 case $ac_header_compiler:$ac_header_preproc in
9814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9826 echo "$as_me:$LINENO: checking for $ac_header" >&5
9827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 eval "$as_ac_Header=$ac_header_preproc"
9833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9838 cat >>confdefs.h <<_ACEOF
9839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9847 for ac_header in readline/history.h
9849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9851 echo "$as_me:$LINENO: checking for $ac_header" >&5
9852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9859 # Is the header compilable?
9860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9862 cat >conftest.$ac_ext <<_ACEOF
9863 #line $LINENO "configure"
9864 #include "confdefs.h"
9865 $ac_includes_default
9866 #include <$ac_header>
9868 rm -f conftest.$ac_objext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9870 (eval $ac_compile) 2>&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } &&
9874 { ac_try='test -s conftest.$ac_objext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_header_compiler=yes
9882 echo "$as_me: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9884 ac_header_compiler=no
9886 rm -f conftest.$ac_objext conftest.$ac_ext
9887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9888 echo "${ECHO_T}$ac_header_compiler" >&6
9890 # Is the header present?
9891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9893 cat >conftest.$ac_ext <<_ACEOF
9894 #line $LINENO "configure"
9895 #include "confdefs.h"
9896 #include <$ac_header>
9898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9901 grep -v '^ *+' conftest.er1 >conftest.err
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } >/dev/null; then
9906 if test -s conftest.err; then
9907 ac_cpp_err=$ac_c_preproc_warn_flag
9914 if test -z "$ac_cpp_err"; then
9915 ac_header_preproc=yes
9917 echo "$as_me: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9919 ac_header_preproc=no
9921 rm -f conftest.err conftest.$ac_ext
9922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9923 echo "${ECHO_T}$ac_header_preproc" >&6
9925 # So? What about this header?
9926 case $ac_header_compiler:$ac_header_preproc in
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9940 echo "$as_me:$LINENO: checking for $ac_header" >&5
9941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 eval "$as_ac_Header=$ac_header_preproc"
9947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9952 cat >>confdefs.h <<_ACEOF
9953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9963 for ac_header in readline.h readline/readline.h
9965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9967 echo "$as_me:$LINENO: checking for $ac_header" >&5
9968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9975 # Is the header compilable?
9976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9978 cat >conftest.$ac_ext <<_ACEOF
9979 #line $LINENO "configure"
9980 #include "confdefs.h"
9981 $ac_includes_default
9982 #include <$ac_header>
9984 rm -f conftest.$ac_objext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9986 (eval $ac_compile) 2>&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -s conftest.$ac_objext'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 ac_header_compiler=yes
9998 echo "$as_me: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 ac_header_compiler=no
10002 rm -f conftest.$ac_objext conftest.$ac_ext
10003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10004 echo "${ECHO_T}$ac_header_compiler" >&6
10006 # Is the header present?
10007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10009 cat >conftest.$ac_ext <<_ACEOF
10010 #line $LINENO "configure"
10011 #include "confdefs.h"
10012 #include <$ac_header>
10014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } >/dev/null; then
10022 if test -s conftest.err; then
10023 ac_cpp_err=$ac_c_preproc_warn_flag
10030 if test -z "$ac_cpp_err"; then
10031 ac_header_preproc=yes
10033 echo "$as_me: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10035 ac_header_preproc=no
10037 rm -f conftest.err conftest.$ac_ext
10038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10039 echo "${ECHO_T}$ac_header_preproc" >&6
10041 # So? What about this header?
10042 case $ac_header_compiler:$ac_header_preproc in
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10056 echo "$as_me:$LINENO: checking for $ac_header" >&5
10057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 eval "$as_ac_Header=$ac_header_preproc"
10063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10068 cat >>confdefs.h <<_ACEOF
10069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10072 for termlib in ncurses curses termcap terminfo termlib; do
10073 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10074 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10075 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10076 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 ac_check_lib_save_LIBS=$LIBS
10080 LIBS="-l${termlib} $LIBS"
10081 cat >conftest.$ac_ext <<_ACEOF
10082 #line $LINENO "configure"
10083 #include "confdefs.h"
10085 /* Override any gcc2 internal prototype to avoid an error. */
10089 /* We use char because int might match the return type of a gcc2
10090 builtin and then its argument prototype would still apply. */
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10102 (eval $ac_link) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 eval "$as_ac_Lib=yes"
10114 echo "$as_me: failed program was:" >&5
10115 cat conftest.$ac_ext >&5
10116 eval "$as_ac_Lib=no"
10118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10122 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10123 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10124 TERMLIBS="-l${termlib}"; break
10128 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10129 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10130 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 ac_check_lib_save_LIBS=$LIBS
10134 LIBS="-lreadline $TERMLIBS $LIBS"
10135 cat >conftest.$ac_ext <<_ACEOF
10136 #line $LINENO "configure"
10137 #include "confdefs.h"
10139 /* Override any gcc2 internal prototype to avoid an error. */
10143 /* We use char because int might match the return type of a gcc2
10144 builtin and then its argument prototype would still apply. */
10145 char rl_callback_handler_install ();
10149 rl_callback_handler_install ();
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10156 (eval $ac_link) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -s conftest$ac_exeext'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
10166 ac_cv_lib_readline_rl_callback_handler_install=yes
10168 echo "$as_me: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10170 ac_cv_lib_readline_rl_callback_handler_install=no
10172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10175 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10176 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10177 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10178 TERMLDFLAGS="-L$with_readline/lib"
10179 TERMCPPFLAGS="-I$with_readline/include"
10180 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10181 TERMLIBS="-lreadline $TERMLIBS"
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_LIBREADLINE 1
10189 TERMLIBS= CPPFLAGS=$_cppflags
10201 echo "$as_me:$LINENO: result: no" >&5
10202 echo "${ECHO_T}no" >&6
10208 # The readline API changed slightly from readline3 to readline4, so
10209 # code will generate warnings on one of them unless we have a few
10211 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10212 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10213 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-lreadline $TERMLIBS $LIBS"
10218 cat >conftest.$ac_ext <<_ACEOF
10219 #line $LINENO "configure"
10220 #include "confdefs.h"
10222 /* Override any gcc2 internal prototype to avoid an error. */
10226 /* We use char because int might match the return type of a gcc2
10227 builtin and then its argument prototype would still apply. */
10228 char rl_completion_matches ();
10232 rl_completion_matches ();
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10239 (eval $ac_link) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_lib_readline_rl_completion_matches=yes
10251 echo "$as_me: failed program was:" >&5
10252 cat conftest.$ac_ext >&5
10253 ac_cv_lib_readline_rl_completion_matches=no
10255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10258 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10259 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10260 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_NEW_LIBREADLINE 1
10269 # The following test taken from the cvs sources
10270 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
10271 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
10272 # libsocket.so which has a bad implementation of gethostbyname (it
10273 # only looks in /etc/hosts), so we only look for -lsocket if we need
10276 for ac_func in connect
10278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279 echo "$as_me:$LINENO: checking for $ac_func" >&5
10280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10281 if eval "test \"\${$as_ac_var+set}\" = set"; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 cat >conftest.$ac_ext <<_ACEOF
10285 #line $LINENO "configure"
10286 #include "confdefs.h"
10287 /* System header to define __stub macros and hopefully few prototypes,
10288 which can conflict with char $ac_func (); below. */
10289 #include <assert.h>
10290 /* Override any gcc2 internal prototype to avoid an error. */
10294 /* We use char because int might match the return type of a gcc2
10295 builtin and then its argument prototype would still apply. */
10302 /* The GNU C library defines this for functions which it implements
10303 to always fail with ENOSYS. Some functions are actually named
10304 something starting with __ and the normal name is an alias. */
10305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317 (eval $ac_link) 2>&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try='test -s conftest$ac_exeext'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; }; then
10327 eval "$as_ac_var=yes"
10329 echo "$as_me: failed program was:" >&5
10330 cat conftest.$ac_ext >&5
10331 eval "$as_ac_var=no"
10333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10337 if test `eval echo '${'$as_ac_var'}'` = yes; then
10338 cat >>confdefs.h <<_ACEOF
10339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10345 if test x"$ac_cv_func_connect" = x"no"; then
10349 echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
10350 echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
10351 if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 ac_check_lib_save_LIBS=$LIBS
10355 LIBS="-lnsl_s $LIBS"
10356 cat >conftest.$ac_ext <<_ACEOF
10357 #line $LINENO "configure"
10358 #include "confdefs.h"
10360 /* Override any gcc2 internal prototype to avoid an error. */
10364 /* We use char because int might match the return type of a gcc2
10365 builtin and then its argument prototype would still apply. */
10375 rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377 (eval $ac_link) 2>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -s conftest$ac_exeext'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 ac_cv_lib_nsl_s_printf=yes
10389 echo "$as_me: failed program was:" >&5
10390 cat conftest.$ac_ext >&5
10391 ac_cv_lib_nsl_s_printf=no
10393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10396 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
10397 echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
10398 if test $ac_cv_lib_nsl_s_printf = yes; then
10399 cat >>confdefs.h <<_ACEOF
10400 #define HAVE_LIBNSL_S 1
10403 LIBS="-lnsl_s $LIBS"
10411 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
10412 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
10413 if test "${ac_cv_lib_nsl_printf+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 ac_check_lib_save_LIBS=$LIBS
10418 cat >conftest.$ac_ext <<_ACEOF
10419 #line $LINENO "configure"
10420 #include "confdefs.h"
10422 /* Override any gcc2 internal prototype to avoid an error. */
10426 /* We use char because int might match the return type of a gcc2
10427 builtin and then its argument prototype would still apply. */
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10439 (eval $ac_link) 2>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 ac_cv_lib_nsl_printf=yes
10451 echo "$as_me: failed program was:" >&5
10452 cat conftest.$ac_ext >&5
10453 ac_cv_lib_nsl_printf=no
10455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10456 LIBS=$ac_check_lib_save_LIBS
10458 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
10459 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
10460 if test $ac_cv_lib_nsl_printf = yes; then
10461 cat >>confdefs.h <<_ACEOF
10462 #define HAVE_LIBNSL 1
10473 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10474 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10475 if test "${ac_cv_lib_socket_connect+set}" = set; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 ac_check_lib_save_LIBS=$LIBS
10479 LIBS="-lsocket $LIBS"
10480 cat >conftest.$ac_ext <<_ACEOF
10481 #line $LINENO "configure"
10482 #include "confdefs.h"
10484 /* Override any gcc2 internal prototype to avoid an error. */
10488 /* We use char because int might match the return type of a gcc2
10489 builtin and then its argument prototype would still apply. */
10499 rm -f conftest.$ac_objext conftest$ac_exeext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10501 (eval $ac_link) 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -s conftest$ac_exeext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 ac_cv_lib_socket_connect=yes
10513 echo "$as_me: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10515 ac_cv_lib_socket_connect=no
10517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10518 LIBS=$ac_check_lib_save_LIBS
10520 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10521 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10522 if test $ac_cv_lib_socket_connect = yes; then
10523 cat >>confdefs.h <<_ACEOF
10524 #define HAVE_LIBSOCKET 1
10527 LIBS="-lsocket $LIBS"
10535 echo "$as_me:$LINENO: checking for connect in -linet" >&5
10536 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
10537 if test "${ac_cv_lib_inet_connect+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 ac_check_lib_save_LIBS=$LIBS
10541 LIBS="-linet $LIBS"
10542 cat >conftest.$ac_ext <<_ACEOF
10543 #line $LINENO "configure"
10544 #include "confdefs.h"
10546 /* Override any gcc2 internal prototype to avoid an error. */
10550 /* We use char because int might match the return type of a gcc2
10551 builtin and then its argument prototype would still apply. */
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } &&
10567 { ac_try='test -s conftest$ac_exeext'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }; then
10573 ac_cv_lib_inet_connect=yes
10575 echo "$as_me: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10577 ac_cv_lib_inet_connect=no
10579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10580 LIBS=$ac_check_lib_save_LIBS
10582 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
10583 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
10584 if test $ac_cv_lib_inet_connect = yes; then
10585 cat >>confdefs.h <<_ACEOF
10586 #define HAVE_LIBINET 1
10589 LIBS="-linet $LIBS"
10594 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
10595 test x"$ac_cv_lib_inet_connect" = x"yes"; then
10596 # ac_cv_func_connect=yes
10597 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
10599 cat >>confdefs.h <<\_ACEOF
10600 #define HAVE_CONNECT 1
10606 ###############################################
10607 # test for where we get get_yp_default_domain() from
10609 for ac_func in yp_get_default_domain
10611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10612 echo "$as_me:$LINENO: checking for $ac_func" >&5
10613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10614 if eval "test \"\${$as_ac_var+set}\" = set"; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 cat >conftest.$ac_ext <<_ACEOF
10618 #line $LINENO "configure"
10619 #include "confdefs.h"
10620 /* System header to define __stub macros and hopefully few prototypes,
10621 which can conflict with char $ac_func (); below. */
10622 #include <assert.h>
10623 /* Override any gcc2 internal prototype to avoid an error. */
10627 /* We use char because int might match the return type of a gcc2
10628 builtin and then its argument prototype would still apply. */
10635 /* The GNU C library defines this for functions which it implements
10636 to always fail with ENOSYS. Some functions are actually named
10637 something starting with __ and the normal name is an alias. */
10638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10650 (eval $ac_link) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -s conftest$ac_exeext'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 eval "$as_ac_var=yes"
10662 echo "$as_me: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 eval "$as_ac_var=no"
10666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10670 if test `eval echo '${'$as_ac_var'}'` = yes; then
10671 cat >>confdefs.h <<_ACEOF
10672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10678 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
10679 echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
10680 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
10681 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 ac_check_lib_save_LIBS=$LIBS
10686 cat >conftest.$ac_ext <<_ACEOF
10687 #line $LINENO "configure"
10688 #include "confdefs.h"
10690 /* Override any gcc2 internal prototype to avoid an error. */
10694 /* We use char because int might match the return type of a gcc2
10695 builtin and then its argument prototype would still apply. */
10696 char yp_get_default_domain ();
10700 yp_get_default_domain ();
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10707 (eval $ac_link) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } &&
10711 { ac_try='test -s conftest$ac_exeext'
10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713 (eval $ac_try) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_cv_lib_nsl_yp_get_default_domain=yes
10719 echo "$as_me: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10721 ac_cv_lib_nsl_yp_get_default_domain=no
10723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10724 LIBS=$ac_check_lib_save_LIBS
10726 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
10727 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
10728 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
10729 LIBS="$LIBS -lnsl";
10731 cat >>confdefs.h <<\_ACEOF
10732 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
10739 # Check if we have execl, if not we need to compile smbrun.
10741 for ac_func in execl
10743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10744 echo "$as_me:$LINENO: checking for $ac_func" >&5
10745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10746 if eval "test \"\${$as_ac_var+set}\" = set"; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 cat >conftest.$ac_ext <<_ACEOF
10750 #line $LINENO "configure"
10751 #include "confdefs.h"
10752 /* System header to define __stub macros and hopefully few prototypes,
10753 which can conflict with char $ac_func (); below. */
10754 #include <assert.h>
10755 /* Override any gcc2 internal prototype to avoid an error. */
10759 /* We use char because int might match the return type of a gcc2
10760 builtin and then its argument prototype would still apply. */
10767 /* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
10770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -s conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 eval "$as_ac_var=yes"
10794 echo "$as_me: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 eval "$as_ac_var=no"
10798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10802 if test `eval echo '${'$as_ac_var'}'` = yes; then
10803 cat >>confdefs.h <<_ACEOF
10804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10810 if test x"$ac_cv_func_execl" = x"no"; then
10811 RUNPROG="bin/smbrun"
10835 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
10837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10838 echo "$as_me:$LINENO: checking for $ac_func" >&5
10839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10840 if eval "test \"\${$as_ac_var+set}\" = set"; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 cat >conftest.$ac_ext <<_ACEOF
10844 #line $LINENO "configure"
10845 #include "confdefs.h"
10846 /* System header to define __stub macros and hopefully few prototypes,
10847 which can conflict with char $ac_func (); below. */
10848 #include <assert.h>
10849 /* Override any gcc2 internal prototype to avoid an error. */
10853 /* We use char because int might match the return type of a gcc2
10854 builtin and then its argument prototype would still apply. */
10861 /* The GNU C library defines this for functions which it implements
10862 to always fail with ENOSYS. Some functions are actually named
10863 something starting with __ and the normal name is an alias. */
10864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10876 (eval $ac_link) 2>&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -s conftest$ac_exeext'
10881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882 (eval $ac_try) 2>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
10886 eval "$as_ac_var=yes"
10888 echo "$as_me: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10890 eval "$as_ac_var=no"
10892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10896 if test `eval echo '${'$as_ac_var'}'` = yes; then
10897 cat >>confdefs.h <<_ACEOF
10898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10915 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
10917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10918 echo "$as_me:$LINENO: checking for $ac_func" >&5
10919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10920 if eval "test \"\${$as_ac_var+set}\" = set"; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 cat >conftest.$ac_ext <<_ACEOF
10924 #line $LINENO "configure"
10925 #include "confdefs.h"
10926 /* System header to define __stub macros and hopefully few prototypes,
10927 which can conflict with char $ac_func (); below. */
10928 #include <assert.h>
10929 /* Override any gcc2 internal prototype to avoid an error. */
10933 /* We use char because int might match the return type of a gcc2
10934 builtin and then its argument prototype would still apply. */
10941 /* The GNU C library defines this for functions which it implements
10942 to always fail with ENOSYS. Some functions are actually named
10943 something starting with __ and the normal name is an alias. */
10944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10956 (eval $ac_link) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -s conftest$ac_exeext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 eval "$as_ac_var=yes"
10968 echo "$as_me: failed program was:" >&5
10969 cat conftest.$ac_ext >&5
10970 eval "$as_ac_var=no"
10972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10976 if test `eval echo '${'$as_ac_var'}'` = yes; then
10977 cat >>confdefs.h <<_ACEOF
10978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10995 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
10997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10998 echo "$as_me:$LINENO: checking for $ac_func" >&5
10999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11000 if eval "test \"\${$as_ac_var+set}\" = set"; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 cat >conftest.$ac_ext <<_ACEOF
11004 #line $LINENO "configure"
11005 #include "confdefs.h"
11006 /* System header to define __stub macros and hopefully few prototypes,
11007 which can conflict with char $ac_func (); below. */
11008 #include <assert.h>
11009 /* Override any gcc2 internal prototype to avoid an error. */
11013 /* We use char because int might match the return type of a gcc2
11014 builtin and then its argument prototype would still apply. */
11021 /* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11034 rm -f conftest.$ac_objext conftest$ac_exeext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11036 (eval $ac_link) 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try='test -s conftest$ac_exeext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 eval "$as_ac_var=yes"
11048 echo "$as_me: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11050 eval "$as_ac_var=no"
11052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11056 if test `eval echo '${'$as_ac_var'}'` = yes; then
11057 cat >>confdefs.h <<_ACEOF
11058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11073 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
11075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11076 echo "$as_me:$LINENO: checking for $ac_func" >&5
11077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11078 if eval "test \"\${$as_ac_var+set}\" = set"; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 cat >conftest.$ac_ext <<_ACEOF
11082 #line $LINENO "configure"
11083 #include "confdefs.h"
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below. */
11086 #include <assert.h>
11087 /* Override any gcc2 internal prototype to avoid an error. */
11091 /* We use char because int might match the return type of a gcc2
11092 builtin and then its argument prototype would still apply. */
11099 /* The GNU C library defines this for functions which it implements
11100 to always fail with ENOSYS. Some functions are actually named
11101 something starting with __ and the normal name is an alias. */
11102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11112 rm -f conftest.$ac_objext conftest$ac_exeext
11113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114 (eval $ac_link) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -s conftest$ac_exeext'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 eval "$as_ac_var=yes"
11126 echo "$as_me: failed program was:" >&5
11127 cat conftest.$ac_ext >&5
11128 eval "$as_ac_var=no"
11130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11134 if test `eval echo '${'$as_ac_var'}'` = yes; then
11135 cat >>confdefs.h <<_ACEOF
11136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11150 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
11152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11153 echo "$as_me:$LINENO: checking for $ac_func" >&5
11154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11155 if eval "test \"\${$as_ac_var+set}\" = set"; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 cat >conftest.$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11160 #include "confdefs.h"
11161 /* System header to define __stub macros and hopefully few prototypes,
11162 which can conflict with char $ac_func (); below. */
11163 #include <assert.h>
11164 /* Override any gcc2 internal prototype to avoid an error. */
11168 /* We use char because int might match the return type of a gcc2
11169 builtin and then its argument prototype would still apply. */
11176 /* The GNU C library defines this for functions which it implements
11177 to always fail with ENOSYS. Some functions are actually named
11178 something starting with __ and the normal name is an alias. */
11179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11189 rm -f conftest.$ac_objext conftest$ac_exeext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try='test -s conftest$ac_exeext'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 eval "$as_ac_var=yes"
11203 echo "$as_me: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 eval "$as_ac_var=no"
11207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11211 if test `eval echo '${'$as_ac_var'}'` = yes; then
11212 cat >>confdefs.h <<_ACEOF
11213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11229 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
11231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11232 echo "$as_me:$LINENO: checking for $ac_func" >&5
11233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11234 if eval "test \"\${$as_ac_var+set}\" = set"; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 cat >conftest.$ac_ext <<_ACEOF
11238 #line $LINENO "configure"
11239 #include "confdefs.h"
11240 /* System header to define __stub macros and hopefully few prototypes,
11241 which can conflict with char $ac_func (); below. */
11242 #include <assert.h>
11243 /* Override any gcc2 internal prototype to avoid an error. */
11247 /* We use char because int might match the return type of a gcc2
11248 builtin and then its argument prototype would still apply. */
11255 /* The GNU C library defines this for functions which it implements
11256 to always fail with ENOSYS. Some functions are actually named
11257 something starting with __ and the normal name is an alias. */
11258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270 (eval $ac_link) 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -s conftest$ac_exeext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 eval "$as_ac_var=yes"
11282 echo "$as_me: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11284 eval "$as_ac_var=no"
11286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11290 if test `eval echo '${'$as_ac_var'}'` = yes; then
11291 cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11306 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
11308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11309 echo "$as_me:$LINENO: checking for $ac_func" >&5
11310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11311 if eval "test \"\${$as_ac_var+set}\" = set"; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 cat >conftest.$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11316 #include "confdefs.h"
11317 /* System header to define __stub macros and hopefully few prototypes,
11318 which can conflict with char $ac_func (); below. */
11319 #include <assert.h>
11320 /* Override any gcc2 internal prototype to avoid an error. */
11324 /* We use char because int might match the return type of a gcc2
11325 builtin and then its argument prototype would still apply. */
11332 /* The GNU C library defines this for functions which it implements
11333 to always fail with ENOSYS. Some functions are actually named
11334 something starting with __ and the normal name is an alias. */
11335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11345 rm -f conftest.$ac_objext conftest$ac_exeext
11346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347 (eval $ac_link) 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } &&
11351 { ac_try='test -s conftest$ac_exeext'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }; then
11357 eval "$as_ac_var=yes"
11359 echo "$as_me: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 eval "$as_ac_var=no"
11363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11367 if test `eval echo '${'$as_ac_var'}'` = yes; then
11368 cat >>confdefs.h <<_ACEOF
11369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11382 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
11384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 echo "$as_me:$LINENO: checking for $ac_func" >&5
11386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11387 if eval "test \"\${$as_ac_var+set}\" = set"; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 cat >conftest.$ac_ext <<_ACEOF
11391 #line $LINENO "configure"
11392 #include "confdefs.h"
11393 /* System header to define __stub macros and hopefully few prototypes,
11394 which can conflict with char $ac_func (); below. */
11395 #include <assert.h>
11396 /* Override any gcc2 internal prototype to avoid an error. */
11400 /* We use char because int might match the return type of a gcc2
11401 builtin and then its argument prototype would still apply. */
11408 /* The GNU C library defines this for functions which it implements
11409 to always fail with ENOSYS. Some functions are actually named
11410 something starting with __ and the normal name is an alias. */
11411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11423 (eval $ac_link) 2>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try='test -s conftest$ac_exeext'
11428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429 (eval $ac_try) 2>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; }; then
11433 eval "$as_ac_var=yes"
11435 echo "$as_me: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11437 eval "$as_ac_var=no"
11439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11443 if test `eval echo '${'$as_ac_var'}'` = yes; then
11444 cat >>confdefs.h <<_ACEOF
11445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11462 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
11464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11465 echo "$as_me:$LINENO: checking for $ac_func" >&5
11466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11467 if eval "test \"\${$as_ac_var+set}\" = set"; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 cat >conftest.$ac_ext <<_ACEOF
11471 #line $LINENO "configure"
11472 #include "confdefs.h"
11473 /* System header to define __stub macros and hopefully few prototypes,
11474 which can conflict with char $ac_func (); below. */
11475 #include <assert.h>
11476 /* Override any gcc2 internal prototype to avoid an error. */
11480 /* We use char because int might match the return type of a gcc2
11481 builtin and then its argument prototype would still apply. */
11488 /* The GNU C library defines this for functions which it implements
11489 to always fail with ENOSYS. Some functions are actually named
11490 something starting with __ and the normal name is an alias. */
11491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11501 rm -f conftest.$ac_objext conftest$ac_exeext
11502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11503 (eval $ac_link) 2>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } &&
11507 { ac_try='test -s conftest$ac_exeext'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; }; then
11513 eval "$as_ac_var=yes"
11515 echo "$as_me: failed program was:" >&5
11516 cat conftest.$ac_ext >&5
11517 eval "$as_ac_var=no"
11519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11523 if test `eval echo '${'$as_ac_var'}'` = yes; then
11524 cat >>confdefs.h <<_ACEOF
11525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11535 for ac_func in syslog vsyslog getgrouplist timegm
11537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11538 echo "$as_me:$LINENO: checking for $ac_func" >&5
11539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11540 if eval "test \"\${$as_ac_var+set}\" = set"; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 cat >conftest.$ac_ext <<_ACEOF
11544 #line $LINENO "configure"
11545 #include "confdefs.h"
11546 /* System header to define __stub macros and hopefully few prototypes,
11547 which can conflict with char $ac_func (); below. */
11548 #include <assert.h>
11549 /* Override any gcc2 internal prototype to avoid an error. */
11553 /* We use char because int might match the return type of a gcc2
11554 builtin and then its argument prototype would still apply. */
11561 /* The GNU C library defines this for functions which it implements
11562 to always fail with ENOSYS. Some functions are actually named
11563 something starting with __ and the normal name is an alias. */
11564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11574 rm -f conftest.$ac_objext conftest$ac_exeext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576 (eval $ac_link) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try='test -s conftest$ac_exeext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 eval "$as_ac_var=yes"
11588 echo "$as_me: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11590 eval "$as_ac_var=no"
11592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11596 if test `eval echo '${'$as_ac_var'}'` = yes; then
11597 cat >>confdefs.h <<_ACEOF
11598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11604 # setbuffer is needed for smbtorture
11606 for ac_func in setbuffer
11608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11609 echo "$as_me:$LINENO: checking for $ac_func" >&5
11610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11611 if eval "test \"\${$as_ac_var+set}\" = set"; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 cat >conftest.$ac_ext <<_ACEOF
11615 #line $LINENO "configure"
11616 #include "confdefs.h"
11617 /* System header to define __stub macros and hopefully few prototypes,
11618 which can conflict with char $ac_func (); below. */
11619 #include <assert.h>
11620 /* Override any gcc2 internal prototype to avoid an error. */
11624 /* We use char because int might match the return type of a gcc2
11625 builtin and then its argument prototype would still apply. */
11632 /* The GNU C library defines this for functions which it implements
11633 to always fail with ENOSYS. Some functions are actually named
11634 something starting with __ and the normal name is an alias. */
11635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647 (eval $ac_link) 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -s conftest$ac_exeext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 eval "$as_ac_var=yes"
11659 echo "$as_me: failed program was:" >&5
11660 cat conftest.$ac_ext >&5
11661 eval "$as_ac_var=no"
11663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11667 if test `eval echo '${'$as_ac_var'}'` = yes; then
11668 cat >>confdefs.h <<_ACEOF
11669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11676 # syscall() is needed for smbwrapper.
11678 for ac_func in syscall
11680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11681 echo "$as_me:$LINENO: checking for $ac_func" >&5
11682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11683 if eval "test \"\${$as_ac_var+set}\" = set"; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 cat >conftest.$ac_ext <<_ACEOF
11687 #line $LINENO "configure"
11688 #include "confdefs.h"
11689 /* System header to define __stub macros and hopefully few prototypes,
11690 which can conflict with char $ac_func (); below. */
11691 #include <assert.h>
11692 /* Override any gcc2 internal prototype to avoid an error. */
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11704 /* The GNU C library defines this for functions which it implements
11705 to always fail with ENOSYS. Some functions are actually named
11706 something starting with __ and the normal name is an alias. */
11707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11717 rm -f conftest.$ac_objext conftest$ac_exeext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719 (eval $ac_link) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 eval "$as_ac_var=yes"
11731 echo "$as_me: failed program was:" >&5
11732 cat conftest.$ac_ext >&5
11733 eval "$as_ac_var=no"
11735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11739 if test `eval echo '${'$as_ac_var'}'` = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11755 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
11757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11758 echo "$as_me:$LINENO: checking for $ac_func" >&5
11759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11760 if eval "test \"\${$as_ac_var+set}\" = set"; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 cat >conftest.$ac_ext <<_ACEOF
11764 #line $LINENO "configure"
11765 #include "confdefs.h"
11766 /* System header to define __stub macros and hopefully few prototypes,
11767 which can conflict with char $ac_func (); below. */
11768 #include <assert.h>
11769 /* Override any gcc2 internal prototype to avoid an error. */
11773 /* We use char because int might match the return type of a gcc2
11774 builtin and then its argument prototype would still apply. */
11781 /* The GNU C library defines this for functions which it implements
11782 to always fail with ENOSYS. Some functions are actually named
11783 something starting with __ and the normal name is an alias. */
11784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11794 rm -f conftest.$ac_objext conftest$ac_exeext
11795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11796 (eval $ac_link) 2>&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
11800 { ac_try='test -s conftest$ac_exeext'
11801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802 (eval $ac_try) 2>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; }; then
11806 eval "$as_ac_var=yes"
11808 echo "$as_me: failed program was:" >&5
11809 cat conftest.$ac_ext >&5
11810 eval "$as_ac_var=no"
11812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11816 if test `eval echo '${'$as_ac_var'}'` = yes; then
11817 cat >>confdefs.h <<_ACEOF
11818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11831 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
11833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11834 echo "$as_me:$LINENO: checking for $ac_func" >&5
11835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11836 if eval "test \"\${$as_ac_var+set}\" = set"; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11839 cat >conftest.$ac_ext <<_ACEOF
11840 #line $LINENO "configure"
11841 #include "confdefs.h"
11842 /* System header to define __stub macros and hopefully few prototypes,
11843 which can conflict with char $ac_func (); below. */
11844 #include <assert.h>
11845 /* Override any gcc2 internal prototype to avoid an error. */
11849 /* We use char because int might match the return type of a gcc2
11850 builtin and then its argument prototype would still apply. */
11857 /* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11872 (eval $ac_link) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } &&
11876 { ac_try='test -s conftest$ac_exeext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 eval "$as_ac_var=yes"
11884 echo "$as_me: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11886 eval "$as_ac_var=no"
11888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11892 if test `eval echo '${'$as_ac_var'}'` = yes; then
11893 cat >>confdefs.h <<_ACEOF
11894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11902 for ac_func in __getcwd _getcwd
11904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11905 echo "$as_me:$LINENO: checking for $ac_func" >&5
11906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11907 if eval "test \"\${$as_ac_var+set}\" = set"; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 cat >conftest.$ac_ext <<_ACEOF
11911 #line $LINENO "configure"
11912 #include "confdefs.h"
11913 /* System header to define __stub macros and hopefully few prototypes,
11914 which can conflict with char $ac_func (); below. */
11915 #include <assert.h>
11916 /* Override any gcc2 internal prototype to avoid an error. */
11920 /* We use char because int might match the return type of a gcc2
11921 builtin and then its argument prototype would still apply. */
11928 /* The GNU C library defines this for functions which it implements
11929 to always fail with ENOSYS. Some functions are actually named
11930 something starting with __ and the normal name is an alias. */
11931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943 (eval $ac_link) 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -s conftest$ac_exeext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 eval "$as_ac_var=yes"
11955 echo "$as_me: failed program was:" >&5
11956 cat conftest.$ac_ext >&5
11957 eval "$as_ac_var=no"
11959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11963 if test `eval echo '${'$as_ac_var'}'` = yes; then
11964 cat >>confdefs.h <<_ACEOF
11965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11974 for ac_func in __xstat __fxstat __lxstat
11976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11977 echo "$as_me:$LINENO: checking for $ac_func" >&5
11978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11979 if eval "test \"\${$as_ac_var+set}\" = set"; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 cat >conftest.$ac_ext <<_ACEOF
11983 #line $LINENO "configure"
11984 #include "confdefs.h"
11985 /* System header to define __stub macros and hopefully few prototypes,
11986 which can conflict with char $ac_func (); below. */
11987 #include <assert.h>
11988 /* Override any gcc2 internal prototype to avoid an error. */
11992 /* We use char because int might match the return type of a gcc2
11993 builtin and then its argument prototype would still apply. */
12000 /* The GNU C library defines this for functions which it implements
12001 to always fail with ENOSYS. Some functions are actually named
12002 something starting with __ and the normal name is an alias. */
12003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12013 rm -f conftest.$ac_objext conftest$ac_exeext
12014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12015 (eval $ac_link) 2>&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
12019 { ac_try='test -s conftest$ac_exeext'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 eval "$as_ac_var=yes"
12027 echo "$as_me: failed program was:" >&5
12028 cat conftest.$ac_ext >&5
12029 eval "$as_ac_var=no"
12031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12035 if test `eval echo '${'$as_ac_var'}'` = yes; then
12036 cat >>confdefs.h <<_ACEOF
12037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12054 if eval "test \"\${$as_ac_var+set}\" = set"; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 cat >conftest.$ac_ext <<_ACEOF
12058 #line $LINENO "configure"
12059 #include "confdefs.h"
12060 /* System header to define __stub macros and hopefully few prototypes,
12061 which can conflict with char $ac_func (); below. */
12062 #include <assert.h>
12063 /* Override any gcc2 internal prototype to avoid an error. */
12067 /* We use char because int might match the return type of a gcc2
12068 builtin and then its argument prototype would still apply. */
12075 /* The GNU C library defines this for functions which it implements
12076 to always fail with ENOSYS. Some functions are actually named
12077 something starting with __ and the normal name is an alias. */
12078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090 (eval $ac_link) 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } &&
12094 { ac_try='test -s conftest$ac_exeext'
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 eval "$as_ac_var=yes"
12102 echo "$as_me: failed program was:" >&5
12103 cat conftest.$ac_ext >&5
12104 eval "$as_ac_var=no"
12106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12110 if test `eval echo '${'$as_ac_var'}'` = yes; then
12111 cat >>confdefs.h <<_ACEOF
12112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12126 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
12128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12129 echo "$as_me:$LINENO: checking for $ac_func" >&5
12130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12131 if eval "test \"\${$as_ac_var+set}\" = set"; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 cat >conftest.$ac_ext <<_ACEOF
12135 #line $LINENO "configure"
12136 #include "confdefs.h"
12137 /* System header to define __stub macros and hopefully few prototypes,
12138 which can conflict with char $ac_func (); below. */
12139 #include <assert.h>
12140 /* Override any gcc2 internal prototype to avoid an error. */
12144 /* We use char because int might match the return type of a gcc2
12145 builtin and then its argument prototype would still apply. */
12152 /* The GNU C library defines this for functions which it implements
12153 to always fail with ENOSYS. Some functions are actually named
12154 something starting with __ and the normal name is an alias. */
12155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12167 (eval $ac_link) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
12171 { ac_try='test -s conftest$ac_exeext'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 eval "$as_ac_var=yes"
12179 echo "$as_me: failed program was:" >&5
12180 cat conftest.$ac_ext >&5
12181 eval "$as_ac_var=no"
12183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12187 if test `eval echo '${'$as_ac_var'}'` = yes; then
12188 cat >>confdefs.h <<_ACEOF
12189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12201 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
12203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12204 echo "$as_me:$LINENO: checking for $ac_func" >&5
12205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12206 if eval "test \"\${$as_ac_var+set}\" = set"; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 cat >conftest.$ac_ext <<_ACEOF
12210 #line $LINENO "configure"
12211 #include "confdefs.h"
12212 /* System header to define __stub macros and hopefully few prototypes,
12213 which can conflict with char $ac_func (); below. */
12214 #include <assert.h>
12215 /* Override any gcc2 internal prototype to avoid an error. */
12219 /* We use char because int might match the return type of a gcc2
12220 builtin and then its argument prototype would still apply. */
12227 /* The GNU C library defines this for functions which it implements
12228 to always fail with ENOSYS. Some functions are actually named
12229 something starting with __ and the normal name is an alias. */
12230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12240 rm -f conftest.$ac_objext conftest$ac_exeext
12241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12242 (eval $ac_link) 2>&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } &&
12246 { ac_try='test -s conftest$ac_exeext'
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; }; then
12252 eval "$as_ac_var=yes"
12254 echo "$as_me: failed program was:" >&5
12255 cat conftest.$ac_ext >&5
12256 eval "$as_ac_var=no"
12258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12262 if test `eval echo '${'$as_ac_var'}'` = yes; then
12263 cat >>confdefs.h <<_ACEOF
12264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12277 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
12279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12280 echo "$as_me:$LINENO: checking for $ac_func" >&5
12281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12282 if eval "test \"\${$as_ac_var+set}\" = set"; then
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 cat >conftest.$ac_ext <<_ACEOF
12286 #line $LINENO "configure"
12287 #include "confdefs.h"
12288 /* System header to define __stub macros and hopefully few prototypes,
12289 which can conflict with char $ac_func (); below. */
12290 #include <assert.h>
12291 /* Override any gcc2 internal prototype to avoid an error. */
12295 /* We use char because int might match the return type of a gcc2
12296 builtin and then its argument prototype would still apply. */
12303 /* The GNU C library defines this for functions which it implements
12304 to always fail with ENOSYS. Some functions are actually named
12305 something starting with __ and the normal name is an alias. */
12306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12316 rm -f conftest.$ac_objext conftest$ac_exeext
12317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12318 (eval $ac_link) 2>&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -s conftest$ac_exeext'
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; }; then
12328 eval "$as_ac_var=yes"
12330 echo "$as_me: failed program was:" >&5
12331 cat conftest.$ac_ext >&5
12332 eval "$as_ac_var=no"
12334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12338 if test `eval echo '${'$as_ac_var'}'` = yes; then
12339 cat >>confdefs.h <<_ACEOF
12340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12350 for ac_func in _write __write _fork __fork
12352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12353 echo "$as_me:$LINENO: checking for $ac_func" >&5
12354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12355 if eval "test \"\${$as_ac_var+set}\" = set"; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 cat >conftest.$ac_ext <<_ACEOF
12359 #line $LINENO "configure"
12360 #include "confdefs.h"
12361 /* System header to define __stub macros and hopefully few prototypes,
12362 which can conflict with char $ac_func (); below. */
12363 #include <assert.h>
12364 /* Override any gcc2 internal prototype to avoid an error. */
12368 /* We use char because int might match the return type of a gcc2
12369 builtin and then its argument prototype would still apply. */
12376 /* The GNU C library defines this for functions which it implements
12377 to always fail with ENOSYS. Some functions are actually named
12378 something starting with __ and the normal name is an alias. */
12379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12389 rm -f conftest.$ac_objext conftest$ac_exeext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12391 (eval $ac_link) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -s conftest$ac_exeext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 eval "$as_ac_var=yes"
12403 echo "$as_me: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12405 eval "$as_ac_var=no"
12407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12411 if test `eval echo '${'$as_ac_var'}'` = yes; then
12412 cat >>confdefs.h <<_ACEOF
12413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12425 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
12427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12428 echo "$as_me:$LINENO: checking for $ac_func" >&5
12429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12430 if eval "test \"\${$as_ac_var+set}\" = set"; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 cat >conftest.$ac_ext <<_ACEOF
12434 #line $LINENO "configure"
12435 #include "confdefs.h"
12436 /* System header to define __stub macros and hopefully few prototypes,
12437 which can conflict with char $ac_func (); below. */
12438 #include <assert.h>
12439 /* Override any gcc2 internal prototype to avoid an error. */
12443 /* We use char because int might match the return type of a gcc2
12444 builtin and then its argument prototype would still apply. */
12451 /* The GNU C library defines this for functions which it implements
12452 to always fail with ENOSYS. Some functions are actually named
12453 something starting with __ and the normal name is an alias. */
12454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12466 (eval $ac_link) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -s conftest$ac_exeext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 eval "$as_ac_var=yes"
12478 echo "$as_me: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12480 eval "$as_ac_var=no"
12482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12486 if test `eval echo '${'$as_ac_var'}'` = yes; then
12487 cat >>confdefs.h <<_ACEOF
12488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12501 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
12503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12504 echo "$as_me:$LINENO: checking for $ac_func" >&5
12505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12506 if eval "test \"\${$as_ac_var+set}\" = set"; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 cat >conftest.$ac_ext <<_ACEOF
12510 #line $LINENO "configure"
12511 #include "confdefs.h"
12512 /* System header to define __stub macros and hopefully few prototypes,
12513 which can conflict with char $ac_func (); below. */
12514 #include <assert.h>
12515 /* Override any gcc2 internal prototype to avoid an error. */
12519 /* We use char because int might match the return type of a gcc2
12520 builtin and then its argument prototype would still apply. */
12527 /* The GNU C library defines this for functions which it implements
12528 to always fail with ENOSYS. Some functions are actually named
12529 something starting with __ and the normal name is an alias. */
12530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542 (eval $ac_link) 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -s conftest$ac_exeext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 eval "$as_ac_var=yes"
12554 echo "$as_me: failed program was:" >&5
12555 cat conftest.$ac_ext >&5
12556 eval "$as_ac_var=no"
12558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12562 if test `eval echo '${'$as_ac_var'}'` = yes; then
12563 cat >>confdefs.h <<_ACEOF
12564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12576 for ac_func in pread _pread __pread pread64 _pread64 __pread64
12578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12579 echo "$as_me:$LINENO: checking for $ac_func" >&5
12580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12581 if eval "test \"\${$as_ac_var+set}\" = set"; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 cat >conftest.$ac_ext <<_ACEOF
12585 #line $LINENO "configure"
12586 #include "confdefs.h"
12587 /* System header to define __stub macros and hopefully few prototypes,
12588 which can conflict with char $ac_func (); below. */
12589 #include <assert.h>
12590 /* Override any gcc2 internal prototype to avoid an error. */
12594 /* We use char because int might match the return type of a gcc2
12595 builtin and then its argument prototype would still apply. */
12602 /* The GNU C library defines this for functions which it implements
12603 to always fail with ENOSYS. Some functions are actually named
12604 something starting with __ and the normal name is an alias. */
12605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617 (eval $ac_link) 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try='test -s conftest$ac_exeext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 eval "$as_ac_var=yes"
12629 echo "$as_me: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 eval "$as_ac_var=no"
12633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12637 if test `eval echo '${'$as_ac_var'}'` = yes; then
12638 cat >>confdefs.h <<_ACEOF
12639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12651 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
12653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12654 echo "$as_me:$LINENO: checking for $ac_func" >&5
12655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12656 if eval "test \"\${$as_ac_var+set}\" = set"; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12659 cat >conftest.$ac_ext <<_ACEOF
12660 #line $LINENO "configure"
12661 #include "confdefs.h"
12662 /* System header to define __stub macros and hopefully few prototypes,
12663 which can conflict with char $ac_func (); below. */
12664 #include <assert.h>
12665 /* Override any gcc2 internal prototype to avoid an error. */
12669 /* We use char because int might match the return type of a gcc2
12670 builtin and then its argument prototype would still apply. */
12677 /* The GNU C library defines this for functions which it implements
12678 to always fail with ENOSYS. Some functions are actually named
12679 something starting with __ and the normal name is an alias. */
12680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12690 rm -f conftest.$ac_objext conftest$ac_exeext
12691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12692 (eval $ac_link) 2>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try='test -s conftest$ac_exeext'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; }; then
12702 eval "$as_ac_var=yes"
12704 echo "$as_me: failed program was:" >&5
12705 cat conftest.$ac_ext >&5
12706 eval "$as_ac_var=no"
12708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12712 if test `eval echo '${'$as_ac_var'}'` = yes; then
12713 cat >>confdefs.h <<_ACEOF
12714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12724 for ac_func in open64 _open64 __open64 creat64
12726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12727 echo "$as_me:$LINENO: checking for $ac_func" >&5
12728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12729 if eval "test \"\${$as_ac_var+set}\" = set"; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 cat >conftest.$ac_ext <<_ACEOF
12733 #line $LINENO "configure"
12734 #include "confdefs.h"
12735 /* System header to define __stub macros and hopefully few prototypes,
12736 which can conflict with char $ac_func (); below. */
12737 #include <assert.h>
12738 /* Override any gcc2 internal prototype to avoid an error. */
12742 /* We use char because int might match the return type of a gcc2
12743 builtin and then its argument prototype would still apply. */
12750 /* The GNU C library defines this for functions which it implements
12751 to always fail with ENOSYS. Some functions are actually named
12752 something starting with __ and the normal name is an alias. */
12753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12763 rm -f conftest.$ac_objext conftest$ac_exeext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12765 (eval $ac_link) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } &&
12769 { ac_try='test -s conftest$ac_exeext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 eval "$as_ac_var=yes"
12777 echo "$as_me: failed program was:" >&5
12778 cat conftest.$ac_ext >&5
12779 eval "$as_ac_var=no"
12781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12785 if test `eval echo '${'$as_ac_var'}'` = yes; then
12786 cat >>confdefs.h <<_ACEOF
12787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12795 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
12798 if test x$ac_cv_func_stat64 = xno ; then
12799 echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
12800 echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
12801 cat >conftest.$ac_ext <<_ACEOF
12802 #line $LINENO "configure"
12803 #include "confdefs.h"
12805 #if defined(HAVE_UNISTD_H)
12806 #include <unistd.h>
12808 #include <sys/stat.h>
12813 struct stat64 st64; exit(stat64(".",&st64));
12818 rm -f conftest.$ac_objext conftest$ac_exeext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12820 (eval $ac_link) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try='test -s conftest$ac_exeext'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
12830 ac_cv_func_stat64=yes
12832 echo "$as_me: failed program was:" >&5
12833 cat conftest.$ac_ext >&5
12835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12836 echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
12837 echo "${ECHO_T}$ac_cv_func_stat64" >&6
12838 if test x$ac_cv_func_stat64 = xyes ; then
12840 cat >>confdefs.h <<\_ACEOF
12841 #define HAVE_STAT64 1
12847 if test x$ac_cv_func_lstat64 = xno ; then
12848 echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
12849 echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6
12850 cat >conftest.$ac_ext <<_ACEOF
12851 #line $LINENO "configure"
12852 #include "confdefs.h"
12854 #if defined(HAVE_UNISTD_H)
12855 #include <unistd.h>
12857 #include <sys/stat.h>
12862 struct stat64 st64; exit(lstat64(".",&st64));
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12869 (eval $ac_link) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -s conftest$ac_exeext'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12879 ac_cv_func_lstat64=yes
12881 echo "$as_me: failed program was:" >&5
12882 cat conftest.$ac_ext >&5
12884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12885 echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
12886 echo "${ECHO_T}$ac_cv_func_lstat64" >&6
12887 if test x$ac_cv_func_lstat64 = xyes ; then
12888 cat >>confdefs.h <<\_ACEOF
12889 #define HAVE_LSTAT64 Whether lstat64() is available
12895 if test x$ac_cv_func_fstat64 = xno ; then
12896 echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
12897 echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
12898 cat >conftest.$ac_ext <<_ACEOF
12899 #line $LINENO "configure"
12900 #include "confdefs.h"
12902 #if defined(HAVE_UNISTD_H)
12903 #include <unistd.h>
12905 #include <sys/stat.h>
12910 struct stat64 st64; exit(fstat64(0,&st64));
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917 (eval $ac_link) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -s conftest$ac_exeext'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 ac_cv_func_fstat64=yes
12929 echo "$as_me: failed program was:" >&5
12930 cat conftest.$ac_ext >&5
12932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12933 echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
12934 echo "${ECHO_T}$ac_cv_func_fstat64" >&6
12935 if test x$ac_cv_func_fstat64 = xyes ; then
12937 cat >>confdefs.h <<\_ACEOF
12938 #define HAVE_FSTAT64 1
12944 #####################################
12945 # we might need the resolv library on some systems
12947 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
12948 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
12949 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 ac_check_lib_save_LIBS=$LIBS
12953 LIBS="-lresolv $LIBS"
12954 cat >conftest.$ac_ext <<_ACEOF
12955 #line $LINENO "configure"
12956 #include "confdefs.h"
12958 /* Override any gcc2 internal prototype to avoid an error. */
12962 /* We use char because int might match the return type of a gcc2
12963 builtin and then its argument prototype would still apply. */
12973 rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12975 (eval $ac_link) 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } &&
12979 { ac_try='test -s conftest$ac_exeext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_lib_resolv_dn_expand=yes
12987 echo "$as_me: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12989 ac_cv_lib_resolv_dn_expand=no
12991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12992 LIBS=$ac_check_lib_save_LIBS
12994 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
12995 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
12996 if test $ac_cv_lib_resolv_dn_expand = yes; then
12997 cat >>confdefs.h <<_ACEOF
12998 #define HAVE_LIBRESOLV 1
13001 LIBS="-lresolv $LIBS"
13007 # Check for the functions putprpwnam, set_auth_parameters,
13008 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
13009 # Needed for OSF1 and HPUX.
13014 for ac_func in putprpwnam
13016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13017 echo "$as_me:$LINENO: checking for $ac_func" >&5
13018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13019 if eval "test \"\${$as_ac_var+set}\" = set"; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 cat >conftest.$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 #include "confdefs.h"
13025 /* System header to define __stub macros and hopefully few prototypes,
13026 which can conflict with char $ac_func (); below. */
13027 #include <assert.h>
13028 /* Override any gcc2 internal prototype to avoid an error. */
13032 /* We use char because int might match the return type of a gcc2
13033 builtin and then its argument prototype would still apply. */
13040 /* The GNU C library defines this for functions which it implements
13041 to always fail with ENOSYS. Some functions are actually named
13042 something starting with __ and the normal name is an alias. */
13043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13053 rm -f conftest.$ac_objext conftest$ac_exeext
13054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13055 (eval $ac_link) 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -s conftest$ac_exeext'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065 eval "$as_ac_var=yes"
13067 echo "$as_me: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13069 eval "$as_ac_var=no"
13071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13075 if test `eval echo '${'$as_ac_var'}'` = yes; then
13076 cat >>confdefs.h <<_ACEOF
13077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13084 echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
13085 echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
13086 if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 ac_check_lib_save_LIBS=$LIBS
13090 LIBS="-lsecurity $LIBS"
13091 cat >conftest.$ac_ext <<_ACEOF
13092 #line $LINENO "configure"
13093 #include "confdefs.h"
13095 /* Override any gcc2 internal prototype to avoid an error. */
13099 /* We use char because int might match the return type of a gcc2
13100 builtin and then its argument prototype would still apply. */
13101 char putprpwnam ();
13110 rm -f conftest.$ac_objext conftest$ac_exeext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13112 (eval $ac_link) 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try='test -s conftest$ac_exeext'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 ac_cv_lib_security_putprpwnam=yes
13124 echo "$as_me: failed program was:" >&5
13125 cat conftest.$ac_ext >&5
13126 ac_cv_lib_security_putprpwnam=no
13128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13129 LIBS=$ac_check_lib_save_LIBS
13131 echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
13132 echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
13133 if test $ac_cv_lib_security_putprpwnam = yes; then
13134 cat >>confdefs.h <<_ACEOF
13135 #define HAVE_LIBSECURITY 1
13138 LIBS="-lsecurity $LIBS"
13143 for ac_func in putprpwnam
13145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13146 echo "$as_me:$LINENO: checking for $ac_func" >&5
13147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13148 if eval "test \"\${$as_ac_var+set}\" = set"; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 cat >conftest.$ac_ext <<_ACEOF
13152 #line $LINENO "configure"
13153 #include "confdefs.h"
13154 /* System header to define __stub macros and hopefully few prototypes,
13155 which can conflict with char $ac_func (); below. */
13156 #include <assert.h>
13157 /* Override any gcc2 internal prototype to avoid an error. */
13161 /* We use char because int might match the return type of a gcc2
13162 builtin and then its argument prototype would still apply. */
13169 /* The GNU C library defines this for functions which it implements
13170 to always fail with ENOSYS. Some functions are actually named
13171 something starting with __ and the normal name is an alias. */
13172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13182 rm -f conftest.$ac_objext conftest$ac_exeext
13183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13184 (eval $ac_link) 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -s conftest$ac_exeext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 eval "$as_ac_var=yes"
13196 echo "$as_me: failed program was:" >&5
13197 cat conftest.$ac_ext >&5
13198 eval "$as_ac_var=no"
13200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13204 if test `eval echo '${'$as_ac_var'}'` = yes; then
13205 cat >>confdefs.h <<_ACEOF
13206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13217 for ac_func in putprpwnam
13219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13220 echo "$as_me:$LINENO: checking for $ac_func" >&5
13221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13222 if eval "test \"\${$as_ac_var+set}\" = set"; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 cat >conftest.$ac_ext <<_ACEOF
13226 #line $LINENO "configure"
13227 #include "confdefs.h"
13228 /* System header to define __stub macros and hopefully few prototypes,
13229 which can conflict with char $ac_func (); below. */
13230 #include <assert.h>
13231 /* Override any gcc2 internal prototype to avoid an error. */
13235 /* We use char because int might match the return type of a gcc2
13236 builtin and then its argument prototype would still apply. */
13243 /* The GNU C library defines this for functions which it implements
13244 to always fail with ENOSYS. Some functions are actually named
13245 something starting with __ and the normal name is an alias. */
13246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13256 rm -f conftest.$ac_objext conftest$ac_exeext
13257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13258 (eval $ac_link) 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
13262 { ac_try='test -s conftest$ac_exeext'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 eval "$as_ac_var=yes"
13270 echo "$as_me: failed program was:" >&5
13271 cat conftest.$ac_ext >&5
13272 eval "$as_ac_var=no"
13274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13278 if test `eval echo '${'$as_ac_var'}'` = yes; then
13279 cat >>confdefs.h <<_ACEOF
13280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13287 echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
13288 echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
13289 if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 ac_check_lib_save_LIBS=$LIBS
13294 cat >conftest.$ac_ext <<_ACEOF
13295 #line $LINENO "configure"
13296 #include "confdefs.h"
13298 /* Override any gcc2 internal prototype to avoid an error. */
13302 /* We use char because int might match the return type of a gcc2
13303 builtin and then its argument prototype would still apply. */
13304 char putprpwnam ();
13313 rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13315 (eval $ac_link) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
13319 { ac_try='test -s conftest$ac_exeext'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 ac_cv_lib_sec_putprpwnam=yes
13327 echo "$as_me: failed program was:" >&5
13328 cat conftest.$ac_ext >&5
13329 ac_cv_lib_sec_putprpwnam=no
13331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13332 LIBS=$ac_check_lib_save_LIBS
13334 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
13335 echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
13336 if test $ac_cv_lib_sec_putprpwnam = yes; then
13337 cat >>confdefs.h <<_ACEOF
13338 #define HAVE_LIBSEC 1
13346 for ac_func in putprpwnam
13348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13349 echo "$as_me:$LINENO: checking for $ac_func" >&5
13350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13351 if eval "test \"\${$as_ac_var+set}\" = set"; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 cat >conftest.$ac_ext <<_ACEOF
13355 #line $LINENO "configure"
13356 #include "confdefs.h"
13357 /* System header to define __stub macros and hopefully few prototypes,
13358 which can conflict with char $ac_func (); below. */
13359 #include <assert.h>
13360 /* Override any gcc2 internal prototype to avoid an error. */
13364 /* We use char because int might match the return type of a gcc2
13365 builtin and then its argument prototype would still apply. */
13372 /* The GNU C library defines this for functions which it implements
13373 to always fail with ENOSYS. Some functions are actually named
13374 something starting with __ and the normal name is an alias. */
13375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13385 rm -f conftest.$ac_objext conftest$ac_exeext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13387 (eval $ac_link) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } &&
13391 { ac_try='test -s conftest$ac_exeext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 eval "$as_ac_var=yes"
13399 echo "$as_me: failed program was:" >&5
13400 cat conftest.$ac_ext >&5
13401 eval "$as_ac_var=no"
13403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13407 if test `eval echo '${'$as_ac_var'}'` = yes; then
13408 cat >>confdefs.h <<_ACEOF
13409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13421 for ac_func in set_auth_parameters
13423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13424 echo "$as_me:$LINENO: checking for $ac_func" >&5
13425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13426 if eval "test \"\${$as_ac_var+set}\" = set"; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 cat >conftest.$ac_ext <<_ACEOF
13430 #line $LINENO "configure"
13431 #include "confdefs.h"
13432 /* System header to define __stub macros and hopefully few prototypes,
13433 which can conflict with char $ac_func (); below. */
13434 #include <assert.h>
13435 /* Override any gcc2 internal prototype to avoid an error. */
13439 /* We use char because int might match the return type of a gcc2
13440 builtin and then its argument prototype would still apply. */
13447 /* The GNU C library defines this for functions which it implements
13448 to always fail with ENOSYS. Some functions are actually named
13449 something starting with __ and the normal name is an alias. */
13450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13462 (eval $ac_link) 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -s conftest$ac_exeext'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 eval "$as_ac_var=yes"
13474 echo "$as_me: failed program was:" >&5
13475 cat conftest.$ac_ext >&5
13476 eval "$as_ac_var=no"
13478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13482 if test `eval echo '${'$as_ac_var'}'` = yes; then
13483 cat >>confdefs.h <<_ACEOF
13484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13491 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
13492 echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
13493 if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 ac_check_lib_save_LIBS=$LIBS
13497 LIBS="-lsecurity $LIBS"
13498 cat >conftest.$ac_ext <<_ACEOF
13499 #line $LINENO "configure"
13500 #include "confdefs.h"
13502 /* Override any gcc2 internal prototype to avoid an error. */
13506 /* We use char because int might match the return type of a gcc2
13507 builtin and then its argument prototype would still apply. */
13508 char set_auth_parameters ();
13512 set_auth_parameters ();
13517 rm -f conftest.$ac_objext conftest$ac_exeext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13519 (eval $ac_link) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -s conftest$ac_exeext'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529 ac_cv_lib_security_set_auth_parameters=yes
13531 echo "$as_me: failed program was:" >&5
13532 cat conftest.$ac_ext >&5
13533 ac_cv_lib_security_set_auth_parameters=no
13535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13536 LIBS=$ac_check_lib_save_LIBS
13538 echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
13539 echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
13540 if test $ac_cv_lib_security_set_auth_parameters = yes; then
13541 cat >>confdefs.h <<_ACEOF
13542 #define HAVE_LIBSECURITY 1
13545 LIBS="-lsecurity $LIBS"
13550 for ac_func in set_auth_parameters
13552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13553 echo "$as_me:$LINENO: checking for $ac_func" >&5
13554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13555 if eval "test \"\${$as_ac_var+set}\" = set"; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 cat >conftest.$ac_ext <<_ACEOF
13559 #line $LINENO "configure"
13560 #include "confdefs.h"
13561 /* System header to define __stub macros and hopefully few prototypes,
13562 which can conflict with char $ac_func (); below. */
13563 #include <assert.h>
13564 /* Override any gcc2 internal prototype to avoid an error. */
13568 /* We use char because int might match the return type of a gcc2
13569 builtin and then its argument prototype would still apply. */
13576 /* The GNU C library defines this for functions which it implements
13577 to always fail with ENOSYS. Some functions are actually named
13578 something starting with __ and the normal name is an alias. */
13579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13589 rm -f conftest.$ac_objext conftest$ac_exeext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13591 (eval $ac_link) 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -s conftest$ac_exeext'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }; then
13601 eval "$as_ac_var=yes"
13603 echo "$as_me: failed program was:" >&5
13604 cat conftest.$ac_ext >&5
13605 eval "$as_ac_var=no"
13607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13611 if test `eval echo '${'$as_ac_var'}'` = yes; then
13612 cat >>confdefs.h <<_ACEOF
13613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13624 for ac_func in set_auth_parameters
13626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13627 echo "$as_me:$LINENO: checking for $ac_func" >&5
13628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13629 if eval "test \"\${$as_ac_var+set}\" = set"; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 cat >conftest.$ac_ext <<_ACEOF
13633 #line $LINENO "configure"
13634 #include "confdefs.h"
13635 /* System header to define __stub macros and hopefully few prototypes,
13636 which can conflict with char $ac_func (); below. */
13637 #include <assert.h>
13638 /* Override any gcc2 internal prototype to avoid an error. */
13642 /* We use char because int might match the return type of a gcc2
13643 builtin and then its argument prototype would still apply. */
13650 /* The GNU C library defines this for functions which it implements
13651 to always fail with ENOSYS. Some functions are actually named
13652 something starting with __ and the normal name is an alias. */
13653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13663 rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13665 (eval $ac_link) 2>&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -s conftest$ac_exeext'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }; then
13675 eval "$as_ac_var=yes"
13677 echo "$as_me: failed program was:" >&5
13678 cat conftest.$ac_ext >&5
13679 eval "$as_ac_var=no"
13681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13685 if test `eval echo '${'$as_ac_var'}'` = yes; then
13686 cat >>confdefs.h <<_ACEOF
13687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13694 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
13695 echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
13696 if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 ac_check_lib_save_LIBS=$LIBS
13701 cat >conftest.$ac_ext <<_ACEOF
13702 #line $LINENO "configure"
13703 #include "confdefs.h"
13705 /* Override any gcc2 internal prototype to avoid an error. */
13709 /* We use char because int might match the return type of a gcc2
13710 builtin and then its argument prototype would still apply. */
13711 char set_auth_parameters ();
13715 set_auth_parameters ();
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13722 (eval $ac_link) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -s conftest$ac_exeext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_lib_sec_set_auth_parameters=yes
13734 echo "$as_me: failed program was:" >&5
13735 cat conftest.$ac_ext >&5
13736 ac_cv_lib_sec_set_auth_parameters=no
13738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13739 LIBS=$ac_check_lib_save_LIBS
13741 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
13742 echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
13743 if test $ac_cv_lib_sec_set_auth_parameters = yes; then
13744 cat >>confdefs.h <<_ACEOF
13745 #define HAVE_LIBSEC 1
13753 for ac_func in set_auth_parameters
13755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13756 echo "$as_me:$LINENO: checking for $ac_func" >&5
13757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13758 if eval "test \"\${$as_ac_var+set}\" = set"; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 cat >conftest.$ac_ext <<_ACEOF
13762 #line $LINENO "configure"
13763 #include "confdefs.h"
13764 /* System header to define __stub macros and hopefully few prototypes,
13765 which can conflict with char $ac_func (); below. */
13766 #include <assert.h>
13767 /* Override any gcc2 internal prototype to avoid an error. */
13771 /* We use char because int might match the return type of a gcc2
13772 builtin and then its argument prototype would still apply. */
13779 /* The GNU C library defines this for functions which it implements
13780 to always fail with ENOSYS. Some functions are actually named
13781 something starting with __ and the normal name is an alias. */
13782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13792 rm -f conftest.$ac_objext conftest$ac_exeext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13794 (eval $ac_link) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -s conftest$ac_exeext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 eval "$as_ac_var=yes"
13806 echo "$as_me: failed program was:" >&5
13807 cat conftest.$ac_ext >&5
13808 eval "$as_ac_var=no"
13810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13814 if test `eval echo '${'$as_ac_var'}'` = yes; then
13815 cat >>confdefs.h <<_ACEOF
13816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13826 # UnixWare 7.x has its getspnam in -lgen
13829 for ac_func in getspnam
13831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13832 echo "$as_me:$LINENO: checking for $ac_func" >&5
13833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13834 if eval "test \"\${$as_ac_var+set}\" = set"; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 cat >conftest.$ac_ext <<_ACEOF
13838 #line $LINENO "configure"
13839 #include "confdefs.h"
13840 /* System header to define __stub macros and hopefully few prototypes,
13841 which can conflict with char $ac_func (); below. */
13842 #include <assert.h>
13843 /* Override any gcc2 internal prototype to avoid an error. */
13847 /* We use char because int might match the return type of a gcc2
13848 builtin and then its argument prototype would still apply. */
13855 /* The GNU C library defines this for functions which it implements
13856 to always fail with ENOSYS. Some functions are actually named
13857 something starting with __ and the normal name is an alias. */
13858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870 (eval $ac_link) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -s conftest$ac_exeext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 eval "$as_ac_var=yes"
13882 echo "$as_me: failed program was:" >&5
13883 cat conftest.$ac_ext >&5
13884 eval "$as_ac_var=no"
13886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13890 if test `eval echo '${'$as_ac_var'}'` = yes; then
13891 cat >>confdefs.h <<_ACEOF
13892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13899 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
13900 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
13901 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 ac_check_lib_save_LIBS=$LIBS
13906 cat >conftest.$ac_ext <<_ACEOF
13907 #line $LINENO "configure"
13908 #include "confdefs.h"
13910 /* Override any gcc2 internal prototype to avoid an error. */
13914 /* We use char because int might match the return type of a gcc2
13915 builtin and then its argument prototype would still apply. */
13925 rm -f conftest.$ac_objext conftest$ac_exeext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13927 (eval $ac_link) 2>&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } &&
13931 { ac_try='test -s conftest$ac_exeext'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
13937 ac_cv_lib_gen_getspnam=yes
13939 echo "$as_me: failed program was:" >&5
13940 cat conftest.$ac_ext >&5
13941 ac_cv_lib_gen_getspnam=no
13943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13944 LIBS=$ac_check_lib_save_LIBS
13946 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
13947 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
13948 if test $ac_cv_lib_gen_getspnam = yes; then
13949 cat >>confdefs.h <<_ACEOF
13950 #define HAVE_LIBGEN 1
13958 for ac_func in getspnam
13960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13961 echo "$as_me:$LINENO: checking for $ac_func" >&5
13962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13963 if eval "test \"\${$as_ac_var+set}\" = set"; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13966 cat >conftest.$ac_ext <<_ACEOF
13967 #line $LINENO "configure"
13968 #include "confdefs.h"
13969 /* System header to define __stub macros and hopefully few prototypes,
13970 which can conflict with char $ac_func (); below. */
13971 #include <assert.h>
13972 /* Override any gcc2 internal prototype to avoid an error. */
13976 /* We use char because int might match the return type of a gcc2
13977 builtin and then its argument prototype would still apply. */
13984 /* The GNU C library defines this for functions which it implements
13985 to always fail with ENOSYS. Some functions are actually named
13986 something starting with __ and the normal name is an alias. */
13987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13997 rm -f conftest.$ac_objext conftest$ac_exeext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13999 (eval $ac_link) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 eval "$as_ac_var=yes"
14011 echo "$as_me: failed program was:" >&5
14012 cat conftest.$ac_ext >&5
14013 eval "$as_ac_var=no"
14015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14019 if test `eval echo '${'$as_ac_var'}'` = yes; then
14020 cat >>confdefs.h <<_ACEOF
14021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14033 for ac_func in getspnam
14035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14036 echo "$as_me:$LINENO: checking for $ac_func" >&5
14037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14038 if eval "test \"\${$as_ac_var+set}\" = set"; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 cat >conftest.$ac_ext <<_ACEOF
14042 #line $LINENO "configure"
14043 #include "confdefs.h"
14044 /* System header to define __stub macros and hopefully few prototypes,
14045 which can conflict with char $ac_func (); below. */
14046 #include <assert.h>
14047 /* Override any gcc2 internal prototype to avoid an error. */
14051 /* We use char because int might match the return type of a gcc2
14052 builtin and then its argument prototype would still apply. */
14059 /* The GNU C library defines this for functions which it implements
14060 to always fail with ENOSYS. Some functions are actually named
14061 something starting with __ and the normal name is an alias. */
14062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14074 (eval $ac_link) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
14078 { ac_try='test -s conftest$ac_exeext'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
14084 eval "$as_ac_var=yes"
14086 echo "$as_me: failed program was:" >&5
14087 cat conftest.$ac_ext >&5
14088 eval "$as_ac_var=no"
14090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14094 if test `eval echo '${'$as_ac_var'}'` = yes; then
14095 cat >>confdefs.h <<_ACEOF
14096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14103 echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
14104 echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
14105 if test "${ac_cv_lib_security_getspnam+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 ac_check_lib_save_LIBS=$LIBS
14109 LIBS="-lsecurity $LIBS"
14110 cat >conftest.$ac_ext <<_ACEOF
14111 #line $LINENO "configure"
14112 #include "confdefs.h"
14114 /* Override any gcc2 internal prototype to avoid an error. */
14118 /* We use char because int might match the return type of a gcc2
14119 builtin and then its argument prototype would still apply. */
14129 rm -f conftest.$ac_objext conftest$ac_exeext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14131 (eval $ac_link) 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } &&
14135 { ac_try='test -s conftest$ac_exeext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_cv_lib_security_getspnam=yes
14143 echo "$as_me: failed program was:" >&5
14144 cat conftest.$ac_ext >&5
14145 ac_cv_lib_security_getspnam=no
14147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14148 LIBS=$ac_check_lib_save_LIBS
14150 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
14151 echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
14152 if test $ac_cv_lib_security_getspnam = yes; then
14153 cat >>confdefs.h <<_ACEOF
14154 #define HAVE_LIBSECURITY 1
14157 LIBS="-lsecurity $LIBS"
14162 for ac_func in getspnam
14164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14165 echo "$as_me:$LINENO: checking for $ac_func" >&5
14166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14167 if eval "test \"\${$as_ac_var+set}\" = set"; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 cat >conftest.$ac_ext <<_ACEOF
14171 #line $LINENO "configure"
14172 #include "confdefs.h"
14173 /* System header to define __stub macros and hopefully few prototypes,
14174 which can conflict with char $ac_func (); below. */
14175 #include <assert.h>
14176 /* Override any gcc2 internal prototype to avoid an error. */
14180 /* We use char because int might match the return type of a gcc2
14181 builtin and then its argument prototype would still apply. */
14188 /* The GNU C library defines this for functions which it implements
14189 to always fail with ENOSYS. Some functions are actually named
14190 something starting with __ and the normal name is an alias. */
14191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14201 rm -f conftest.$ac_objext conftest$ac_exeext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14203 (eval $ac_link) 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try='test -s conftest$ac_exeext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 eval "$as_ac_var=yes"
14215 echo "$as_me: failed program was:" >&5
14216 cat conftest.$ac_ext >&5
14217 eval "$as_ac_var=no"
14219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14223 if test `eval echo '${'$as_ac_var'}'` = yes; then
14224 cat >>confdefs.h <<_ACEOF
14225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14236 for ac_func in getspnam
14238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14239 echo "$as_me:$LINENO: checking for $ac_func" >&5
14240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14241 if eval "test \"\${$as_ac_var+set}\" = set"; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 cat >conftest.$ac_ext <<_ACEOF
14245 #line $LINENO "configure"
14246 #include "confdefs.h"
14247 /* System header to define __stub macros and hopefully few prototypes,
14248 which can conflict with char $ac_func (); below. */
14249 #include <assert.h>
14250 /* Override any gcc2 internal prototype to avoid an error. */
14254 /* We use char because int might match the return type of a gcc2
14255 builtin and then its argument prototype would still apply. */
14262 /* The GNU C library defines this for functions which it implements
14263 to always fail with ENOSYS. Some functions are actually named
14264 something starting with __ and the normal name is an alias. */
14265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14275 rm -f conftest.$ac_objext conftest$ac_exeext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14277 (eval $ac_link) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
14281 { ac_try='test -s conftest$ac_exeext'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; }; then
14287 eval "$as_ac_var=yes"
14289 echo "$as_me: failed program was:" >&5
14290 cat conftest.$ac_ext >&5
14291 eval "$as_ac_var=no"
14293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14297 if test `eval echo '${'$as_ac_var'}'` = yes; then
14298 cat >>confdefs.h <<_ACEOF
14299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14306 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
14307 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
14308 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 ac_check_lib_save_LIBS=$LIBS
14313 cat >conftest.$ac_ext <<_ACEOF
14314 #line $LINENO "configure"
14315 #include "confdefs.h"
14317 /* Override any gcc2 internal prototype to avoid an error. */
14321 /* We use char because int might match the return type of a gcc2
14322 builtin and then its argument prototype would still apply. */
14332 rm -f conftest.$ac_objext conftest$ac_exeext
14333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14334 (eval $ac_link) 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } &&
14338 { ac_try='test -s conftest$ac_exeext'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14344 ac_cv_lib_sec_getspnam=yes
14346 echo "$as_me: failed program was:" >&5
14347 cat conftest.$ac_ext >&5
14348 ac_cv_lib_sec_getspnam=no
14350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14351 LIBS=$ac_check_lib_save_LIBS
14353 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
14354 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
14355 if test $ac_cv_lib_sec_getspnam = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define HAVE_LIBSEC 1
14365 for ac_func in getspnam
14367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14368 echo "$as_me:$LINENO: checking for $ac_func" >&5
14369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14370 if eval "test \"\${$as_ac_var+set}\" = set"; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14375 #include "confdefs.h"
14376 /* System header to define __stub macros and hopefully few prototypes,
14377 which can conflict with char $ac_func (); below. */
14378 #include <assert.h>
14379 /* Override any gcc2 internal prototype to avoid an error. */
14383 /* We use char because int might match the return type of a gcc2
14384 builtin and then its argument prototype would still apply. */
14391 /* The GNU C library defines this for functions which it implements
14392 to always fail with ENOSYS. Some functions are actually named
14393 something starting with __ and the normal name is an alias. */
14394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14406 (eval $ac_link) 2>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
14410 { ac_try='test -s conftest$ac_exeext'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 eval "$as_ac_var=yes"
14418 echo "$as_me: failed program was:" >&5
14419 cat conftest.$ac_ext >&5
14420 eval "$as_ac_var=no"
14422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14426 if test `eval echo '${'$as_ac_var'}'` = yes; then
14427 cat >>confdefs.h <<_ACEOF
14428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14440 for ac_func in bigcrypt
14442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14443 echo "$as_me:$LINENO: checking for $ac_func" >&5
14444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14445 if eval "test \"\${$as_ac_var+set}\" = set"; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14450 #include "confdefs.h"
14451 /* System header to define __stub macros and hopefully few prototypes,
14452 which can conflict with char $ac_func (); below. */
14453 #include <assert.h>
14454 /* Override any gcc2 internal prototype to avoid an error. */
14458 /* We use char because int might match the return type of a gcc2
14459 builtin and then its argument prototype would still apply. */
14466 /* The GNU C library defines this for functions which it implements
14467 to always fail with ENOSYS. Some functions are actually named
14468 something starting with __ and the normal name is an alias. */
14469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14479 rm -f conftest.$ac_objext conftest$ac_exeext
14480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14481 (eval $ac_link) 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -s conftest$ac_exeext'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14491 eval "$as_ac_var=yes"
14493 echo "$as_me: failed program was:" >&5
14494 cat conftest.$ac_ext >&5
14495 eval "$as_ac_var=no"
14497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14501 if test `eval echo '${'$as_ac_var'}'` = yes; then
14502 cat >>confdefs.h <<_ACEOF
14503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14510 echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
14511 echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
14512 if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 ac_check_lib_save_LIBS=$LIBS
14516 LIBS="-lsecurity $LIBS"
14517 cat >conftest.$ac_ext <<_ACEOF
14518 #line $LINENO "configure"
14519 #include "confdefs.h"
14521 /* Override any gcc2 internal prototype to avoid an error. */
14525 /* We use char because int might match the return type of a gcc2
14526 builtin and then its argument prototype would still apply. */
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14538 (eval $ac_link) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } &&
14542 { ac_try='test -s conftest$ac_exeext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_cv_lib_security_bigcrypt=yes
14550 echo "$as_me: failed program was:" >&5
14551 cat conftest.$ac_ext >&5
14552 ac_cv_lib_security_bigcrypt=no
14554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14555 LIBS=$ac_check_lib_save_LIBS
14557 echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
14558 echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
14559 if test $ac_cv_lib_security_bigcrypt = yes; then
14560 cat >>confdefs.h <<_ACEOF
14561 #define HAVE_LIBSECURITY 1
14564 LIBS="-lsecurity $LIBS"
14569 for ac_func in bigcrypt
14571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14572 echo "$as_me:$LINENO: checking for $ac_func" >&5
14573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14574 if eval "test \"\${$as_ac_var+set}\" = set"; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 cat >conftest.$ac_ext <<_ACEOF
14578 #line $LINENO "configure"
14579 #include "confdefs.h"
14580 /* System header to define __stub macros and hopefully few prototypes,
14581 which can conflict with char $ac_func (); below. */
14582 #include <assert.h>
14583 /* Override any gcc2 internal prototype to avoid an error. */
14587 /* We use char because int might match the return type of a gcc2
14588 builtin and then its argument prototype would still apply. */
14595 /* The GNU C library defines this for functions which it implements
14596 to always fail with ENOSYS. Some functions are actually named
14597 something starting with __ and the normal name is an alias. */
14598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14610 (eval $ac_link) 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
14614 { ac_try='test -s conftest$ac_exeext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 eval "$as_ac_var=yes"
14622 echo "$as_me: failed program was:" >&5
14623 cat conftest.$ac_ext >&5
14624 eval "$as_ac_var=no"
14626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14630 if test `eval echo '${'$as_ac_var'}'` = yes; then
14631 cat >>confdefs.h <<_ACEOF
14632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14643 for ac_func in bigcrypt
14645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14646 echo "$as_me:$LINENO: checking for $ac_func" >&5
14647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14648 if eval "test \"\${$as_ac_var+set}\" = set"; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 cat >conftest.$ac_ext <<_ACEOF
14652 #line $LINENO "configure"
14653 #include "confdefs.h"
14654 /* System header to define __stub macros and hopefully few prototypes,
14655 which can conflict with char $ac_func (); below. */
14656 #include <assert.h>
14657 /* Override any gcc2 internal prototype to avoid an error. */
14661 /* We use char because int might match the return type of a gcc2
14662 builtin and then its argument prototype would still apply. */
14669 /* The GNU C library defines this for functions which it implements
14670 to always fail with ENOSYS. Some functions are actually named
14671 something starting with __ and the normal name is an alias. */
14672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14682 rm -f conftest.$ac_objext conftest$ac_exeext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14684 (eval $ac_link) 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } &&
14688 { ac_try='test -s conftest$ac_exeext'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14694 eval "$as_ac_var=yes"
14696 echo "$as_me: failed program was:" >&5
14697 cat conftest.$ac_ext >&5
14698 eval "$as_ac_var=no"
14700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14704 if test `eval echo '${'$as_ac_var'}'` = yes; then
14705 cat >>confdefs.h <<_ACEOF
14706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14713 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
14714 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
14715 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 ac_check_lib_save_LIBS=$LIBS
14720 cat >conftest.$ac_ext <<_ACEOF
14721 #line $LINENO "configure"
14722 #include "confdefs.h"
14724 /* Override any gcc2 internal prototype to avoid an error. */
14728 /* We use char because int might match the return type of a gcc2
14729 builtin and then its argument prototype would still apply. */
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14741 (eval $ac_link) 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -s conftest$ac_exeext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_cv_lib_sec_bigcrypt=yes
14753 echo "$as_me: failed program was:" >&5
14754 cat conftest.$ac_ext >&5
14755 ac_cv_lib_sec_bigcrypt=no
14757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14758 LIBS=$ac_check_lib_save_LIBS
14760 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
14761 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
14762 if test $ac_cv_lib_sec_bigcrypt = yes; then
14763 cat >>confdefs.h <<_ACEOF
14764 #define HAVE_LIBSEC 1
14772 for ac_func in bigcrypt
14774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14775 echo "$as_me:$LINENO: checking for $ac_func" >&5
14776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14777 if eval "test \"\${$as_ac_var+set}\" = set"; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14780 cat >conftest.$ac_ext <<_ACEOF
14781 #line $LINENO "configure"
14782 #include "confdefs.h"
14783 /* System header to define __stub macros and hopefully few prototypes,
14784 which can conflict with char $ac_func (); below. */
14785 #include <assert.h>
14786 /* Override any gcc2 internal prototype to avoid an error. */
14790 /* We use char because int might match the return type of a gcc2
14791 builtin and then its argument prototype would still apply. */
14798 /* The GNU C library defines this for functions which it implements
14799 to always fail with ENOSYS. Some functions are actually named
14800 something starting with __ and the normal name is an alias. */
14801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14811 rm -f conftest.$ac_objext conftest$ac_exeext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14813 (eval $ac_link) 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try='test -s conftest$ac_exeext'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 eval "$as_ac_var=yes"
14825 echo "$as_me: failed program was:" >&5
14826 cat conftest.$ac_ext >&5
14827 eval "$as_ac_var=no"
14829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14833 if test `eval echo '${'$as_ac_var'}'` = yes; then
14834 cat >>confdefs.h <<_ACEOF
14835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14847 for ac_func in getprpwnam
14849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14850 echo "$as_me:$LINENO: checking for $ac_func" >&5
14851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14852 if eval "test \"\${$as_ac_var+set}\" = set"; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 cat >conftest.$ac_ext <<_ACEOF
14856 #line $LINENO "configure"
14857 #include "confdefs.h"
14858 /* System header to define __stub macros and hopefully few prototypes,
14859 which can conflict with char $ac_func (); below. */
14860 #include <assert.h>
14861 /* Override any gcc2 internal prototype to avoid an error. */
14865 /* We use char because int might match the return type of a gcc2
14866 builtin and then its argument prototype would still apply. */
14873 /* The GNU C library defines this for functions which it implements
14874 to always fail with ENOSYS. Some functions are actually named
14875 something starting with __ and the normal name is an alias. */
14876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888 (eval $ac_link) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -s conftest$ac_exeext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 eval "$as_ac_var=yes"
14900 echo "$as_me: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14902 eval "$as_ac_var=no"
14904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14908 if test `eval echo '${'$as_ac_var'}'` = yes; then
14909 cat >>confdefs.h <<_ACEOF
14910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14917 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
14918 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
14919 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 ac_check_lib_save_LIBS=$LIBS
14923 LIBS="-lsecurity $LIBS"
14924 cat >conftest.$ac_ext <<_ACEOF
14925 #line $LINENO "configure"
14926 #include "confdefs.h"
14928 /* Override any gcc2 internal prototype to avoid an error. */
14932 /* We use char because int might match the return type of a gcc2
14933 builtin and then its argument prototype would still apply. */
14934 char getprpwnam ();
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14945 (eval $ac_link) 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } &&
14949 { ac_try='test -s conftest$ac_exeext'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14955 ac_cv_lib_security_getprpwnam=yes
14957 echo "$as_me: failed program was:" >&5
14958 cat conftest.$ac_ext >&5
14959 ac_cv_lib_security_getprpwnam=no
14961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14962 LIBS=$ac_check_lib_save_LIBS
14964 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
14965 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
14966 if test $ac_cv_lib_security_getprpwnam = yes; then
14967 cat >>confdefs.h <<_ACEOF
14968 #define HAVE_LIBSECURITY 1
14971 LIBS="-lsecurity $LIBS"
14976 for ac_func in getprpwnam
14978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14979 echo "$as_me:$LINENO: checking for $ac_func" >&5
14980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14981 if eval "test \"\${$as_ac_var+set}\" = set"; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 cat >conftest.$ac_ext <<_ACEOF
14985 #line $LINENO "configure"
14986 #include "confdefs.h"
14987 /* System header to define __stub macros and hopefully few prototypes,
14988 which can conflict with char $ac_func (); below. */
14989 #include <assert.h>
14990 /* Override any gcc2 internal prototype to avoid an error. */
14994 /* We use char because int might match the return type of a gcc2
14995 builtin and then its argument prototype would still apply. */
15002 /* The GNU C library defines this for functions which it implements
15003 to always fail with ENOSYS. Some functions are actually named
15004 something starting with __ and the normal name is an alias. */
15005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15015 rm -f conftest.$ac_objext conftest$ac_exeext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15017 (eval $ac_link) 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } &&
15021 { ac_try='test -s conftest$ac_exeext'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
15027 eval "$as_ac_var=yes"
15029 echo "$as_me: failed program was:" >&5
15030 cat conftest.$ac_ext >&5
15031 eval "$as_ac_var=no"
15033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15037 if test `eval echo '${'$as_ac_var'}'` = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15050 for ac_func in getprpwnam
15052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15053 echo "$as_me:$LINENO: checking for $ac_func" >&5
15054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15055 if eval "test \"\${$as_ac_var+set}\" = set"; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 cat >conftest.$ac_ext <<_ACEOF
15059 #line $LINENO "configure"
15060 #include "confdefs.h"
15061 /* System header to define __stub macros and hopefully few prototypes,
15062 which can conflict with char $ac_func (); below. */
15063 #include <assert.h>
15064 /* Override any gcc2 internal prototype to avoid an error. */
15068 /* We use char because int might match the return type of a gcc2
15069 builtin and then its argument prototype would still apply. */
15076 /* The GNU C library defines this for functions which it implements
15077 to always fail with ENOSYS. Some functions are actually named
15078 something starting with __ and the normal name is an alias. */
15079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15091 (eval $ac_link) 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } &&
15095 { ac_try='test -s conftest$ac_exeext'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }; then
15101 eval "$as_ac_var=yes"
15103 echo "$as_me: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15105 eval "$as_ac_var=no"
15107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15111 if test `eval echo '${'$as_ac_var'}'` = yes; then
15112 cat >>confdefs.h <<_ACEOF
15113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15120 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
15121 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
15122 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 ac_check_lib_save_LIBS=$LIBS
15127 cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15129 #include "confdefs.h"
15131 /* Override any gcc2 internal prototype to avoid an error. */
15135 /* We use char because int might match the return type of a gcc2
15136 builtin and then its argument prototype would still apply. */
15137 char getprpwnam ();
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15148 (eval $ac_link) 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } &&
15152 { ac_try='test -s conftest$ac_exeext'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_cv_lib_sec_getprpwnam=yes
15160 echo "$as_me: failed program was:" >&5
15161 cat conftest.$ac_ext >&5
15162 ac_cv_lib_sec_getprpwnam=no
15164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15165 LIBS=$ac_check_lib_save_LIBS
15167 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
15168 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
15169 if test $ac_cv_lib_sec_getprpwnam = yes; then
15170 cat >>confdefs.h <<_ACEOF
15171 #define HAVE_LIBSEC 1
15179 for ac_func in getprpwnam
15181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15182 echo "$as_me:$LINENO: checking for $ac_func" >&5
15183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15184 if eval "test \"\${$as_ac_var+set}\" = set"; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 cat >conftest.$ac_ext <<_ACEOF
15188 #line $LINENO "configure"
15189 #include "confdefs.h"
15190 /* System header to define __stub macros and hopefully few prototypes,
15191 which can conflict with char $ac_func (); below. */
15192 #include <assert.h>
15193 /* Override any gcc2 internal prototype to avoid an error. */
15197 /* We use char because int might match the return type of a gcc2
15198 builtin and then its argument prototype would still apply. */
15205 /* The GNU C library defines this for functions which it implements
15206 to always fail with ENOSYS. Some functions are actually named
15207 something starting with __ and the normal name is an alias. */
15208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220 (eval $ac_link) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -s conftest$ac_exeext'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; }; then
15230 eval "$as_ac_var=yes"
15232 echo "$as_me: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15234 eval "$as_ac_var=no"
15236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15240 if test `eval echo '${'$as_ac_var'}'` = yes; then
15241 cat >>confdefs.h <<_ACEOF
15242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15252 # this bit needs to be modified for each OS that is suported by
15253 # smbwrapper. You need to specify how to created a shared library and
15254 # how to compile C code to produce PIC object files
15256 # these are the defaults, good for lots of systems
15258 LDSHFLAGS="-shared"
15265 # Assume non-shared by default and override below
15267 echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
15268 echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
15270 # and these are for particular systems
15273 cat >>confdefs.h <<\_ACEOF
15278 LDSHFLAGS="-shared"
15279 DYNEXP="-Wl,--export-dynamic"
15281 SONAMEFLAG="-Wl,-soname="
15282 cat >>confdefs.h <<\_ACEOF
15283 #define STAT_ST_BLOCKSIZE 512
15288 cat >>confdefs.h <<\_ACEOF
15295 if test "${GCC}" = "yes"; then
15297 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
15302 ## ${CFLAGS} added for building 64-bit shared
15303 ## libs using Sun's Compiler
15304 LDSHFLAGS="-G \${CFLAGS}"
15309 cat >>confdefs.h <<\_ACEOF
15310 #define STAT_ST_BLOCKSIZE 512
15315 cat >>confdefs.h <<\_ACEOF
15321 SONAMEFLAG="-Wl,-h,"
15322 PICFLAG="-KPIC" # Is this correct for SunOS
15324 *freebsd*) BLDSHARED="true"
15325 LDSHFLAGS="-shared"
15326 DYNEXP="-Wl,--export-dynamic"
15327 SONAMEFLAG="-Wl,-soname,"
15328 PICFLAG="-fPIC -DPIC"
15330 cat >>confdefs.h <<\_ACEOF
15331 #define STAT_ST_BLOCKSIZE 512
15335 *openbsd*) BLDSHARED="true"
15336 LDSHFLAGS="-shared"
15337 DYNEXP="-Wl,-Bdynamic"
15338 SONAMEFLAG="-Wl,-soname,"
15341 cat >>confdefs.h <<\_ACEOF
15342 #define STAT_ST_BLOCKSIZE 512
15347 cat >>confdefs.h <<\_ACEOF
15353 cat >>confdefs.h <<\_ACEOF
15359 ATTEMPT_WRAP32_BUILD=yes
15361 LDSHFLAGS="-set_version sgi1.0 -shared"
15362 SONAMEFLAG="-soname "
15364 if test "${GCC}" = "yes"; then
15370 cat >>confdefs.h <<\_ACEOF
15371 #define STAT_ST_BLOCKSIZE 512
15376 cat >>confdefs.h <<\_ACEOF
15381 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
15382 DYNEXP="-Wl,-brtl,-bexpall"
15384 if test "${GCC}" != "yes"; then
15385 ## for funky AIX compiler using strncpy()
15386 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
15390 cat >>confdefs.h <<\_ACEOF
15391 #define STAT_ST_BLOCKSIZE DEV_BSIZE
15396 cat >>confdefs.h <<\_ACEOF
15401 # Use special PIC flags for the native HP-UX compiler.
15402 if test $ac_cv_prog_cc_Ae = yes; then
15405 LDSHFLAGS="-B symbolic -b -z"
15411 cat >>confdefs.h <<\_ACEOF
15412 #define STAT_ST_BLOCKSIZE 8192
15417 cat >>confdefs.h <<\_ACEOF
15422 cat >>confdefs.h <<\_ACEOF
15427 LDSHFLAGS="-shared"
15428 SONAMEFLAG="-Wl,-soname,"
15432 cat >>confdefs.h <<\_ACEOF
15437 cat >>confdefs.h <<\_ACEOF
15442 LDSHFLAGS="-shared"
15443 SONAMEFLAG="-Wl,-soname,"
15447 cat >>confdefs.h <<\_ACEOF
15451 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
15452 set dummy groff; ac_word=$2
15453 echo "$as_me:$LINENO: checking for $ac_word" >&5
15454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15455 if test "${ac_cv_prog_ROFF+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 if test -n "$ROFF"; then
15459 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
15461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462 for as_dir in $PATH
15465 test -z "$as_dir" && as_dir=.
15466 for ac_exec_ext in '' $ac_executable_extensions; do
15467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15468 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
15469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15477 ROFF=$ac_cv_prog_ROFF
15478 if test -n "$ROFF"; then
15479 echo "$as_me:$LINENO: result: $ROFF" >&5
15480 echo "${ECHO_T}$ROFF" >&6
15482 echo "$as_me:$LINENO: result: no" >&5
15483 echo "${ECHO_T}no" >&6
15487 cat >>confdefs.h <<\_ACEOF
15492 *-univel-*) if test "$GCC" != yes ; then
15494 cat >>confdefs.h <<\_ACEOF
15495 #define HAVE_MEMSET 1
15503 cat >>confdefs.h <<\_ACEOF
15504 #define RELIANTUNIX 1
15511 cat >>confdefs.h <<\_ACEOF
15515 if test "$GCC" != yes ; then
15517 cat >>confdefs.h <<\_ACEOF
15518 #define HAVE_MEMSET 1
15526 echo "$as_me:$LINENO: result: $BLDSHARED" >&5
15527 echo "${ECHO_T}$BLDSHARED" >&6
15528 echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
15529 echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
15530 echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
15531 echo "${ECHO_T}$LDSHFLAGS" >&6
15532 echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
15533 echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
15534 echo "$as_me:$LINENO: result: $PICFLAGS" >&5
15535 echo "${ECHO_T}$PICFLAGS" >&6
15537 #######################################################
15538 # test whether building a shared library actually works
15539 if test $BLDSHARED = true; then
15540 echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
15541 echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
15542 if test "${ac_cv_shlib_works+set}" = set; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 ac_cv_shlib_works=no
15547 # try building a trivial shared library
15548 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
15549 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
15550 ac_cv_shlib_works=yes
15551 rm -f shlib.so shlib.po
15554 echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
15555 echo "${ECHO_T}$ac_cv_shlib_works" >&6
15556 if test $ac_cv_shlib_works = no; then
15562 # this updates our target list if we can build shared libs
15563 if test $BLDSHARED = true; then
15564 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
15566 LIBSMBCLIENT_SHARED=
15571 echo "$as_me:$LINENO: checking for long long" >&5
15572 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15573 if test "${samba_cv_have_longlong+set}" = set; then
15574 echo $ECHO_N "(cached) $ECHO_C" >&6
15577 if test "$cross_compiling" = yes; then
15578 samba_cv_have_longlong=cross
15580 cat >conftest.$ac_ext <<_ACEOF
15581 #line $LINENO "configure"
15582 #include "confdefs.h"
15584 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
15586 rm -f conftest$ac_exeext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 samba_cv_have_longlong=yes
15599 echo "$as_me: program exited with status $ac_status" >&5
15600 echo "$as_me: failed program was:" >&5
15601 cat conftest.$ac_ext >&5
15602 ( exit $ac_status )
15603 samba_cv_have_longlong=no
15605 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15608 echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
15609 echo "${ECHO_T}$samba_cv_have_longlong" >&6
15610 if test x"$samba_cv_have_longlong" = x"yes"; then
15612 cat >>confdefs.h <<\_ACEOF
15613 #define HAVE_LONGLONG 1
15619 # Check if the compiler supports the LL prefix on long long integers.
15622 echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
15623 echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
15624 if test "${samba_cv_compiler_supports_ll+set}" = set; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15628 cat >conftest.$ac_ext <<_ACEOF
15629 #line $LINENO "configure"
15630 #include "confdefs.h"
15635 long long i = 0x8000000000LL
15640 rm -f conftest.$ac_objext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642 (eval $ac_compile) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } &&
15646 { ac_try='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 samba_cv_compiler_supports_ll=yes
15654 echo "$as_me: failed program was:" >&5
15655 cat conftest.$ac_ext >&5
15656 samba_cv_compiler_supports_ll=no
15658 rm -f conftest.$ac_objext conftest.$ac_ext
15660 echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
15661 echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
15662 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
15664 cat >>confdefs.h <<\_ACEOF
15665 #define COMPILER_SUPPORTS_LL 1
15671 echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
15672 echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
15673 if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 if test "$cross_compiling" = yes; then
15678 samba_cv_SIZEOF_OFF_T=cross
15680 cat >conftest.$ac_ext <<_ACEOF
15681 #line $LINENO "configure"
15682 #include "confdefs.h"
15684 #include <sys/stat.h>
15685 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
15687 rm -f conftest$ac_exeext
15688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15689 (eval $ac_link) 2>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 samba_cv_SIZEOF_OFF_T=yes
15700 echo "$as_me: program exited with status $ac_status" >&5
15701 echo "$as_me: failed program was:" >&5
15702 cat conftest.$ac_ext >&5
15703 ( exit $ac_status )
15704 samba_cv_SIZEOF_OFF_T=no
15706 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15709 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
15710 echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
15711 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
15713 cat >>confdefs.h <<\_ACEOF
15714 #define SIZEOF_OFF_T 8
15719 echo "$as_me:$LINENO: checking for off64_t" >&5
15720 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
15721 if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 if test "$cross_compiling" = yes; then
15726 samba_cv_HAVE_OFF64_T=cross
15728 cat >conftest.$ac_ext <<_ACEOF
15729 #line $LINENO "configure"
15730 #include "confdefs.h"
15732 #if defined(HAVE_UNISTD_H)
15733 #include <unistd.h>
15736 #include <sys/stat.h>
15737 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
15739 rm -f conftest$ac_exeext
15740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15741 (eval $ac_link) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 samba_cv_HAVE_OFF64_T=yes
15752 echo "$as_me: program exited with status $ac_status" >&5
15753 echo "$as_me: failed program was:" >&5
15754 cat conftest.$ac_ext >&5
15755 ( exit $ac_status )
15756 samba_cv_HAVE_OFF64_T=no
15758 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15761 echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
15762 echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
15763 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
15765 cat >>confdefs.h <<\_ACEOF
15766 #define HAVE_OFF64_T 1
15771 echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
15772 echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
15773 if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 if test "$cross_compiling" = yes; then
15778 samba_cv_SIZEOF_INO_T=cross
15780 cat >conftest.$ac_ext <<_ACEOF
15781 #line $LINENO "configure"
15782 #include "confdefs.h"
15784 #include <sys/stat.h>
15785 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
15787 rm -f conftest$ac_exeext
15788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15789 (eval $ac_link) 2>&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 samba_cv_SIZEOF_INO_T=yes
15800 echo "$as_me: program exited with status $ac_status" >&5
15801 echo "$as_me: failed program was:" >&5
15802 cat conftest.$ac_ext >&5
15803 ( exit $ac_status )
15804 samba_cv_SIZEOF_INO_T=no
15806 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15809 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
15810 echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
15811 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
15813 cat >>confdefs.h <<\_ACEOF
15814 #define SIZEOF_INO_T 8
15819 echo "$as_me:$LINENO: checking for ino64_t" >&5
15820 echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
15821 if test "${samba_cv_HAVE_INO64_T+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 if test "$cross_compiling" = yes; then
15826 samba_cv_HAVE_INO64_T=cross
15828 cat >conftest.$ac_ext <<_ACEOF
15829 #line $LINENO "configure"
15830 #include "confdefs.h"
15832 #if defined(HAVE_UNISTD_H)
15833 #include <unistd.h>
15836 #include <sys/stat.h>
15837 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
15839 rm -f conftest$ac_exeext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15841 (eval $ac_link) 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; }; then
15850 samba_cv_HAVE_INO64_T=yes
15852 echo "$as_me: program exited with status $ac_status" >&5
15853 echo "$as_me: failed program was:" >&5
15854 cat conftest.$ac_ext >&5
15855 ( exit $ac_status )
15856 samba_cv_HAVE_INO64_T=no
15858 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15861 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
15862 echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
15863 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
15865 cat >>confdefs.h <<\_ACEOF
15866 #define HAVE_INO64_T 1
15871 echo "$as_me:$LINENO: checking for dev64_t" >&5
15872 echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
15873 if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 if test "$cross_compiling" = yes; then
15878 samba_cv_HAVE_DEV64_T=cross
15880 cat >conftest.$ac_ext <<_ACEOF
15881 #line $LINENO "configure"
15882 #include "confdefs.h"
15884 #if defined(HAVE_UNISTD_H)
15885 #include <unistd.h>
15888 #include <sys/stat.h>
15889 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
15891 rm -f conftest$ac_exeext
15892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15893 (eval $ac_link) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15902 samba_cv_HAVE_DEV64_T=yes
15904 echo "$as_me: program exited with status $ac_status" >&5
15905 echo "$as_me: failed program was:" >&5
15906 cat conftest.$ac_ext >&5
15907 ( exit $ac_status )
15908 samba_cv_HAVE_DEV64_T=no
15910 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15913 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
15914 echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
15915 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
15917 cat >>confdefs.h <<\_ACEOF
15918 #define HAVE_DEV64_T 1
15923 echo "$as_me:$LINENO: checking for struct dirent64" >&5
15924 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
15925 if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15929 cat >conftest.$ac_ext <<_ACEOF
15930 #line $LINENO "configure"
15931 #include "confdefs.h"
15933 #if defined(HAVE_UNISTD_H)
15934 #include <unistd.h>
15936 #include <sys/types.h>
15937 #include <dirent.h>
15941 struct dirent64 de;
15946 rm -f conftest.$ac_objext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15948 (eval $ac_compile) 2>&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } &&
15952 { ac_try='test -s conftest.$ac_objext'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 samba_cv_HAVE_STRUCT_DIRENT64=yes
15960 echo "$as_me: failed program was:" >&5
15961 cat conftest.$ac_ext >&5
15962 samba_cv_HAVE_STRUCT_DIRENT64=no
15964 rm -f conftest.$ac_objext conftest.$ac_ext
15966 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
15967 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
15968 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_STRUCT_DIRENT64 1
15976 echo "$as_me:$LINENO: checking for major macro" >&5
15977 echo $ECHO_N "checking for major macro... $ECHO_C" >&6
15978 if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
15979 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 if test "$cross_compiling" = yes; then
15983 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
15985 cat >conftest.$ac_ext <<_ACEOF
15986 #line $LINENO "configure"
15987 #include "confdefs.h"
15989 #if defined(HAVE_UNISTD_H)
15990 #include <unistd.h>
15992 #include <sys/types.h>
15993 main() { dev_t dev; int i = major(dev); return 0; }
15995 rm -f conftest$ac_exeext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15997 (eval $ac_link) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16006 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
16008 echo "$as_me: program exited with status $ac_status" >&5
16009 echo "$as_me: failed program was:" >&5
16010 cat conftest.$ac_ext >&5
16011 ( exit $ac_status )
16012 samba_cv_HAVE_DEVICE_MAJOR_FN=no
16014 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16017 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
16018 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
16019 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
16021 cat >>confdefs.h <<\_ACEOF
16022 #define HAVE_DEVICE_MAJOR_FN 1
16027 echo "$as_me:$LINENO: checking for minor macro" >&5
16028 echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
16029 if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 if test "$cross_compiling" = yes; then
16034 samba_cv_HAVE_DEVICE_MINOR_FN=cross
16036 cat >conftest.$ac_ext <<_ACEOF
16037 #line $LINENO "configure"
16038 #include "confdefs.h"
16040 #if defined(HAVE_UNISTD_H)
16041 #include <unistd.h>
16043 #include <sys/types.h>
16044 main() { dev_t dev; int i = minor(dev); return 0; }
16046 rm -f conftest$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048 (eval $ac_link) 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16057 samba_cv_HAVE_DEVICE_MINOR_FN=yes
16059 echo "$as_me: program exited with status $ac_status" >&5
16060 echo "$as_me: failed program was:" >&5
16061 cat conftest.$ac_ext >&5
16062 ( exit $ac_status )
16063 samba_cv_HAVE_DEVICE_MINOR_FN=no
16065 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16068 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
16069 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
16070 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
16072 cat >>confdefs.h <<\_ACEOF
16073 #define HAVE_DEVICE_MINOR_FN 1
16078 echo "$as_me:$LINENO: checking for unsigned char" >&5
16079 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
16080 if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
16081 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 if test "$cross_compiling" = yes; then
16085 samba_cv_HAVE_UNSIGNED_CHAR=cross
16087 cat >conftest.$ac_ext <<_ACEOF
16088 #line $LINENO "configure"
16089 #include "confdefs.h"
16091 main() { char c; c=250; exit((c > 0)?0:1); }
16093 rm -f conftest$ac_exeext
16094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16095 (eval $ac_link) 2>&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16104 samba_cv_HAVE_UNSIGNED_CHAR=yes
16106 echo "$as_me: program exited with status $ac_status" >&5
16107 echo "$as_me: failed program was:" >&5
16108 cat conftest.$ac_ext >&5
16109 ( exit $ac_status )
16110 samba_cv_HAVE_UNSIGNED_CHAR=no
16112 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16115 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
16116 echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
16117 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
16119 cat >>confdefs.h <<\_ACEOF
16120 #define HAVE_UNSIGNED_CHAR 1
16125 echo "$as_me:$LINENO: checking for sin_len in sock" >&5
16126 echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
16127 if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 cat >conftest.$ac_ext <<_ACEOF
16132 #line $LINENO "configure"
16133 #include "confdefs.h"
16134 #include <sys/types.h>
16135 #include <sys/socket.h>
16136 #include <netinet/in.h>
16140 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -s conftest.$ac_objext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 samba_cv_HAVE_SOCK_SIN_LEN=yes
16159 echo "$as_me: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16161 samba_cv_HAVE_SOCK_SIN_LEN=no
16163 rm -f conftest.$ac_objext conftest.$ac_ext
16165 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
16166 echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
16167 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
16169 cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_SOCK_SIN_LEN 1
16175 echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
16176 echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
16177 if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 cat >conftest.$ac_ext <<_ACEOF
16182 #line $LINENO "configure"
16183 #include "confdefs.h"
16184 #include <sys/types.h>
16185 #include <dirent.h>
16186 void seekdir(DIR *d, long loc) { return; }
16195 rm -f conftest.$ac_objext
16196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16197 (eval $ac_compile) 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -s conftest.$ac_objext'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 samba_cv_SEEKDIR_RETURNS_VOID=yes
16209 echo "$as_me: failed program was:" >&5
16210 cat conftest.$ac_ext >&5
16211 samba_cv_SEEKDIR_RETURNS_VOID=no
16213 rm -f conftest.$ac_objext conftest.$ac_ext
16215 echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
16216 echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
16217 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
16219 cat >>confdefs.h <<\_ACEOF
16220 #define SEEKDIR_RETURNS_VOID 1
16225 echo "$as_me:$LINENO: checking for __FILE__ macro" >&5
16226 echo $ECHO_N "checking for __FILE__ macro... $ECHO_C" >&6
16227 if test "${samba_cv_HAVE_FILE_MACRO+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16231 cat >conftest.$ac_ext <<_ACEOF
16232 #line $LINENO "configure"
16233 #include "confdefs.h"
16238 printf("%s\n", __FILE__);
16243 rm -f conftest.$ac_objext
16244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16245 (eval $ac_compile) 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } &&
16249 { ac_try='test -s conftest.$ac_objext'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 samba_cv_HAVE_FILE_MACRO=yes
16257 echo "$as_me: failed program was:" >&5
16258 cat conftest.$ac_ext >&5
16259 samba_cv_HAVE_FILE_MACRO=no
16261 rm -f conftest.$ac_objext conftest.$ac_ext
16263 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FILE_MACRO" >&5
16264 echo "${ECHO_T}$samba_cv_HAVE_FILE_MACRO" >&6
16265 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
16267 cat >>confdefs.h <<\_ACEOF
16268 #define HAVE_FILE_MACRO 1
16273 echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
16274 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
16275 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 cat >conftest.$ac_ext <<_ACEOF
16280 #line $LINENO "configure"
16281 #include "confdefs.h"
16286 printf("%s\n", __FUNCTION__);
16291 rm -f conftest.$ac_objext
16292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16293 (eval $ac_compile) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
16297 { ac_try='test -s conftest.$ac_objext'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; }; then
16303 samba_cv_HAVE_FUNCTION_MACRO=yes
16305 echo "$as_me: failed program was:" >&5
16306 cat conftest.$ac_ext >&5
16307 samba_cv_HAVE_FUNCTION_MACRO=no
16309 rm -f conftest.$ac_objext conftest.$ac_ext
16311 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
16312 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
16313 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
16315 cat >>confdefs.h <<\_ACEOF
16316 #define HAVE_FUNCTION_MACRO 1
16321 echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
16322 echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
16323 if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16327 if test "$cross_compiling" = yes; then
16328 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
16330 cat >conftest.$ac_ext <<_ACEOF
16331 #line $LINENO "configure"
16332 #include "confdefs.h"
16334 #include <sys/time.h>
16335 #include <unistd.h>
16336 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
16338 rm -f conftest$ac_exeext
16339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16340 (eval $ac_link) 2>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
16351 echo "$as_me: program exited with status $ac_status" >&5
16352 echo "$as_me: failed program was:" >&5
16353 cat conftest.$ac_ext >&5
16354 ( exit $ac_status )
16355 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
16357 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16360 echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
16361 echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
16362 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
16364 cat >>confdefs.h <<\_ACEOF
16365 #define HAVE_GETTIMEOFDAY_TZ 1
16370 echo "$as_me:$LINENO: checking for __va_copy" >&5
16371 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
16372 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 cat >conftest.$ac_ext <<_ACEOF
16377 #line $LINENO "configure"
16378 #include "confdefs.h"
16379 #include <stdarg.h>
16384 __va_copy(ap1,ap2);
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16391 (eval $ac_link) 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } &&
16395 { ac_try='test -s conftest$ac_exeext'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16401 samba_cv_HAVE_VA_COPY=yes
16403 echo "$as_me: failed program was:" >&5
16404 cat conftest.$ac_ext >&5
16405 samba_cv_HAVE_VA_COPY=no
16407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16409 echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
16410 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
16411 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
16413 cat >>confdefs.h <<\_ACEOF
16414 #define HAVE_VA_COPY 1
16419 echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
16420 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
16421 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 if test "$cross_compiling" = yes; then
16426 samba_cv_HAVE_C99_VSNPRINTF=cross
16428 cat >conftest.$ac_ext <<_ACEOF
16429 #line $LINENO "configure"
16430 #include "confdefs.h"
16432 #include <sys/types.h>
16433 #include <stdarg.h>
16434 void foo(const char *format, ...) {
16439 va_start(ap, format);
16440 len = vsnprintf(buf, 0, format, ap);
16442 if (len != 5) exit(1);
16444 va_start(ap, format);
16445 len = vsnprintf(0, 0, format, ap);
16447 if (len != 5) exit(1);
16449 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
16453 main() { foo("hello"); }
16456 rm -f conftest$ac_exeext
16457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16458 (eval $ac_link) 2>&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; }; then
16467 samba_cv_HAVE_C99_VSNPRINTF=yes
16469 echo "$as_me: program exited with status $ac_status" >&5
16470 echo "$as_me: failed program was:" >&5
16471 cat conftest.$ac_ext >&5
16472 ( exit $ac_status )
16473 samba_cv_HAVE_C99_VSNPRINTF=no
16475 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16478 echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
16479 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
16480 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
16482 cat >>confdefs.h <<\_ACEOF
16483 #define HAVE_C99_VSNPRINTF 1
16488 echo "$as_me:$LINENO: checking for broken readdir" >&5
16489 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
16490 if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16494 if test "$cross_compiling" = yes; then
16495 samba_cv_HAVE_BROKEN_READDIR=cross
16497 cat >conftest.$ac_ext <<_ACEOF
16498 #line $LINENO "configure"
16499 #include "confdefs.h"
16500 #include <sys/types.h>
16501 #include <dirent.h>
16502 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
16503 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
16504 di->d_name[0] == 0) exit(0); exit(1);}
16506 rm -f conftest$ac_exeext
16507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16508 (eval $ac_link) 2>&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16517 samba_cv_HAVE_BROKEN_READDIR=yes
16519 echo "$as_me: program exited with status $ac_status" >&5
16520 echo "$as_me: failed program was:" >&5
16521 cat conftest.$ac_ext >&5
16522 ( exit $ac_status )
16523 samba_cv_HAVE_BROKEN_READDIR=no
16525 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16528 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
16529 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
16530 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
16532 cat >>confdefs.h <<\_ACEOF
16533 #define HAVE_BROKEN_READDIR 1
16538 echo "$as_me:$LINENO: checking for utimbuf" >&5
16539 echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
16540 if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 cat >conftest.$ac_ext <<_ACEOF
16545 #line $LINENO "configure"
16546 #include "confdefs.h"
16547 #include <sys/types.h>
16552 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
16557 rm -f conftest.$ac_objext
16558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16559 (eval $ac_compile) 2>&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
16563 { ac_try='test -s conftest.$ac_objext'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 samba_cv_HAVE_UTIMBUF=yes
16571 echo "$as_me: failed program was:" >&5
16572 cat conftest.$ac_ext >&5
16573 samba_cv_HAVE_UTIMBUF=no
16575 rm -f conftest.$ac_objext conftest.$ac_ext
16577 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
16578 echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
16579 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
16581 cat >>confdefs.h <<\_ACEOF
16582 #define HAVE_UTIMBUF 1
16593 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
16595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16596 echo "$as_me:$LINENO: checking for $ac_func" >&5
16597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16598 if eval "test \"\${$as_ac_var+set}\" = set"; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16601 cat >conftest.$ac_ext <<_ACEOF
16602 #line $LINENO "configure"
16603 #include "confdefs.h"
16604 /* System header to define __stub macros and hopefully few prototypes,
16605 which can conflict with char $ac_func (); below. */
16606 #include <assert.h>
16607 /* Override any gcc2 internal prototype to avoid an error. */
16611 /* We use char because int might match the return type of a gcc2
16612 builtin and then its argument prototype would still apply. */
16619 /* The GNU C library defines this for functions which it implements
16620 to always fail with ENOSYS. Some functions are actually named
16621 something starting with __ and the normal name is an alias. */
16622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16634 (eval $ac_link) 2>&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -s conftest$ac_exeext'
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 eval "$as_ac_var=yes"
16646 echo "$as_me: failed program was:" >&5
16647 cat conftest.$ac_ext >&5
16648 eval "$as_ac_var=no"
16650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16654 if test `eval echo '${'$as_ac_var'}'` = yes; then
16655 cat >>confdefs.h <<_ACEOF
16656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16663 echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
16664 echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
16665 if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16669 cat >conftest.$ac_ext <<_ACEOF
16670 #line $LINENO "configure"
16671 #include "confdefs.h"
16672 #include <sys/types.h>
16677 struct utmp ut; ut.ut_name[0] = 'a';
16682 rm -f conftest.$ac_objext
16683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16684 (eval $ac_compile) 2>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
16688 { ac_try='test -s conftest.$ac_objext'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 samba_cv_HAVE_UT_UT_NAME=yes
16696 echo "$as_me: failed program was:" >&5
16697 cat conftest.$ac_ext >&5
16698 samba_cv_HAVE_UT_UT_NAME=no
16700 rm -f conftest.$ac_objext conftest.$ac_ext
16702 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
16703 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
16704 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
16706 cat >>confdefs.h <<\_ACEOF
16707 #define HAVE_UT_UT_NAME 1
16712 echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
16713 echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
16714 if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16718 cat >conftest.$ac_ext <<_ACEOF
16719 #line $LINENO "configure"
16720 #include "confdefs.h"
16721 #include <sys/types.h>
16726 struct utmp ut; ut.ut_user[0] = 'a';
16731 rm -f conftest.$ac_objext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16733 (eval $ac_compile) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 samba_cv_HAVE_UT_UT_USER=yes
16745 echo "$as_me: failed program was:" >&5
16746 cat conftest.$ac_ext >&5
16747 samba_cv_HAVE_UT_UT_USER=no
16749 rm -f conftest.$ac_objext conftest.$ac_ext
16751 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
16752 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
16753 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
16755 cat >>confdefs.h <<\_ACEOF
16756 #define HAVE_UT_UT_USER 1
16761 echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
16762 echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
16763 if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 cat >conftest.$ac_ext <<_ACEOF
16768 #line $LINENO "configure"
16769 #include "confdefs.h"
16770 #include <sys/types.h>
16775 struct utmp ut; ut.ut_id[0] = 'a';
16780 rm -f conftest.$ac_objext
16781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16782 (eval $ac_compile) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } &&
16786 { ac_try='test -s conftest.$ac_objext'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 samba_cv_HAVE_UT_UT_ID=yes
16794 echo "$as_me: failed program was:" >&5
16795 cat conftest.$ac_ext >&5
16796 samba_cv_HAVE_UT_UT_ID=no
16798 rm -f conftest.$ac_objext conftest.$ac_ext
16800 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
16801 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
16802 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
16804 cat >>confdefs.h <<\_ACEOF
16805 #define HAVE_UT_UT_ID 1
16810 echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
16811 echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
16812 if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 cat >conftest.$ac_ext <<_ACEOF
16817 #line $LINENO "configure"
16818 #include "confdefs.h"
16819 #include <sys/types.h>
16824 struct utmp ut; ut.ut_host[0] = 'a';
16829 rm -f conftest.$ac_objext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16831 (eval $ac_compile) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -s conftest.$ac_objext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 samba_cv_HAVE_UT_UT_HOST=yes
16843 echo "$as_me: failed program was:" >&5
16844 cat conftest.$ac_ext >&5
16845 samba_cv_HAVE_UT_UT_HOST=no
16847 rm -f conftest.$ac_objext conftest.$ac_ext
16849 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
16850 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
16851 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
16853 cat >>confdefs.h <<\_ACEOF
16854 #define HAVE_UT_UT_HOST 1
16859 echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
16860 echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
16861 if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 cat >conftest.$ac_ext <<_ACEOF
16866 #line $LINENO "configure"
16867 #include "confdefs.h"
16868 #include <sys/types.h>
16873 struct utmp ut; time_t t; ut.ut_time = t;
16878 rm -f conftest.$ac_objext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16880 (eval $ac_compile) 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } &&
16884 { ac_try='test -s conftest.$ac_objext'
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 samba_cv_HAVE_UT_UT_TIME=yes
16892 echo "$as_me: failed program was:" >&5
16893 cat conftest.$ac_ext >&5
16894 samba_cv_HAVE_UT_UT_TIME=no
16896 rm -f conftest.$ac_objext conftest.$ac_ext
16898 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
16899 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
16900 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
16902 cat >>confdefs.h <<\_ACEOF
16903 #define HAVE_UT_UT_TIME 1
16908 echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
16909 echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
16910 if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 cat >conftest.$ac_ext <<_ACEOF
16915 #line $LINENO "configure"
16916 #include "confdefs.h"
16917 #include <sys/types.h>
16922 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
16927 rm -f conftest.$ac_objext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16929 (eval $ac_compile) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -s conftest.$ac_objext'
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 samba_cv_HAVE_UT_UT_TV=yes
16941 echo "$as_me: failed program was:" >&5
16942 cat conftest.$ac_ext >&5
16943 samba_cv_HAVE_UT_UT_TV=no
16945 rm -f conftest.$ac_objext conftest.$ac_ext
16947 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
16948 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
16949 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
16951 cat >>confdefs.h <<\_ACEOF
16952 #define HAVE_UT_UT_TV 1
16957 echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
16958 echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
16959 if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
16960 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 cat >conftest.$ac_ext <<_ACEOF
16964 #line $LINENO "configure"
16965 #include "confdefs.h"
16966 #include <sys/types.h>
16971 struct utmp ut; ut.ut_type = 0;
16976 rm -f conftest.$ac_objext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16978 (eval $ac_compile) 2>&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -s conftest.$ac_objext'
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; }; then
16988 samba_cv_HAVE_UT_UT_TYPE=yes
16990 echo "$as_me: failed program was:" >&5
16991 cat conftest.$ac_ext >&5
16992 samba_cv_HAVE_UT_UT_TYPE=no
16994 rm -f conftest.$ac_objext conftest.$ac_ext
16996 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
16997 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
16998 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
17000 cat >>confdefs.h <<\_ACEOF
17001 #define HAVE_UT_UT_TYPE 1
17006 echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
17007 echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
17008 if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
17009 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 cat >conftest.$ac_ext <<_ACEOF
17013 #line $LINENO "configure"
17014 #include "confdefs.h"
17015 #include <sys/types.h>
17020 struct utmp ut; ut.ut_pid = 0;
17025 rm -f conftest.$ac_objext
17026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17027 (eval $ac_compile) 2>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } &&
17031 { ac_try='test -s conftest.$ac_objext'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 samba_cv_HAVE_UT_UT_PID=yes
17039 echo "$as_me: failed program was:" >&5
17040 cat conftest.$ac_ext >&5
17041 samba_cv_HAVE_UT_UT_PID=no
17043 rm -f conftest.$ac_objext conftest.$ac_ext
17045 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
17046 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
17047 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
17049 cat >>confdefs.h <<\_ACEOF
17050 #define HAVE_UT_UT_PID 1
17055 echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
17056 echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
17057 if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 cat >conftest.$ac_ext <<_ACEOF
17062 #line $LINENO "configure"
17063 #include "confdefs.h"
17064 #include <sys/types.h>
17069 struct utmp ut; ut.ut_exit.e_exit = 0;
17074 rm -f conftest.$ac_objext
17075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17076 (eval $ac_compile) 2>&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try='test -s conftest.$ac_objext'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; }; then
17086 samba_cv_HAVE_UT_UT_EXIT=yes
17088 echo "$as_me: failed program was:" >&5
17089 cat conftest.$ac_ext >&5
17090 samba_cv_HAVE_UT_UT_EXIT=no
17092 rm -f conftest.$ac_objext conftest.$ac_ext
17094 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
17095 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
17096 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
17098 cat >>confdefs.h <<\_ACEOF
17099 #define HAVE_UT_UT_EXIT 1
17104 echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
17105 echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
17106 if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 cat >conftest.$ac_ext <<_ACEOF
17111 #line $LINENO "configure"
17112 #include "confdefs.h"
17113 #include <sys/types.h>
17118 struct utmp ut; ut.ut_addr = 0;
17123 rm -f conftest.$ac_objext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17125 (eval $ac_compile) 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
17129 { ac_try='test -s conftest.$ac_objext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 samba_cv_HAVE_UT_UT_ADDR=yes
17137 echo "$as_me: failed program was:" >&5
17138 cat conftest.$ac_ext >&5
17139 samba_cv_HAVE_UT_UT_ADDR=no
17141 rm -f conftest.$ac_objext conftest.$ac_ext
17143 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
17144 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
17145 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
17147 cat >>confdefs.h <<\_ACEOF
17148 #define HAVE_UT_UT_ADDR 1
17153 if test x$ac_cv_func_pututline = xyes ; then
17154 echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
17155 echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
17156 if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 cat >conftest.$ac_ext <<_ACEOF
17161 #line $LINENO "configure"
17162 #include "confdefs.h"
17163 #include <sys/types.h>
17168 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
17173 rm -f conftest.$ac_objext
17174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17175 (eval $ac_compile) 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -s conftest.$ac_objext'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
17187 echo "$as_me: failed program was:" >&5
17188 cat conftest.$ac_ext >&5
17189 samba_cv_PUTUTLINE_RETURNS_UTMP=no
17191 rm -f conftest.$ac_objext conftest.$ac_ext
17193 echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
17194 echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
17195 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
17197 cat >>confdefs.h <<\_ACEOF
17198 #define PUTUTLINE_RETURNS_UTMP 1
17204 echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
17205 echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
17206 if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 cat >conftest.$ac_ext <<_ACEOF
17211 #line $LINENO "configure"
17212 #include "confdefs.h"
17213 #include <sys/types.h>
17218 struct utmpx ux; ux.ut_syslen = 0;
17223 rm -f conftest.$ac_objext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17225 (eval $ac_compile) 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } &&
17229 { ac_try='test -s conftest.$ac_objext'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; }; then
17235 samba_cv_HAVE_UX_UT_SYSLEN=yes
17237 echo "$as_me: failed program was:" >&5
17238 cat conftest.$ac_ext >&5
17239 samba_cv_HAVE_UX_UT_SYSLEN=no
17241 rm -f conftest.$ac_objext conftest.$ac_ext
17243 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
17244 echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
17245 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
17247 cat >>confdefs.h <<\_ACEOF
17248 #define HAVE_UX_UT_SYSLEN 1
17254 #################################################
17255 # check for libiconv support
17256 echo "$as_me:$LINENO: checking whether to use libiconv" >&5
17257 echo $ECHO_N "checking whether to use libiconv... $ECHO_C" >&6
17259 # Check whether --with-libiconv or --without-libiconv was given.
17260 if test "${with_libiconv+set}" = set; then
17261 withval="$with_libiconv"
17264 echo "$as_me:$LINENO: result: no" >&5
17265 echo "${ECHO_T}no" >&6
17268 echo "$as_me:$LINENO: result: yes" >&5
17269 echo "${ECHO_T}yes" >&6
17270 CFLAGS="$CFLAGS -I$withval/include"
17271 LDFLAGS="$LDFLAGS -L$withval/lib"
17273 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
17274 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
17275 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 ac_check_lib_save_LIBS=$LIBS
17279 LIBS="-liconv $LIBS"
17280 cat >conftest.$ac_ext <<_ACEOF
17281 #line $LINENO "configure"
17282 #include "confdefs.h"
17284 /* Override any gcc2 internal prototype to avoid an error. */
17288 /* We use char because int might match the return type of a gcc2
17289 builtin and then its argument prototype would still apply. */
17290 char iconv_open ();
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301 (eval $ac_link) 2>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } &&
17305 { ac_try='test -s conftest$ac_exeext'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; }; then
17311 ac_cv_lib_iconv_iconv_open=yes
17313 echo "$as_me: failed program was:" >&5
17314 cat conftest.$ac_ext >&5
17315 ac_cv_lib_iconv_iconv_open=no
17317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17318 LIBS=$ac_check_lib_save_LIBS
17320 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
17321 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
17322 if test $ac_cv_lib_iconv_iconv_open = yes; then
17323 cat >>confdefs.h <<_ACEOF
17324 #define HAVE_LIBICONV 1
17327 LIBS="-liconv $LIBS"
17332 cat >>confdefs.h <<_ACEOF
17333 #define WITH_LIBICONV "${withval}"
17339 echo "$as_me:$LINENO: result: no" >&5
17340 echo "${ECHO_T}no" >&6
17346 # check for iconv in libc
17347 echo "$as_me:$LINENO: checking for working iconv" >&5
17348 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6
17349 if test "${samba_cv_HAVE_NATIVE_ICONV+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17353 if test "$cross_compiling" = yes; then
17354 samba_cv_HAVE_NATIVE_ICONV=cross
17356 cat >conftest.$ac_ext <<_ACEOF
17357 #line $LINENO "configure"
17358 #include "confdefs.h"
17362 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
17363 if (cd == 0 || cd == (iconv_t)-1) return -1;
17368 rm -f conftest$ac_exeext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17370 (eval $ac_link) 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; }; then
17379 samba_cv_HAVE_NATIVE_ICONV=yes
17381 echo "$as_me: program exited with status $ac_status" >&5
17382 echo "$as_me: failed program was:" >&5
17383 cat conftest.$ac_ext >&5
17384 ( exit $ac_status )
17385 samba_cv_HAVE_NATIVE_ICONV=no
17387 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17390 echo "$as_me:$LINENO: result: $samba_cv_HAVE_NATIVE_ICONV" >&5
17391 echo "${ECHO_T}$samba_cv_HAVE_NATIVE_ICONV" >&6
17392 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
17394 cat >>confdefs.h <<\_ACEOF
17395 #define HAVE_NATIVE_ICONV 1
17401 echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
17402 echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
17403 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17407 if test "$cross_compiling" = yes; then
17408 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
17410 cat >conftest.$ac_ext <<_ACEOF
17411 #line $LINENO "configure"
17412 #include "confdefs.h"
17414 #include <sys/types.h>
17417 #define F_GETLEASE 1025
17420 int fd = open("/dev/null", O_RDONLY);
17421 return fcntl(fd, F_GETLEASE, 0) == -1;
17425 rm -f conftest$ac_exeext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17427 (eval $ac_link) 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
17438 echo "$as_me: program exited with status $ac_status" >&5
17439 echo "$as_me: failed program was:" >&5
17440 cat conftest.$ac_ext >&5
17441 ( exit $ac_status )
17442 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
17444 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17447 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
17448 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
17449 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
17451 cat >>confdefs.h <<\_ACEOF
17452 #define HAVE_KERNEL_OPLOCKS_LINUX 1
17457 echo "$as_me:$LINENO: checking for kernel change notify support" >&5
17458 echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
17459 if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
17460 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 if test "$cross_compiling" = yes; then
17464 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
17466 cat >conftest.$ac_ext <<_ACEOF
17467 #line $LINENO "configure"
17468 #include "confdefs.h"
17470 #include <sys/types.h>
17472 #include <signal.h>
17474 #define F_NOTIFY 1026
17477 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
17481 rm -f conftest$ac_exeext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483 (eval $ac_link) 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
17494 echo "$as_me: program exited with status $ac_status" >&5
17495 echo "$as_me: failed program was:" >&5
17496 cat conftest.$ac_ext >&5
17497 ( exit $ac_status )
17498 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
17500 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17503 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
17504 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
17505 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
17507 cat >>confdefs.h <<\_ACEOF
17508 #define HAVE_KERNEL_CHANGE_NOTIFY 1
17513 echo "$as_me:$LINENO: checking for kernel share modes" >&5
17514 echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
17515 if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 if test "$cross_compiling" = yes; then
17520 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
17522 cat >conftest.$ac_ext <<_ACEOF
17523 #line $LINENO "configure"
17524 #include "confdefs.h"
17526 #include <sys/types.h>
17528 #include <signal.h>
17529 #include <sys/file.h>
17531 #define LOCK_MAND 32
17532 #define LOCK_READ 64
17535 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
17539 rm -f conftest$ac_exeext
17540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17541 (eval $ac_link) 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
17552 echo "$as_me: program exited with status $ac_status" >&5
17553 echo "$as_me: failed program was:" >&5
17554 cat conftest.$ac_ext >&5
17555 ( exit $ac_status )
17556 samba_cv_HAVE_KERNEL_SHARE_MODES=no
17558 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17561 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
17562 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
17563 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
17565 cat >>confdefs.h <<\_ACEOF
17566 #define HAVE_KERNEL_SHARE_MODES 1
17574 echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
17575 echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
17576 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17580 cat >conftest.$ac_ext <<_ACEOF
17581 #line $LINENO "configure"
17582 #include "confdefs.h"
17583 #include <sys/types.h>
17588 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
17593 rm -f conftest.$ac_objext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595 (eval $ac_compile) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } &&
17599 { ac_try='test -s conftest.$ac_objext'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
17607 echo "$as_me: failed program was:" >&5
17608 cat conftest.$ac_ext >&5
17609 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
17611 rm -f conftest.$ac_objext conftest.$ac_ext
17613 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
17614 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
17615 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
17617 cat >>confdefs.h <<\_ACEOF
17618 #define HAVE_KERNEL_OPLOCKS_IRIX 1
17623 echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
17624 echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
17625 if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 if test "$cross_compiling" = yes; then
17630 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
17632 cat >conftest.$ac_ext <<_ACEOF
17633 #line $LINENO "configure"
17634 #include "confdefs.h"
17635 #include <sys/types.h>
17636 #include <sys/capability.h>
17639 if ((cap = cap_get_proc()) == NULL)
17641 cap->cap_effective |= CAP_NETWORK_MGT;
17642 cap->cap_inheritable |= CAP_NETWORK_MGT;
17648 rm -f conftest$ac_exeext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17650 (eval $ac_link) 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
17661 echo "$as_me: program exited with status $ac_status" >&5
17662 echo "$as_me: failed program was:" >&5
17663 cat conftest.$ac_ext >&5
17664 ( exit $ac_status )
17665 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
17667 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17670 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
17671 echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
17672 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
17674 cat >>confdefs.h <<\_ACEOF
17675 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
17681 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
17682 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
17685 echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
17686 echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
17687 if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 cat >conftest.$ac_ext <<_ACEOF
17692 #line $LINENO "configure"
17693 #include "confdefs.h"
17694 #include <sys/types.h>
17695 #if defined(HAVE_RPC_RPC_H)
17696 #include <rpc/rpc.h>
17706 rm -f conftest.$ac_objext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17708 (eval $ac_compile) 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -s conftest.$ac_objext'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; }; then
17718 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
17720 echo "$as_me: failed program was:" >&5
17721 cat conftest.$ac_ext >&5
17722 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
17724 rm -f conftest.$ac_objext conftest.$ac_ext
17726 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
17727 echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
17728 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
17730 cat >>confdefs.h <<\_ACEOF
17731 #define HAVE_INT16_FROM_RPC_RPC_H 1
17736 echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
17737 echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
17738 if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17742 cat >conftest.$ac_ext <<_ACEOF
17743 #line $LINENO "configure"
17744 #include "confdefs.h"
17745 #include <sys/types.h>
17746 #if defined(HAVE_RPC_RPC_H)
17747 #include <rpc/rpc.h>
17757 rm -f conftest.$ac_objext
17758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17759 (eval $ac_compile) 2>&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -s conftest.$ac_objext'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; }; then
17769 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
17771 echo "$as_me: failed program was:" >&5
17772 cat conftest.$ac_ext >&5
17773 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
17775 rm -f conftest.$ac_objext conftest.$ac_ext
17777 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
17778 echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
17779 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
17781 cat >>confdefs.h <<\_ACEOF
17782 #define HAVE_UINT16_FROM_RPC_RPC_H 1
17787 echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
17788 echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
17789 if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17793 cat >conftest.$ac_ext <<_ACEOF
17794 #line $LINENO "configure"
17795 #include "confdefs.h"
17796 #include <sys/types.h>
17797 #if defined(HAVE_RPC_RPC_H)
17798 #include <rpc/rpc.h>
17808 rm -f conftest.$ac_objext
17809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17810 (eval $ac_compile) 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -s conftest.$ac_objext'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17820 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
17822 echo "$as_me: failed program was:" >&5
17823 cat conftest.$ac_ext >&5
17824 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
17826 rm -f conftest.$ac_objext conftest.$ac_ext
17828 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
17829 echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
17830 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
17832 cat >>confdefs.h <<\_ACEOF
17833 #define HAVE_INT32_FROM_RPC_RPC_H 1
17838 echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
17839 echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
17840 if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17844 cat >conftest.$ac_ext <<_ACEOF
17845 #line $LINENO "configure"
17846 #include "confdefs.h"
17847 #include <sys/types.h>
17848 #if defined(HAVE_RPC_RPC_H)
17849 #include <rpc/rpc.h>
17859 rm -f conftest.$ac_objext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861 (eval $ac_compile) 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try='test -s conftest.$ac_objext'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; }; then
17871 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
17873 echo "$as_me: failed program was:" >&5
17874 cat conftest.$ac_ext >&5
17875 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
17877 rm -f conftest.$ac_objext conftest.$ac_ext
17879 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
17880 echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
17881 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
17883 cat >>confdefs.h <<\_ACEOF
17884 #define HAVE_UINT32_FROM_RPC_RPC_H 1
17890 echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
17891 echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
17892 if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 cat >conftest.$ac_ext <<_ACEOF
17897 #line $LINENO "configure"
17898 #include "confdefs.h"
17899 #include <sys/types.h>
17900 #ifdef HAVE_SYS_SECURITY_H
17901 #include <sys/security.h>
17903 #endif /* HAVE_SYS_SECURITY_H */
17904 #if defined(HAVE_RPC_RPC_H)
17905 #include <rpc/rpc.h>
17915 rm -f conftest.$ac_objext
17916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17917 (eval $ac_compile) 2>&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } &&
17921 { ac_try='test -s conftest.$ac_objext'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
17929 echo "$as_me: failed program was:" >&5
17930 cat conftest.$ac_ext >&5
17931 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
17933 rm -f conftest.$ac_objext conftest.$ac_ext
17935 echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
17936 echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
17937 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
17939 cat >>confdefs.h <<\_ACEOF
17940 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
17945 echo "$as_me:$LINENO: checking for test routines" >&5
17946 echo $ECHO_N "checking for test routines... $ECHO_C" >&6
17947 if test "$cross_compiling" = yes; then
17948 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
17949 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
17951 cat >conftest.$ac_ext <<_ACEOF
17952 #line $LINENO "configure"
17953 #include "confdefs.h"
17954 #include "${srcdir-.}/tests/trivial.c"
17956 rm -f conftest$ac_exeext
17957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17958 (eval $ac_link) 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
17967 echo "$as_me:$LINENO: result: yes" >&5
17968 echo "${ECHO_T}yes" >&6
17970 echo "$as_me: program exited with status $ac_status" >&5
17971 echo "$as_me: failed program was:" >&5
17972 cat conftest.$ac_ext >&5
17973 ( exit $ac_status )
17974 { { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
17975 echo "$as_me: error: cant find test code. Aborting config" >&2;}
17976 { (exit 1); exit 1; }; }
17978 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17981 echo "$as_me:$LINENO: checking for ftruncate extend" >&5
17982 echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
17983 if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 if test "$cross_compiling" = yes; then
17988 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
17990 cat >conftest.$ac_ext <<_ACEOF
17991 #line $LINENO "configure"
17992 #include "confdefs.h"
17993 #include "${srcdir-.}/tests/ftruncate.c"
17995 rm -f conftest$ac_exeext
17996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17997 (eval $ac_link) 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
18008 echo "$as_me: program exited with status $ac_status" >&5
18009 echo "$as_me: failed program was:" >&5
18010 cat conftest.$ac_ext >&5
18011 ( exit $ac_status )
18012 samba_cv_HAVE_FTRUNCATE_EXTEND=no
18014 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18017 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
18018 echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
18019 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
18021 cat >>confdefs.h <<\_ACEOF
18022 #define HAVE_FTRUNCATE_EXTEND 1
18027 echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
18028 echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
18029 if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18033 if test "$cross_compiling" = yes; then
18034 samba_cv_HAVE_WORKING_AF_LOCAL=cross
18036 cat >conftest.$ac_ext <<_ACEOF
18037 #line $LINENO "configure"
18038 #include "confdefs.h"
18039 #include "${srcdir-.}/tests/unixsock.c"
18041 rm -f conftest$ac_exeext
18042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18043 (eval $ac_link) 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 samba_cv_HAVE_WORKING_AF_LOCAL=yes
18054 echo "$as_me: program exited with status $ac_status" >&5
18055 echo "$as_me: failed program was:" >&5
18056 cat conftest.$ac_ext >&5
18057 ( exit $ac_status )
18058 samba_cv_HAVE_WORKING_AF_LOCAL=no
18060 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18063 echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
18064 echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
18065 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
18068 cat >>confdefs.h <<\_ACEOF
18069 #define HAVE_WORKING_AF_LOCAL 1
18074 echo "$as_me:$LINENO: checking for broken getgroups" >&5
18075 echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
18076 if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 if test "$cross_compiling" = yes; then
18081 samba_cv_HAVE_BROKEN_GETGROUPS=cross
18083 cat >conftest.$ac_ext <<_ACEOF
18084 #line $LINENO "configure"
18085 #include "confdefs.h"
18086 #include "${srcdir-.}/tests/getgroups.c"
18088 rm -f conftest$ac_exeext
18089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18090 (eval $ac_link) 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18095 (eval $ac_try) 2>&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; }; then
18099 samba_cv_HAVE_BROKEN_GETGROUPS=yes
18101 echo "$as_me: program exited with status $ac_status" >&5
18102 echo "$as_me: failed program was:" >&5
18103 cat conftest.$ac_ext >&5
18104 ( exit $ac_status )
18105 samba_cv_HAVE_BROKEN_GETGROUPS=no
18107 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18110 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
18111 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
18112 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
18114 cat >>confdefs.h <<\_ACEOF
18115 #define HAVE_BROKEN_GETGROUPS 1
18120 echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
18121 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
18122 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 SAVE_CPPFLAGS="$CPPFLAGS"
18127 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
18128 cat >conftest.$ac_ext <<_ACEOF
18129 #line $LINENO "configure"
18130 #include "confdefs.h"
18132 #define REPLACE_GETPASS 1
18133 #define NO_CONFIG_H 1
18134 #define main dont_declare_main
18135 #include "${srcdir-.}/lib/getsmbpass.c"
18146 rm -f conftest.$ac_objext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18148 (eval $ac_compile) 2>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
18152 { ac_try='test -s conftest.$ac_objext'
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; }; then
18158 samba_cv_REPLACE_GETPASS=yes
18160 echo "$as_me: failed program was:" >&5
18161 cat conftest.$ac_ext >&5
18162 samba_cv_REPLACE_GETPASS=no
18164 rm -f conftest.$ac_objext conftest.$ac_ext
18165 CPPFLAGS="$SAVE_CPPFLAGS"
18168 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
18169 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
18170 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
18172 cat >>confdefs.h <<\_ACEOF
18173 #define REPLACE_GETPASS 1
18178 echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
18179 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
18180 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 if test "$cross_compiling" = yes; then
18185 samba_cv_REPLACE_INET_NTOA=cross
18187 cat >conftest.$ac_ext <<_ACEOF
18188 #line $LINENO "configure"
18189 #include "confdefs.h"
18192 #include <sys/types.h>
18193 #include <netinet/in.h>
18194 #ifdef HAVE_ARPA_INET_H
18195 #include <arpa/inet.h>
18197 main() { struct in_addr ip; ip.s_addr = 0x12345678;
18198 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
18199 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
18202 rm -f conftest$ac_exeext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18204 (eval $ac_link) 2>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; }; then
18213 samba_cv_REPLACE_INET_NTOA=yes
18215 echo "$as_me: program exited with status $ac_status" >&5
18216 echo "$as_me: failed program was:" >&5
18217 cat conftest.$ac_ext >&5
18218 ( exit $ac_status )
18219 samba_cv_REPLACE_INET_NTOA=no
18221 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18224 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
18225 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
18226 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
18228 cat >>confdefs.h <<\_ACEOF
18229 #define REPLACE_INET_NTOA 1
18234 echo "$as_me:$LINENO: checking for secure mkstemp" >&5
18235 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
18236 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 if test "$cross_compiling" = yes; then
18241 samba_cv_HAVE_SECURE_MKSTEMP=cross
18243 cat >conftest.$ac_ext <<_ACEOF
18244 #line $LINENO "configure"
18245 #include "confdefs.h"
18246 #include <stdlib.h>
18247 #include <sys/types.h>
18248 #include <sys/stat.h>
18249 #include <unistd.h>
18252 char tpl[20]="/tmp/test.XXXXXX";
18253 int fd = mkstemp(tpl);
18254 if (fd == -1) exit(1);
18256 if (fstat(fd, &st) != 0) exit(1);
18257 if ((st.st_mode & 0777) != 0600) exit(1);
18261 rm -f conftest$ac_exeext
18262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18263 (eval $ac_link) 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268 (eval $ac_try) 2>&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18272 samba_cv_HAVE_SECURE_MKSTEMP=yes
18274 echo "$as_me: program exited with status $ac_status" >&5
18275 echo "$as_me: failed program was:" >&5
18276 cat conftest.$ac_ext >&5
18277 ( exit $ac_status )
18278 samba_cv_HAVE_SECURE_MKSTEMP=no
18280 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18283 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
18284 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
18285 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
18287 cat >>confdefs.h <<\_ACEOF
18288 #define HAVE_SECURE_MKSTEMP 1
18293 echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
18294 echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
18295 if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 if test "$cross_compiling" = yes; then
18300 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
18302 cat >conftest.$ac_ext <<_ACEOF
18303 #line $LINENO "configure"
18304 #include "confdefs.h"
18305 #include <unistd.h>
18306 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
18308 rm -f conftest$ac_exeext
18309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18310 (eval $ac_link) 2>&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
18319 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
18321 echo "$as_me: program exited with status $ac_status" >&5
18322 echo "$as_me: failed program was:" >&5
18323 cat conftest.$ac_ext >&5
18324 ( exit $ac_status )
18325 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
18327 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18330 echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
18331 echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
18332 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
18334 cat >>confdefs.h <<\_ACEOF
18335 #define SYSCONF_SC_NGROUPS_MAX 1
18340 echo "$as_me:$LINENO: checking for root" >&5
18341 echo $ECHO_N "checking for root... $ECHO_C" >&6
18342 if test "${samba_cv_HAVE_ROOT+set}" = set; then
18343 echo $ECHO_N "(cached) $ECHO_C" >&6
18346 if test "$cross_compiling" = yes; then
18347 samba_cv_HAVE_ROOT=cross
18349 cat >conftest.$ac_ext <<_ACEOF
18350 #line $LINENO "configure"
18351 #include "confdefs.h"
18352 main() { exit(getuid() != 0); }
18354 rm -f conftest$ac_exeext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356 (eval $ac_link) 2>&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361 (eval $ac_try) 2>&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; }; then
18365 samba_cv_HAVE_ROOT=yes
18367 echo "$as_me: program exited with status $ac_status" >&5
18368 echo "$as_me: failed program was:" >&5
18369 cat conftest.$ac_ext >&5
18370 ( exit $ac_status )
18371 samba_cv_HAVE_ROOT=no
18373 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18376 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
18377 echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
18378 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
18380 cat >>confdefs.h <<\_ACEOF
18381 #define HAVE_ROOT 1
18385 { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
18386 echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
18390 # look for a method of finding the list of network interfaces
18392 echo "$as_me:$LINENO: checking for iface AIX" >&5
18393 echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
18394 if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18398 if test "$cross_compiling" = yes; then
18399 samba_cv_HAVE_IFACE_AIX=cross
18401 cat >conftest.$ac_ext <<_ACEOF
18402 #line $LINENO "configure"
18403 #include "confdefs.h"
18405 #define HAVE_IFACE_AIX 1
18406 #define AUTOCONF_TEST 1
18407 #include "confdefs.h"
18408 #include "${srcdir-.}/lib/interfaces.c"
18410 rm -f conftest$ac_exeext
18411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18412 (eval $ac_link) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; }; then
18421 samba_cv_HAVE_IFACE_AIX=yes
18423 echo "$as_me: program exited with status $ac_status" >&5
18424 echo "$as_me: failed program was:" >&5
18425 cat conftest.$ac_ext >&5
18426 ( exit $ac_status )
18427 samba_cv_HAVE_IFACE_AIX=no
18429 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18432 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
18433 echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
18434 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
18436 cat >>confdefs.h <<\_ACEOF
18437 #define HAVE_IFACE_AIX 1
18442 if test $iface = no; then
18443 echo "$as_me:$LINENO: checking for iface ifconf" >&5
18444 echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
18445 if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
18446 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 if test "$cross_compiling" = yes; then
18450 samba_cv_HAVE_IFACE_IFCONF=cross
18452 cat >conftest.$ac_ext <<_ACEOF
18453 #line $LINENO "configure"
18454 #include "confdefs.h"
18456 #define HAVE_IFACE_IFCONF 1
18457 #define AUTOCONF_TEST 1
18458 #include "confdefs.h"
18459 #include "${srcdir-.}/lib/interfaces.c"
18461 rm -f conftest$ac_exeext
18462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18463 (eval $ac_link) 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 samba_cv_HAVE_IFACE_IFCONF=yes
18474 echo "$as_me: program exited with status $ac_status" >&5
18475 echo "$as_me: failed program was:" >&5
18476 cat conftest.$ac_ext >&5
18477 ( exit $ac_status )
18478 samba_cv_HAVE_IFACE_IFCONF=no
18480 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18483 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
18484 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
18485 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
18487 cat >>confdefs.h <<\_ACEOF
18488 #define HAVE_IFACE_IFCONF 1
18494 if test $iface = no; then
18495 echo "$as_me:$LINENO: checking for iface ifreq" >&5
18496 echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
18497 if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18501 if test "$cross_compiling" = yes; then
18502 samba_cv_HAVE_IFACE_IFREQ=cross
18504 cat >conftest.$ac_ext <<_ACEOF
18505 #line $LINENO "configure"
18506 #include "confdefs.h"
18508 #define HAVE_IFACE_IFREQ 1
18509 #define AUTOCONF_TEST 1
18510 #include "confdefs.h"
18511 #include "${srcdir-.}/lib/interfaces.c"
18513 rm -f conftest$ac_exeext
18514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18515 (eval $ac_link) 2>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; }; then
18524 samba_cv_HAVE_IFACE_IFREQ=yes
18526 echo "$as_me: program exited with status $ac_status" >&5
18527 echo "$as_me: failed program was:" >&5
18528 cat conftest.$ac_ext >&5
18529 ( exit $ac_status )
18530 samba_cv_HAVE_IFACE_IFREQ=no
18532 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18535 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
18536 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
18537 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
18539 cat >>confdefs.h <<\_ACEOF
18540 #define HAVE_IFACE_IFREQ 1
18547 ################################################
18548 # look for a method of setting the effective uid
18550 if test $seteuid = no; then
18551 echo "$as_me:$LINENO: checking for setresuid" >&5
18552 echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
18553 if test "${samba_cv_USE_SETRESUID+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18557 if test "$cross_compiling" = yes; then
18558 samba_cv_USE_SETRESUID=cross
18560 cat >conftest.$ac_ext <<_ACEOF
18561 #line $LINENO "configure"
18562 #include "confdefs.h"
18564 #define AUTOCONF_TEST 1
18565 #define USE_SETRESUID 1
18566 #include "confdefs.h"
18567 #include "${srcdir-.}/lib/util_sec.c"
18569 rm -f conftest$ac_exeext
18570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18571 (eval $ac_link) 2>&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576 (eval $ac_try) 2>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; }; then
18580 samba_cv_USE_SETRESUID=yes
18582 echo "$as_me: program exited with status $ac_status" >&5
18583 echo "$as_me: failed program was:" >&5
18584 cat conftest.$ac_ext >&5
18585 ( exit $ac_status )
18586 samba_cv_USE_SETRESUID=no
18588 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18591 echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
18592 echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
18593 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
18595 cat >>confdefs.h <<\_ACEOF
18596 #define USE_SETRESUID 1
18603 if test $seteuid = no; then
18604 echo "$as_me:$LINENO: checking for setreuid" >&5
18605 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
18606 if test "${samba_cv_USE_SETREUID+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 if test "$cross_compiling" = yes; then
18611 samba_cv_USE_SETREUID=cross
18613 cat >conftest.$ac_ext <<_ACEOF
18614 #line $LINENO "configure"
18615 #include "confdefs.h"
18617 #define AUTOCONF_TEST 1
18618 #define USE_SETREUID 1
18619 #include "confdefs.h"
18620 #include "${srcdir-.}/lib/util_sec.c"
18622 rm -f conftest$ac_exeext
18623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18624 (eval $ac_link) 2>&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; }; then
18633 samba_cv_USE_SETREUID=yes
18635 echo "$as_me: program exited with status $ac_status" >&5
18636 echo "$as_me: failed program was:" >&5
18637 cat conftest.$ac_ext >&5
18638 ( exit $ac_status )
18639 samba_cv_USE_SETREUID=no
18641 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18644 echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
18645 echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
18646 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
18648 cat >>confdefs.h <<\_ACEOF
18649 #define USE_SETREUID 1
18655 if test $seteuid = no; then
18656 echo "$as_me:$LINENO: checking for seteuid" >&5
18657 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
18658 if test "${samba_cv_USE_SETEUID+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 if test "$cross_compiling" = yes; then
18663 samba_cv_USE_SETEUID=cross
18665 cat >conftest.$ac_ext <<_ACEOF
18666 #line $LINENO "configure"
18667 #include "confdefs.h"
18669 #define AUTOCONF_TEST 1
18670 #define USE_SETEUID 1
18671 #include "confdefs.h"
18672 #include "${srcdir-.}/lib/util_sec.c"
18674 rm -f conftest$ac_exeext
18675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18676 (eval $ac_link) 2>&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; }; then
18685 samba_cv_USE_SETEUID=yes
18687 echo "$as_me: program exited with status $ac_status" >&5
18688 echo "$as_me: failed program was:" >&5
18689 cat conftest.$ac_ext >&5
18690 ( exit $ac_status )
18691 samba_cv_USE_SETEUID=no
18693 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18696 echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
18697 echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
18698 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
18700 cat >>confdefs.h <<\_ACEOF
18701 #define USE_SETEUID 1
18707 if test $seteuid = no; then
18708 echo "$as_me:$LINENO: checking for setuidx" >&5
18709 echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
18710 if test "${samba_cv_USE_SETUIDX+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 if test "$cross_compiling" = yes; then
18715 samba_cv_USE_SETUIDX=cross
18717 cat >conftest.$ac_ext <<_ACEOF
18718 #line $LINENO "configure"
18719 #include "confdefs.h"
18721 #define AUTOCONF_TEST 1
18722 #define USE_SETUIDX 1
18723 #include "confdefs.h"
18724 #include "${srcdir-.}/lib/util_sec.c"
18726 rm -f conftest$ac_exeext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18728 (eval $ac_link) 2>&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 samba_cv_USE_SETUIDX=yes
18739 echo "$as_me: program exited with status $ac_status" >&5
18740 echo "$as_me: failed program was:" >&5
18741 cat conftest.$ac_ext >&5
18742 ( exit $ac_status )
18743 samba_cv_USE_SETUIDX=no
18745 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18748 echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
18749 echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
18750 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
18752 cat >>confdefs.h <<\_ACEOF
18753 #define USE_SETUIDX 1
18760 echo "$as_me:$LINENO: checking for working mmap" >&5
18761 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18762 if test "${samba_cv_HAVE_MMAP+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 if test "$cross_compiling" = yes; then
18767 samba_cv_HAVE_MMAP=cross
18769 cat >conftest.$ac_ext <<_ACEOF
18770 #line $LINENO "configure"
18771 #include "confdefs.h"
18772 #include "${srcdir-.}/tests/shared_mmap.c"
18774 rm -f conftest$ac_exeext
18775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18776 (eval $ac_link) 2>&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 samba_cv_HAVE_MMAP=yes
18787 echo "$as_me: program exited with status $ac_status" >&5
18788 echo "$as_me: failed program was:" >&5
18789 cat conftest.$ac_ext >&5
18790 ( exit $ac_status )
18791 samba_cv_HAVE_MMAP=no
18793 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18796 echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
18797 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
18798 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
18800 cat >>confdefs.h <<\_ACEOF
18801 #define HAVE_MMAP 1
18806 echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
18807 echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
18808 if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18812 if test "$cross_compiling" = yes; then
18813 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
18815 cat >conftest.$ac_ext <<_ACEOF
18816 #line $LINENO "configure"
18817 #include "confdefs.h"
18818 #include "${srcdir-.}/tests/ftruncroot.c"
18820 rm -f conftest$ac_exeext
18821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18822 (eval $ac_link) 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
18831 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
18833 echo "$as_me: program exited with status $ac_status" >&5
18834 echo "$as_me: failed program was:" >&5
18835 cat conftest.$ac_ext >&5
18836 ( exit $ac_status )
18837 samba_cv_FTRUNCATE_NEEDS_ROOT=no
18839 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18842 echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
18843 echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
18844 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
18846 cat >>confdefs.h <<\_ACEOF
18847 #define FTRUNCATE_NEEDS_ROOT 1
18852 echo "$as_me:$LINENO: checking for fcntl locking" >&5
18853 echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
18854 if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 if test "$cross_compiling" = yes; then
18859 samba_cv_HAVE_FCNTL_LOCK=cross
18861 cat >conftest.$ac_ext <<_ACEOF
18862 #line $LINENO "configure"
18863 #include "confdefs.h"
18864 #include "${srcdir-.}/tests/fcntl_lock.c"
18866 rm -f conftest$ac_exeext
18867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18868 (eval $ac_link) 2>&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; }; then
18877 samba_cv_HAVE_FCNTL_LOCK=yes
18879 echo "$as_me: program exited with status $ac_status" >&5
18880 echo "$as_me: failed program was:" >&5
18881 cat conftest.$ac_ext >&5
18882 ( exit $ac_status )
18883 samba_cv_HAVE_FCNTL_LOCK=no
18885 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18888 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
18889 echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
18890 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
18892 cat >>confdefs.h <<\_ACEOF
18893 #define HAVE_FCNTL_LOCK 1
18898 echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
18899 echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
18900 if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 if test "$cross_compiling" = yes; then
18905 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
18907 cat >conftest.$ac_ext <<_ACEOF
18908 #line $LINENO "configure"
18909 #include "confdefs.h"
18910 #include "${srcdir-.}/tests/fcntl_lock64.c"
18912 rm -f conftest$ac_exeext
18913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18914 (eval $ac_link) 2>&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
18925 echo "$as_me: program exited with status $ac_status" >&5
18926 echo "$as_me: failed program was:" >&5
18927 cat conftest.$ac_ext >&5
18928 ( exit $ac_status )
18929 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
18931 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18934 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
18935 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
18936 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
18938 cat >>confdefs.h <<\_ACEOF
18939 #define HAVE_BROKEN_FCNTL64_LOCKS 1
18946 echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
18947 echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
18948 if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 if test "$cross_compiling" = yes; then
18953 samba_cv_HAVE_STRUCT_FLOCK64=cross
18955 cat >conftest.$ac_ext <<_ACEOF
18956 #line $LINENO "configure"
18957 #include "confdefs.h"
18959 #if defined(HAVE_UNISTD_H)
18960 #include <unistd.h>
18963 #include <stdlib.h>
18965 #ifdef HAVE_FCNTL_H
18969 #ifdef HAVE_SYS_FCNTL_H
18970 #include <sys/fcntl.h>
18972 main() { struct flock64 fl64;
18973 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
18980 rm -f conftest$ac_exeext
18981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18982 (eval $ac_link) 2>&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987 (eval $ac_try) 2>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; }; then
18991 samba_cv_HAVE_STRUCT_FLOCK64=yes
18993 echo "$as_me: program exited with status $ac_status" >&5
18994 echo "$as_me: failed program was:" >&5
18995 cat conftest.$ac_ext >&5
18996 ( exit $ac_status )
18997 samba_cv_HAVE_STRUCT_FLOCK64=no
18999 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19002 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
19003 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
19005 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
19007 cat >>confdefs.h <<\_ACEOF
19008 #define HAVE_STRUCT_FLOCK64 1
19014 echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
19015 echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
19016 if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
19017 echo $ECHO_N "(cached) $ECHO_C" >&6
19020 cat >conftest.$ac_ext <<_ACEOF
19021 #line $LINENO "configure"
19022 #include "confdefs.h"
19023 #include <sys/types.h>
19024 #include <sys/stat.h>
19025 #include <unistd.h>
19029 struct stat st; st.st_blocks = 0;
19034 rm -f conftest.$ac_objext
19035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19036 (eval $ac_compile) 2>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
19040 { ac_try='test -s conftest.$ac_objext'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; }; then
19046 samba_cv_HAVE_STAT_ST_BLOCKS=yes
19048 echo "$as_me: failed program was:" >&5
19049 cat conftest.$ac_ext >&5
19050 samba_cv_HAVE_STAT_ST_BLOCKS=no
19052 rm -f conftest.$ac_objext conftest.$ac_ext
19054 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
19055 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
19056 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
19058 cat >>confdefs.h <<\_ACEOF
19059 #define HAVE_STAT_ST_BLOCKS 1
19064 echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
19065 echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
19066 if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 cat >conftest.$ac_ext <<_ACEOF
19071 #line $LINENO "configure"
19072 #include "confdefs.h"
19073 #include <sys/types.h>
19074 #include <sys/stat.h>
19075 #include <unistd.h>
19079 struct stat st; st.st_blksize = 0;
19084 rm -f conftest.$ac_objext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19086 (eval $ac_compile) 2>&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } &&
19090 { ac_try='test -s conftest.$ac_objext'
19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 (eval $ac_try) 2>&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; }; then
19096 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
19098 echo "$as_me: failed program was:" >&5
19099 cat conftest.$ac_ext >&5
19100 samba_cv_HAVE_STAT_ST_BLKSIZE=no
19102 rm -f conftest.$ac_objext conftest.$ac_ext
19104 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
19105 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
19106 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
19108 cat >>confdefs.h <<\_ACEOF
19109 #define HAVE_STAT_ST_BLKSIZE 1
19116 echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
19117 echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
19118 if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 cat >conftest.$ac_ext <<_ACEOF
19123 #line $LINENO "configure"
19124 #include "confdefs.h"
19126 #ifdef HAVE_SYS_VFS_H
19127 #include <sys/vfs.h>
19129 #ifdef HAVE_SYS_CAPABILITY_H
19130 #include <sys/capability.h>
19141 rm -f conftest.$ac_objext
19142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19143 (eval $ac_compile) 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } &&
19147 { ac_try='test -s conftest.$ac_objext'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
19155 echo "$as_me: failed program was:" >&5
19156 cat conftest.$ac_ext >&5
19157 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
19159 rm -f conftest.$ac_objext conftest.$ac_ext
19161 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
19162 echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
19163 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
19165 cat >>confdefs.h <<\_ACEOF
19166 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
19173 echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
19174 echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
19175 if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19179 cat >conftest.$ac_ext <<_ACEOF
19180 #line $LINENO "configure"
19181 #include "confdefs.h"
19182 #include <sys/acl.h>
19183 #if defined(HAVE_RPCSVC_NIS_H)
19184 #include <rpcsvc/nis.h>
19194 rm -f conftest.$ac_objext
19195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19196 (eval $ac_compile) 2>&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } &&
19200 { ac_try='test -s conftest.$ac_objext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19206 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
19208 echo "$as_me: failed program was:" >&5
19209 cat conftest.$ac_ext >&5
19210 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
19212 rm -f conftest.$ac_objext conftest.$ac_ext
19214 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
19215 echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
19216 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
19218 cat >>confdefs.h <<\_ACEOF
19219 #define BROKEN_NISPLUS_INCLUDE_FILES 1
19225 #################################################
19226 # check for smbwrapper support
19227 echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
19228 echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
19230 # Check whether --with-smbwrapper or --without-smbwrapper was given.
19231 if test "${with_smbwrapper+set}" = set; then
19232 withval="$with_smbwrapper"
19235 echo "$as_me:$LINENO: result: yes" >&5
19236 echo "${ECHO_T}yes" >&6
19238 cat >>confdefs.h <<\_ACEOF
19239 #define WITH_SMBWRAPPER 1
19242 WRAPPROG="bin/smbsh"
19243 WRAP="bin/smbwrapper.$SHLIBEXT"
19245 if test x$ATTEMPT_WRAP32_BUILD = x; then
19248 WRAP32=bin/smbwrapper.32.$SHLIBEXT
19251 # Conditions under which smbwrapper should not be built.
19253 if test x$PICFLAG = x; then
19254 echo No support for PIC code - disabling smbwrapper and smbsh
19258 elif test x$ac_cv_func_syscall = xno; then
19259 echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
19260 echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
19267 echo "$as_me:$LINENO: result: no" >&5
19268 echo "${ECHO_T}no" >&6
19272 echo "$as_me:$LINENO: result: no" >&5
19273 echo "${ECHO_T}no" >&6
19277 #################################################
19278 # check for AFS clear-text auth support
19279 echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
19280 echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
19282 # Check whether --with-afs or --without-afs was given.
19283 if test "${with_afs+set}" = set; then
19284 withval="$with_afs"
19287 echo "$as_me:$LINENO: result: yes" >&5
19288 echo "${ECHO_T}yes" >&6
19290 cat >>confdefs.h <<\_ACEOF
19296 echo "$as_me:$LINENO: result: no" >&5
19297 echo "${ECHO_T}no" >&6
19301 echo "$as_me:$LINENO: result: no" >&5
19302 echo "${ECHO_T}no" >&6
19307 #################################################
19308 # check for the DFS clear-text auth system
19309 echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
19310 echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
19312 # Check whether --with-dfs or --without-dfs was given.
19313 if test "${with_dfs+set}" = set; then
19314 withval="$with_dfs"
19317 echo "$as_me:$LINENO: result: yes" >&5
19318 echo "${ECHO_T}yes" >&6
19320 cat >>confdefs.h <<\_ACEOF
19326 echo "$as_me:$LINENO: result: no" >&5
19327 echo "${ECHO_T}no" >&6
19331 echo "$as_me:$LINENO: result: no" >&5
19332 echo "${ECHO_T}no" >&6
19336 #################################################
19337 # active directory support
19339 with_ads_support=yes
19340 echo "$as_me:$LINENO: checking whether to use Active Directory" >&5
19341 echo $ECHO_N "checking whether to use Active Directory... $ECHO_C" >&6
19344 # Check whether --with-ads or --without-ads was given.
19345 if test "${with_ads+set}" = set; then
19346 withval="$with_ads"
19349 with_ads_support=no
19354 if test x"$with_ads_support" = x"yes"; then
19356 cat >>confdefs.h <<\_ACEOF
19362 echo "$as_me:$LINENO: result: $with_ads_support" >&5
19363 echo "${ECHO_T}$with_ads_support" >&6
19366 if test x"$with_ads_support" = x"yes"; then
19368 #################################################
19369 # check for location of Kerberos 5 install
19370 echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
19371 echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
19373 # Check whether --with-krb5 or --without-krb5 was given.
19374 if test "${with_krb5+set}" = set; then
19375 withval="$with_krb5"
19378 echo "$as_me:$LINENO: result: no" >&5
19379 echo "${ECHO_T}no" >&6
19382 echo "$as_me:$LINENO: result: yes" >&5
19383 echo "${ECHO_T}yes" >&6
19384 LIBS="$LIBS -lkrb5"
19385 CFLAGS="$CFLAGS -I$withval/include"
19386 CPPFLAGS="$CPPFLAGS -I$withval/include"
19387 LDFLAGS="$LDFLAGS -L$withval/lib"
19392 echo "$as_me:$LINENO: result: no" >&5
19393 echo "${ECHO_T}no" >&6
19398 if test x$FOUND_KRB5 = x"no"; then
19399 #################################################
19400 # see if this box has the RedHat location for kerberos
19401 echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
19402 echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
19403 if test -d /usr/kerberos; then
19404 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
19405 CFLAGS="$CFLAGS -I/usr/kerberos/include"
19406 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
19407 echo "$as_me:$LINENO: result: yes" >&5
19408 echo "${ECHO_T}yes" >&6
19410 echo "$as_me:$LINENO: result: no" >&5
19411 echo "${ECHO_T}no" >&6
19416 # now check for krb5.h. Some systems have the libraries without the headers!
19417 # note that this check is done here to allow for different kerberos
19420 for ac_header in krb5.h
19422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19424 echo "$as_me:$LINENO: checking for $ac_header" >&5
19425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19432 # Is the header compilable?
19433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19435 cat >conftest.$ac_ext <<_ACEOF
19436 #line $LINENO "configure"
19437 #include "confdefs.h"
19438 $ac_includes_default
19439 #include <$ac_header>
19441 rm -f conftest.$ac_objext
19442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19443 (eval $ac_compile) 2>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try='test -s conftest.$ac_objext'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_header_compiler=yes
19455 echo "$as_me: failed program was:" >&5
19456 cat conftest.$ac_ext >&5
19457 ac_header_compiler=no
19459 rm -f conftest.$ac_objext conftest.$ac_ext
19460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19461 echo "${ECHO_T}$ac_header_compiler" >&6
19463 # Is the header present?
19464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19466 cat >conftest.$ac_ext <<_ACEOF
19467 #line $LINENO "configure"
19468 #include "confdefs.h"
19469 #include <$ac_header>
19471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19474 grep -v '^ *+' conftest.er1 >conftest.err
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } >/dev/null; then
19479 if test -s conftest.err; then
19480 ac_cpp_err=$ac_c_preproc_warn_flag
19487 if test -z "$ac_cpp_err"; then
19488 ac_header_preproc=yes
19490 echo "$as_me: failed program was:" >&5
19491 cat conftest.$ac_ext >&5
19492 ac_header_preproc=no
19494 rm -f conftest.err conftest.$ac_ext
19495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19496 echo "${ECHO_T}$ac_header_preproc" >&6
19498 # So? What about this header?
19499 case $ac_header_compiler:$ac_header_preproc in
19501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19513 echo "$as_me:$LINENO: checking for $ac_header" >&5
19514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19518 eval "$as_ac_Header=$ac_header_preproc"
19520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19525 cat >>confdefs.h <<_ACEOF
19526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19534 # now check for gssapi headers. This is also done here to allow for
19535 # different kerberos include paths
19538 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi.h
19540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19542 echo "$as_me:$LINENO: checking for $ac_header" >&5
19543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19550 # Is the header compilable?
19551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19553 cat >conftest.$ac_ext <<_ACEOF
19554 #line $LINENO "configure"
19555 #include "confdefs.h"
19556 $ac_includes_default
19557 #include <$ac_header>
19559 rm -f conftest.$ac_objext
19560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561 (eval $ac_compile) 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } &&
19565 { ac_try='test -s conftest.$ac_objext'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_header_compiler=yes
19573 echo "$as_me: failed program was:" >&5
19574 cat conftest.$ac_ext >&5
19575 ac_header_compiler=no
19577 rm -f conftest.$ac_objext conftest.$ac_ext
19578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19579 echo "${ECHO_T}$ac_header_compiler" >&6
19581 # Is the header present?
19582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19584 cat >conftest.$ac_ext <<_ACEOF
19585 #line $LINENO "configure"
19586 #include "confdefs.h"
19587 #include <$ac_header>
19589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19592 grep -v '^ *+' conftest.er1 >conftest.err
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } >/dev/null; then
19597 if test -s conftest.err; then
19598 ac_cpp_err=$ac_c_preproc_warn_flag
19605 if test -z "$ac_cpp_err"; then
19606 ac_header_preproc=yes
19608 echo "$as_me: failed program was:" >&5
19609 cat conftest.$ac_ext >&5
19610 ac_header_preproc=no
19612 rm -f conftest.err conftest.$ac_ext
19613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19614 echo "${ECHO_T}$ac_header_preproc" >&6
19616 # So? What about this header?
19617 case $ac_header_compiler:$ac_header_preproc in
19619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19631 echo "$as_me:$LINENO: checking for $ac_header" >&5
19632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19634 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 eval "$as_ac_Header=$ac_header_preproc"
19638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19643 cat >>confdefs.h <<_ACEOF
19644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19652 ##################################################################
19653 # we might need the k5crypto and com_err libraries on some systems
19654 echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
19655 echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
19656 if test "${ac_cv_lib_com_err__et_list+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 ac_check_lib_save_LIBS=$LIBS
19660 LIBS="-lcom_err $LIBS"
19661 cat >conftest.$ac_ext <<_ACEOF
19662 #line $LINENO "configure"
19663 #include "confdefs.h"
19665 /* Override any gcc2 internal prototype to avoid an error. */
19669 /* We use char because int might match the return type of a gcc2
19670 builtin and then its argument prototype would still apply. */
19680 rm -f conftest.$ac_objext conftest$ac_exeext
19681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19682 (eval $ac_link) 2>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } &&
19686 { ac_try='test -s conftest$ac_exeext'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
19692 ac_cv_lib_com_err__et_list=yes
19694 echo "$as_me: failed program was:" >&5
19695 cat conftest.$ac_ext >&5
19696 ac_cv_lib_com_err__et_list=no
19698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19699 LIBS=$ac_check_lib_save_LIBS
19701 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err__et_list" >&5
19702 echo "${ECHO_T}$ac_cv_lib_com_err__et_list" >&6
19703 if test $ac_cv_lib_com_err__et_list = yes; then
19704 LIBS="$LIBS -lcom_err"
19707 echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
19708 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
19709 if test "${ac_cv_lib_k5crypto_krb5_encrypt_data+set}" = set; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 ac_check_lib_save_LIBS=$LIBS
19713 LIBS="-lk5crypto $LIBS"
19714 cat >conftest.$ac_ext <<_ACEOF
19715 #line $LINENO "configure"
19716 #include "confdefs.h"
19718 /* Override any gcc2 internal prototype to avoid an error. */
19722 /* We use char because int might match the return type of a gcc2
19723 builtin and then its argument prototype would still apply. */
19724 char krb5_encrypt_data ();
19728 krb5_encrypt_data ();
19733 rm -f conftest.$ac_objext conftest$ac_exeext
19734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19735 (eval $ac_link) 2>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } &&
19739 { ac_try='test -s conftest$ac_exeext'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19745 ac_cv_lib_k5crypto_krb5_encrypt_data=yes
19747 echo "$as_me: failed program was:" >&5
19748 cat conftest.$ac_ext >&5
19749 ac_cv_lib_k5crypto_krb5_encrypt_data=no
19751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19752 LIBS=$ac_check_lib_save_LIBS
19754 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_encrypt_data" >&5
19755 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_encrypt_data" >&6
19756 if test $ac_cv_lib_k5crypto_krb5_encrypt_data = yes; then
19757 LIBS="$LIBS -lk5crypto"
19761 ########################################################
19762 # now see if we can find the krb5 libs in standard paths
19763 # or as specified above
19764 echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
19765 echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
19766 if test "${ac_cv_lib_krb5_krb5_mk_req_extended+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 ac_check_lib_save_LIBS=$LIBS
19770 LIBS="-lkrb5 $LIBS"
19771 cat >conftest.$ac_ext <<_ACEOF
19772 #line $LINENO "configure"
19773 #include "confdefs.h"
19775 /* Override any gcc2 internal prototype to avoid an error. */
19779 /* We use char because int might match the return type of a gcc2
19780 builtin and then its argument prototype would still apply. */
19781 char krb5_mk_req_extended ();
19785 krb5_mk_req_extended ();
19790 rm -f conftest.$ac_objext conftest$ac_exeext
19791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19792 (eval $ac_link) 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -s conftest$ac_exeext'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 ac_cv_lib_krb5_krb5_mk_req_extended=yes
19804 echo "$as_me: failed program was:" >&5
19805 cat conftest.$ac_ext >&5
19806 ac_cv_lib_krb5_krb5_mk_req_extended=no
19808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19809 LIBS=$ac_check_lib_save_LIBS
19811 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_mk_req_extended" >&5
19812 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_mk_req_extended" >&6
19813 if test $ac_cv_lib_krb5_krb5_mk_req_extended = yes; then
19814 LIBS="$LIBS -lkrb5";
19816 cat >>confdefs.h <<\_ACEOF
19817 #define HAVE_KRB5 1
19823 ########################################################
19824 # now see if we can find the gssapi libs in standard paths
19825 echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
19826 echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
19827 if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19830 ac_check_lib_save_LIBS=$LIBS
19831 LIBS="-lgssapi_krb5 $LIBS"
19832 cat >conftest.$ac_ext <<_ACEOF
19833 #line $LINENO "configure"
19834 #include "confdefs.h"
19836 /* Override any gcc2 internal prototype to avoid an error. */
19840 /* We use char because int might match the return type of a gcc2
19841 builtin and then its argument prototype would still apply. */
19842 char gss_display_status ();
19846 gss_display_status ();
19851 rm -f conftest.$ac_objext conftest$ac_exeext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19853 (eval $ac_link) 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } &&
19857 { ac_try='test -s conftest$ac_exeext'
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; }; then
19863 ac_cv_lib_gssapi_krb5_gss_display_status=yes
19865 echo "$as_me: failed program was:" >&5
19866 cat conftest.$ac_ext >&5
19867 ac_cv_lib_gssapi_krb5_gss_display_status=no
19869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19872 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
19873 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6
19874 if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
19875 LIBS="$LIBS -lgssapi_krb5";
19877 cat >>confdefs.h <<\_ACEOF
19878 #define HAVE_GSSAPI 1
19885 ########################################################
19886 # Compile with LDAP support?
19888 with_ldap_support=yes
19889 echo "$as_me:$LINENO: checking whether to use LDAP" >&5
19890 echo $ECHO_N "checking whether to use LDAP... $ECHO_C" >&6
19893 # Check whether --with-ldap or --without-ldap was given.
19894 if test "${with_ldap+set}" = set; then
19895 withval="$with_ldap"
19898 with_ldap_support=no
19903 echo "$as_me:$LINENO: result: $with_ldap_support" >&5
19904 echo "${ECHO_T}$with_ldap_support" >&6
19906 if test x"$with_ldap_support" = x"yes"; then
19908 ##################################################################
19909 # we might need the lber lib on some systems. To avoid link errors
19910 # this test must be before the libldap test
19911 echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
19912 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
19913 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 ac_check_lib_save_LIBS=$LIBS
19917 LIBS="-llber $LIBS"
19918 cat >conftest.$ac_ext <<_ACEOF
19919 #line $LINENO "configure"
19920 #include "confdefs.h"
19922 /* Override any gcc2 internal prototype to avoid an error. */
19926 /* We use char because int might match the return type of a gcc2
19927 builtin and then its argument prototype would still apply. */
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19939 (eval $ac_link) 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } &&
19943 { ac_try='test -s conftest$ac_exeext'
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; }; then
19949 ac_cv_lib_lber_ber_scanf=yes
19951 echo "$as_me: failed program was:" >&5
19952 cat conftest.$ac_ext >&5
19953 ac_cv_lib_lber_ber_scanf=no
19955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19956 LIBS=$ac_check_lib_save_LIBS
19958 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
19959 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6
19960 if test $ac_cv_lib_lber_ber_scanf = yes; then
19961 LIBS="$LIBS -llber"
19965 ########################################################
19966 # now see if we can find the ldap libs in standard paths
19967 if test x$have_ldap != xyes; then
19968 echo "$as_me:$LINENO: checking for ldap_domain2hostlist in -lldap" >&5
19969 echo $ECHO_N "checking for ldap_domain2hostlist in -lldap... $ECHO_C" >&6
19970 if test "${ac_cv_lib_ldap_ldap_domain2hostlist+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 ac_check_lib_save_LIBS=$LIBS
19974 LIBS="-lldap $LIBS"
19975 cat >conftest.$ac_ext <<_ACEOF
19976 #line $LINENO "configure"
19977 #include "confdefs.h"
19979 /* Override any gcc2 internal prototype to avoid an error. */
19983 /* We use char because int might match the return type of a gcc2
19984 builtin and then its argument prototype would still apply. */
19985 char ldap_domain2hostlist ();
19989 ldap_domain2hostlist ();
19994 rm -f conftest.$ac_objext conftest$ac_exeext
19995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19996 (eval $ac_link) 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -s conftest$ac_exeext'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 ac_cv_lib_ldap_ldap_domain2hostlist=yes
20008 echo "$as_me: failed program was:" >&5
20009 cat conftest.$ac_ext >&5
20010 ac_cv_lib_ldap_ldap_domain2hostlist=no
20012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20013 LIBS=$ac_check_lib_save_LIBS
20015 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_domain2hostlist" >&5
20016 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_domain2hostlist" >&6
20017 if test $ac_cv_lib_ldap_ldap_domain2hostlist = yes; then
20018 LIBS="$LIBS -lldap";
20020 cat >>confdefs.h <<\_ACEOF
20021 #define HAVE_LDAP 1
20027 ########################################################
20028 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
20029 # Check found in pam_ldap 145.
20031 for ac_func in ldap_set_rebind_proc
20033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20034 echo "$as_me:$LINENO: checking for $ac_func" >&5
20035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20036 if eval "test \"\${$as_ac_var+set}\" = set"; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20039 cat >conftest.$ac_ext <<_ACEOF
20040 #line $LINENO "configure"
20041 #include "confdefs.h"
20042 /* System header to define __stub macros and hopefully few prototypes,
20043 which can conflict with char $ac_func (); below. */
20044 #include <assert.h>
20045 /* Override any gcc2 internal prototype to avoid an error. */
20049 /* We use char because int might match the return type of a gcc2
20050 builtin and then its argument prototype would still apply. */
20057 /* The GNU C library defines this for functions which it implements
20058 to always fail with ENOSYS. Some functions are actually named
20059 something starting with __ and the normal name is an alias. */
20060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20070 rm -f conftest.$ac_objext conftest$ac_exeext
20071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20072 (eval $ac_link) 2>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
20076 { ac_try='test -s conftest$ac_exeext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 eval "$as_ac_var=yes"
20084 echo "$as_me: failed program was:" >&5
20085 cat conftest.$ac_ext >&5
20086 eval "$as_ac_var=no"
20088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20092 if test `eval echo '${'$as_ac_var'}'` = yes; then
20093 cat >>confdefs.h <<_ACEOF
20094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20100 echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
20101 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
20102 if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20106 cat >conftest.$ac_ext <<_ACEOF
20107 #line $LINENO "configure"
20108 #include "confdefs.h"
20115 ldap_set_rebind_proc(0, 0, 0);
20120 rm -f conftest.$ac_objext
20121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20122 (eval $ac_compile) 2>&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } &&
20126 { ac_try='test -s conftest.$ac_objext'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 pam_ldap_cv_ldap_set_rebind_proc=3
20134 echo "$as_me: failed program was:" >&5
20135 cat conftest.$ac_ext >&5
20136 pam_ldap_cv_ldap_set_rebind_proc=2
20138 rm -f conftest.$ac_objext conftest.$ac_ext
20140 echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
20141 echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
20143 cat >>confdefs.h <<_ACEOF
20144 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
20150 ########################################################
20151 # Compile with MySQL support?
20153 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
20154 if test "${with_mysql_prefix+set}" = set; then
20155 withval="$with_mysql_prefix"
20156 mysql_prefix="$withval"
20161 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
20162 if test "${with_mysql_exec_prefix+set}" = set; then
20163 withval="$with_mysql_exec_prefix"
20164 mysql_exec_prefix="$withval"
20166 mysql_exec_prefix=""
20168 # Check whether --enable-mysqltest or --disable-mysqltest was given.
20169 if test "${enable_mysqltest+set}" = set; then
20170 enableval="$enable_mysqltest"
20173 enable_mysqltest=yes
20176 if test x$mysql_exec_prefix != x ; then
20177 mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
20178 if test x${MYSQL_CONFIG+set} != xset ; then
20179 MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
20182 if test x$mysql_prefix != x ; then
20183 mysql_args="$mysql_args --prefix=$mysql_prefix"
20184 if test x${MYSQL_CONFIG+set} != xset ; then
20185 MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
20190 # Extract the first word of "mysql_config", so it can be a program name with args.
20191 set dummy mysql_config; ac_word=$2
20192 echo "$as_me:$LINENO: checking for $ac_word" >&5
20193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20194 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
20197 case $MYSQL_CONFIG in
20199 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
20202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20203 for as_dir in $PATH
20206 test -z "$as_dir" && as_dir=.
20207 for ac_exec_ext in '' $ac_executable_extensions; do
20208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20209 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20216 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
20220 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
20222 if test -n "$MYSQL_CONFIG"; then
20223 echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
20224 echo "${ECHO_T}$MYSQL_CONFIG" >&6
20226 echo "$as_me:$LINENO: result: no" >&5
20227 echo "${ECHO_T}no" >&6
20230 min_mysql_version=0.11.0
20231 echo "$as_me:$LINENO: checking for MYSQL - version >= $min_mysql_version" >&5
20232 echo $ECHO_N "checking for MYSQL - version >= $min_mysql_version... $ECHO_C" >&6
20234 if test "$MYSQL_CONFIG" = "no" ; then
20237 MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
20238 MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
20240 mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
20241 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20242 mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
20243 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20244 mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
20245 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20246 if test "x$enable_mysqltest" = "xyes" ; then
20247 ac_save_CFLAGS="$CFLAGS"
20248 ac_save_LIBS="$LIBS"
20249 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20250 LIBS="$LIBS $MYSQL_LIBS"
20251 rm -f conf.mysqltest
20252 if test "$cross_compiling" = yes; then
20253 echo $ac_n "cross compiling; assumed OK... $ac_c"
20255 cat >conftest.$ac_ext <<_ACEOF
20256 #line $LINENO "configure"
20257 #include "confdefs.h"
20260 #include <stdlib.h>
20261 #include <string.h>
20265 my_strdup (char *str)
20271 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
20272 strcpy (new_str, str);
20280 int main (int argc, char *argv[])
20282 int major, minor, micro;
20285 /* This hangs on some systems (?)
20286 system ("touch conf.mysqltest");
20288 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
20290 /* HP/UX 9 (%@#!) writes to sscanf strings */
20291 tmp_version = my_strdup("$min_mysql_version");
20292 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
20293 printf("%s, bad version string\n", "$min_mysql_version");
20297 if (($mysql_major_version > major) ||
20298 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
20299 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
20305 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
20306 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
20307 printf("*** best to upgrade to the required version.\n");
20308 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
20309 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
20310 printf("*** config.cache before re-running configure\n");
20317 rm -f conftest$ac_exeext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20319 (eval $ac_link) 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324 (eval $ac_try) 2>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20330 echo "$as_me: program exited with status $ac_status" >&5
20331 echo "$as_me: failed program was:" >&5
20332 cat conftest.$ac_ext >&5
20333 ( exit $ac_status )
20336 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20338 CFLAGS="$ac_save_CFLAGS"
20339 LIBS="$ac_save_LIBS"
20342 if test "x$no_mysql" = x ; then
20343 echo "$as_me:$LINENO: result: yes" >&5
20344 echo "${ECHO_T}yes" >&6
20347 echo "$as_me:$LINENO: result: no" >&5
20348 echo "${ECHO_T}no" >&6
20349 if test "$MYSQL_CONFIG" = "no" ; then
20350 echo "*** The mysql_config script installed by MYSQL could not be found"
20351 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
20352 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
20353 echo "*** full path to mysql_config."
20355 if test -f conf.mysqltest ; then
20358 echo "*** Could not run MYSQL test program, checking why..."
20359 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20360 LIBS="$LIBS $MYSQL_LIBS"
20361 cat >conftest.$ac_ext <<_ACEOF
20362 #line $LINENO "configure"
20363 #include "confdefs.h"
20368 int main(int argc, char *argv[])
20371 #define main K_and_R_C_main
20381 rm -f conftest.$ac_objext conftest$ac_exeext
20382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20383 (eval $ac_link) 2>&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } &&
20387 { ac_try='test -s conftest$ac_exeext'
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20393 echo "*** The test program compiled, but did not run. This usually means"
20394 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
20395 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
20396 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20397 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20398 echo "*** is required on your system"
20400 echo "*** If you have an old version installed, it is best to remove it, although"
20401 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20403 echo "$as_me: failed program was:" >&5
20404 cat conftest.$ac_ext >&5
20405 echo "*** The test program failed to compile or link. See the file config.log for the"
20406 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
20407 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
20408 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
20410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20411 CFLAGS="$ac_save_CFLAGS"
20412 LIBS="$ac_save_LIBS"
20421 rm -f conf.mysqltest
20423 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20426 ########################################################
20427 # Compile with XML support?
20430 # Check whether --with-xml-prefix or --without-xml-prefix was given.
20431 if test "${with_xml_prefix+set}" = set; then
20432 withval="$with_xml_prefix"
20433 xml_config_prefix="$withval"
20435 xml_config_prefix=""
20438 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
20439 if test "${with_xml_exec_prefix+set}" = set; then
20440 withval="$with_xml_exec_prefix"
20441 xml_config_exec_prefix="$withval"
20443 xml_config_exec_prefix=""
20445 # Check whether --enable-xmltest or --disable-xmltest was given.
20446 if test "${enable_xmltest+set}" = set; then
20447 enableval="$enable_xmltest"
20453 if test x$xml_config_exec_prefix != x ; then
20454 xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
20455 if test x${XML2_CONFIG+set} != xset ; then
20456 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
20459 if test x$xml_config_prefix != x ; then
20460 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
20461 if test x${XML2_CONFIG+set} != xset ; then
20462 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
20466 # Extract the first word of "xml2-config", so it can be a program name with args.
20467 set dummy xml2-config; ac_word=$2
20468 echo "$as_me:$LINENO: checking for $ac_word" >&5
20469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20470 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 case $XML2_CONFIG in
20475 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
20478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20479 for as_dir in $PATH
20482 test -z "$as_dir" && as_dir=.
20483 for ac_exec_ext in '' $ac_executable_extensions; do
20484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20485 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20492 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
20496 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
20498 if test -n "$XML2_CONFIG"; then
20499 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
20500 echo "${ECHO_T}$XML2_CONFIG" >&6
20502 echo "$as_me:$LINENO: result: no" >&5
20503 echo "${ECHO_T}no" >&6
20506 min_xml_version=2.0.0
20507 echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
20508 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
20510 if test "$XML2_CONFIG" = "no" ; then
20513 XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
20514 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
20515 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
20516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20517 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
20518 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20519 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
20520 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20521 if test "x$enable_xmltest" = "xyes" ; then
20522 ac_save_CFLAGS="$CFLAGS"
20523 ac_save_LIBS="$LIBS"
20524 CFLAGS="$CFLAGS $XML_CFLAGS"
20525 LIBS="$XML_LIBS $LIBS"
20527 if test "$cross_compiling" = yes; then
20528 echo $ac_n "cross compiling; assumed OK... $ac_c"
20530 cat >conftest.$ac_ext <<_ACEOF
20531 #line $LINENO "configure"
20532 #include "confdefs.h"
20534 #include <stdlib.h>
20536 #include <string.h>
20537 #include <libxml/xmlversion.h>
20542 int xml_major_version, xml_minor_version, xml_micro_version;
20543 int major, minor, micro;
20546 system("touch conf.xmltest");
20548 /* Capture xml2-config output via autoconf/configure variables */
20549 /* HP/UX 9 (%@#!) writes to sscanf strings */
20550 tmp_version = (char *)strdup("$min_xml_version");
20551 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
20552 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
20557 /* Capture the version information from the header files */
20558 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
20559 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
20560 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
20565 /* Compare xml2-config output to the libxml headers */
20566 if ((xml_major_version != $xml_config_major_version) ||
20567 (xml_minor_version != $xml_config_minor_version) ||
20568 (xml_micro_version != $xml_config_micro_version))
20570 printf("*** libxml header files (version %d.%d.%d) do not match\n",
20571 xml_major_version, xml_minor_version, xml_micro_version);
20572 printf("*** xml2-config (version %d.%d.%d)\n",
20573 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
20576 /* Compare the headers to the library to make sure we match */
20577 /* Less than ideal -- doesn't provide us with return value feedback,
20578 * only exits if there's a serious mismatch between header and library.
20580 LIBXML_TEST_VERSION;
20582 /* Test that the library is greater than our minimum version */
20583 if ((xml_major_version > major) ||
20584 ((xml_major_version == major) && (xml_minor_version > minor)) ||
20585 ((xml_major_version == major) && (xml_minor_version == minor) &&
20586 (xml_micro_version >= micro)))
20592 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
20593 xml_major_version, xml_minor_version, xml_micro_version);
20594 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
20595 major, minor, micro);
20596 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
20598 printf("*** If you have already installed a sufficiently new version, this error\n");
20599 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
20600 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20601 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
20602 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
20603 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20604 printf("*** so that the correct libraries are found at run-time))\n");
20610 rm -f conftest$ac_exeext
20611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20612 (eval $ac_link) 2>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617 (eval $ac_try) 2>&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; }; then
20623 echo "$as_me: program exited with status $ac_status" >&5
20624 echo "$as_me: failed program was:" >&5
20625 cat conftest.$ac_ext >&5
20626 ( exit $ac_status )
20629 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20631 CFLAGS="$ac_save_CFLAGS"
20632 LIBS="$ac_save_LIBS"
20636 if test "x$no_xml" = x ; then
20637 echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
20638 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
20641 echo "$as_me:$LINENO: result: no" >&5
20642 echo "${ECHO_T}no" >&6
20643 if test "$XML2_CONFIG" = "no" ; then
20644 echo "*** The xml2-config script installed by LIBXML could not be found"
20645 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
20646 echo "*** your path, or set the XML2_CONFIG environment variable to the"
20647 echo "*** full path to xml2-config."
20649 if test -f conf.xmltest ; then
20652 echo "*** Could not run libxml test program, checking why..."
20653 CFLAGS="$CFLAGS $XML_CFLAGS"
20654 LIBS="$LIBS $XML_LIBS"
20655 cat >conftest.$ac_ext <<_ACEOF
20656 #line $LINENO "configure"
20657 #include "confdefs.h"
20659 #include <libxml/xmlversion.h>
20665 LIBXML_TEST_VERSION; return 0;
20670 rm -f conftest.$ac_objext conftest$ac_exeext
20671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20672 (eval $ac_link) 2>&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } &&
20676 { ac_try='test -s conftest$ac_exeext'
20677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678 (eval $ac_try) 2>&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; }; then
20682 echo "*** The test program compiled, but did not run. This usually means"
20683 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
20684 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
20685 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20686 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20687 echo "*** is required on your system"
20689 echo "*** If you have an old version installed, it is best to remove it, although"
20690 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20692 echo "$as_me: failed program was:" >&5
20693 cat conftest.$ac_ext >&5
20694 echo "*** The test program failed to compile or link. See the file config.log for the"
20695 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
20696 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
20697 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
20699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20700 CFLAGS="$ac_save_CFLAGS"
20701 LIBS="$ac_save_LIBS"
20713 CFLAGS="$CFLAGS $XML_CFLAGS"
20715 #################################################
20716 # check for automount support
20717 echo "$as_me:$LINENO: checking whether to use AUTOMOUNT" >&5
20718 echo $ECHO_N "checking whether to use AUTOMOUNT... $ECHO_C" >&6
20720 # Check whether --with-automount or --without-automount was given.
20721 if test "${with_automount+set}" = set; then
20722 withval="$with_automount"
20725 echo "$as_me:$LINENO: result: yes" >&5
20726 echo "${ECHO_T}yes" >&6
20728 cat >>confdefs.h <<\_ACEOF
20729 #define WITH_AUTOMOUNT 1
20734 echo "$as_me:$LINENO: result: no" >&5
20735 echo "${ECHO_T}no" >&6
20739 echo "$as_me:$LINENO: result: no" >&5
20740 echo "${ECHO_T}no" >&6
20744 #################################################
20745 # check for smbmount support
20746 echo "$as_me:$LINENO: checking whether to use SMBMOUNT" >&5
20747 echo $ECHO_N "checking whether to use SMBMOUNT... $ECHO_C" >&6
20749 # Check whether --with-smbmount or --without-smbmount was given.
20750 if test "${with_smbmount+set}" = set; then
20751 withval="$with_smbmount"
20756 echo "$as_me:$LINENO: result: yes" >&5
20757 echo "${ECHO_T}yes" >&6
20759 cat >>confdefs.h <<\_ACEOF
20760 #define WITH_SMBMOUNT 1
20763 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
20766 { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
20767 echo "$as_me: error: not on a linux system!" >&2;}
20768 { (exit 1); exit 1; }; }
20773 echo "$as_me:$LINENO: result: no" >&5
20774 echo "${ECHO_T}no" >&6
20779 echo "$as_me:$LINENO: result: no" >&5
20780 echo "${ECHO_T}no" >&6
20786 #################################################
20787 # check for a PAM clear-text auth, accounts, password and session support
20788 with_pam_for_crypt=no
20789 echo "$as_me:$LINENO: checking whether to use PAM" >&5
20790 echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
20792 # Check whether --with-pam or --without-pam was given.
20793 if test "${with_pam+set}" = set; then
20794 withval="$with_pam"
20797 echo "$as_me:$LINENO: result: yes" >&5
20798 echo "${ECHO_T}yes" >&6
20800 cat >>confdefs.h <<\_ACEOF
20804 AUTHLIBS="$AUTHLIBS -lpam"
20805 with_pam_for_crypt=yes
20808 echo "$as_me:$LINENO: result: no" >&5
20809 echo "${ECHO_T}no" >&6
20813 echo "$as_me:$LINENO: result: no" >&5
20814 echo "${ECHO_T}no" >&6
20818 # we can't build a pam module if we don't have pam.
20819 echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
20820 echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
20821 if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20824 ac_check_lib_save_LIBS=$LIBS
20826 cat >conftest.$ac_ext <<_ACEOF
20827 #line $LINENO "configure"
20828 #include "confdefs.h"
20830 /* Override any gcc2 internal prototype to avoid an error. */
20834 /* We use char because int might match the return type of a gcc2
20835 builtin and then its argument prototype would still apply. */
20836 char pam_get_data ();
20845 rm -f conftest.$ac_objext conftest$ac_exeext
20846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20847 (eval $ac_link) 2>&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } &&
20851 { ac_try='test -s conftest$ac_exeext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ac_cv_lib_pam_pam_get_data=yes
20859 echo "$as_me: failed program was:" >&5
20860 cat conftest.$ac_ext >&5
20861 ac_cv_lib_pam_pam_get_data=no
20863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20864 LIBS=$ac_check_lib_save_LIBS
20866 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
20867 echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
20868 if test $ac_cv_lib_pam_pam_get_data = yes; then
20870 cat >>confdefs.h <<\_ACEOF
20871 #define HAVE_LIBPAM 1
20877 #################################################
20878 # check for pam_smbpass support
20879 echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
20880 echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
20882 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
20883 if test "${with_pam_smbpass+set}" = set; then
20884 withval="$with_pam_smbpass"
20887 echo "$as_me:$LINENO: result: yes" >&5
20888 echo "${ECHO_T}yes" >&6
20890 # Conditions under which pam_smbpass should not be built.
20892 if test x$PICFLAG = x; then
20893 echo "$as_me:$LINENO: result: No support for PIC code - disabling pam_smbpass" >&5
20894 echo "${ECHO_T}No support for PIC code - disabling pam_smbpass" >&6
20896 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
20897 echo "$as_me:$LINENO: result: No libpam found -- disabling pam_smbpass" >&5
20898 echo "${ECHO_T}No libpam found -- disabling pam_smbpass" >&6
20901 PAM_MOD="bin/pam_smbpass.so"
20905 echo "$as_me:$LINENO: result: no" >&5
20906 echo "${ECHO_T}no" >&6
20910 echo "$as_me:$LINENO: result: no" >&5
20911 echo "${ECHO_T}no" >&6
20916 ###############################################
20917 # test for where we get crypt() from, but only
20919 if test x"$with_pam_for_crypt" = x"no"; then
20921 for ac_func in crypt
20923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20924 echo "$as_me:$LINENO: checking for $ac_func" >&5
20925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20926 if eval "test \"\${$as_ac_var+set}\" = set"; then
20927 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 cat >conftest.$ac_ext <<_ACEOF
20930 #line $LINENO "configure"
20931 #include "confdefs.h"
20932 /* System header to define __stub macros and hopefully few prototypes,
20933 which can conflict with char $ac_func (); below. */
20934 #include <assert.h>
20935 /* Override any gcc2 internal prototype to avoid an error. */
20939 /* We use char because int might match the return type of a gcc2
20940 builtin and then its argument prototype would still apply. */
20947 /* The GNU C library defines this for functions which it implements
20948 to always fail with ENOSYS. Some functions are actually named
20949 something starting with __ and the normal name is an alias. */
20950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20960 rm -f conftest.$ac_objext conftest$ac_exeext
20961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20962 (eval $ac_link) 2>&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } &&
20966 { ac_try='test -s conftest$ac_exeext'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 eval "$as_ac_var=yes"
20974 echo "$as_me: failed program was:" >&5
20975 cat conftest.$ac_ext >&5
20976 eval "$as_ac_var=no"
20978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20982 if test `eval echo '${'$as_ac_var'}'` = yes; then
20983 cat >>confdefs.h <<_ACEOF
20984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20990 if test x"$ac_cv_func_crypt" = x"no"; then
20991 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20992 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20993 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20996 ac_check_lib_save_LIBS=$LIBS
20997 LIBS="-lcrypt $LIBS"
20998 cat >conftest.$ac_ext <<_ACEOF
20999 #line $LINENO "configure"
21000 #include "confdefs.h"
21002 /* Override any gcc2 internal prototype to avoid an error. */
21006 /* We use char because int might match the return type of a gcc2
21007 builtin and then its argument prototype would still apply. */
21017 rm -f conftest.$ac_objext conftest$ac_exeext
21018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21019 (eval $ac_link) 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } &&
21023 { ac_try='test -s conftest$ac_exeext'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 ac_cv_lib_crypt_crypt=yes
21031 echo "$as_me: failed program was:" >&5
21032 cat conftest.$ac_ext >&5
21033 ac_cv_lib_crypt_crypt=no
21035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21036 LIBS=$ac_check_lib_save_LIBS
21038 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21039 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
21040 if test $ac_cv_lib_crypt_crypt = yes; then
21041 AUTHLIBS="$AUTHLIBS -lcrypt";
21043 cat >>confdefs.h <<\_ACEOF
21044 #define HAVE_CRYPT 1
21053 ## moved after the check for -lcrypt in order to
21054 ## ensure that the necessary libraries are included
21055 ## check checking for truncated salt. Wrapped by the
21056 ## $with_pam_for_crypt variable as above --jerry
21058 if test $with_pam_for_crypt = no; then
21059 echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
21060 echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
21061 if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
21062 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 LIBS="$AUTHLIBS $LIBS"
21067 if test "$cross_compiling" = yes; then
21068 samba_cv_HAVE_TRUNCATED_SALT=cross
21070 cat >conftest.$ac_ext <<_ACEOF
21071 #line $LINENO "configure"
21072 #include "confdefs.h"
21073 #include "${srcdir-.}/tests/crypttest.c"
21075 rm -f conftest$ac_exeext
21076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21077 (eval $ac_link) 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082 (eval $ac_try) 2>&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); }; }; then
21086 samba_cv_HAVE_TRUNCATED_SALT=no
21088 echo "$as_me: program exited with status $ac_status" >&5
21089 echo "$as_me: failed program was:" >&5
21090 cat conftest.$ac_ext >&5
21091 ( exit $ac_status )
21092 samba_cv_HAVE_TRUNCATED_SALT=yes
21094 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21098 echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
21099 echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
21100 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
21102 cat >>confdefs.h <<\_ACEOF
21103 #define HAVE_TRUNCATED_SALT 1
21109 ########################################################################################
21111 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
21113 ########################################################################################
21115 #################################################
21116 # check for a LDAP password database configuration backwards compatibility
21117 echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
21118 echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
21120 # Check whether --with-ldapsam or --without-ldapsam was given.
21121 if test "${with_ldapsam+set}" = set; then
21122 withval="$with_ldapsam"
21125 echo "$as_me:$LINENO: result: yes" >&5
21126 echo "${ECHO_T}yes" >&6
21128 cat >>confdefs.h <<\_ACEOF
21129 #define WITH_LDAP_SAMCONFIG 1
21134 echo "$as_me:$LINENO: result: no" >&5
21135 echo "${ECHO_T}no" >&6
21139 echo "$as_me:$LINENO: result: no" >&5
21140 echo "${ECHO_T}no" >&6
21144 #################################################
21145 # check for a TDB password database
21146 echo "$as_me:$LINENO: checking whether to use TDB SAM database" >&5
21147 echo $ECHO_N "checking whether to use TDB SAM database... $ECHO_C" >&6
21149 # Check whether --with-tdbsam or --without-tdbsam was given.
21150 if test "${with_tdbsam+set}" = set; then
21151 withval="$with_tdbsam"
21154 echo "$as_me:$LINENO: result: yes" >&5
21155 echo "${ECHO_T}yes" >&6
21157 cat >>confdefs.h <<\_ACEOF
21158 #define WITH_TDB_SAM 1
21163 echo "$as_me:$LINENO: result: no" >&5
21164 echo "${ECHO_T}no" >&6
21168 echo "$as_me:$LINENO: result: no" >&5
21169 echo "${ECHO_T}no" >&6
21173 #################################################
21174 # check for a NISPLUS password database
21175 echo "$as_me:$LINENO: checking whether to use NISPLUS SAM database" >&5
21176 echo $ECHO_N "checking whether to use NISPLUS SAM database... $ECHO_C" >&6
21178 # Check whether --with-nisplussam or --without-nisplussam was given.
21179 if test "${with_nisplussam+set}" = set; then
21180 withval="$with_nisplussam"
21183 echo "$as_me:$LINENO: result: yes" >&5
21184 echo "${ECHO_T}yes" >&6
21186 cat >>confdefs.h <<\_ACEOF
21187 #define WITH_NISPLUS_SAM 1
21192 echo "$as_me:$LINENO: result: no" >&5
21193 echo "${ECHO_T}no" >&6
21197 echo "$as_me:$LINENO: result: no" >&5
21198 echo "${ECHO_T}no" >&6
21202 ########################################################################################
21204 ## END OF TESTS FOR SAM BACKENDS.
21206 ########################################################################################
21208 #################################################
21209 # check for a NISPLUS_HOME support
21210 echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
21211 echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
21213 # Check whether --with-nisplus-home or --without-nisplus-home was given.
21214 if test "${with_nisplus_home+set}" = set; then
21215 withval="$with_nisplus_home"
21218 echo "$as_me:$LINENO: result: yes" >&5
21219 echo "${ECHO_T}yes" >&6
21221 cat >>confdefs.h <<\_ACEOF
21222 #define WITH_NISPLUS_HOME 1
21227 echo "$as_me:$LINENO: result: no" >&5
21228 echo "${ECHO_T}no" >&6
21232 echo "$as_me:$LINENO: result: no" >&5
21233 echo "${ECHO_T}no" >&6
21237 #################################################
21238 # check for syslog logging
21239 echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
21240 echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
21242 # Check whether --with-syslog or --without-syslog was given.
21243 if test "${with_syslog+set}" = set; then
21244 withval="$with_syslog"
21247 echo "$as_me:$LINENO: result: yes" >&5
21248 echo "${ECHO_T}yes" >&6
21250 cat >>confdefs.h <<\_ACEOF
21251 #define WITH_SYSLOG 1
21256 echo "$as_me:$LINENO: result: no" >&5
21257 echo "${ECHO_T}no" >&6
21261 echo "$as_me:$LINENO: result: no" >&5
21262 echo "${ECHO_T}no" >&6
21266 #################################################
21267 # check for a shared memory profiling support
21268 echo "$as_me:$LINENO: checking whether to use profiling" >&5
21269 echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
21271 # Check whether --with-profiling-data or --without-profiling-data was given.
21272 if test "${with_profiling_data+set}" = set; then
21273 withval="$with_profiling_data"
21276 echo "$as_me:$LINENO: result: yes" >&5
21277 echo "${ECHO_T}yes" >&6
21279 cat >>confdefs.h <<\_ACEOF
21280 #define WITH_PROFILE 1
21285 echo "$as_me:$LINENO: result: no" >&5
21286 echo "${ECHO_T}no" >&6
21290 echo "$as_me:$LINENO: result: no" >&5
21291 echo "${ECHO_T}no" >&6
21296 #################################################
21297 # check for experimental disk-quotas support
21298 QUOTAOBJS=smbd/noquotas.o
21300 echo "$as_me:$LINENO: checking whether to support disk-quotas" >&5
21301 echo $ECHO_N "checking whether to support disk-quotas... $ECHO_C" >&6
21303 # Check whether --with-quotas or --without-quotas was given.
21304 if test "${with_quotas+set}" = set; then
21305 withval="$with_quotas"
21308 echo "$as_me:$LINENO: result: yes" >&5
21309 echo "${ECHO_T}yes" >&6
21312 # Check for kernel 2.4.x quota braindamage...
21313 echo "$as_me:$LINENO: checking for linux 2.4.x quota braindamage.." >&5
21314 echo $ECHO_N "checking for linux 2.4.x quota braindamage..... $ECHO_C" >&6
21315 if test "${samba_cv_linux_2_4_quota_braindamage+set}" = set; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21319 cat >conftest.$ac_ext <<_ACEOF
21320 #line $LINENO "configure"
21321 #include "confdefs.h"
21323 #include <sys/types.h>
21324 #include <asm/types.h>
21325 #include <linux/quota.h>
21326 #include <mntent.h>
21327 #include <linux/unistd.h>
21331 struct mem_dqblk D;
21336 rm -f conftest.$ac_objext
21337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21338 (eval $ac_compile) 2>&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } &&
21342 { ac_try='test -s conftest.$ac_objext'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 samba_cv_linux_2_4_quota_braindamage=yes
21350 echo "$as_me: failed program was:" >&5
21351 cat conftest.$ac_ext >&5
21352 samba_cv_linux_2_4_quota_braindamage=no
21354 rm -f conftest.$ac_objext conftest.$ac_ext
21356 echo "$as_me:$LINENO: result: $samba_cv_linux_2_4_quota_braindamage" >&5
21357 echo "${ECHO_T}$samba_cv_linux_2_4_quota_braindamage" >&6
21358 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
21360 cat >>confdefs.h <<\_ACEOF
21361 #define LINUX_QUOTAS_2 1
21366 cat >>confdefs.h <<\_ACEOF
21367 #define LINUX_QUOTAS_1 1
21375 QUOTAOBJS=smbd/quotas.o
21377 cat >>confdefs.h <<\_ACEOF
21378 #define WITH_QUOTAS 1
21383 echo "$as_me:$LINENO: result: no" >&5
21384 echo "${ECHO_T}no" >&6
21388 echo "$as_me:$LINENO: result: no" >&5
21389 echo "${ECHO_T}no" >&6
21394 #################################################
21395 # check for experimental utmp accounting
21397 echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
21398 echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
21400 # Check whether --with-utmp or --without-utmp was given.
21401 if test "${with_utmp+set}" = set; then
21402 withval="$with_utmp"
21405 echo "$as_me:$LINENO: result: yes" >&5
21406 echo "${ECHO_T}yes" >&6
21408 cat >>confdefs.h <<\_ACEOF
21409 #define WITH_UTMP 1
21414 echo "$as_me:$LINENO: result: no" >&5
21415 echo "${ECHO_T}no" >&6
21419 echo "$as_me:$LINENO: result: no" >&5
21420 echo "${ECHO_T}no" >&6
21424 #################################################
21425 # choose native language(s) of man pages
21426 echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
21427 echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
21429 # Check whether --with-manpages-langs or --without-manpages-langs was given.
21430 if test "${with_manpages_langs+set}" = set; then
21431 withval="$with_manpages_langs"
21434 { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
21435 echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
21439 manlangs="$withval"
21443 echo "$as_me:$LINENO: result: $manlangs" >&5
21444 echo "${ECHO_T}$manlangs" >&6
21445 manlangs=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
21449 echo "$as_me:$LINENO: result: $manlangs" >&5
21450 echo "${ECHO_T}$manlangs" >&6
21455 #################################################
21456 # should we build libsmbclient?
21458 LIBSMBCLIENT_SHARED=
21460 echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
21461 echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
21463 # Check whether --with-libsmbclient or --without-libsmbclient was given.
21464 if test "${with_libsmbclient+set}" = set; then
21465 withval="$with_libsmbclient"
21468 echo "$as_me:$LINENO: result: no" >&5
21469 echo "${ECHO_T}no" >&6
21472 if test $BLDSHARED = true; then
21473 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
21474 LIBSMBCLIENT=libsmbclient
21475 echo "$as_me:$LINENO: result: yes" >&5
21476 echo "${ECHO_T}yes" >&6
21478 echo "$as_me:$LINENO: result: no shared library support" >&5
21479 echo "${ECHO_T}no shared library support" >&6
21484 echo "$as_me:$LINENO: result: yes" >&5
21485 echo "${ECHO_T}yes" >&6
21490 #################################################
21491 # these tests are taken from the GNU fileutils package
21492 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
21493 echo "$as_me: checking how to get filesystem space usage..." >&6;}
21496 # Test for statvfs64.
21497 if test $space = no; then
21499 echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
21500 echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
21501 if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
21502 echo $ECHO_N "(cached) $ECHO_C" >&6
21504 if test "$cross_compiling" = yes; then
21505 fu_cv_sys_stat_statvfs64=cross
21507 cat >conftest.$ac_ext <<_ACEOF
21508 #line $LINENO "configure"
21509 #include "confdefs.h"
21511 #if defined(HAVE_UNISTD_H)
21512 #include <unistd.h>
21514 #include <sys/types.h>
21515 #include <sys/statvfs.h>
21518 struct statvfs64 fsd;
21519 exit (statvfs64 (".", &fsd));
21522 rm -f conftest$ac_exeext
21523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21524 (eval $ac_link) 2>&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
21533 fu_cv_sys_stat_statvfs64=yes
21535 echo "$as_me: program exited with status $ac_status" >&5
21536 echo "$as_me: failed program was:" >&5
21537 cat conftest.$ac_ext >&5
21538 ( exit $ac_status )
21539 fu_cv_sys_stat_statvfs64=no
21541 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21544 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
21545 echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
21546 if test $fu_cv_sys_stat_statvfs64 = yes; then
21549 cat >>confdefs.h <<\_ACEOF
21550 #define STAT_STATVFS64 1
21556 # Perform only the link test since it seems there are no variants of the
21557 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
21558 # because that got a false positive on SCO OSR5. Adding the declaration
21559 # of a `struct statvfs' causes this test to fail (as it should) on such
21560 # systems. That system is reported to work fine with STAT_STATFS4 which
21561 # is what it gets when this test fails.
21562 if test $space = no; then
21564 echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
21565 echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
21566 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21569 cat >conftest.$ac_ext <<_ACEOF
21570 #line $LINENO "configure"
21571 #include "confdefs.h"
21572 #include <sys/types.h>
21573 #include <sys/statvfs.h>
21577 struct statvfs fsd; statvfs (0, &fsd);
21582 rm -f conftest.$ac_objext conftest$ac_exeext
21583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21584 (eval $ac_link) 2>&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); } &&
21588 { ac_try='test -s conftest$ac_exeext'
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; }; then
21594 fu_cv_sys_stat_statvfs=yes
21596 echo "$as_me: failed program was:" >&5
21597 cat conftest.$ac_ext >&5
21598 fu_cv_sys_stat_statvfs=no
21600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21602 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
21603 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
21604 if test $fu_cv_sys_stat_statvfs = yes; then
21607 cat >>confdefs.h <<\_ACEOF
21608 #define STAT_STATVFS 1
21614 if test $space = no; then
21615 # DEC Alpha running OSF/1
21616 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
21617 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
21618 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21621 if test "$cross_compiling" = yes; then
21622 fu_cv_sys_stat_statfs3_osf1=no
21624 cat >conftest.$ac_ext <<_ACEOF
21625 #line $LINENO "configure"
21626 #include "confdefs.h"
21628 #include <sys/param.h>
21629 #include <sys/types.h>
21630 #include <sys/mount.h>
21635 exit (statfs (".", &fsd, sizeof (struct statfs)));
21638 rm -f conftest$ac_exeext
21639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21640 (eval $ac_link) 2>&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; }; then
21649 fu_cv_sys_stat_statfs3_osf1=yes
21651 echo "$as_me: program exited with status $ac_status" >&5
21652 echo "$as_me: failed program was:" >&5
21653 cat conftest.$ac_ext >&5
21654 ( exit $ac_status )
21655 fu_cv_sys_stat_statfs3_osf1=no
21657 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21661 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
21662 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
21663 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
21666 cat >>confdefs.h <<\_ACEOF
21667 #define STAT_STATFS3_OSF1 1
21673 if test $space = no; then
21675 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
21676 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
21677 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 if test "$cross_compiling" = yes; then
21681 fu_cv_sys_stat_statfs2_bsize=no
21683 cat >conftest.$ac_ext <<_ACEOF
21684 #line $LINENO "configure"
21685 #include "confdefs.h"
21687 #ifdef HAVE_SYS_PARAM_H
21688 #include <sys/param.h>
21690 #ifdef HAVE_SYS_MOUNT_H
21691 #include <sys/mount.h>
21693 #ifdef HAVE_SYS_VFS_H
21694 #include <sys/vfs.h>
21700 exit (statfs (".", &fsd));
21703 rm -f conftest$ac_exeext
21704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21705 (eval $ac_link) 2>&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710 (eval $ac_try) 2>&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; }; then
21714 fu_cv_sys_stat_statfs2_bsize=yes
21716 echo "$as_me: program exited with status $ac_status" >&5
21717 echo "$as_me: failed program was:" >&5
21718 cat conftest.$ac_ext >&5
21719 ( exit $ac_status )
21720 fu_cv_sys_stat_statfs2_bsize=no
21722 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21726 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
21727 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
21728 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
21731 cat >>confdefs.h <<\_ACEOF
21732 #define STAT_STATFS2_BSIZE 1
21738 if test $space = no; then
21740 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
21741 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
21742 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 if test "$cross_compiling" = yes; then
21746 fu_cv_sys_stat_statfs4=no
21748 cat >conftest.$ac_ext <<_ACEOF
21749 #line $LINENO "configure"
21750 #include "confdefs.h"
21751 #include <sys/types.h>
21752 #include <sys/statfs.h>
21756 exit (statfs (".", &fsd, sizeof fsd, 0));
21759 rm -f conftest$ac_exeext
21760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21761 (eval $ac_link) 2>&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21770 fu_cv_sys_stat_statfs4=yes
21772 echo "$as_me: program exited with status $ac_status" >&5
21773 echo "$as_me: failed program was:" >&5
21774 cat conftest.$ac_ext >&5
21775 ( exit $ac_status )
21776 fu_cv_sys_stat_statfs4=no
21778 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21782 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
21783 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
21784 if test $fu_cv_sys_stat_statfs4 = yes; then
21787 cat >>confdefs.h <<\_ACEOF
21788 #define STAT_STATFS4 1
21794 if test $space = no; then
21795 # 4.4BSD and NetBSD
21796 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
21797 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
21798 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
21801 if test "$cross_compiling" = yes; then
21802 fu_cv_sys_stat_statfs2_fsize=no
21804 cat >conftest.$ac_ext <<_ACEOF
21805 #line $LINENO "configure"
21806 #include "confdefs.h"
21807 #include <sys/types.h>
21808 #ifdef HAVE_SYS_PARAM_H
21809 #include <sys/param.h>
21811 #ifdef HAVE_SYS_MOUNT_H
21812 #include <sys/mount.h>
21818 exit (statfs (".", &fsd));
21821 rm -f conftest$ac_exeext
21822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21823 (eval $ac_link) 2>&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
21832 fu_cv_sys_stat_statfs2_fsize=yes
21834 echo "$as_me: program exited with status $ac_status" >&5
21835 echo "$as_me: failed program was:" >&5
21836 cat conftest.$ac_ext >&5
21837 ( exit $ac_status )
21838 fu_cv_sys_stat_statfs2_fsize=no
21840 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21844 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
21845 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
21846 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
21849 cat >>confdefs.h <<\_ACEOF
21850 #define STAT_STATFS2_FSIZE 1
21856 if test $space = no; then
21858 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
21859 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
21860 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 if test "$cross_compiling" = yes; then
21864 fu_cv_sys_stat_fs_data=no
21866 cat >conftest.$ac_ext <<_ACEOF
21867 #line $LINENO "configure"
21868 #include "confdefs.h"
21869 #include <sys/types.h>
21870 #ifdef HAVE_SYS_PARAM_H
21871 #include <sys/param.h>
21873 #ifdef HAVE_SYS_MOUNT_H
21874 #include <sys/mount.h>
21876 #ifdef HAVE_SYS_FS_TYPES_H
21877 #include <sys/fs_types.h>
21881 struct fs_data fsd;
21882 /* Ultrix's statfs returns 1 for success,
21883 0 for not mounted, -1 for failure. */
21884 exit (statfs (".", &fsd) != 1);
21887 rm -f conftest$ac_exeext
21888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21889 (eval $ac_link) 2>&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; }; then
21898 fu_cv_sys_stat_fs_data=yes
21900 echo "$as_me: program exited with status $ac_status" >&5
21901 echo "$as_me: failed program was:" >&5
21902 cat conftest.$ac_ext >&5
21903 ( exit $ac_status )
21904 fu_cv_sys_stat_fs_data=no
21906 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21910 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
21911 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
21912 if test $fu_cv_sys_stat_fs_data = yes; then
21915 cat >>confdefs.h <<\_ACEOF
21916 #define STAT_STATFS2_FS_DATA 1
21923 # As a gating factor for large file support, in order to
21924 # use <4GB files we must have the following minimal support
21926 # long long, and a 64 bit off_t or off64_t.
21927 # If we don't have all of these then disable large
21930 echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
21931 echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
21932 cat >conftest.$ac_ext <<_ACEOF
21933 #line $LINENO "configure"
21934 #include "confdefs.h"
21936 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
21937 #include <sys/types.h>
21950 rm -f conftest.$ac_objext
21951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21952 (eval $ac_compile) 2>&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); } &&
21956 { ac_try='test -s conftest.$ac_objext'
21957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958 (eval $ac_try) 2>&5
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; }; then
21962 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
21964 echo "$as_me: failed program was:" >&5
21965 cat conftest.$ac_ext >&5
21966 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
21968 rm -f conftest.$ac_objext conftest.$ac_ext
21969 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
21971 cat >>confdefs.h <<\_ACEOF
21972 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
21976 echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
21977 echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
21980 # Check whether --with-spinlocks or --without-spinlocks was given.
21981 if test "${with_spinlocks+set}" = set; then
21982 withval="$with_spinlocks"
21985 if test "x$with_spinlocks" = "xyes"; then
21987 cat >>confdefs.h <<\_ACEOF
21988 #define USE_SPINLOCKS 1
21992 case "$host_cpu" in
21995 cat >>confdefs.h <<\_ACEOF
21996 #define SPARC_SPINLOCKS 1
22001 i386|i486|i586|i686)
22003 cat >>confdefs.h <<\_ACEOF
22004 #define INTEL_SPINLOCKS 1
22011 cat >>confdefs.h <<\_ACEOF
22012 #define MIPS_SPINLOCKS 1
22019 cat >>confdefs.h <<\_ACEOF
22020 #define POWERPC_SPINLOCKS 1
22027 #################################################
22028 # check for ACL support
22030 echo "$as_me:$LINENO: checking whether to support ACLs" >&5
22031 echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
22033 # Check whether --with-acl-support or --without-acl-support was given.
22034 if test "${with_acl_support+set}" = set; then
22035 withval="$with_acl_support"
22041 echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
22042 echo "${ECHO_T}Using UnixWare ACLs" >&6
22044 cat >>confdefs.h <<\_ACEOF
22045 #define HAVE_UNIXWARE_ACLS 1
22050 echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
22051 echo "${ECHO_T}Using solaris ACLs" >&6
22053 cat >>confdefs.h <<\_ACEOF
22054 #define HAVE_SOLARIS_ACLS 1
22059 echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
22060 echo "${ECHO_T}Using HPUX ACLs" >&6
22062 cat >>confdefs.h <<\_ACEOF
22063 #define HAVE_HPUX_ACLS 1
22068 echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
22069 echo "${ECHO_T}Using IRIX ACLs" >&6
22071 cat >>confdefs.h <<\_ACEOF
22072 #define HAVE_IRIX_ACLS 1
22077 echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
22078 echo "${ECHO_T}Using AIX ACLs" >&6
22080 cat >>confdefs.h <<\_ACEOF
22081 #define HAVE_AIX_ACLS 1
22086 echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
22087 echo "${ECHO_T}Using Tru64 ACLs" >&6
22089 cat >>confdefs.h <<\_ACEOF
22090 #define HAVE_TRU64_ACLS 1
22093 LIBS="$LIBS -lpacl"
22097 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
22098 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
22099 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
22100 echo $ECHO_N "(cached) $ECHO_C" >&6
22102 ac_check_lib_save_LIBS=$LIBS
22104 cat >conftest.$ac_ext <<_ACEOF
22105 #line $LINENO "configure"
22106 #include "confdefs.h"
22108 /* Override any gcc2 internal prototype to avoid an error. */
22112 /* We use char because int might match the return type of a gcc2
22113 builtin and then its argument prototype would still apply. */
22114 char acl_get_file ();
22123 rm -f conftest.$ac_objext conftest$ac_exeext
22124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22125 (eval $ac_link) 2>&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } &&
22129 { ac_try='test -s conftest$ac_exeext'
22130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; }; then
22135 ac_cv_lib_acl_acl_get_file=yes
22137 echo "$as_me: failed program was:" >&5
22138 cat conftest.$ac_ext >&5
22139 ac_cv_lib_acl_acl_get_file=no
22141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22142 LIBS=$ac_check_lib_save_LIBS
22144 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
22145 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
22146 if test $ac_cv_lib_acl_acl_get_file = yes; then
22147 cat >>confdefs.h <<_ACEOF
22148 #define HAVE_LIBACL 1
22155 echo "$as_me:$LINENO: checking for ACL support" >&5
22156 echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
22157 if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
22158 echo $ECHO_N "(cached) $ECHO_C" >&6
22161 cat >conftest.$ac_ext <<_ACEOF
22162 #line $LINENO "configure"
22163 #include "confdefs.h"
22164 #include <sys/types.h>
22165 #include <sys/acl.h>
22169 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
22174 rm -f conftest.$ac_objext conftest$ac_exeext
22175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22176 (eval $ac_link) 2>&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } &&
22180 { ac_try='test -s conftest$ac_exeext'
22181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182 (eval $ac_try) 2>&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); }; }; then
22186 samba_cv_HAVE_POSIX_ACLS=yes
22188 echo "$as_me: failed program was:" >&5
22189 cat conftest.$ac_ext >&5
22190 samba_cv_HAVE_POSIX_ACLS=no
22192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22194 echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
22195 echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
22196 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
22197 echo "$as_me:$LINENO: result: Using posix ACLs" >&5
22198 echo "${ECHO_T}Using posix ACLs" >&6
22200 cat >>confdefs.h <<\_ACEOF
22201 #define HAVE_POSIX_ACLS 1
22204 echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
22205 echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
22206 if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
22207 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 cat >conftest.$ac_ext <<_ACEOF
22211 #line $LINENO "configure"
22212 #include "confdefs.h"
22213 #include <sys/types.h>
22214 #include <sys/acl.h>
22218 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
22223 rm -f conftest.$ac_objext conftest$ac_exeext
22224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22225 (eval $ac_link) 2>&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } &&
22229 { ac_try='test -s conftest$ac_exeext'
22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231 (eval $ac_try) 2>&5
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; }; then
22235 samba_cv_HAVE_ACL_GET_PERM_NP=yes
22237 echo "$as_me: failed program was:" >&5
22238 cat conftest.$ac_ext >&5
22239 samba_cv_HAVE_ACL_GET_PERM_NP=no
22241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22243 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
22244 echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
22245 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
22247 cat >>confdefs.h <<\_ACEOF
22248 #define HAVE_ACL_GET_PERM_NP 1
22257 echo "$as_me:$LINENO: result: no" >&5
22258 echo "${ECHO_T}no" >&6
22260 cat >>confdefs.h <<\_ACEOF
22261 #define HAVE_NO_ACLS 1
22268 cat >>confdefs.h <<\_ACEOF
22269 #define HAVE_NO_ACLS 1
22272 echo "$as_me:$LINENO: result: no" >&5
22273 echo "${ECHO_T}no" >&6
22277 #################################################
22278 # check for sendfile support
22280 with_sendfile_support=yes
22281 echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
22282 echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
22284 # Check whether --with-sendfile-support or --without-sendfile-support was given.
22285 if test "${with_sendfile_support+set}" = set; then
22286 withval="$with_sendfile_support"
22290 echo "$as_me:$LINENO: result: yes" >&5
22291 echo "${ECHO_T}yes" >&6;
22295 echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
22296 echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
22297 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
22298 echo $ECHO_N "(cached) $ECHO_C" >&6
22301 cat >conftest.$ac_ext <<_ACEOF
22302 #line $LINENO "configure"
22303 #include "confdefs.h"
22304 #include <sys/sendfile.h>
22312 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
22318 rm -f conftest.$ac_objext conftest$ac_exeext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22320 (eval $ac_link) 2>&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } &&
22324 { ac_try='test -s conftest$ac_exeext'
22325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326 (eval $ac_try) 2>&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; }; then
22330 samba_cv_HAVE_SENDFILE64=yes
22332 echo "$as_me: failed program was:" >&5
22333 cat conftest.$ac_ext >&5
22334 samba_cv_HAVE_SENDFILE64=no
22336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22338 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
22339 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
22341 echo "$as_me:$LINENO: checking for linux sendfile support" >&5
22342 echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
22343 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 cat >conftest.$ac_ext <<_ACEOF
22348 #line $LINENO "configure"
22349 #include "confdefs.h"
22350 #include <sys/sendfile.h>
22358 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
22364 rm -f conftest.$ac_objext conftest$ac_exeext
22365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22366 (eval $ac_link) 2>&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } &&
22370 { ac_try='test -s conftest$ac_exeext'
22371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22372 (eval $ac_try) 2>&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); }; }; then
22376 samba_cv_HAVE_SENDFILE=yes
22378 echo "$as_me: failed program was:" >&5
22379 cat conftest.$ac_ext >&5
22380 samba_cv_HAVE_SENDFILE=no
22382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22384 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
22385 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
22387 # Try and cope with broken Linux sendfile....
22388 echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
22389 echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
22390 if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
22391 echo $ECHO_N "(cached) $ECHO_C" >&6
22394 cat >conftest.$ac_ext <<_ACEOF
22395 #line $LINENO "configure"
22396 #include "confdefs.h"
22398 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
22399 #undef _FILE_OFFSET_BITS
22401 #include <sys/sendfile.h>
22409 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
22415 rm -f conftest.$ac_objext conftest$ac_exeext
22416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22417 (eval $ac_link) 2>&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); } &&
22421 { ac_try='test -s conftest$ac_exeext'
22422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423 (eval $ac_try) 2>&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; }; then
22427 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
22429 echo "$as_me: failed program was:" >&5
22430 cat conftest.$ac_ext >&5
22431 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
22433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22435 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
22436 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
22438 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
22440 cat >>confdefs.h <<\_ACEOF
22441 #define HAVE_SENDFILE64 1
22445 cat >>confdefs.h <<\_ACEOF
22446 #define LINUX_SENDFILE_API 1
22450 cat >>confdefs.h <<\_ACEOF
22451 #define WITH_SENDFILE 1
22454 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
22456 cat >>confdefs.h <<\_ACEOF
22457 #define HAVE_SENDFILE 1
22461 cat >>confdefs.h <<\_ACEOF
22462 #define LINUX_SENDFILE_API 1
22466 cat >>confdefs.h <<\_ACEOF
22467 #define WITH_SENDFILE 1
22470 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
22472 cat >>confdefs.h <<\_ACEOF
22473 #define LINUX_BROKEN_SENDFILE_API 1
22477 cat >>confdefs.h <<\_ACEOF
22478 #define WITH_SENDFILE 1
22482 echo "$as_me:$LINENO: result: no" >&5
22483 echo "${ECHO_T}no" >&6;
22488 echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
22489 echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
22490 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22494 cat >conftest.$ac_ext <<_ACEOF
22495 #line $LINENO "configure"
22496 #include "confdefs.h"
22498 #include <sys/types.h>
22499 #include <sys/socket.h>
22500 #include <sys/uio.h>
22506 off_t offset, nwritten;
22507 struct sf_hdtr hdr;
22508 struct iovec hdtrl;
22509 hdr->headers = &hdtrl;
22511 hdr->trailers = NULL;
22513 hdtrl.iov_base = NULL;
22515 int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
22521 rm -f conftest.$ac_objext conftest$ac_exeext
22522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22523 (eval $ac_link) 2>&5
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } &&
22527 { ac_try='test -s conftest$ac_exeext'
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; }; then
22533 samba_cv_HAVE_SENDFILE=yes
22535 echo "$as_me: failed program was:" >&5
22536 cat conftest.$ac_ext >&5
22537 samba_cv_HAVE_SENDFILE=no
22539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22541 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
22542 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
22544 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
22546 cat >>confdefs.h <<\_ACEOF
22547 #define HAVE_SENDFILE 1
22551 cat >>confdefs.h <<\_ACEOF
22552 #define FREEBSD_SENDFILE_API 1
22556 cat >>confdefs.h <<\_ACEOF
22557 #define WITH_SENDFILE 1
22561 echo "$as_me:$LINENO: result: no" >&5
22562 echo "${ECHO_T}no" >&6;
22567 echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
22568 echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
22569 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22573 cat >conftest.$ac_ext <<_ACEOF
22574 #line $LINENO "configure"
22575 #include "confdefs.h"
22577 #include <sys/socket.h>
22578 #include <sys/uio.h>
22585 struct iovec hdtrl[2];
22589 hdtrl[0].iov_base = 0;
22590 hdtrl[0].iov_len = 0;
22592 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
22598 rm -f conftest.$ac_objext conftest$ac_exeext
22599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22600 (eval $ac_link) 2>&5
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } &&
22604 { ac_try='test -s conftest$ac_exeext'
22605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606 (eval $ac_try) 2>&5
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; }; then
22610 samba_cv_HAVE_SENDFILE64=yes
22612 echo "$as_me: failed program was:" >&5
22613 cat conftest.$ac_ext >&5
22614 samba_cv_HAVE_SENDFILE64=no
22616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22618 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
22619 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
22620 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
22622 cat >>confdefs.h <<\_ACEOF
22623 #define HAVE_SENDFILE64 1
22627 cat >>confdefs.h <<\_ACEOF
22628 #define HPUX_SENDFILE_API 1
22632 cat >>confdefs.h <<\_ACEOF
22633 #define WITH_SENDFILE 1
22637 echo "$as_me:$LINENO: result: no" >&5
22638 echo "${ECHO_T}no" >&6;
22641 echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
22642 echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
22643 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
22644 echo $ECHO_N "(cached) $ECHO_C" >&6
22647 cat >conftest.$ac_ext <<_ACEOF
22648 #line $LINENO "configure"
22649 #include "confdefs.h"
22651 #include <sys/socket.h>
22652 #include <sys/uio.h>
22659 struct iovec hdtrl[2];
22663 hdtrl[0].iov_base = 0;
22664 hdtrl[0].iov_len = 0;
22666 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
22672 rm -f conftest.$ac_objext conftest$ac_exeext
22673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22674 (eval $ac_link) 2>&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); } &&
22678 { ac_try='test -s conftest$ac_exeext'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
22684 samba_cv_HAVE_SENDFILE=yes
22686 echo "$as_me: failed program was:" >&5
22687 cat conftest.$ac_ext >&5
22688 samba_cv_HAVE_SENDFILE=no
22690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22692 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
22693 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
22694 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_SENDFILE 1
22701 cat >>confdefs.h <<\_ACEOF
22702 #define HPUX_SENDFILE_API 1
22706 cat >>confdefs.h <<\_ACEOF
22707 #define WITH_SENDFILE 1
22711 echo "$as_me:$LINENO: result: no" >&5
22712 echo "${ECHO_T}no" >&6;
22717 LIBS="$LIBS -lsendfile"
22718 echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
22719 echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
22720 if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
22721 echo $ECHO_N "(cached) $ECHO_C" >&6
22724 cat >conftest.$ac_ext <<_ACEOF
22725 #line $LINENO "configure"
22726 #include "confdefs.h"
22728 #include <sys/sendfile.h>
22735 struct sendfilevec vec[2];
22741 vec[0].sfv_fd = SFV_FD_SELF;
22742 vec[0].sfv_flag = 0;
22743 vec[0].sfv_off = 0;
22744 vec[0].sfv_len = 0;
22747 vec[1].sfv_flag = 0;
22748 vec[1].sfv_off = 0;
22749 vec[1].sfv_len = 0;
22750 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
22756 rm -f conftest.$ac_objext conftest$ac_exeext
22757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22758 (eval $ac_link) 2>&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); } &&
22762 { ac_try='test -s conftest$ac_exeext'
22763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22764 (eval $ac_try) 2>&5
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); }; }; then
22768 samba_cv_HAVE_SENDFILEV64=yes
22770 echo "$as_me: failed program was:" >&5
22771 cat conftest.$ac_ext >&5
22772 samba_cv_HAVE_SENDFILEV64=no
22774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22776 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
22777 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
22779 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
22781 cat >>confdefs.h <<\_ACEOF
22782 #define HAVE_SENDFILEV64 1
22786 cat >>confdefs.h <<\_ACEOF
22787 #define SOLARIS_SENDFILE_API 1
22791 cat >>confdefs.h <<\_ACEOF
22792 #define WITH_SENDFILE 1
22796 echo "$as_me:$LINENO: result: no" >&5
22797 echo "${ECHO_T}no" >&6;
22800 echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
22801 echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
22802 if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
22803 echo $ECHO_N "(cached) $ECHO_C" >&6
22806 cat >conftest.$ac_ext <<_ACEOF
22807 #line $LINENO "configure"
22808 #include "confdefs.h"
22810 #include <sys/sendfile.h>
22817 struct sendfilevec vec[2];
22823 vec[0].sfv_fd = SFV_FD_SELF;
22824 vec[0].sfv_flag = 0;
22825 vec[0].sfv_off = 0;
22826 vec[0].sfv_len = 0;
22829 vec[1].sfv_flag = 0;
22830 vec[1].sfv_off = 0;
22831 vec[1].sfv_len = 0;
22832 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
22838 rm -f conftest.$ac_objext conftest$ac_exeext
22839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22840 (eval $ac_link) 2>&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } &&
22844 { ac_try='test -s conftest$ac_exeext'
22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; }; then
22850 samba_cv_HAVE_SENDFILEV=yes
22852 echo "$as_me: failed program was:" >&5
22853 cat conftest.$ac_ext >&5
22854 samba_cv_HAVE_SENDFILEV=no
22856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22858 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
22859 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
22861 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
22863 cat >>confdefs.h <<\_ACEOF
22864 #define HAVE_SENDFILEV 1
22868 cat >>confdefs.h <<\_ACEOF
22869 #define SOLARIS_SENDFILE_API 1
22873 cat >>confdefs.h <<\_ACEOF
22874 #define WITH_SENDFILE 1
22878 echo "$as_me:$LINENO: result: no" >&5
22879 echo "${ECHO_T}no" >&6;
22888 echo "$as_me:$LINENO: result: no" >&5
22889 echo "${ECHO_T}no" >&6
22893 echo "$as_me:$LINENO: result: yes" >&5
22894 echo "${ECHO_T}yes" >&6
22899 #################################################
22900 # Check whether winbind is supported on this platform. If so we need to
22901 # build and install client programs (WINBIND_TARGETS), sbin programs
22902 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
22904 echo "$as_me:$LINENO: checking whether to build winbind" >&5
22905 echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
22907 # Initially, the value of $host_os decides whether winbind is supported
22915 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
22916 WINBIND_NSS_EXTRA_LIBS="-lsocket"
22920 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
22924 winbind_no_reason=", unsupported on $host_os"
22928 # Check the setting of --with-winbindd
22931 # Check whether --with-winbind or --without-winbind was given.
22932 if test "${with_winbind+set}" = set; then
22933 withval="$with_winbind"
22946 # We need unix domain sockets for winbind
22948 if test x"$HAVE_WINBIND" = x"yes"; then
22949 if test x"$samba_cv_unixsocket" = x"no"; then
22950 winbind_no_reason=", no unix domain socket support on $host_os"
22955 # Display test results
22958 WINBIND_STARGETS=""
22959 WINBIND_LTARGETS=""
22960 WINBIND_PAM_PROGS=""
22962 if test x"$HAVE_WINBIND" = x"yes"; then
22963 echo "$as_me:$LINENO: result: yes" >&5
22964 echo "${ECHO_T}yes" >&6
22966 cat >>confdefs.h <<\_ACEOF
22967 #define WITH_WINBIND 1
22971 WINBIND_TARGETS="bin/wbinfo"
22972 WINBIND_STARGETS="bin/winbindd"
22973 if test x"$BLDSHARED" = x"true"; then
22974 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
22975 if test x"$with_pam" = x"yes"; then
22976 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
22980 echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
22981 echo "${ECHO_T}no$winbind_no_reason" >&6
22985 # Substitution time!
22994 # Solaris has some extra fields in struct passwd that need to be
22995 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
22996 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
22999 #AC_CHECK_MEMBER(struct passwd.pw_comment,
23000 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
23001 # [#include <pwd.h>])
23003 echo "$as_me:$LINENO: checking whether struct passwd has pw_comment" >&5
23004 echo $ECHO_N "checking whether struct passwd has pw_comment... $ECHO_C" >&6
23005 if test "${samba_cv_passwd_pw_comment+set}" = set; then
23006 echo $ECHO_N "(cached) $ECHO_C" >&6
23009 cat >conftest.$ac_ext <<_ACEOF
23010 #line $LINENO "configure"
23011 #include "confdefs.h"
23016 struct passwd p; p.pw_comment;
23021 rm -f conftest.$ac_objext
23022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23023 (eval $ac_compile) 2>&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } &&
23027 { ac_try='test -s conftest.$ac_objext'
23028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029 (eval $ac_try) 2>&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; }; then
23033 samba_cv_passwd_pw_comment=yes
23035 echo "$as_me: failed program was:" >&5
23036 cat conftest.$ac_ext >&5
23037 samba_cv_passwd_pw_comment=no
23039 rm -f conftest.$ac_objext conftest.$ac_ext
23041 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_comment" >&5
23042 echo "${ECHO_T}$samba_cv_passwd_pw_comment" >&6
23043 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
23045 cat >>confdefs.h <<\_ACEOF
23046 #define HAVE_PASSWD_PW_COMMENT 1
23051 #AC_CHECK_MEMBER(struct passwd.pw_age,
23052 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
23053 # [#include <pwd.h>])
23055 echo "$as_me:$LINENO: checking whether struct passwd has pw_age" >&5
23056 echo $ECHO_N "checking whether struct passwd has pw_age... $ECHO_C" >&6
23057 if test "${samba_cv_passwd_pw_age+set}" = set; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23061 cat >conftest.$ac_ext <<_ACEOF
23062 #line $LINENO "configure"
23063 #include "confdefs.h"
23068 struct passwd p; p.pw_age;
23073 rm -f conftest.$ac_objext
23074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23075 (eval $ac_compile) 2>&5
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } &&
23079 { ac_try='test -s conftest.$ac_objext'
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; }; then
23085 samba_cv_passwd_pw_age=yes
23087 echo "$as_me: failed program was:" >&5
23088 cat conftest.$ac_ext >&5
23089 samba_cv_passwd_pw_age=no
23091 rm -f conftest.$ac_objext conftest.$ac_ext
23093 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_age" >&5
23094 echo "${ECHO_T}$samba_cv_passwd_pw_age" >&6
23095 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
23097 cat >>confdefs.h <<\_ACEOF
23098 #define HAVE_PASSWD_PW_AGE 1
23103 #################################################
23104 # Check to see if we should use the included popt
23107 # Check whether --with-included-popt or --without-included-popt was given.
23108 if test "${with_included_popt+set}" = set; then
23109 withval="$with_included_popt"
23120 if test x"$INCLUDED_POPT" != x"yes"; then
23121 echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
23122 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
23123 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
23126 ac_check_lib_save_LIBS=$LIBS
23127 LIBS="-lpopt $LIBS"
23128 cat >conftest.$ac_ext <<_ACEOF
23129 #line $LINENO "configure"
23130 #include "confdefs.h"
23132 /* Override any gcc2 internal prototype to avoid an error. */
23136 /* We use char because int might match the return type of a gcc2
23137 builtin and then its argument prototype would still apply. */
23138 char poptGetContext ();
23147 rm -f conftest.$ac_objext conftest$ac_exeext
23148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23149 (eval $ac_link) 2>&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } &&
23153 { ac_try='test -s conftest$ac_exeext'
23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; }; then
23159 ac_cv_lib_popt_poptGetContext=yes
23161 echo "$as_me: failed program was:" >&5
23162 cat conftest.$ac_ext >&5
23163 ac_cv_lib_popt_poptGetContext=no
23165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23166 LIBS=$ac_check_lib_save_LIBS
23168 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
23169 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
23170 if test $ac_cv_lib_popt_poptGetContext = yes; then
23178 echo "$as_me:$LINENO: checking whether to use included popt" >&5
23179 echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
23180 if test x"$INCLUDED_POPT" = x"yes"; then
23181 echo "$as_me:$LINENO: result: yes" >&5
23182 echo "${ECHO_T}yes" >&6
23183 BUILD_POPT='$(POPT_OBJS)'
23184 FLAGS1="-I$srcdir/popt"
23186 echo "$as_me:$LINENO: result: no" >&5
23187 echo "${ECHO_T}no" >&6
23188 LIBS="$LIBS -lpopt"
23193 #################################################
23194 # Check if the user wants Python
23196 # At the moment, you can use this to set which Python binary to link
23197 # against. (Libraries built for Python2.2 can't be used by 2.1,
23198 # though they can coexist in different directories.) In the future
23199 # this might make the Python stuff be built by default.
23202 # Check whether --with-python or --without-python was given.
23203 if test "${with_python+set}" = set; then
23204 withval="$with_python"
23205 case "${withval-python}" in
23210 PYTHON=${withval-python}
23216 #################################################
23217 # do extra things if we are running insure
23219 if test "${ac_cv_prog_CC}" = "insure"; then
23220 CPPFLAGS="$CPPFLAGS -D__INSURE__"
23223 #################################################
23224 # final configure stuff
23226 echo "$as_me:$LINENO: checking configure summary" >&5
23227 echo $ECHO_N "checking configure summary... $ECHO_C" >&6
23228 if test "$cross_compiling" = yes; then
23229 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
23230 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
23232 cat >conftest.$ac_ext <<_ACEOF
23233 #line $LINENO "configure"
23234 #include "confdefs.h"
23235 #include "${srcdir-.}/tests/summary.c"
23237 rm -f conftest$ac_exeext
23238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23239 (eval $ac_link) 2>&5
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 echo "$as_me:$LINENO: result: yes" >&5
23249 echo "${ECHO_T}yes" >&6
23251 echo "$as_me: program exited with status $ac_status" >&5
23252 echo "$as_me: failed program was:" >&5
23253 cat conftest.$ac_ext >&5
23254 ( exit $ac_status )
23255 { { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
23256 echo "$as_me: error: summary failure. Aborting config" >&2;}
23257 { (exit 1); exit 1; }; }; exit 1;
23259 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23265 # I added make files that are outside /source directory.
23266 # I know this is not a good solution, will work out a better
23267 # solution soon. --simo
23268 ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb ../examples/VFS/Makefile"
23269 cat >confcache <<\_ACEOF
23270 # This file is a shell script that caches the results of configure
23271 # tests run on this system so they can be shared between configure
23272 # scripts and configure runs, see configure's option --config-cache.
23273 # It is not useful on other systems. If it contains results you don't
23274 # want to keep, you may remove or edit it.
23276 # config.status only pays attention to the cache file if you give it
23277 # the --recheck option to rerun configure.
23279 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23280 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23281 # following values.
23285 # The following way of writing the cache mishandles newlines in values,
23286 # but we know of no workaround that is simple, portable, and efficient.
23287 # So, don't put newlines in cache variables' values.
23288 # Ultrix sh set writes to stderr and can't be redirected directly,
23289 # and sets the high bit in the cache file unless we assign to the vars.
23292 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23294 # `set' does not quote correctly, so add quotes (double-quote
23295 # substitution turns \\\\ into \\, and sed turns \\ into \).
23298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23301 # `set' quotes correctly as required by POSIX, so do not add quotes.
23303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23310 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23312 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23314 if cmp -s $cache_file confcache; then :; else
23315 if test -w $cache_file; then
23316 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23317 cat confcache >$cache_file
23319 echo "not updating unwritable cache $cache_file"
23324 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23325 # Let make expand exec_prefix.
23326 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23328 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23329 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23330 # trailing colons and then remove the whole line if VPATH becomes empty
23331 # (actually we leave an empty line to preserve line numbers).
23332 if test "x$srcdir" = x.; then
23333 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23334 s/:*\$(srcdir):*/:/;
23335 s/:*\${srcdir}:*/:/;
23337 s/^\([^=]*=[ ]*\):*/\1/;
23343 DEFS=-DHAVE_CONFIG_H
23347 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23348 # 1. Remove the extension, and $U if already installed.
23349 ac_i=`echo "$ac_i" |
23350 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23352 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23353 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23355 LIBOBJS=$ac_libobjs
23357 LTLIBOBJS=$ac_ltlibobjs
23361 : ${CONFIG_STATUS=./config.status}
23362 ac_clean_files_save=$ac_clean_files
23363 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23364 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23365 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23366 cat >$CONFIG_STATUS <<_ACEOF
23368 # Generated by $as_me.
23369 # Run this file to recreate the current configuration.
23370 # Compiler output produced by configure, useful for debugging
23371 # configure, is in config.log if it exists.
23374 SHELL=\${CONFIG_SHELL-$SHELL}
23377 cat >>$CONFIG_STATUS <<\_ACEOF
23378 ## --------------------- ##
23379 ## M4sh Initialization. ##
23380 ## --------------------- ##
23382 # Be Bourne compatible
23383 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23386 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23387 # is contrary to our usage. Disable this feature.
23388 alias -g '${1+"$@"}'='"$@"'
23389 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23393 # Support unset when possible.
23394 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23401 # Work around bugs in pre-3.0 UWIN ksh.
23402 $as_unset ENV MAIL MAILPATH
23408 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
23410 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23411 eval $as_var=C; export $as_var
23417 # Required to use basename.
23418 if expr a : '\(a\)' >/dev/null 2>&1; then
23424 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23425 as_basename=basename
23431 # Name of the executable.
23432 as_me=`$as_basename "$0" ||
23433 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23434 X"$0" : 'X\(//\)$' \| \
23435 X"$0" : 'X\(/\)$' \| \
23436 . : '\(.\)' 2>/dev/null ||
23438 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23439 /^X\/\(\/\/\)$/{ s//\1/; q; }
23440 /^X\/\(\/\).*/{ s//\1/; q; }
23444 # PATH needs CR, and LINENO needs CR and PATH.
23445 # Avoid depending upon Character Ranges.
23446 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23447 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23448 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23449 as_cr_digits='0123456789'
23450 as_cr_alnum=$as_cr_Letters$as_cr_digits
23452 # The user is always right.
23453 if test "${PATH_SEPARATOR+set}" != set; then
23454 echo "#! /bin/sh" >conftest.sh
23455 echo "exit 0" >>conftest.sh
23456 chmod +x conftest.sh
23457 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
23466 as_lineno_1=$LINENO
23467 as_lineno_2=$LINENO
23468 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23469 test "x$as_lineno_1" != "x$as_lineno_2" &&
23470 test "x$as_lineno_3" = "x$as_lineno_2" || {
23471 # Find who we are. Look in the path if we contain no path at all
23474 *[\\/]* ) as_myself=$0 ;;
23475 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23476 for as_dir in $PATH
23479 test -z "$as_dir" && as_dir=.
23480 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23485 # We did not find ourselves, most probably we were run as `sh COMMAND'
23486 # in which case we are not to be found in the path.
23487 if test "x$as_myself" = x; then
23490 if test ! -f "$as_myself"; then
23491 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23492 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23493 { (exit 1); exit 1; }; }
23495 case $CONFIG_SHELL in
23497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23498 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23501 test -z "$as_dir" && as_dir=.
23502 for as_base in sh bash ksh sh5; do
23505 if ("$as_dir/$as_base" -c '
23506 as_lineno_1=$LINENO
23507 as_lineno_2=$LINENO
23508 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23509 test "x$as_lineno_1" != "x$as_lineno_2" &&
23510 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23511 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23512 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23513 CONFIG_SHELL=$as_dir/$as_base
23514 export CONFIG_SHELL
23515 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23523 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23524 # uniformly replaced by the line number. The first 'sed' inserts a
23525 # line-number line before each line; the second 'sed' does the real
23526 # work. The second script uses 'N' to pair each line-number line
23527 # with the numbered line, and appends trailing '-' during
23528 # substitution so that $LINENO is not a special case at line end.
23529 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23530 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23531 sed '=' <$as_myself |
23536 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23539 s,^['$as_cr_digits']*\n,,
23540 ' >$as_me.lineno &&
23541 chmod +x $as_me.lineno ||
23542 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23543 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23544 { (exit 1); exit 1; }; }
23546 # Don't try to exec as it changes $[0], causing all sort of problems
23547 # (the dirname of $[0] is not the place where we might find the
23548 # original and so on. Autoconf is especially sensible to this).
23550 # Exit status is that of the last command.
23555 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23556 *c*,-n*) ECHO_N= ECHO_C='
23558 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23559 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23562 if expr a : '\(a\)' >/dev/null 2>&1; then
23568 rm -f conf$$ conf$$.exe conf$$.file
23570 if ln -s conf$$.file conf$$ 2>/dev/null; then
23571 # We could just check for DJGPP; but this test a) works b) is more generic
23572 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23573 if test -f conf$$.exe; then
23574 # Don't use ln at all; we don't have any links
23579 elif ln conf$$.file conf$$ 2>/dev/null; then
23584 rm -f conf$$ conf$$.exe conf$$.file
23586 if mkdir -p . 2>/dev/null; then
23592 as_executable_p="test -f"
23594 # Sed expression to map a string onto a valid CPP name.
23595 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23597 # Sed expression to map a string onto a valid variable name.
23598 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23602 # We need space, tab and new line, in precisely that order.
23612 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23613 # report actual input values of CONFIG_FILES etc. instead of their
23614 # values after options handling. Logging --version etc. is OK.
23618 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23619 ## Running $as_me. ##
23624 This file was extended by $as_me, which was
23625 generated by GNU Autoconf 2.54. Invocation command line was
23627 CONFIG_FILES = $CONFIG_FILES
23628 CONFIG_HEADERS = $CONFIG_HEADERS
23629 CONFIG_LINKS = $CONFIG_LINKS
23630 CONFIG_COMMANDS = $CONFIG_COMMANDS
23634 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23638 # Files that config.status was made for.
23639 if test -n "$ac_config_files"; then
23640 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23643 if test -n "$ac_config_headers"; then
23644 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23647 if test -n "$ac_config_links"; then
23648 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23651 if test -n "$ac_config_commands"; then
23652 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23655 cat >>$CONFIG_STATUS <<\_ACEOF
23658 \`$as_me' instantiates files from templates according to the
23659 current configuration.
23661 Usage: $0 [OPTIONS] [FILE]...
23663 -h, --help print this help, then exit
23664 -V, --version print version number, then exit
23665 -d, --debug don't remove temporary files
23666 --recheck update $as_me by reconfiguring in the same conditions
23667 --file=FILE[:TEMPLATE]
23668 instantiate the configuration file FILE
23669 --header=FILE[:TEMPLATE]
23670 instantiate the configuration header FILE
23672 Configuration files:
23675 Configuration headers:
23678 Report bugs to <bug-autoconf@gnu.org>."
23681 cat >>$CONFIG_STATUS <<_ACEOF
23684 configured by $0, generated by GNU Autoconf 2.54,
23685 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23687 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23688 Free Software Foundation, Inc.
23689 This config.status script is free software; the Free Software Foundation
23690 gives unlimited permission to copy, distribute and modify it."
23695 cat >>$CONFIG_STATUS <<\_ACEOF
23696 # If no file are specified by the user, then we need to provide default
23697 # value. By we need to know if files were specified by the user.
23703 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23704 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23712 *) # This is not an option, so the user has probably given explicit
23715 ac_need_defaults=false;;
23719 # Handling of the options.
23721 cat >>$CONFIG_STATUS <<_ACEOF
23722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23723 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
23724 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
23726 cat >>$CONFIG_STATUS <<\_ACEOF
23727 --version | --vers* | -V )
23728 echo "$ac_cs_version"; exit 0 ;;
23730 # Conflict between --help and --header
23731 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23732 Try \`$0 --help' for more information." >&5
23733 echo "$as_me: error: ambiguous option: $1
23734 Try \`$0 --help' for more information." >&2;}
23735 { (exit 1); exit 1; }; };;
23736 --help | --hel | -h )
23737 echo "$ac_cs_usage"; exit 0 ;;
23738 --debug | --d* | -d )
23740 --file | --fil | --fi | --f )
23742 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23743 ac_need_defaults=false;;
23744 --header | --heade | --head | --hea )
23746 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23747 ac_need_defaults=false;;
23749 # This is an error.
23750 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23751 Try \`$0 --help' for more information." >&5
23752 echo "$as_me: error: unrecognized option: $1
23753 Try \`$0 --help' for more information." >&2;}
23754 { (exit 1); exit 1; }; } ;;
23756 *) ac_config_targets="$ac_config_targets $1" ;;
23768 cat >>$CONFIG_STATUS <<\_ACEOF
23769 for ac_config_target in $ac_config_targets
23771 case "$ac_config_target" in
23772 # Handling of arguments.
23773 "include/stamp-h" ) CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
23774 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23775 "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
23776 "../examples/VFS/Makefile" ) CONFIG_FILES="$CONFIG_FILES ../examples/VFS/Makefile" ;;
23777 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
23778 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23779 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23780 { (exit 1); exit 1; }; };;
23784 # If the user did not use the arguments to specify the items to instantiate,
23785 # then the envvar interface is used. Set only those that are not.
23786 # We use the long form for the default assignment because of an extremely
23787 # bizarre bug on SunOS 4.1.3.
23788 if $ac_need_defaults; then
23789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23790 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23793 # Create a temporary directory, and hook for its removal unless debugging.
23796 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23797 trap '{ (exit 1); exit 1; }' 1 2 13 15
23800 # Create a (secure) tmp directory for tmp files.
23803 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23804 test -n "$tmp" && test -d "$tmp"
23807 tmp=$TMPDIR/cs$$-$RANDOM
23808 (umask 077 && mkdir $tmp)
23811 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23812 { (exit 1); exit 1; }
23817 cat >>$CONFIG_STATUS <<_ACEOF
23820 # CONFIG_FILES section.
23823 # No need to generate the scripts if there are no CONFIG_FILES.
23824 # This happens for instance when ./config.status config.h
23825 if test -n "\$CONFIG_FILES"; then
23826 # Protect against being on the right side of a sed subst in config.status.
23827 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23828 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23829 s,@SHELL@,$SHELL,;t t
23830 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23831 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23832 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23833 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23834 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23835 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23836 s,@exec_prefix@,$exec_prefix,;t t
23837 s,@prefix@,$prefix,;t t
23838 s,@program_transform_name@,$program_transform_name,;t t
23839 s,@bindir@,$bindir,;t t
23840 s,@sbindir@,$sbindir,;t t
23841 s,@libexecdir@,$libexecdir,;t t
23842 s,@datadir@,$datadir,;t t
23843 s,@sysconfdir@,$sysconfdir,;t t
23844 s,@sharedstatedir@,$sharedstatedir,;t t
23845 s,@localstatedir@,$localstatedir,;t t
23846 s,@libdir@,$libdir,;t t
23847 s,@includedir@,$includedir,;t t
23848 s,@oldincludedir@,$oldincludedir,;t t
23849 s,@infodir@,$infodir,;t t
23850 s,@mandir@,$mandir,;t t
23851 s,@build_alias@,$build_alias,;t t
23852 s,@host_alias@,$host_alias,;t t
23853 s,@target_alias@,$target_alias,;t t
23854 s,@DEFS@,$DEFS,;t t
23855 s,@ECHO_C@,$ECHO_C,;t t
23856 s,@ECHO_N@,$ECHO_N,;t t
23857 s,@ECHO_T@,$ECHO_T,;t t
23858 s,@LIBS@,$LIBS,;t t
23859 s,@configdir@,$configdir,;t t
23860 s,@lockdir@,$lockdir,;t t
23861 s,@piddir@,$piddir,;t t
23862 s,@logfilebase@,$logfilebase,;t t
23863 s,@privatedir@,$privatedir,;t t
23864 s,@swatdir@,$swatdir,;t t
23865 s,@RUNPROG@,$RUNPROG,;t t
23866 s,@MPROGS@,$MPROGS,;t t
23867 s,@LDSHFLAGS@,$LDSHFLAGS,;t t
23868 s,@SONAMEFLAG@,$SONAMEFLAG,;t t
23869 s,@SHLD@,$SHLD,;t t
23870 s,@HOST_OS@,$HOST_OS,;t t
23871 s,@PAM_MOD@,$PAM_MOD,;t t
23872 s,@WRAP@,$WRAP,;t t
23873 s,@WRAP32@,$WRAP32,;t t
23874 s,@WRAPPROG@,$WRAPPROG,;t t
23875 s,@PICFLAG@,$PICFLAG,;t t
23876 s,@PICSUFFIX@,$PICSUFFIX,;t t
23877 s,@POBAD_CC@,$POBAD_CC,;t t
23878 s,@SHLIBEXT@,$SHLIBEXT,;t t
23879 s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
23880 s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
23881 s,@PRINTLIBS@,$PRINTLIBS,;t t
23882 s,@AUTHLIBS@,$AUTHLIBS,;t t
23884 s,@CFLAGS@,$CFLAGS,;t t
23885 s,@LDFLAGS@,$LDFLAGS,;t t
23886 s,@CPPFLAGS@,$CPPFLAGS,;t t
23887 s,@ac_ct_CC@,$ac_ct_CC,;t t
23888 s,@EXEEXT@,$EXEEXT,;t t
23889 s,@OBJEXT@,$OBJEXT,;t t
23890 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23891 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23892 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23894 s,@BROKEN_CC@,$BROKEN_CC,;t t
23895 s,@build@,$build,;t t
23896 s,@build_cpu@,$build_cpu,;t t
23897 s,@build_vendor@,$build_vendor,;t t
23898 s,@build_os@,$build_os,;t t
23899 s,@host@,$host,;t t
23900 s,@host_cpu@,$host_cpu,;t t
23901 s,@host_vendor@,$host_vendor,;t t
23902 s,@host_os@,$host_os,;t t
23903 s,@target@,$target,;t t
23904 s,@target_cpu@,$target_cpu,;t t
23905 s,@target_vendor@,$target_vendor,;t t
23906 s,@target_os@,$target_os,;t t
23908 s,@EGREP@,$EGREP,;t t
23909 s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
23910 s,@LIBOBJS@,$LIBOBJS,;t t
23911 s,@TERMLIBS@,$TERMLIBS,;t t
23912 s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
23913 s,@ROFF@,$ROFF,;t t
23914 s,@DYNEXP@,$DYNEXP,;t t
23915 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
23916 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
23917 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
23918 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
23919 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
23920 s,@XML_LIBS@,$XML_LIBS,;t t
23921 s,@QUOTAOBJS@,$QUOTAOBJS,;t t
23922 s,@manlangs@,$manlangs,;t t
23923 s,@WINBIND_TARGETS@,$WINBIND_TARGETS,;t t
23924 s,@WINBIND_STARGETS@,$WINBIND_STARGETS,;t t
23925 s,@WINBIND_LTARGETS@,$WINBIND_LTARGETS,;t t
23926 s,@WINBIND_PAM_TARGETS@,$WINBIND_PAM_TARGETS,;t t
23927 s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
23928 s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
23929 s,@BUILD_POPT@,$BUILD_POPT,;t t
23930 s,@FLAGS1@,$FLAGS1,;t t
23931 s,@PYTHON@,$PYTHON,;t t
23932 s,@builddir@,$builddir,;t t
23933 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23938 cat >>$CONFIG_STATUS <<\_ACEOF
23939 # Split the substitutions into bite-sized pieces for seds with
23940 # small command number limits, like on Digital OSF/1 and HP-UX.
23941 ac_max_sed_lines=48
23942 ac_sed_frag=1 # Number of current file.
23943 ac_beg=1 # First line for current file.
23944 ac_end=$ac_max_sed_lines # Line after last line for current file.
23947 while $ac_more_lines; do
23948 if test $ac_beg -gt 1; then
23949 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23951 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23953 if test ! -s $tmp/subs.frag; then
23954 ac_more_lines=false
23956 # The purpose of the label and of the branching condition is to
23957 # speed up the sed processing (if there are no `@' at all, there
23958 # is no need to browse any of the substitutions).
23959 # These are the two extra sed commands mentioned above.
23961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23962 if test -z "$ac_sed_cmds"; then
23963 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23965 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23967 ac_sed_frag=`expr $ac_sed_frag + 1`
23969 ac_end=`expr $ac_end + $ac_max_sed_lines`
23972 if test -z "$ac_sed_cmds"; then
23975 fi # test -n "$CONFIG_FILES"
23978 cat >>$CONFIG_STATUS <<\_ACEOF
23979 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23982 - | *:- | *:-:* ) # input from stdin
23984 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23986 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23988 * ) ac_file_in=$ac_file.in ;;
23991 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23992 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23994 X"$ac_file" : 'X\(//\)[^/]' \| \
23995 X"$ac_file" : 'X\(//\)$' \| \
23996 X"$ac_file" : 'X\(/\)' \| \
23997 . : '\(.\)' 2>/dev/null ||
23999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24001 /^X\(\/\/\)$/{ s//\1/; q; }
24002 /^X\(\/\).*/{ s//\1/; q; }
24004 { if $as_mkdir_p; then
24009 while test ! -d "$as_dir"; do
24010 as_dirs="$as_dir $as_dirs"
24011 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24013 X"$as_dir" : 'X\(//\)[^/]' \| \
24014 X"$as_dir" : 'X\(//\)$' \| \
24015 X"$as_dir" : 'X\(/\)' \| \
24016 . : '\(.\)' 2>/dev/null ||
24018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24020 /^X\(\/\/\)$/{ s//\1/; q; }
24021 /^X\(\/\).*/{ s//\1/; q; }
24024 test ! -n "$as_dirs" || mkdir $as_dirs
24025 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24027 { (exit 1); exit 1; }; }; }
24031 if test "$ac_dir" != .; then
24032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24033 # A "../" for each directory in $ac_dir_suffix.
24034 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24036 ac_dir_suffix= ac_top_builddir=
24040 .) # No --srcdir option. We are building in place.
24042 if test -z "$ac_top_builddir"; then
24045 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24047 [\\/]* | ?:[\\/]* ) # Absolute path.
24048 ac_srcdir=$srcdir$ac_dir_suffix;
24049 ac_top_srcdir=$srcdir ;;
24050 *) # Relative path.
24051 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24052 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24054 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24056 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24057 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24058 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24059 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24064 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24067 if test x"$ac_file" != x-; then
24068 { echo "$as_me:$LINENO: creating $ac_file" >&5
24069 echo "$as_me: creating $ac_file" >&6;}
24072 # Let's still pretend it is `configure' which instantiates (i.e., don't
24073 # use $as_me), people would be surprised to read:
24074 # /* config.h. Generated by config.status. */
24075 if test x"$ac_file" = x-; then
24078 configure_input="$ac_file. "
24080 configure_input=$configure_input"Generated from `echo $ac_file_in |
24081 sed 's,.*/,,'` by configure."
24083 # First look for the input files in the build tree, otherwise in the
24085 ac_file_inputs=`IFS=:
24086 for f in $ac_file_in; do
24088 -) echo $tmp/stdin ;;
24090 # Absolute (can't be DOS-style, as IFS=:)
24091 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24092 echo "$as_me: error: cannot find input file: $f" >&2;}
24093 { (exit 1); exit 1; }; }
24096 if test -f "$f"; then
24099 elif test -f "$srcdir/$f"; then
24104 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24105 echo "$as_me: error: cannot find input file: $f" >&2;}
24106 { (exit 1); exit 1; }; }
24109 done` || { (exit 1); exit 1; }
24111 cat >>$CONFIG_STATUS <<_ACEOF
24115 cat >>$CONFIG_STATUS <<\_ACEOF
24117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24118 s,@configure_input@,$configure_input,;t t
24119 s,@srcdir@,$ac_srcdir,;t t
24120 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24121 s,@top_srcdir@,$ac_top_srcdir,;t t
24122 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24123 s,@builddir@,$ac_builddir,;t t
24124 s,@abs_builddir@,$ac_abs_builddir,;t t
24125 s,@top_builddir@,$ac_top_builddir,;t t
24126 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24127 s,@INSTALL@,$ac_INSTALL,;t t
24128 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24130 if test x"$ac_file" != x-; then
24131 mv $tmp/out $ac_file
24139 cat >>$CONFIG_STATUS <<\_ACEOF
24142 # CONFIG_HEADER section.
24145 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24146 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24148 # ac_d sets the value in "#define NAME VALUE" lines.
24149 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24150 ac_dB='[ ].*$,\1#\2'
24153 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24154 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24155 ac_uB='$,\1#\2define\3'
24159 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24162 - | *:- | *:-:* ) # input from stdin
24164 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24166 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24168 * ) ac_file_in=$ac_file.in ;;
24171 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24172 echo "$as_me: creating $ac_file" >&6;}
24174 # First look for the input files in the build tree, otherwise in the
24176 ac_file_inputs=`IFS=:
24177 for f in $ac_file_in; do
24179 -) echo $tmp/stdin ;;
24181 # Absolute (can't be DOS-style, as IFS=:)
24182 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24183 echo "$as_me: error: cannot find input file: $f" >&2;}
24184 { (exit 1); exit 1; }; }
24187 if test -f "$f"; then
24190 elif test -f "$srcdir/$f"; then
24195 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24196 echo "$as_me: error: cannot find input file: $f" >&2;}
24197 { (exit 1); exit 1; }; }
24200 done` || { (exit 1); exit 1; }
24201 # Remove the trailing spaces.
24202 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24206 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24207 # `conftest.undefs', that substitutes the proper values into
24208 # config.h.in to produce config.h. The first handles `#define'
24209 # templates, and the second `#undef' templates.
24210 # And first: Protect against being on the right side of a sed subst in
24211 # config.status. Protect against being in an unquoted here document
24212 # in config.status.
24213 rm -f conftest.defines conftest.undefs
24214 # Using a here document instead of a string reduces the quoting nightmare.
24215 # Putting comments in sed scripts is not portable.
24217 # `end' is used to avoid that the second main sed command (meant for
24218 # 0-ary CPP macros) applies to n-ary macro definitions.
24219 # See the Autoconf documentation for `clear'.
24220 cat >confdef2sed.sed <<\_ACEOF
24225 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24227 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24230 # If some macros were called several times there might be several times
24231 # the same #defines, which is useless. Nevertheless, we may not want to
24232 # sort them, since we want the *last* AC-DEFINE to be honored.
24233 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24234 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24235 rm -f confdef2sed.sed
24237 # This sed command replaces #undef with comments. This is necessary, for
24238 # example, in the case of _POSIX_SOURCE, which is predefined and required
24239 # on some systems where configure will not decide to define it.
24240 cat >>conftest.undefs <<\_ACEOF
24241 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24244 # Break up conftest.defines because some shells have a limit on the size
24245 # of here documents, and old seds have small limits too (100 cmds).
24246 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24247 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24248 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24249 echo ' :' >>$CONFIG_STATUS
24250 rm -f conftest.tail
24251 while grep . conftest.defines >/dev/null
24253 # Write a limited-size here document to $tmp/defines.sed.
24254 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24255 # Speed up: don't consider the non `#define' lines.
24256 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24257 # Work around the forget-to-reset-the-flag bug.
24258 echo 't clr' >>$CONFIG_STATUS
24259 echo ': clr' >>$CONFIG_STATUS
24260 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24262 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24264 mv $tmp/out $tmp/in
24266 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24267 rm -f conftest.defines
24268 mv conftest.tail conftest.defines
24270 rm -f conftest.defines
24271 echo ' fi # grep' >>$CONFIG_STATUS
24272 echo >>$CONFIG_STATUS
24274 # Break up conftest.undefs because some shells have a limit on the size
24275 # of here documents, and old seds have small limits too (100 cmds).
24276 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24277 rm -f conftest.tail
24278 while grep . conftest.undefs >/dev/null
24280 # Write a limited-size here document to $tmp/undefs.sed.
24281 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24282 # Speed up: don't consider the non `#undef'
24283 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24284 # Work around the forget-to-reset-the-flag bug.
24285 echo 't clr' >>$CONFIG_STATUS
24286 echo ': clr' >>$CONFIG_STATUS
24287 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24289 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24291 mv $tmp/out $tmp/in
24293 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24294 rm -f conftest.undefs
24295 mv conftest.tail conftest.undefs
24297 rm -f conftest.undefs
24299 cat >>$CONFIG_STATUS <<\_ACEOF
24300 # Let's still pretend it is `configure' which instantiates (i.e., don't
24301 # use $as_me), people would be surprised to read:
24302 # /* config.h. Generated by config.status. */
24303 if test x"$ac_file" = x-; then
24304 echo "/* Generated by configure. */" >$tmp/config.h
24306 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24308 cat $tmp/in >>$tmp/config.h
24310 if test x"$ac_file" != x-; then
24311 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
24312 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24313 echo "$as_me: $ac_file is unchanged" >&6;}
24315 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24317 X"$ac_file" : 'X\(//\)[^/]' \| \
24318 X"$ac_file" : 'X\(//\)$' \| \
24319 X"$ac_file" : 'X\(/\)' \| \
24320 . : '\(.\)' 2>/dev/null ||
24322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24324 /^X\(\/\/\)$/{ s//\1/; q; }
24325 /^X\(\/\).*/{ s//\1/; q; }
24327 { if $as_mkdir_p; then
24332 while test ! -d "$as_dir"; do
24333 as_dirs="$as_dir $as_dirs"
24334 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24336 X"$as_dir" : 'X\(//\)[^/]' \| \
24337 X"$as_dir" : 'X\(//\)$' \| \
24338 X"$as_dir" : 'X\(/\)' \| \
24339 . : '\(.\)' 2>/dev/null ||
24341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24343 /^X\(\/\/\)$/{ s//\1/; q; }
24344 /^X\(\/\).*/{ s//\1/; q; }
24347 test ! -n "$as_dirs" || mkdir $as_dirs
24348 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24349 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24350 { (exit 1); exit 1; }; }; }
24353 mv $tmp/config.h $ac_file
24357 rm -f $tmp/config.h
24362 cat >>$CONFIG_STATUS <<\_ACEOF
24364 { (exit 0); exit 0; }
24366 chmod +x $CONFIG_STATUS
24367 ac_clean_files=$ac_clean_files_save
24370 # configure is writing to config.log, and then calls config.status.
24371 # config.status does its own redirection, appending to config.log.
24372 # Unfortunately, on DOS this fails, as config.log is still kept open
24373 # by configure, so config.status won't be able to write to it; its
24374 # output is simply discarded. So we exec the FD to /dev/null,
24375 # effectively closing config.log, so it can be properly (re)opened and
24376 # appended to by config.status. When coming back to configure, we
24377 # need to make the FD available again.
24378 if test "$no_create" != yes; then
24381 $SHELL $CONFIG_STATUS || ac_cs_success=false
24383 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24384 # would make configure fail if this is the last instruction.
24385 $ac_cs_success || { (exit 1); exit 1; }
24389 #################################################
24390 # Print very concise instructions on building/use
24391 if test "x$enable_dmalloc" = xyes
24393 echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included. To turn it on use" >&5
24394 echo "${ECHO_T}Note: The dmalloc debug library will be included. To turn it on use" >&6
24395 echo "$as_me:$LINENO: result: \$ eval \\`dmalloc samba\\`." >&5
24396 echo "${ECHO_T} \$ eval \\`dmalloc samba\\`." >&6