2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
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.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^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=".;."; 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 CONFIG_SHELL=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file="include/includes.h"
262 ac_default_prefix=/usr/local/samba
263 # Factoring default headers for most tests.
264 ac_includes_default="\
267 # include <sys/types.h>
270 # include <sys/stat.h>
281 # if !STDC_HEADERS && HAVE_MEMORY_H
287 # include <strings.h>
290 # include <inttypes.h>
301 # Initialize some variables set by options.
303 ac_init_version=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
313 program_transform_name=s,x,x,
321 # Installation directory options.
322 # These are left unexpanded so users can "make install exec_prefix=/foo"
323 # and all the variables that are supposed to be based on exec_prefix
324 # by default will actually change.
325 # Use braces instead of parens because sh, perl, etc. also accept them.
326 bindir='${exec_prefix}/bin'
327 sbindir='${exec_prefix}/sbin'
328 libexecdir='${exec_prefix}/libexec'
329 datadir='${prefix}/share'
330 sysconfdir='${prefix}/etc'
331 sharedstatedir='${prefix}/com'
332 localstatedir='${prefix}/var'
333 libdir='${exec_prefix}/lib'
334 includedir='${prefix}/include'
335 oldincludedir='/usr/include'
336 infodir='${prefix}/info'
337 mandir='${prefix}/man'
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
349 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351 # Accept the important Cygnus configure options, so we can diagnose typos.
355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
360 -build | --build | --buil | --bui | --bu)
361 ac_prev=build_alias ;;
362 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363 build_alias=$ac_optarg ;;
365 -cache-file | --cache-file | --cache-fil | --cache-fi \
366 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
367 ac_prev=cache_file ;;
368 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
369 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
370 cache_file=$ac_optarg ;;
373 cache_file=config.cache ;;
375 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379 datadir=$ac_optarg ;;
381 -disable-* | --disable-*)
382 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
383 # Reject names that are not valid shell variable names.
384 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
385 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386 { (exit 1); exit 1; }; }
387 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
388 eval "enable_$ac_feature=no" ;;
390 -enable-* | --enable-*)
391 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
392 # Reject names that are not valid shell variable names.
393 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395 { (exit 1); exit 1; }; }
396 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
401 eval "enable_$ac_feature='$ac_optarg'" ;;
403 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405 | --exec | --exe | --ex)
406 ac_prev=exec_prefix ;;
407 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409 | --exec=* | --exe=* | --ex=*)
410 exec_prefix=$ac_optarg ;;
412 -gas | --gas | --ga | --g)
413 # Obsolete; use --with-gas.
416 -help | --help | --hel | --he | -h)
418 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
419 ac_init_help=recursive ;;
420 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
421 ac_init_help=short ;;
423 -host | --host | --hos | --ho)
424 ac_prev=host_alias ;;
425 -host=* | --host=* | --hos=* | --ho=*)
426 host_alias=$ac_optarg ;;
428 -includedir | --includedir | --includedi | --included | --include \
429 | --includ | --inclu | --incl | --inc)
430 ac_prev=includedir ;;
431 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
432 | --includ=* | --inclu=* | --incl=* | --inc=*)
433 includedir=$ac_optarg ;;
435 -infodir | --infodir | --infodi | --infod | --info | --inf)
437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438 infodir=$ac_optarg ;;
440 -libdir | --libdir | --libdi | --libd)
442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
445 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
446 | --libexe | --libex | --libe)
447 ac_prev=libexecdir ;;
448 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
449 | --libexe=* | --libex=* | --libe=*)
450 libexecdir=$ac_optarg ;;
452 -localstatedir | --localstatedir | --localstatedi | --localstated \
453 | --localstate | --localstat | --localsta | --localst \
454 | --locals | --local | --loca | --loc | --lo)
455 ac_prev=localstatedir ;;
456 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
457 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
458 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
459 localstatedir=$ac_optarg ;;
461 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
467 # Obsolete; use --without-fp.
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c | -n)
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
478 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
479 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
480 | --oldin | --oldi | --old | --ol | --o)
481 ac_prev=oldincludedir ;;
482 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
483 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
484 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
485 oldincludedir=$ac_optarg ;;
487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
492 -program-prefix | --program-prefix | --program-prefi | --program-pref \
493 | --program-pre | --program-pr | --program-p)
494 ac_prev=program_prefix ;;
495 -program-prefix=* | --program-prefix=* | --program-prefi=* \
496 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
497 program_prefix=$ac_optarg ;;
499 -program-suffix | --program-suffix | --program-suffi | --program-suff \
500 | --program-suf | --program-su | --program-s)
501 ac_prev=program_suffix ;;
502 -program-suffix=* | --program-suffix=* | --program-suffi=* \
503 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
504 program_suffix=$ac_optarg ;;
506 -program-transform-name | --program-transform-name \
507 | --program-transform-nam | --program-transform-na \
508 | --program-transform-n | --program-transform- \
509 | --program-transform | --program-transfor \
510 | --program-transfo | --program-transf \
511 | --program-trans | --program-tran \
512 | --progr-tra | --program-tr | --program-t)
513 ac_prev=program_transform_name ;;
514 -program-transform-name=* | --program-transform-name=* \
515 | --program-transform-nam=* | --program-transform-na=* \
516 | --program-transform-n=* | --program-transform-=* \
517 | --program-transform=* | --program-transfor=* \
518 | --program-transfo=* | --program-transf=* \
519 | --program-trans=* | --program-tran=* \
520 | --progr-tra=* | --program-tr=* | --program-t=*)
521 program_transform_name=$ac_optarg ;;
523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524 | -silent | --silent | --silen | --sile | --sil)
527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531 sbindir=$ac_optarg ;;
533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535 | --sharedst | --shareds | --shared | --share | --shar \
537 ac_prev=sharedstatedir ;;
538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542 sharedstatedir=$ac_optarg ;;
544 -site | --site | --sit)
546 -site=* | --site=* | --sit=*)
549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
554 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
555 | --syscon | --sysco | --sysc | --sys | --sy)
556 ac_prev=sysconfdir ;;
557 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
558 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
559 sysconfdir=$ac_optarg ;;
561 -target | --target | --targe | --targ | --tar | --ta | --t)
562 ac_prev=target_alias ;;
563 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
564 target_alias=$ac_optarg ;;
566 -v | -verbose | --verbose | --verbos | --verbo | --verb)
569 -version | --version | --versio | --versi | --vers | -V)
573 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid package name: $ac_package" >&2
577 { (exit 1); exit 1; }; }
578 ac_package=`echo $ac_package| sed 's/-/_/g'`
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583 eval "with_$ac_package='$ac_optarg'" ;;
585 -without-* | --without-*)
586 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package | sed 's/-/_/g'`
592 eval "with_$ac_package=no" ;;
595 # Obsolete; use --with-x.
598 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
599 | --x-incl | --x-inc | --x-in | --x-i)
600 ac_prev=x_includes ;;
601 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
602 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
603 x_includes=$ac_optarg ;;
605 -x-libraries | --x-libraries | --x-librarie | --x-librari \
606 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
607 ac_prev=x_libraries ;;
608 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
609 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
610 x_libraries=$ac_optarg ;;
612 -*) { echo "$as_me: error: unrecognized option: $ac_option
613 Try \`$0 --help' for more information." >&2
614 { (exit 1); exit 1; }; }
618 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
619 # Reject names that are not valid shell variable names.
620 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
621 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622 { (exit 1); exit 1; }; }
623 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624 eval "$ac_envvar='$ac_optarg'"
628 # FIXME: should be removed in autoconf 3.0.
629 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
631 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
638 if test -n "$ac_prev"; then
639 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
640 { echo "$as_me: error: missing argument to $ac_option" >&2
641 { (exit 1); exit 1; }; }
644 # Be sure to have absolute paths.
645 for ac_var in exec_prefix prefix
647 eval ac_val=$`echo $ac_var`
649 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
650 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651 { (exit 1); exit 1; }; };;
655 # Be sure to have absolute paths.
656 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
657 localstatedir libdir includedir oldincludedir infodir mandir
659 eval ac_val=$`echo $ac_var`
661 [\\/$]* | ?:[\\/]* ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
667 # There might be people who depend on the old broken behavior: `$host'
668 # used to hold the argument of --host etc.
669 # FIXME: To remove some day.
674 # FIXME: To remove some day.
675 if test "x$host_alias" != x; then
676 if test "x$build_alias" = x; then
677 cross_compiling=maybe
678 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
679 If a cross compiler is detected then cross compile mode will be used." >&2
680 elif test "x$build_alias" != "x$host_alias"; then
686 test -n "$host_alias" && ac_tool_prefix=$host_alias-
688 test "$silent" = yes && exec 6>/dev/null
691 # Find the source files, if location was not specified.
692 if test -z "$srcdir"; then
693 ac_srcdir_defaulted=yes
694 # Try the directory containing this script, then its parent.
695 ac_confdir=`(dirname "$0") 2>/dev/null ||
696 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
697 X"$0" : 'X\(//\)[^/]' \| \
698 X"$0" : 'X\(//\)$' \| \
699 X"$0" : 'X\(/\)' \| \
700 . : '\(.\)' 2>/dev/null ||
702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704 /^X\(\/\/\)$/{ s//\1/; q; }
705 /^X\(\/\).*/{ s//\1/; q; }
708 if test ! -r $srcdir/$ac_unique_file; then
712 ac_srcdir_defaulted=no
714 if test ! -r $srcdir/$ac_unique_file; then
715 if test "$ac_srcdir_defaulted" = yes; then
716 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
717 { (exit 1); exit 1; }; }
719 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
720 { (exit 1); exit 1; }; }
723 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
724 ac_env_build_alias_set=${build_alias+set}
725 ac_env_build_alias_value=$build_alias
726 ac_cv_env_build_alias_set=${build_alias+set}
727 ac_cv_env_build_alias_value=$build_alias
728 ac_env_host_alias_set=${host_alias+set}
729 ac_env_host_alias_value=$host_alias
730 ac_cv_env_host_alias_set=${host_alias+set}
731 ac_cv_env_host_alias_value=$host_alias
732 ac_env_target_alias_set=${target_alias+set}
733 ac_env_target_alias_value=$target_alias
734 ac_cv_env_target_alias_set=${target_alias+set}
735 ac_cv_env_target_alias_value=$target_alias
736 ac_env_CC_set=${CC+set}
738 ac_cv_env_CC_set=${CC+set}
739 ac_cv_env_CC_value=$CC
740 ac_env_CFLAGS_set=${CFLAGS+set}
741 ac_env_CFLAGS_value=$CFLAGS
742 ac_cv_env_CFLAGS_set=${CFLAGS+set}
743 ac_cv_env_CFLAGS_value=$CFLAGS
744 ac_env_LDFLAGS_set=${LDFLAGS+set}
745 ac_env_LDFLAGS_value=$LDFLAGS
746 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
747 ac_cv_env_LDFLAGS_value=$LDFLAGS
748 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
749 ac_env_CPPFLAGS_value=$CPPFLAGS
750 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
751 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
752 ac_env_CPP_set=${CPP+set}
753 ac_env_CPP_value=$CPP
754 ac_cv_env_CPP_set=${CPP+set}
755 ac_cv_env_CPP_value=$CPP
758 # Report the --help message.
760 if test "$ac_init_help" = "long"; then
761 # Omit some internal or obsolete options to make the list less imposing.
762 # This message is too long to be a string in the A/UX 3.1 sh.
764 \`configure' configures this package to adapt to many kinds of systems.
766 Usage: $0 [OPTION]... [VAR=VALUE]...
768 To assign environment variables (e.g., CC, CFLAGS...), specify them as
769 VAR=VALUE. See below for descriptions of some of the useful variables.
771 Defaults for the options are specified in brackets.
774 -h, --help display this help and exit
775 --help=short display options specific to this package
776 --help=recursive display the short help of all the included packages
777 -V, --version display version information and exit
778 -q, --quiet, --silent do not print \`checking...' messages
779 --cache-file=FILE cache test results in FILE [disabled]
780 -C, --config-cache alias for \`--cache-file=config.cache'
781 -n, --no-create do not create output files
782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
787 Installation directories:
788 --prefix=PREFIX install architecture-independent files in PREFIX
790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
793 By default, \`make install' will install all the files in
794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
796 for instance \`--prefix=\$HOME'.
798 For better control, use the options below.
800 Fine tuning of the installation directories:
801 --bindir=DIR user executables [EPREFIX/bin]
802 --sbindir=DIR system admin executables [EPREFIX/sbin]
803 --libexecdir=DIR program executables [EPREFIX/libexec]
804 --datadir=DIR read-only architecture-independent data [PREFIX/share]
805 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
806 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
807 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
808 --libdir=DIR object code libraries [EPREFIX/lib]
809 --includedir=DIR C header files [PREFIX/include]
810 --oldincludedir=DIR C header files for non-gcc [/usr/include]
811 --infodir=DIR info documentation [PREFIX/info]
812 --mandir=DIR man documentation [PREFIX/man]
818 --build=BUILD configure for building on BUILD [guessed]
819 --host=HOST cross-compile to build programs to run on HOST [BUILD]
820 --target=TARGET configure for building compilers for TARGET [HOST]
824 if test -n "$ac_init_help"; then
829 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
830 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
831 --enable-debug Turn on compiler debugging information (default=no)
832 --enable-developer Turn on developer warnings and debugging (default=no)
833 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
834 --enable-dmalloc Enable heap debugging default=no
835 --enable-cups Turn on CUPS support (default=auto)
836 --disable-mysqltest Do not try to compile and run a test MYSQL program
837 --disable-xmltest Do not try to compile and run a test LIBXML program
840 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
841 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
842 --with-fhs Use FHS-compliant paths (default=no)
843 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)
844 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)
845 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)
846 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)
847 --with-configdir=DIR Where to put configuration files (\$libdir)
848 --with-logfilebase=DIR Where to put log files (\$(VARDIR))
849 --with-readline=DIR Look for readline include/libs in DIR (default=auto)
850 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
851 --with-smbwrapper Include SMB wrapper support (default=no)
852 --with-afs Include AFS clear-text auth support (default=no)
853 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)
854 --with-ads Active Directory support (default yes)
855 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)
856 --with-ldap LDAP support (default yes)
857 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)
858 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
859 --with-xml-prefix=PFX Prefix where libxml is installed (optional)
860 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
861 --with-automount Include AUTOMOUNT support (default=no)
862 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)
863 --with-pam Include PAM support (default=no)
864 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)
865 --with-sam Build new (experimental) SAM database (default=no)
866 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)
867 --with-tdbsam Include experimental TDB SAM support (default=no)
868 --with-nisplussam Include NISPLUS SAM support (default=no)
869 --with-nisplus-home Include NISPLUS_HOME support (default=no)
870 --with-syslog Include experimental SYSLOG support (default=no)
871 --with-profiling-data Include gathering source code profile information (default=no)
872 --with-quotas Include experimental disk-quota support (default=no)
873 --with-utmp Include experimental utmp accounting (default=no)
874 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)
875 --with-libsmbclient Build the libsmbclient shared library (default=yes)
876 --with-spinlocks Use spin locks instead of fcntl locks (default=no)
877 --with-acl-support Include ACL support (default=no)
878 --with-sendfile-support Check for sendfile support (default=yes)
879 --with-winbind Build winbind (default, if supported by OS)
880 --with-included-popt use bundled popt library, not from system
881 --with-python=PYTHONNAME build Python libraries
883 Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
931 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
932 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
933 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
936 # Check for guested configure; otherwise get Cygnus style configure.
937 if test -f $ac_srcdir/configure.gnu; then
939 $SHELL $ac_srcdir/configure.gnu --help=recursive
940 elif test -f $ac_srcdir/configure; then
942 $SHELL $ac_srcdir/configure --help=recursive
943 elif test -f $ac_srcdir/configure.ac ||
944 test -f $ac_srcdir/configure.in; then
948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
958 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
959 Free Software Foundation, Inc.
960 This configure script is free software; the Free Software Foundation
961 gives unlimited permission to copy, distribute and modify it.
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by $as_me, which was
971 generated by GNU Autoconf 2.53. Invocation command line was
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n ) continue ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 case " $ac_configure_args " in
1038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1039 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log. We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051 # Save into config.log some information that might help in debugging.
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1060 # The following way of writing the cache mishandles newlines in values,
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076 if test -s confdefs.h; then
1083 sed "/^$/d" confdefs.h
1086 test "$ac_signal" != 0 &&
1087 echo "$as_me: caught signal $ac_signal"
1088 echo "$as_me: exit $exit_status"
1090 rm -f core core.* *.core &&
1091 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1094 for ac_signal in 1 2 13 15; do
1095 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1104 # Predefined preprocessor variables.
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134 if test "x$prefix" != xNONE; then
1135 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1137 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1140 for ac_site_file in $CONFIG_SITE; do
1141 if test -r "$ac_site_file"; then
1142 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144 sed 's/^/| /' "$ac_site_file" >&5
1149 if test -r "$cache_file"; then
1150 # Some versions of bash will fail to source /dev/null (special
1151 # files actually), so we avoid doing that.
1152 if test -f "$cache_file"; then
1153 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1156 [\\/]* | ?:[\\/]* ) . $cache_file;;
1157 *) . ./$cache_file;;
1161 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1166 # Check that the precious variables saved in the cache have kept the same
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172 eval ac_new_set=\$ac_env_${ac_var}_set
1173 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174 eval ac_new_val="\$ac_env_${ac_var}_value"
1175 case $ac_old_set,$ac_new_set in
1177 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179 ac_cache_corrupted=: ;;
1181 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183 ac_cache_corrupted=: ;;
1186 if test "x$ac_old_val" != "x$ac_new_val"; then
1187 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1190 echo "$as_me: former value: $ac_old_val" >&2;}
1191 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1192 echo "$as_me: current value: $ac_new_val" >&2;}
1193 ac_cache_corrupted=:
1196 # Pass precious variables to config.status.
1197 if test "$ac_new_set" = set; then
1199 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201 *) ac_arg=$ac_var=$ac_new_val ;;
1203 case " $ac_configure_args " in
1204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1205 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1209 if $ac_cache_corrupted; then
1210 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214 { (exit 1); exit 1; }; }
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1240 ac_config_headers="$ac_config_headers include/config.h"
1243 #################################################
1244 # Directory handling stuff to support both the
1245 # legacy SAMBA directories and FHS compliant
1250 # Check whether --with-fhs or --without-fhs was given.
1251 if test "${with_fhs+set}" = set; then
1253 configdir="${sysconfdir}/samba"
1254 lockdir="\${VARDIR}/cache/samba"
1255 piddir="\$(VARDIR)/run/samba"
1256 logfilebase="\${VARDIR}/log/samba"
1257 privatedir="\${CONFIGDIR}/private"
1258 swatdir="\${DATADIR}/samba/swat"
1260 configdir="\$(LIBDIR)"
1261 logfilebase="\$(VARDIR)"
1262 lockdir="\${VARDIR}/locks"
1263 piddir="\$(VARDIR)/locks"
1264 privatedir="\${prefix}/private"
1265 swatdir="\${prefix}/swat"
1268 #################################################
1269 # set private directory location
1271 # Check whether --with-privatedir or --without-privatedir was given.
1272 if test "${with_privatedir+set}" = set; then
1273 withval="$with_privatedir"
1277 # Just in case anybody calls it without argument
1279 { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1280 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1283 privatedir="$withval"
1288 #################################################
1289 # set lock directory location
1291 # Check whether --with-lockdir or --without-lockdir was given.
1292 if test "${with_lockdir+set}" = set; then
1293 withval="$with_lockdir"
1297 # Just in case anybody calls it without argument
1299 { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1300 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1308 #################################################
1309 # set pid directory location
1311 # Check whether --with-piddir or --without-piddir was given.
1312 if test "${with_piddir+set}" = set; then
1313 withval="$with_piddir"
1317 # Just in case anybody calls it without argument
1319 { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1320 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1328 #################################################
1329 # set SWAT directory location
1331 # Check whether --with-swatdir or --without-swatdir was given.
1332 if test "${with_swatdir+set}" = set; then
1333 withval="$with_swatdir"
1337 # Just in case anybody does it
1339 { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1340 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1348 #################################################
1349 # set configuration directory location
1351 # Check whether --with-configdir or --without-configdir was given.
1352 if test "${with_configdir+set}" = set; then
1353 withval="$with_configdir"
1357 # Just in case anybody does it
1359 { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1360 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1363 configdir="$withval"
1368 #################################################
1369 # set log directory location
1371 # Check whether --with-logfilebase or --without-logfilebase was given.
1372 if test "${with_logfilebase+set}" = set; then
1373 withval="$with_logfilebase"
1377 # Just in case anybody does it
1379 { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1380 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1383 logfilebase="$withval"
1417 # compile with optimization and without debugging by default
1418 CFLAGS="-O ${CFLAGS}"
1420 # Check whether --enable-debug or --disable-debug was given.
1421 if test "${enable_debug+set}" = set; then
1422 enableval="$enable_debug"
1423 if eval "test x$enable_debug = xyes"; then
1424 CFLAGS="${CFLAGS} -g"
1428 # Check whether --enable-developer or --disable-developer was given.
1429 if test "${enable_developer+set}" = set; then
1430 enableval="$enable_developer"
1431 if eval "test x$enable_developer = xyes"; then
1432 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1436 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1437 if test "${enable_krb5developer+set}" = set; then
1438 enableval="$enable_krb5developer"
1439 if eval "test x$enable_krb5developer = xyes"; then
1440 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1444 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1445 if test "${enable_dmalloc+set}" = set; then
1446 enableval="$enable_dmalloc"
1450 if test "x$enable_dmalloc" = xyes
1453 cat >>confdefs.h <<\_ACEOF
1454 #define ENABLE_DMALLOC 1
1458 cat >>confdefs.h <<\_ACEOF
1459 #define DMALLOC_FUNC_CHECK 1
1462 LIBS="$LIBS -ldmalloc"
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470 if test -n "$ac_tool_prefix"; then
1471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 if test -n "$CC"; then
1499 echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1507 if test -z "$ac_cv_prog_CC"; then
1509 # Extract the first word of "gcc", so it can be a program name with args.
1510 set dummy gcc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 if test -n "$ac_ct_CC"; then
1517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 test -z "$as_dir" && as_dir=.
1524 for ac_exec_ext in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_ac_ct_CC="gcc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536 if test -n "$ac_ct_CC"; then
1537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538 echo "${ECHO_T}$ac_ct_CC" >&6
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 if test -n "$ac_tool_prefix"; then
1551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 if test -n "$CC"; then
1559 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_CC="${ac_tool_prefix}cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$ac_cv_prog_CC"; then
1589 # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 if test -n "$ac_ct_CC"; then
1597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_ac_ct_CC="cc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1630 if test -z "$CC"; then
1631 # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650 ac_prog_rejected=yes
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 if test $ac_prog_rejected = yes; then
1661 # We found a bogon in the path, so make sure we never use it.
1662 set dummy $ac_cv_prog_CC
1664 if test $# != 0; then
1665 # We chose a different compiler from the bogus one.
1666 # However, it has the same basename, so the bogon will be chosen
1667 # first if we set CC to just the basename; use the full file name.
1669 set dummy "$as_dir/$ac_word" ${1+"$@"}
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
1690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$CC" && break
1728 if test -z "$CC"; then
1732 # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="$ac_prog"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 test -n "$ac_ct_CC" && break
1776 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1777 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1778 { (exit 1); exit 1; }; }
1780 # Provide some information about the compiler.
1781 echo "$as_me:$LINENO:" \
1782 "checking for C compiler version" >&5
1783 ac_compiler=`set X $ac_compile; echo $2`
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785 (eval $ac_compiler --version </dev/null >&5) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790 (eval $ac_compiler -v </dev/null >&5) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }
1794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795 (eval $ac_compiler -V </dev/null >&5) 2>&5
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line $LINENO "configure"
1802 #include "confdefs.h"
1804 #ifdef F77_DUMMY_MAIN
1808 int F77_DUMMY_MAIN() { return 1; }
1818 ac_clean_files_save=$ac_clean_files
1819 ac_clean_files="$ac_clean_files a.out a.exe"
1820 # Try to create an executable without -o first, disregard a.out.
1821 # It will help us diagnose broken compilers, and finding out an intuition
1823 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1824 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1826 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1827 (eval $ac_link_default) 2>&5
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); }; then
1831 # Find the output, starting from the most likely. This scheme is
1832 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1835 # Be careful to initialize this variable, since it used to be cached.
1836 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1839 ls a.out conftest 2>/dev/null;
1840 ls a.* conftest.* 2>/dev/null`; do
1842 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1843 a.out ) # We found the default executable, but exeext='' is most
1846 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1847 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1854 echo "$as_me: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1856 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1857 echo "$as_me: error: C compiler cannot create executables" >&2;}
1858 { (exit 77); exit 77; }; }
1861 ac_exeext=$ac_cv_exeext
1862 echo "$as_me:$LINENO: result: $ac_file" >&5
1863 echo "${ECHO_T}$ac_file" >&6
1865 # Check the compiler produces executables we can run. If not, either
1866 # the compiler is broken, or we cross compile.
1867 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1868 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1869 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1870 # If not cross compiling, check that we can run a simple program.
1871 if test "$cross_compiling" != yes; then
1872 if { ac_try='./$ac_file'
1873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; }; then
1880 if test "$cross_compiling" = maybe; then
1883 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1884 If you meant to cross compile, use \`--host'." >&5
1885 echo "$as_me: error: cannot run C compiled programs.
1886 If you meant to cross compile, use \`--host'." >&2;}
1887 { (exit 1); exit 1; }; }
1891 echo "$as_me:$LINENO: result: yes" >&5
1892 echo "${ECHO_T}yes" >&6
1894 rm -f a.out a.exe conftest$ac_cv_exeext
1895 ac_clean_files=$ac_clean_files_save
1896 # Check the compiler produces executables we can run. If not, either
1897 # the compiler is broken, or we cross compile.
1898 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1899 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1900 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1901 echo "${ECHO_T}$cross_compiling" >&6
1903 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1904 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1906 (eval $ac_link) 2>&5
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }; then
1910 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1911 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1912 # work properly (i.e., refer to `conftest.exe'), while it won't with
1914 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1916 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1917 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1924 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1925 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1926 { (exit 1); exit 1; }; }
1929 rm -f conftest$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1931 echo "${ECHO_T}$ac_cv_exeext" >&6
1933 rm -f conftest.$ac_ext
1934 EXEEXT=$ac_cv_exeext
1936 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1937 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1938 if test "${ac_cv_objext+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 cat >conftest.$ac_ext <<_ACEOF
1942 #line $LINENO "configure"
1943 #include "confdefs.h"
1945 #ifdef F77_DUMMY_MAIN
1949 int F77_DUMMY_MAIN() { return 1; }
1959 rm -f conftest.o conftest.obj
1960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1961 (eval $ac_compile) 2>&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1968 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1973 echo "$as_me: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1975 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1976 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1977 { (exit 1); exit 1; }; }
1980 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1982 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1983 echo "${ECHO_T}$ac_cv_objext" >&6
1984 OBJEXT=$ac_cv_objext
1986 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1987 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1988 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 cat >conftest.$ac_ext <<_ACEOF
1992 #line $LINENO "configure"
1993 #include "confdefs.h"
1995 #ifdef F77_DUMMY_MAIN
1999 int F77_DUMMY_MAIN() { return 1; }
2012 rm -f conftest.$ac_objext
2013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2014 (eval $ac_compile) 2>&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); } &&
2018 { ac_try='test -s conftest.$ac_objext'
2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; }; then
2026 echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2030 rm -f conftest.$ac_objext conftest.$ac_ext
2031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2034 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2035 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2036 GCC=`test $ac_compiler_gnu = yes && echo yes`
2037 ac_test_CFLAGS=${CFLAGS+set}
2038 ac_save_CFLAGS=$CFLAGS
2040 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2041 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2042 if test "${ac_cv_prog_cc_g+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 cat >conftest.$ac_ext <<_ACEOF
2046 #line $LINENO "configure"
2047 #include "confdefs.h"
2049 #ifdef F77_DUMMY_MAIN
2053 int F77_DUMMY_MAIN() { return 1; }
2063 rm -f conftest.$ac_objext
2064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2065 (eval $ac_compile) 2>&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); } &&
2069 { ac_try='test -s conftest.$ac_objext'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2077 echo "$as_me: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2081 rm -f conftest.$ac_objext conftest.$ac_ext
2083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2084 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2085 if test "$ac_test_CFLAGS" = set; then
2086 CFLAGS=$ac_save_CFLAGS
2087 elif test $ac_cv_prog_cc_g = yes; then
2088 if test "$GCC" = yes; then
2094 if test "$GCC" = yes; then
2100 # Some people use a C++ compiler to compile C. Since we use `exit',
2101 # in C++ we need to declare it. In case someone uses the same compiler
2102 # for both compiling C and C++ we need to have the C++ compiler decide
2103 # the declaration of exit, since it's the most demanding environment.
2104 cat >conftest.$ac_ext <<_ACEOF
2109 rm -f conftest.$ac_objext
2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111 (eval $ac_compile) 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); } &&
2115 { ac_try='test -s conftest.$ac_objext'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2121 for ac_declaration in \
2123 '#include <stdlib.h>' \
2124 'extern "C" void std::exit (int) throw (); using std::exit;' \
2125 'extern "C" void std::exit (int); using std::exit;' \
2126 'extern "C" void exit (int) throw ();' \
2127 'extern "C" void exit (int);' \
2130 cat >conftest.$ac_ext <<_ACEOF
2131 #line $LINENO "configure"
2132 #include "confdefs.h"
2135 #ifdef F77_DUMMY_MAIN
2139 int F77_DUMMY_MAIN() { return 1; }
2149 rm -f conftest.$ac_objext
2150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2163 echo "$as_me: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2167 rm -f conftest.$ac_objext conftest.$ac_ext
2168 cat >conftest.$ac_ext <<_ACEOF
2169 #line $LINENO "configure"
2170 #include "confdefs.h"
2172 #ifdef F77_DUMMY_MAIN
2176 int F77_DUMMY_MAIN() { return 1; }
2186 rm -f conftest.$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); } &&
2192 { ac_try='test -s conftest.$ac_objext'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2203 rm -f conftest.$ac_objext conftest.$ac_ext
2206 if test -n "$ac_declaration"; then
2207 echo '#ifdef __cplusplus' >>confdefs.h
2208 echo $ac_declaration >>confdefs.h
2209 echo '#endif' >>confdefs.h
2213 echo "$as_me: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 rm -f conftest.$ac_objext conftest.$ac_ext
2218 ac_cpp='$CPP $CPPFLAGS'
2219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2225 if test -f $ac_dir/install-sh; then
2227 ac_install_sh="$ac_aux_dir/install-sh -c"
2229 elif test -f $ac_dir/install.sh; then
2231 ac_install_sh="$ac_aux_dir/install.sh -c"
2233 elif test -f $ac_dir/shtool; then
2235 ac_install_sh="$ac_aux_dir/shtool install -c"
2239 if test -z "$ac_aux_dir"; then
2240 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2241 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2242 { (exit 1); exit 1; }; }
2244 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2245 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2246 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2248 # Find a good install program. We prefer a C program (faster),
2249 # so one script is as good as another. But avoid the broken or
2250 # incompatible versions:
2251 # SysV /etc/install, /usr/sbin/install
2252 # SunOS /usr/etc/install
2253 # IRIX /sbin/install
2255 # AmigaOS /C/install, which installs bootblocks on floppy discs
2256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2259 # ./install, which can be erroneously created by make from ./install.sh.
2260 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2262 if test -z "$INSTALL"; then
2263 if test "${ac_cv_path_install+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 test -z "$as_dir" && as_dir=.
2271 # Account for people who put trailing slashes in PATH elements.
2273 ./ | .// | /cC/* | \
2274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2277 # OSF1 and SCO ODT 3.0 have their own names for install.
2278 # Don't use installbsd from OSF since it installs stuff as root
2280 for ac_prog in ginstall scoinst install; do
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2283 if test $ac_prog = install &&
2284 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285 # AIX install. It has an incompatible calling convention.
2287 elif test $ac_prog = install &&
2288 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289 # program-specific install script used by HP pwplus--don't use.
2292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2304 if test "${ac_cv_path_install+set}" = set; then
2305 INSTALL=$ac_cv_path_install
2307 # As a last resort, use the slow shell script. We don't cache a
2308 # path for INSTALL within a source directory, because that will
2309 # break other packages using the cache if that directory is
2310 # removed, or if the path is relative.
2311 INSTALL=$ac_install_sh
2314 echo "$as_me:$LINENO: result: $INSTALL" >&5
2315 echo "${ECHO_T}$INSTALL" >&6
2317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2318 # It thinks the first close brace ends the variable substitution.
2319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2325 for ac_prog in gawk mawk nawk awk
2327 # Extract the first word of "$ac_prog", so it can be a program name with args.
2328 set dummy $ac_prog; ac_word=$2
2329 echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2331 if test "${ac_cv_prog_AWK+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 if test -n "$AWK"; then
2335 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344 ac_cv_prog_AWK="$ac_prog"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 if test -n "$AWK"; then
2355 echo "$as_me:$LINENO: result: $AWK" >&5
2356 echo "${ECHO_T}$AWK" >&6
2358 echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6
2362 test -n "$AWK" && break
2367 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2368 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2369 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2373 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2374 ac_cv_prog_gnu_ld=yes
2376 ac_cv_prog_gnu_ld=no
2379 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2380 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2384 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2385 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2386 if test "${ac_cv_search_strerror+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 ac_func_search_save_LIBS=$LIBS
2390 ac_cv_search_strerror=no
2391 cat >conftest.$ac_ext <<_ACEOF
2392 #line $LINENO "configure"
2393 #include "confdefs.h"
2395 /* Override any gcc2 internal prototype to avoid an error. */
2399 /* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2402 #ifdef F77_DUMMY_MAIN
2406 int F77_DUMMY_MAIN() { return 1; }
2416 rm -f conftest.$ac_objext conftest$ac_exeext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2418 (eval $ac_link) 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -s conftest$ac_exeext'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2428 ac_cv_search_strerror="none required"
2430 echo "$as_me: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
2433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2434 if test "$ac_cv_search_strerror" = no; then
2435 for ac_lib in cposix; do
2436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2437 cat >conftest.$ac_ext <<_ACEOF
2438 #line $LINENO "configure"
2439 #include "confdefs.h"
2441 /* Override any gcc2 internal prototype to avoid an error. */
2445 /* We use char because int might match the return type of a gcc2
2446 builtin and then its argument prototype would still apply. */
2448 #ifdef F77_DUMMY_MAIN
2452 int F77_DUMMY_MAIN() { return 1; }
2462 rm -f conftest.$ac_objext conftest$ac_exeext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2464 (eval $ac_link) 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -s conftest$ac_exeext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 ac_cv_search_strerror="-l$ac_lib"
2477 echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2483 LIBS=$ac_func_search_save_LIBS
2485 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2486 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2487 if test "$ac_cv_search_strerror" != no; then
2488 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2493 if test "x$CC" != xcc; then
2494 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2495 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2497 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2498 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2500 set dummy $CC; ac_cc=`echo $2 |
2501 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2502 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2507 #include "confdefs.h"
2509 #ifdef F77_DUMMY_MAIN
2513 int F77_DUMMY_MAIN() { return 1; }
2523 # Make sure it works both with $CC and with simple cc.
2524 # We do the test twice because some compilers refuse to overwrite an
2525 # existing .o file with -o, though they will create one.
2526 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2527 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); };
2538 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2539 if test "x$CC" != xcc; then
2540 # Test first that cc exists at all.
2541 if { ac_try='cc -c conftest.$ac_ext >&5'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2548 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); };
2562 # cc exists but doesn't like -o.
2563 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2568 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2573 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2574 echo "$as_me:$LINENO: result: yes" >&5
2575 echo "${ECHO_T}yes" >&6
2577 echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6
2580 cat >>confdefs.h <<\_ACEOF
2581 #define NO_MINUS_C_MINUS_O 1
2586 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2593 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2594 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2595 if test "${samba_cv_volatile+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #line $LINENO "configure"
2601 #include "confdefs.h"
2602 #include <sys/types.h>
2603 #ifdef F77_DUMMY_MAIN
2607 int F77_DUMMY_MAIN() { return 1; }
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 samba_cv_volatile=yes
2631 echo "$as_me: failed program was:" >&5
2632 cat conftest.$ac_ext >&5
2633 samba_cv_volatile=no
2635 rm -f conftest.$ac_objext conftest.$ac_ext
2637 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2638 echo "${ECHO_T}$samba_cv_volatile" >&6
2639 if test x"$samba_cv_volatile" = x"yes"; then
2641 cat >>confdefs.h <<\_ACEOF
2642 #define HAVE_VOLATILE 1
2648 # Make sure we can run config.sub.
2649 $ac_config_sub sun4 >/dev/null 2>&1 ||
2650 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2651 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2652 { (exit 1); exit 1; }; }
2654 echo "$as_me:$LINENO: checking build system type" >&5
2655 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2656 if test "${ac_cv_build+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 ac_cv_build_alias=$build_alias
2660 test -z "$ac_cv_build_alias" &&
2661 ac_cv_build_alias=`$ac_config_guess`
2662 test -z "$ac_cv_build_alias" &&
2663 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2664 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2665 { (exit 1); exit 1; }; }
2666 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2667 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2668 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2669 { (exit 1); exit 1; }; }
2672 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2673 echo "${ECHO_T}$ac_cv_build" >&6
2675 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2676 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2677 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2680 echo "$as_me:$LINENO: checking host system type" >&5
2681 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2682 if test "${ac_cv_host+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 ac_cv_host_alias=$host_alias
2686 test -z "$ac_cv_host_alias" &&
2687 ac_cv_host_alias=$ac_cv_build_alias
2688 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2689 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2690 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2691 { (exit 1); exit 1; }; }
2694 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2695 echo "${ECHO_T}$ac_cv_host" >&6
2697 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2698 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2699 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2702 echo "$as_me:$LINENO: checking target system type" >&5
2703 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2704 if test "${ac_cv_target+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 ac_cv_target_alias=$target_alias
2708 test "x$ac_cv_target_alias" = "x" &&
2709 ac_cv_target_alias=$ac_cv_host_alias
2710 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2711 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2712 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2713 { (exit 1); exit 1; }; }
2716 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2717 echo "${ECHO_T}$ac_cv_target" >&6
2718 target=$ac_cv_target
2719 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2720 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2721 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2724 # The aliases save the names the user supplied, while $host etc.
2725 # will get canonicalized.
2726 test -n "$target_alias" &&
2727 test "$program_prefix$program_suffix$program_transform_name" = \
2729 program_prefix=${target_alias}-
2732 *irix6*) cat >> confdefs.h <<\EOF
2733 #include <standards.h>
2741 echo "$as_me:$LINENO: checking config.cache system type" >&5
2742 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2743 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2744 test x"$ac_cv_host_system_type" != x"$host"; } ||
2745 { test x"${ac_cv_build_system_type+set}" = x"set" &&
2746 test x"$ac_cv_build_system_type" != x"$build"; } ||
2747 { test x"${ac_cv_target_system_type+set}" = x"set" &&
2748 test x"$ac_cv_target_system_type" != x"$target"; }; then
2749 echo "$as_me:$LINENO: result: different" >&5
2750 echo "${ECHO_T}different" >&6
2751 { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2752 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2753 { (exit 1); exit 1; }; }
2755 echo "$as_me:$LINENO: result: same" >&5
2756 echo "${ECHO_T}same" >&6
2758 ac_cv_host_system_type="$host"
2759 ac_cv_build_system_type="$build"
2760 ac_cv_target_system_type="$target"
2766 # Config CPPFLAG settings for strange OS's that must be set
2767 # before other tests.
2770 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2773 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2774 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2775 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 echo 'void f(){}' > conftest.c
2779 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2780 ac_cv_prog_cc_Ae=yes
2787 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2789 # mmap on HPUX is completely broken...
2791 cat >>confdefs.h <<\_ACEOF
2792 #define MMAP_BLACKLIST 1
2795 if test $ac_cv_prog_cc_Ae = yes; then
2796 CPPFLAGS="$CPPFLAGS -Ae"
2799 # Defines needed for HPUX support.
2800 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2801 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2805 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2807 cat >>confdefs.h <<\_ACEOF
2808 #define USE_BOTH_CRYPT_CALLS 1
2812 cat >>confdefs.h <<\_ACEOF
2813 #define _HPUX_SOURCE 1
2817 cat >>confdefs.h <<\_ACEOF
2818 #define _POSIX_SOURCE 1
2822 cat >>confdefs.h <<\_ACEOF
2823 #define _ALIGNMENT_REQUIRED 1
2827 cat >>confdefs.h <<\_ACEOF
2828 #define _MAX_ALIGNMENT 4
2833 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2835 cat >>confdefs.h <<\_ACEOF
2836 #define USE_BOTH_CRYPT_CALLS 1
2840 cat >>confdefs.h <<\_ACEOF
2841 #define _HPUX_SOURCE 1
2845 cat >>confdefs.h <<\_ACEOF
2846 #define _POSIX_SOURCE 1
2850 cat >>confdefs.h <<\_ACEOF
2851 #define _LARGEFILE64_SOURCE 1
2855 cat >>confdefs.h <<\_ACEOF
2856 #define _ALIGNMENT_REQUIRED 1
2860 cat >>confdefs.h <<\_ACEOF
2861 #define _MAX_ALIGNMENT 4
2870 # CRAY Unicos has broken const handling
2872 echo "$as_me:$LINENO: result: disabling const" >&5
2873 echo "${ECHO_T}disabling const" >&6
2874 CPPFLAGS="$CPPFLAGS -Dconst="
2878 # AIX4.x doesn't even admit to having large
2879 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2882 echo "$as_me:$LINENO: result: enabling large file support" >&5
2883 echo "${ECHO_T}enabling large file support" >&6
2884 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2886 cat >>confdefs.h <<\_ACEOF
2887 #define _LARGE_FILES 1
2892 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2893 # to the existance of large files..
2894 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2895 # recommendations on large file support, however it makes the
2896 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2897 # recommendation makes the compile fail on gcc2.7. JRA.
2901 5.0*|5.1*|5.2*|5.3*|5.5*)
2902 echo "$as_me:$LINENO: result: no large file support" >&5
2903 echo "${ECHO_T}no large file support" >&6
2906 echo "$as_me:$LINENO: result: enabling large file support" >&5
2907 echo "${ECHO_T}enabling large file support" >&6
2908 if test "$ac_cv_c_compiler_gnu" = yes; then
2909 ${CC-cc} -v >conftest.c 2>&1
2910 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2912 case "$ac_cv_gcc_compiler_version_number" in
2913 *"gcc version 2.6"*|*"gcc version 2.7"*)
2914 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2916 cat >>confdefs.h <<\_ACEOF
2917 #define _LARGEFILE64_SOURCE 1
2922 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2924 cat >>confdefs.h <<\_ACEOF
2925 #define _LARGEFILE64_SOURCE 1
2929 cat >>confdefs.h <<\_ACEOF
2930 #define _FILE_OFFSET_BITS 64
2936 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2938 cat >>confdefs.h <<\_ACEOF
2939 #define _LARGEFILE64_SOURCE 1
2943 cat >>confdefs.h <<\_ACEOF
2944 #define _FILE_OFFSET_BITS 64
2952 # Tests needed for SINIX large file support.
2955 if test $host = mips-sni-sysv4 ; then
2956 echo "$as_me:$LINENO: checking for LFS support" >&5
2957 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
2958 old_CPPFLAGS="$CPPFLAGS"
2959 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
2960 if test "$cross_compiling" = yes; then
2961 SINIX_LFS_SUPPORT=cross
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 #include "confdefs.h"
2969 #if _LFS64_LARGEFILE == 1
2976 rm -f conftest$ac_exeext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978 (eval $ac_link) 2>&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 SINIX_LFS_SUPPORT=yes
2989 echo "$as_me: program exited with status $ac_status" >&5
2990 echo "$as_me: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2993 SINIX_LFS_SUPPORT=no
2995 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2997 CPPFLAGS="$old_CPPFLAGS"
2998 if test x$SINIX_LFS_SUPPORT = xyes ; then
2999 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3001 cat >>confdefs.h <<\_ACEOF
3002 #define _LARGEFILE64_SOURCE 1
3005 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3006 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3007 LIBS="`getconf LFS64_LIBS` $LIBS"
3009 echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3010 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3014 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3017 echo "$as_me:$LINENO: checking for LFS support" >&5
3018 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3019 old_CPPFLAGS="$CPPFLAGS"
3020 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3021 if test "$cross_compiling" = yes; then
3022 LINUX_LFS_SUPPORT=cross
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 #include "confdefs.h"
3029 #include <sys/utsname.h>
3031 #if _LFS64_LARGEFILE == 1
3036 /* Ensure this is glibc 2.2 or higher */
3037 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3038 int libc_major = __GLIBC__;
3039 int libc_minor = __GLIBC_MINOR__;
3047 /* Ensure this is kernel 2.4 or higher */
3050 release = uts.release;
3051 major = atoi(strsep(&release, "."));
3052 minor = atoi(strsep(&release, "."));
3054 if (major > 2 || (major == 2 && minor > 3))
3063 rm -f conftest$ac_exeext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3065 (eval $ac_link) 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3074 LINUX_LFS_SUPPORT=yes
3076 echo "$as_me: program exited with status $ac_status" >&5
3077 echo "$as_me: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3080 LINUX_LFS_SUPPORT=no
3082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3084 CPPFLAGS="$old_CPPFLAGS"
3085 if test x$LINUX_LFS_SUPPORT = xyes ; then
3086 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3088 cat >>confdefs.h <<\_ACEOF
3089 #define _LARGEFILE64_SOURCE 1
3093 cat >>confdefs.h <<\_ACEOF
3094 #define _FILE_OFFSET_BITS 64
3098 cat >>confdefs.h <<\_ACEOF
3099 #define _GNU_SOURCE 1
3103 echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3104 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3108 echo "$as_me:$LINENO: checking for LFS support" >&5
3109 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3110 old_CPPFLAGS="$CPPFLAGS"
3111 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3112 if test "$cross_compiling" = yes; then
3113 GLIBC_LFS_SUPPORT=cross
3115 cat >conftest.$ac_ext <<_ACEOF
3116 #line $LINENO "configure"
3117 #include "confdefs.h"
3121 #if _LFS64_LARGEFILE == 1
3128 rm -f conftest$ac_exeext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3130 (eval $ac_link) 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3139 GLIBC_LFS_SUPPORT=yes
3141 echo "$as_me: program exited with status $ac_status" >&5
3142 echo "$as_me: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3145 GLIBC_LFS_SUPPORT=no
3147 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3149 CPPFLAGS="$old_CPPFLAGS"
3150 if test x$GLIBC_LFS_SUPPORT = xyes ; then
3151 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3153 cat >>confdefs.h <<\_ACEOF
3154 #define _LARGEFILE64_SOURCE 1
3158 cat >>confdefs.h <<\_ACEOF
3159 #define _GNU_SOURCE 1
3163 echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3164 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3169 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3170 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3171 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 ac_cv_prog_cc_stdc=no
3176 cat >conftest.$ac_ext <<_ACEOF
3177 #line $LINENO "configure"
3178 #include "confdefs.h"
3181 #include <sys/types.h>
3182 #include <sys/stat.h>
3183 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3184 struct buf { int x; };
3185 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3186 static char *e (p, i)
3192 static char *f (char * (*g) (char **, int), char **p, ...)
3197 s = g (p, va_arg (v,int));
3201 int test (int i, double x);
3202 struct s1 {int (*f) (int a);};
3203 struct s2 {int (*f) (double a);};
3204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207 #ifdef F77_DUMMY_MAIN
3211 int F77_DUMMY_MAIN() { return 1; }
3216 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3221 # Don't try gcc -ansi; that turns off useful extensions and
3222 # breaks some systems' header files.
3223 # AIX -qlanglvl=ansi
3224 # Ultrix and OSF/1 -std1
3225 # HP-UX 10.20 and later -Ae
3226 # HP-UX older versions -Aa -D_HPUX_SOURCE
3227 # SVR4 -Xc -D__EXTENSIONS__
3228 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3230 CC="$ac_save_CC $ac_arg"
3231 rm -f conftest.$ac_objext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 ac_cv_prog_cc_stdc=$ac_arg
3246 echo "$as_me: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3249 rm -f conftest.$ac_objext
3251 rm -f conftest.$ac_ext conftest.$ac_objext
3256 case "x$ac_cv_prog_cc_stdc" in
3258 echo "$as_me:$LINENO: result: none needed" >&5
3259 echo "${ECHO_T}none needed" >&6 ;;
3261 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3262 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3263 CC="$CC $ac_cv_prog_cc_stdc" ;;
3266 echo "$as_me:$LINENO: checking for inline" >&5
3267 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3268 if test "${ac_cv_c_inline+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 for ac_kw in inline __inline__ __inline; do
3273 cat >conftest.$ac_ext <<_ACEOF
3274 #line $LINENO "configure"
3275 #include "confdefs.h"
3277 static $ac_kw int static_foo () {return 0; }
3278 $ac_kw int foo () {return 0; }
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 ac_cv_c_inline=$ac_kw; break
3296 echo "$as_me: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3299 rm -f conftest.$ac_objext conftest.$ac_ext
3303 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3304 echo "${ECHO_T}$ac_cv_c_inline" >&6
3305 case $ac_cv_c_inline in
3308 cat >>confdefs.h <<\_ACEOF
3312 *) cat >>confdefs.h <<_ACEOF
3313 #define inline $ac_cv_c_inline
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3324 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3325 # On Suns, sometimes $CPP names a directory.
3326 if test -n "$CPP" && test -d "$CPP"; then
3329 if test -z "$CPP"; then
3330 if test "${ac_cv_prog_CPP+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 # Double quotes because CPP needs to be expanded
3334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3337 for ac_c_preproc_warn_flag in '' yes
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # On the NeXT, cc -E runs the code through the compiler's parser,
3342 # not just through cpp. "Syntax error" is here to catch this case.
3343 cat >conftest.$ac_ext <<_ACEOF
3344 #line $LINENO "configure"
3345 #include "confdefs.h"
3349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3352 egrep -v '^ *\+' conftest.er1 >conftest.err
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } >/dev/null; then
3357 if test -s conftest.err; then
3358 ac_cpp_err=$ac_c_preproc_warn_flag
3365 if test -z "$ac_cpp_err"; then
3368 echo "$as_me: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3370 # Broken: fails on valid input.
3373 rm -f conftest.err conftest.$ac_ext
3375 # OK, works on sane cases. Now check whether non-existent headers
3376 # can be detected and how.
3377 cat >conftest.$ac_ext <<_ACEOF
3378 #line $LINENO "configure"
3379 #include "confdefs.h"
3380 #include <ac_nonexistent.h>
3382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3385 egrep -v '^ *\+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null; then
3390 if test -s conftest.err; then
3391 ac_cpp_err=$ac_c_preproc_warn_flag
3398 if test -z "$ac_cpp_err"; then
3399 # Broken: success on invalid input.
3402 echo "$as_me: failed program was:" >&5
3403 cat conftest.$ac_ext >&5
3404 # Passes both tests.
3408 rm -f conftest.err conftest.$ac_ext
3411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3412 rm -f conftest.err conftest.$ac_ext
3413 if $ac_preproc_ok; then
3425 echo "$as_me:$LINENO: result: $CPP" >&5
3426 echo "${ECHO_T}$CPP" >&6
3428 for ac_c_preproc_warn_flag in '' yes
3430 # Use a header file that comes with gcc, so configuring glibc
3431 # with a fresh cross-compiler works.
3432 # On the NeXT, cc -E runs the code through the compiler's parser,
3433 # not just through cpp. "Syntax error" is here to catch this case.
3434 cat >conftest.$ac_ext <<_ACEOF
3435 #line $LINENO "configure"
3436 #include "confdefs.h"
3440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3443 egrep -v '^ *\+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } >/dev/null; then
3448 if test -s conftest.err; then
3449 ac_cpp_err=$ac_c_preproc_warn_flag
3456 if test -z "$ac_cpp_err"; then
3459 echo "$as_me: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3461 # Broken: fails on valid input.
3464 rm -f conftest.err conftest.$ac_ext
3466 # OK, works on sane cases. Now check whether non-existent headers
3467 # can be detected and how.
3468 cat >conftest.$ac_ext <<_ACEOF
3469 #line $LINENO "configure"
3470 #include "confdefs.h"
3471 #include <ac_nonexistent.h>
3473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3476 egrep -v '^ *\+' conftest.er1 >conftest.err
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } >/dev/null; then
3481 if test -s conftest.err; then
3482 ac_cpp_err=$ac_c_preproc_warn_flag
3489 if test -z "$ac_cpp_err"; then
3490 # Broken: success on invalid input.
3493 echo "$as_me: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3495 # Passes both tests.
3499 rm -f conftest.err conftest.$ac_ext
3502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503 rm -f conftest.err conftest.$ac_ext
3504 if $ac_preproc_ok; then
3507 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3508 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3509 { (exit 1); exit 1; }; }
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3520 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3521 if test "${ac_cv_header_stdc+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 cat >conftest.$ac_ext <<_ACEOF
3525 #line $LINENO "configure"
3526 #include "confdefs.h"
3533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3536 egrep -v '^ *\+' conftest.er1 >conftest.err
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } >/dev/null; then
3541 if test -s conftest.err; then
3542 ac_cpp_err=$ac_c_preproc_warn_flag
3549 if test -z "$ac_cpp_err"; then
3550 ac_cv_header_stdc=yes
3552 echo "$as_me: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3554 ac_cv_header_stdc=no
3556 rm -f conftest.err conftest.$ac_ext
3558 if test $ac_cv_header_stdc = yes; then
3559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3560 cat >conftest.$ac_ext <<_ACEOF
3561 #line $LINENO "configure"
3562 #include "confdefs.h"
3566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3567 egrep "memchr" >/dev/null 2>&1; then
3570 ac_cv_header_stdc=no
3576 if test $ac_cv_header_stdc = yes; then
3577 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3578 cat >conftest.$ac_ext <<_ACEOF
3579 #line $LINENO "configure"
3580 #include "confdefs.h"
3584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3585 egrep "free" >/dev/null 2>&1; then
3588 ac_cv_header_stdc=no
3594 if test $ac_cv_header_stdc = yes; then
3595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3596 if test "$cross_compiling" = yes; then
3599 cat >conftest.$ac_ext <<_ACEOF
3600 #line $LINENO "configure"
3601 #include "confdefs.h"
3603 #if ((' ' & 0x0FF) == 0x020)
3604 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3605 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3607 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3608 || ('j' <= (c) && (c) <= 'r') \
3609 || ('s' <= (c) && (c) <= 'z'))
3610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3618 for (i = 0; i < 256; i++)
3619 if (XOR (islower (i), ISLOWER (i))
3620 || toupper (i) != TOUPPER (i))
3625 rm -f conftest$ac_exeext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3627 (eval $ac_link) 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3638 echo "$as_me: program exited with status $ac_status" >&5
3639 echo "$as_me: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3642 ac_cv_header_stdc=no
3644 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3648 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3649 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3650 if test $ac_cv_header_stdc = yes; then
3652 cat >>confdefs.h <<\_ACEOF
3653 #define STDC_HEADERS 1
3664 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3665 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3666 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3667 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 cat >conftest.$ac_ext <<_ACEOF
3672 #line $LINENO "configure"
3673 #include "confdefs.h"
3674 #include <sys/types.h>
3677 #ifdef F77_DUMMY_MAIN
3681 int F77_DUMMY_MAIN() { return 1; }
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 eval "$as_ac_Header=yes"
3706 echo "$as_me: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 eval "$as_ac_Header=no"
3710 rm -f conftest.$ac_objext conftest.$ac_ext
3712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3715 cat >>confdefs.h <<_ACEOF
3716 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3719 ac_header_dirent=$ac_hdr; break
3723 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3724 if test $ac_header_dirent = dirent.h; then
3725 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3726 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3727 if test "${ac_cv_search_opendir+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 ac_func_search_save_LIBS=$LIBS
3731 ac_cv_search_opendir=no
3732 cat >conftest.$ac_ext <<_ACEOF
3733 #line $LINENO "configure"
3734 #include "confdefs.h"
3736 /* Override any gcc2 internal prototype to avoid an error. */
3740 /* We use char because int might match the return type of a gcc2
3741 builtin and then its argument prototype would still apply. */
3743 #ifdef F77_DUMMY_MAIN
3747 int F77_DUMMY_MAIN() { return 1; }
3757 rm -f conftest.$ac_objext conftest$ac_exeext
3758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3759 (eval $ac_link) 2>&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try='test -s conftest$ac_exeext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 ac_cv_search_opendir="none required"
3771 echo "$as_me: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3775 if test "$ac_cv_search_opendir" = no; then
3776 for ac_lib in dir; do
3777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3778 cat >conftest.$ac_ext <<_ACEOF
3779 #line $LINENO "configure"
3780 #include "confdefs.h"
3782 /* Override any gcc2 internal prototype to avoid an error. */
3786 /* We use char because int might match the return type of a gcc2
3787 builtin and then its argument prototype would still apply. */
3789 #ifdef F77_DUMMY_MAIN
3793 int F77_DUMMY_MAIN() { return 1; }
3803 rm -f conftest.$ac_objext conftest$ac_exeext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3805 (eval $ac_link) 2>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -s conftest$ac_exeext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 ac_cv_search_opendir="-l$ac_lib"
3818 echo "$as_me: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3824 LIBS=$ac_func_search_save_LIBS
3826 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3827 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3828 if test "$ac_cv_search_opendir" != no; then
3829 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3834 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3835 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3836 if test "${ac_cv_search_opendir+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_func_search_save_LIBS=$LIBS
3840 ac_cv_search_opendir=no
3841 cat >conftest.$ac_ext <<_ACEOF
3842 #line $LINENO "configure"
3843 #include "confdefs.h"
3845 /* Override any gcc2 internal prototype to avoid an error. */
3849 /* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3852 #ifdef F77_DUMMY_MAIN
3856 int F77_DUMMY_MAIN() { return 1; }
3866 rm -f conftest.$ac_objext conftest$ac_exeext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868 (eval $ac_link) 2>&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } &&
3872 { ac_try='test -s conftest$ac_exeext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_search_opendir="none required"
3880 echo "$as_me: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3884 if test "$ac_cv_search_opendir" = no; then
3886 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3887 cat >conftest.$ac_ext <<_ACEOF
3888 #line $LINENO "configure"
3889 #include "confdefs.h"
3891 /* Override any gcc2 internal prototype to avoid an error. */
3895 /* We use char because int might match the return type of a gcc2
3896 builtin and then its argument prototype would still apply. */
3898 #ifdef F77_DUMMY_MAIN
3902 int F77_DUMMY_MAIN() { return 1; }
3912 rm -f conftest.$ac_objext conftest$ac_exeext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3914 (eval $ac_link) 2>&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } &&
3918 { ac_try='test -s conftest$ac_exeext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 ac_cv_search_opendir="-l$ac_lib"
3927 echo "$as_me: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3933 LIBS=$ac_func_search_save_LIBS
3935 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3936 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3937 if test "$ac_cv_search_opendir" != no; then
3938 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3944 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3945 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3946 if test "${ac_cv_header_time+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 cat >conftest.$ac_ext <<_ACEOF
3950 #line $LINENO "configure"
3951 #include "confdefs.h"
3952 #include <sys/types.h>
3953 #include <sys/time.h>
3956 #ifdef F77_DUMMY_MAIN
3960 int F77_DUMMY_MAIN() { return 1; }
3965 if ((struct tm *) 0)
3971 rm -f conftest.$ac_objext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } &&
3977 { ac_try='test -s conftest.$ac_objext'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3983 ac_cv_header_time=yes
3985 echo "$as_me: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3987 ac_cv_header_time=no
3989 rm -f conftest.$ac_objext conftest.$ac_ext
3991 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3992 echo "${ECHO_T}$ac_cv_header_time" >&6
3993 if test $ac_cv_header_time = yes; then
3995 cat >>confdefs.h <<\_ACEOF
3996 #define TIME_WITH_SYS_TIME 1
4001 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4002 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4003 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4007 #line $LINENO "configure"
4008 #include "confdefs.h"
4009 #include <sys/types.h>
4010 #include <sys/wait.h>
4012 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4015 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4018 #ifdef F77_DUMMY_MAIN
4022 int F77_DUMMY_MAIN() { return 1; }
4029 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4034 rm -f conftest.$ac_objext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -s conftest.$ac_objext'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 ac_cv_header_sys_wait_h=yes
4048 echo "$as_me: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 ac_cv_header_sys_wait_h=no
4052 rm -f conftest.$ac_objext conftest.$ac_ext
4054 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4055 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4056 if test $ac_cv_header_sys_wait_h = yes; then
4058 cat >>confdefs.h <<\_ACEOF
4059 #define HAVE_SYS_WAIT_H 1
4064 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4074 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4075 inttypes.h stdint.h unistd.h
4077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4078 echo "$as_me:$LINENO: checking for $ac_header" >&5
4079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 cat >conftest.$ac_ext <<_ACEOF
4084 #line $LINENO "configure"
4085 #include "confdefs.h"
4086 $ac_includes_default
4088 #include <$ac_header>
4090 rm -f conftest.$ac_objext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 eval "$as_ac_Header=yes"
4104 echo "$as_me: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4106 eval "$as_ac_Header=no"
4108 rm -f conftest.$ac_objext conftest.$ac_ext
4110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4113 cat >>confdefs.h <<_ACEOF
4114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4128 for ac_header in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
4130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4132 echo "$as_me:$LINENO: checking for $ac_header" >&5
4133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4140 # Is the header compilable?
4141 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4143 cat >conftest.$ac_ext <<_ACEOF
4144 #line $LINENO "configure"
4145 #include "confdefs.h"
4146 $ac_includes_default
4147 #include <$ac_header>
4149 rm -f conftest.$ac_objext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -s conftest.$ac_objext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 ac_header_compiler=yes
4163 echo "$as_me: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4165 ac_header_compiler=no
4167 rm -f conftest.$ac_objext conftest.$ac_ext
4168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4169 echo "${ECHO_T}$ac_header_compiler" >&6
4171 # Is the header present?
4172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4174 cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4176 #include "confdefs.h"
4177 #include <$ac_header>
4179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4182 egrep -v '^ *\+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev/null; then
4187 if test -s conftest.err; then
4188 ac_cpp_err=$ac_c_preproc_warn_flag
4195 if test -z "$ac_cpp_err"; then
4196 ac_header_preproc=yes
4198 echo "$as_me: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4200 ac_header_preproc=no
4202 rm -f conftest.err conftest.$ac_ext
4203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4204 echo "${ECHO_T}$ac_header_preproc" >&6
4206 # So? What about this header?
4207 case $ac_header_compiler:$ac_header_preproc in
4209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4221 echo "$as_me:$LINENO: checking for $ac_header" >&5
4222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 eval "$as_ac_Header=$ac_header_preproc"
4228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4233 cat >>confdefs.h <<_ACEOF
4234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4248 for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
4250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4252 echo "$as_me:$LINENO: checking for $ac_header" >&5
4253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4260 # Is the header compilable?
4261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4263 cat >conftest.$ac_ext <<_ACEOF
4264 #line $LINENO "configure"
4265 #include "confdefs.h"
4266 $ac_includes_default
4267 #include <$ac_header>
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271 (eval $ac_compile) 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_header_compiler=yes
4283 echo "$as_me: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4285 ac_header_compiler=no
4287 rm -f conftest.$ac_objext conftest.$ac_ext
4288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4289 echo "${ECHO_T}$ac_header_compiler" >&6
4291 # Is the header present?
4292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4294 cat >conftest.$ac_ext <<_ACEOF
4295 #line $LINENO "configure"
4296 #include "confdefs.h"
4297 #include <$ac_header>
4299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4302 egrep -v '^ *\+' conftest.er1 >conftest.err
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } >/dev/null; then
4307 if test -s conftest.err; then
4308 ac_cpp_err=$ac_c_preproc_warn_flag
4315 if test -z "$ac_cpp_err"; then
4316 ac_header_preproc=yes
4318 echo "$as_me: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4320 ac_header_preproc=no
4322 rm -f conftest.err conftest.$ac_ext
4323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4324 echo "${ECHO_T}$ac_header_preproc" >&6
4326 # So? What about this header?
4327 case $ac_header_compiler:$ac_header_preproc in
4329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4341 echo "$as_me:$LINENO: checking for $ac_header" >&5
4342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 eval "$as_ac_Header=$ac_header_preproc"
4348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4353 cat >>confdefs.h <<_ACEOF
4354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4366 for ac_header in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
4368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4370 echo "$as_me:$LINENO: checking for $ac_header" >&5
4371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4378 # Is the header compilable?
4379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4381 cat >conftest.$ac_ext <<_ACEOF
4382 #line $LINENO "configure"
4383 #include "confdefs.h"
4384 $ac_includes_default
4385 #include <$ac_header>
4387 rm -f conftest.$ac_objext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389 (eval $ac_compile) 2>&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 ac_header_compiler=yes
4401 echo "$as_me: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4403 ac_header_compiler=no
4405 rm -f conftest.$ac_objext conftest.$ac_ext
4406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4407 echo "${ECHO_T}$ac_header_compiler" >&6
4409 # Is the header present?
4410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4412 cat >conftest.$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4414 #include "confdefs.h"
4415 #include <$ac_header>
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420 egrep -v '^ *\+' conftest.er1 >conftest.err
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } >/dev/null; then
4425 if test -s conftest.err; then
4426 ac_cpp_err=$ac_c_preproc_warn_flag
4433 if test -z "$ac_cpp_err"; then
4434 ac_header_preproc=yes
4436 echo "$as_me: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 ac_header_preproc=no
4440 rm -f conftest.err conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4442 echo "${ECHO_T}$ac_header_preproc" >&6
4444 # So? What about this header?
4445 case $ac_header_compiler:$ac_header_preproc in
4447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4459 echo "$as_me:$LINENO: checking for $ac_header" >&5
4460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 eval "$as_ac_Header=$ac_header_preproc"
4466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4471 cat >>confdefs.h <<_ACEOF
4472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486 for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
4488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490 echo "$as_me:$LINENO: checking for $ac_header" >&5
4491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4498 # Is the header compilable?
4499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4501 cat >conftest.$ac_ext <<_ACEOF
4502 #line $LINENO "configure"
4503 #include "confdefs.h"
4504 $ac_includes_default
4505 #include <$ac_header>
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4519 ac_header_compiler=yes
4521 echo "$as_me: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4523 ac_header_compiler=no
4525 rm -f conftest.$ac_objext conftest.$ac_ext
4526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4527 echo "${ECHO_T}$ac_header_compiler" >&6
4529 # Is the header present?
4530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4532 cat >conftest.$ac_ext <<_ACEOF
4533 #line $LINENO "configure"
4534 #include "confdefs.h"
4535 #include <$ac_header>
4537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4540 egrep -v '^ *\+' conftest.er1 >conftest.err
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev/null; then
4545 if test -s conftest.err; then
4546 ac_cpp_err=$ac_c_preproc_warn_flag
4553 if test -z "$ac_cpp_err"; then
4554 ac_header_preproc=yes
4556 echo "$as_me: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4558 ac_header_preproc=no
4560 rm -f conftest.err conftest.$ac_ext
4561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4562 echo "${ECHO_T}$ac_header_preproc" >&6
4564 # So? What about this header?
4565 case $ac_header_compiler:$ac_header_preproc in
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4579 echo "$as_me:$LINENO: checking for $ac_header" >&5
4580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 eval "$as_ac_Header=$ac_header_preproc"
4586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4591 cat >>confdefs.h <<_ACEOF
4592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4607 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
4609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4611 echo "$as_me:$LINENO: checking for $ac_header" >&5
4612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4619 # Is the header compilable?
4620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4622 cat >conftest.$ac_ext <<_ACEOF
4623 #line $LINENO "configure"
4624 #include "confdefs.h"
4625 $ac_includes_default
4626 #include <$ac_header>
4628 rm -f conftest.$ac_objext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try='test -s conftest.$ac_objext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 ac_header_compiler=yes
4642 echo "$as_me: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4644 ac_header_compiler=no
4646 rm -f conftest.$ac_objext conftest.$ac_ext
4647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4648 echo "${ECHO_T}$ac_header_compiler" >&6
4650 # Is the header present?
4651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4653 cat >conftest.$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4655 #include "confdefs.h"
4656 #include <$ac_header>
4658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4661 egrep -v '^ *\+' conftest.er1 >conftest.err
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } >/dev/null; then
4666 if test -s conftest.err; then
4667 ac_cpp_err=$ac_c_preproc_warn_flag
4674 if test -z "$ac_cpp_err"; then
4675 ac_header_preproc=yes
4677 echo "$as_me: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4679 ac_header_preproc=no
4681 rm -f conftest.err conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4683 echo "${ECHO_T}$ac_header_preproc" >&6
4685 # So? What about this header?
4686 case $ac_header_compiler:$ac_header_preproc in
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4700 echo "$as_me:$LINENO: checking for $ac_header" >&5
4701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 eval "$as_ac_Header=$ac_header_preproc"
4707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4712 cat >>confdefs.h <<_ACEOF
4713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4726 for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
4728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4730 echo "$as_me:$LINENO: checking for $ac_header" >&5
4731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4738 # Is the header compilable?
4739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4741 cat >conftest.$ac_ext <<_ACEOF
4742 #line $LINENO "configure"
4743 #include "confdefs.h"
4744 $ac_includes_default
4745 #include <$ac_header>
4747 rm -f conftest.$ac_objext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -s conftest.$ac_objext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 ac_header_compiler=yes
4761 echo "$as_me: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4763 ac_header_compiler=no
4765 rm -f conftest.$ac_objext conftest.$ac_ext
4766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4767 echo "${ECHO_T}$ac_header_compiler" >&6
4769 # Is the header present?
4770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4772 cat >conftest.$ac_ext <<_ACEOF
4773 #line $LINENO "configure"
4774 #include "confdefs.h"
4775 #include <$ac_header>
4777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4780 egrep -v '^ *\+' conftest.er1 >conftest.err
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } >/dev/null; then
4785 if test -s conftest.err; then
4786 ac_cpp_err=$ac_c_preproc_warn_flag
4793 if test -z "$ac_cpp_err"; then
4794 ac_header_preproc=yes
4796 echo "$as_me: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 ac_header_preproc=no
4800 rm -f conftest.err conftest.$ac_ext
4801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4802 echo "${ECHO_T}$ac_header_preproc" >&6
4804 # So? What about this header?
4805 case $ac_header_compiler:$ac_header_preproc in
4807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4819 echo "$as_me:$LINENO: checking for $ac_header" >&5
4820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 eval "$as_ac_Header=$ac_header_preproc"
4826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4831 cat >>confdefs.h <<_ACEOF
4832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4845 for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
4847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4849 echo "$as_me:$LINENO: checking for $ac_header" >&5
4850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4857 # Is the header compilable?
4858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4860 cat >conftest.$ac_ext <<_ACEOF
4861 #line $LINENO "configure"
4862 #include "confdefs.h"
4863 $ac_includes_default
4864 #include <$ac_header>
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 ac_header_compiler=yes
4880 echo "$as_me: failed program was:" >&5
4881 cat conftest.$ac_ext >&5
4882 ac_header_compiler=no
4884 rm -f conftest.$ac_objext conftest.$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4886 echo "${ECHO_T}$ac_header_compiler" >&6
4888 # Is the header present?
4889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4893 #include "confdefs.h"
4894 #include <$ac_header>
4896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4899 egrep -v '^ *\+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } >/dev/null; then
4904 if test -s conftest.err; then
4905 ac_cpp_err=$ac_c_preproc_warn_flag
4912 if test -z "$ac_cpp_err"; then
4913 ac_header_preproc=yes
4915 echo "$as_me: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4917 ac_header_preproc=no
4919 rm -f conftest.err conftest.$ac_ext
4920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4921 echo "${ECHO_T}$ac_header_preproc" >&6
4923 # So? What about this header?
4924 case $ac_header_compiler:$ac_header_preproc in
4926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4938 echo "$as_me:$LINENO: checking for $ac_header" >&5
4939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 eval "$as_ac_Header=$ac_header_preproc"
4945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4950 cat >>confdefs.h <<_ACEOF
4951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4963 for ac_header in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
4965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4967 echo "$as_me:$LINENO: checking for $ac_header" >&5
4968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4975 # Is the header compilable?
4976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4978 cat >conftest.$ac_ext <<_ACEOF
4979 #line $LINENO "configure"
4980 #include "confdefs.h"
4981 $ac_includes_default
4982 #include <$ac_header>
4984 rm -f conftest.$ac_objext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986 (eval $ac_compile) 2>&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -s conftest.$ac_objext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_header_compiler=yes
4998 echo "$as_me: failed program was:" >&5
4999 cat conftest.$ac_ext >&5
5000 ac_header_compiler=no
5002 rm -f conftest.$ac_objext conftest.$ac_ext
5003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5004 echo "${ECHO_T}$ac_header_compiler" >&6
5006 # Is the header present?
5007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 #include "confdefs.h"
5012 #include <$ac_header>
5014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5017 egrep -v '^ *\+' conftest.er1 >conftest.err
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } >/dev/null; then
5022 if test -s conftest.err; then
5023 ac_cpp_err=$ac_c_preproc_warn_flag
5030 if test -z "$ac_cpp_err"; then
5031 ac_header_preproc=yes
5033 echo "$as_me: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5035 ac_header_preproc=no
5037 rm -f conftest.err conftest.$ac_ext
5038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5039 echo "${ECHO_T}$ac_header_preproc" >&6
5041 # So? What about this header?
5042 case $ac_header_compiler:$ac_header_preproc in
5044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5056 echo "$as_me:$LINENO: checking for $ac_header" >&5
5057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 eval "$as_ac_Header=$ac_header_preproc"
5063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5068 cat >>confdefs.h <<_ACEOF
5069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5078 for ac_header in sys/syslog.h syslog.h
5080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5082 echo "$as_me:$LINENO: checking for $ac_header" >&5
5083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5090 # Is the header compilable?
5091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5093 cat >conftest.$ac_ext <<_ACEOF
5094 #line $LINENO "configure"
5095 #include "confdefs.h"
5096 $ac_includes_default
5097 #include <$ac_header>
5099 rm -f conftest.$ac_objext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101 (eval $ac_compile) 2>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_header_compiler=yes
5113 echo "$as_me: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 ac_header_compiler=no
5117 rm -f conftest.$ac_objext conftest.$ac_ext
5118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5119 echo "${ECHO_T}$ac_header_compiler" >&6
5121 # Is the header present?
5122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5124 cat >conftest.$ac_ext <<_ACEOF
5125 #line $LINENO "configure"
5126 #include "confdefs.h"
5127 #include <$ac_header>
5129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5132 egrep -v '^ *\+' conftest.er1 >conftest.err
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } >/dev/null; then
5137 if test -s conftest.err; then
5138 ac_cpp_err=$ac_c_preproc_warn_flag
5145 if test -z "$ac_cpp_err"; then
5146 ac_header_preproc=yes
5148 echo "$as_me: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5150 ac_header_preproc=no
5152 rm -f conftest.err conftest.$ac_ext
5153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5154 echo "${ECHO_T}$ac_header_preproc" >&6
5156 # So? What about this header?
5157 case $ac_header_compiler:$ac_header_preproc in
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5171 echo "$as_me:$LINENO: checking for $ac_header" >&5
5172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 eval "$as_ac_Header=$ac_header_preproc"
5178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5183 cat >>confdefs.h <<_ACEOF
5184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5193 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
5194 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
5198 cat >conftest.$ac_ext <<_ACEOF
5199 #line $LINENO "configure"
5200 #include "confdefs.h"
5202 #ifdef F77_DUMMY_MAIN
5206 int F77_DUMMY_MAIN() { return 1; }
5216 rm -f conftest.$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218 (eval $ac_compile) 2>&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try='test -s conftest.$ac_objext'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; }; then
5228 ac_cv_header_shadow_h=yes
5230 echo "$as_me: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5232 ac_cv_header_shadow_h=no
5234 rm -f conftest.$ac_objext conftest.$ac_ext
5235 if test x"$ac_cv_header_shadow_h" = x"yes"; then
5237 cat >>confdefs.h <<\_ACEOF
5238 #define HAVE_SHADOW_H 1
5249 for ac_header in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
5251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5253 echo "$as_me:$LINENO: checking for $ac_header" >&5
5254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5261 # Is the header compilable?
5262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5264 cat >conftest.$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5266 #include "confdefs.h"
5267 $ac_includes_default
5268 #include <$ac_header>
5270 rm -f conftest.$ac_objext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272 (eval $ac_compile) 2>&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -s conftest.$ac_objext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 ac_header_compiler=yes
5284 echo "$as_me: failed program was:" >&5
5285 cat conftest.$ac_ext >&5
5286 ac_header_compiler=no
5288 rm -f conftest.$ac_objext conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5290 echo "${ECHO_T}$ac_header_compiler" >&6
5292 # Is the header present?
5293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5295 cat >conftest.$ac_ext <<_ACEOF
5296 #line $LINENO "configure"
5297 #include "confdefs.h"
5298 #include <$ac_header>
5300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5303 egrep -v '^ *\+' conftest.er1 >conftest.err
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev/null; then
5308 if test -s conftest.err; then
5309 ac_cpp_err=$ac_c_preproc_warn_flag
5316 if test -z "$ac_cpp_err"; then
5317 ac_header_preproc=yes
5319 echo "$as_me: failed program was:" >&5
5320 cat conftest.$ac_ext >&5
5321 ac_header_preproc=no
5323 rm -f conftest.err conftest.$ac_ext
5324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5325 echo "${ECHO_T}$ac_header_preproc" >&6
5327 # So? What about this header?
5328 case $ac_header_compiler:$ac_header_preproc in
5330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5342 echo "$as_me:$LINENO: checking for $ac_header" >&5
5343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 eval "$as_ac_Header=$ac_header_preproc"
5349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5354 cat >>confdefs.h <<_ACEOF
5355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368 for ac_header in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
5370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5372 echo "$as_me:$LINENO: checking for $ac_header" >&5
5373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5380 # Is the header compilable?
5381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5383 cat >conftest.$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5385 #include "confdefs.h"
5386 $ac_includes_default
5387 #include <$ac_header>
5389 rm -f conftest.$ac_objext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5391 (eval $ac_compile) 2>&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -s conftest.$ac_objext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_header_compiler=yes
5403 echo "$as_me: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5405 ac_header_compiler=no
5407 rm -f conftest.$ac_objext conftest.$ac_ext
5408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5409 echo "${ECHO_T}$ac_header_compiler" >&6
5411 # Is the header present?
5412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #line $LINENO "configure"
5416 #include "confdefs.h"
5417 #include <$ac_header>
5419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5422 egrep -v '^ *\+' conftest.er1 >conftest.err
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev/null; then
5427 if test -s conftest.err; then
5428 ac_cpp_err=$ac_c_preproc_warn_flag
5435 if test -z "$ac_cpp_err"; then
5436 ac_header_preproc=yes
5438 echo "$as_me: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5440 ac_header_preproc=no
5442 rm -f conftest.err conftest.$ac_ext
5443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5444 echo "${ECHO_T}$ac_header_preproc" >&6
5446 # So? What about this header?
5447 case $ac_header_compiler:$ac_header_preproc in
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5461 echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 eval "$as_ac_Header=$ac_header_preproc"
5468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5473 cat >>confdefs.h <<_ACEOF
5474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5483 for ac_header in stropts.h poll.h
5485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5487 echo "$as_me:$LINENO: checking for $ac_header" >&5
5488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5495 # Is the header compilable?
5496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5498 cat >conftest.$ac_ext <<_ACEOF
5499 #line $LINENO "configure"
5500 #include "confdefs.h"
5501 $ac_includes_default
5502 #include <$ac_header>
5504 rm -f conftest.$ac_objext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5506 (eval $ac_compile) 2>&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try='test -s conftest.$ac_objext'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
5516 ac_header_compiler=yes
5518 echo "$as_me: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5520 ac_header_compiler=no
5522 rm -f conftest.$ac_objext conftest.$ac_ext
5523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5524 echo "${ECHO_T}$ac_header_compiler" >&6
5526 # Is the header present?
5527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5529 cat >conftest.$ac_ext <<_ACEOF
5530 #line $LINENO "configure"
5531 #include "confdefs.h"
5532 #include <$ac_header>
5534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5537 egrep -v '^ *\+' conftest.er1 >conftest.err
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } >/dev/null; then
5542 if test -s conftest.err; then
5543 ac_cpp_err=$ac_c_preproc_warn_flag
5550 if test -z "$ac_cpp_err"; then
5551 ac_header_preproc=yes
5553 echo "$as_me: failed program was:" >&5
5554 cat conftest.$ac_ext >&5
5555 ac_header_preproc=no
5557 rm -f conftest.err conftest.$ac_ext
5558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5559 echo "${ECHO_T}$ac_header_preproc" >&6
5561 # So? What about this header?
5562 case $ac_header_compiler:$ac_header_preproc in
5564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5576 echo "$as_me:$LINENO: checking for $ac_header" >&5
5577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 eval "$as_ac_Header=$ac_header_preproc"
5583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5588 cat >>confdefs.h <<_ACEOF
5589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5599 for ac_header in sys/capability.h syscall.h sys/syscall.h
5601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5603 echo "$as_me:$LINENO: checking for $ac_header" >&5
5604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5611 # Is the header compilable?
5612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5614 cat >conftest.$ac_ext <<_ACEOF
5615 #line $LINENO "configure"
5616 #include "confdefs.h"
5617 $ac_includes_default
5618 #include <$ac_header>
5620 rm -f conftest.$ac_objext
5621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5622 (eval $ac_compile) 2>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try='test -s conftest.$ac_objext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_header_compiler=yes
5634 echo "$as_me: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5636 ac_header_compiler=no
5638 rm -f conftest.$ac_objext conftest.$ac_ext
5639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5640 echo "${ECHO_T}$ac_header_compiler" >&6
5642 # Is the header present?
5643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5645 cat >conftest.$ac_ext <<_ACEOF
5646 #line $LINENO "configure"
5647 #include "confdefs.h"
5648 #include <$ac_header>
5650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5653 egrep -v '^ *\+' conftest.er1 >conftest.err
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } >/dev/null; then
5658 if test -s conftest.err; then
5659 ac_cpp_err=$ac_c_preproc_warn_flag
5666 if test -z "$ac_cpp_err"; then
5667 ac_header_preproc=yes
5669 echo "$as_me: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5671 ac_header_preproc=no
5673 rm -f conftest.err conftest.$ac_ext
5674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5675 echo "${ECHO_T}$ac_header_preproc" >&6
5677 # So? What about this header?
5678 case $ac_header_compiler:$ac_header_preproc in
5680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5692 echo "$as_me:$LINENO: checking for $ac_header" >&5
5693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 eval "$as_ac_Header=$ac_header_preproc"
5699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5704 cat >>confdefs.h <<_ACEOF
5705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5715 for ac_header in sys/acl.h sys/cdefs.h glob.h
5717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5719 echo "$as_me:$LINENO: checking for $ac_header" >&5
5720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5727 # Is the header compilable?
5728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5730 cat >conftest.$ac_ext <<_ACEOF
5731 #line $LINENO "configure"
5732 #include "confdefs.h"
5733 $ac_includes_default
5734 #include <$ac_header>
5736 rm -f conftest.$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738 (eval $ac_compile) 2>&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 ac_header_compiler=yes
5750 echo "$as_me: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5752 ac_header_compiler=no
5754 rm -f conftest.$ac_objext conftest.$ac_ext
5755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5756 echo "${ECHO_T}$ac_header_compiler" >&6
5758 # Is the header present?
5759 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5761 cat >conftest.$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5763 #include "confdefs.h"
5764 #include <$ac_header>
5766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5769 egrep -v '^ *\+' conftest.er1 >conftest.err
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } >/dev/null; then
5774 if test -s conftest.err; then
5775 ac_cpp_err=$ac_c_preproc_warn_flag
5782 if test -z "$ac_cpp_err"; then
5783 ac_header_preproc=yes
5785 echo "$as_me: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5787 ac_header_preproc=no
5789 rm -f conftest.err conftest.$ac_ext
5790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5791 echo "${ECHO_T}$ac_header_preproc" >&6
5793 # So? What about this header?
5794 case $ac_header_compiler:$ac_header_preproc in
5796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5808 echo "$as_me:$LINENO: checking for $ac_header" >&5
5809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 eval "$as_ac_Header=$ac_header_preproc"
5815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5820 cat >>confdefs.h <<_ACEOF
5821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5829 # For experimental utmp support (lastlog on some BSD-like systems)
5833 for ac_header in utmp.h utmpx.h lastlog.h
5835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5837 echo "$as_me:$LINENO: checking for $ac_header" >&5
5838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5845 # Is the header compilable?
5846 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 #include "confdefs.h"
5851 $ac_includes_default
5852 #include <$ac_header>
5854 rm -f conftest.$ac_objext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856 (eval $ac_compile) 2>&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -s conftest.$ac_objext'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
5866 ac_header_compiler=yes
5868 echo "$as_me: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5870 ac_header_compiler=no
5872 rm -f conftest.$ac_objext conftest.$ac_ext
5873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5874 echo "${ECHO_T}$ac_header_compiler" >&6
5876 # Is the header present?
5877 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5879 cat >conftest.$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5881 #include "confdefs.h"
5882 #include <$ac_header>
5884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5887 egrep -v '^ *\+' conftest.er1 >conftest.err
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } >/dev/null; then
5892 if test -s conftest.err; then
5893 ac_cpp_err=$ac_c_preproc_warn_flag
5900 if test -z "$ac_cpp_err"; then
5901 ac_header_preproc=yes
5903 echo "$as_me: failed program was:" >&5
5904 cat conftest.$ac_ext >&5
5905 ac_header_preproc=no
5907 rm -f conftest.err conftest.$ac_ext
5908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5909 echo "${ECHO_T}$ac_header_preproc" >&6
5911 # So? What about this header?
5912 case $ac_header_compiler:$ac_header_preproc in
5914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5926 echo "$as_me:$LINENO: checking for $ac_header" >&5
5927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 eval "$as_ac_Header=$ac_header_preproc"
5933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5938 cat >>confdefs.h <<_ACEOF
5939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5947 # For quotas on Veritas VxFS filesystems
5949 for ac_header in sys/fs/vx_quota.h
5951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953 echo "$as_me:$LINENO: checking for $ac_header" >&5
5954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5961 # Is the header compilable?
5962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5964 cat >conftest.$ac_ext <<_ACEOF
5965 #line $LINENO "configure"
5966 #include "confdefs.h"
5967 $ac_includes_default
5968 #include <$ac_header>
5970 rm -f conftest.$ac_objext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972 (eval $ac_compile) 2>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } &&
5976 { ac_try='test -s conftest.$ac_objext'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5982 ac_header_compiler=yes
5984 echo "$as_me: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5986 ac_header_compiler=no
5988 rm -f conftest.$ac_objext conftest.$ac_ext
5989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5990 echo "${ECHO_T}$ac_header_compiler" >&6
5992 # Is the header present?
5993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5995 cat >conftest.$ac_ext <<_ACEOF
5996 #line $LINENO "configure"
5997 #include "confdefs.h"
5998 #include <$ac_header>
6000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6003 egrep -v '^ *\+' conftest.er1 >conftest.err
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } >/dev/null; then
6008 if test -s conftest.err; then
6009 ac_cpp_err=$ac_c_preproc_warn_flag
6016 if test -z "$ac_cpp_err"; then
6017 ac_header_preproc=yes
6019 echo "$as_me: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6021 ac_header_preproc=no
6023 rm -f conftest.err conftest.$ac_ext
6024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6025 echo "${ECHO_T}$ac_header_preproc" >&6
6027 # So? What about this header?
6028 case $ac_header_compiler:$ac_header_preproc in
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6042 echo "$as_me:$LINENO: checking for $ac_header" >&5
6043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 eval "$as_ac_Header=$ac_header_preproc"
6049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6054 cat >>confdefs.h <<_ACEOF
6055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6063 # For quotas on Linux XFS filesystems
6065 for ac_header in linux/xqm.h
6067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6069 echo "$as_me:$LINENO: checking for $ac_header" >&5
6070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6077 # Is the header compilable?
6078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6080 cat >conftest.$ac_ext <<_ACEOF
6081 #line $LINENO "configure"
6082 #include "confdefs.h"
6083 $ac_includes_default
6084 #include <$ac_header>
6086 rm -f conftest.$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_header_compiler=yes
6100 echo "$as_me: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6102 ac_header_compiler=no
6104 rm -f conftest.$ac_objext conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6106 echo "${ECHO_T}$ac_header_compiler" >&6
6108 # Is the header present?
6109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6112 #line $LINENO "configure"
6113 #include "confdefs.h"
6114 #include <$ac_header>
6116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6119 egrep -v '^ *\+' conftest.er1 >conftest.err
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } >/dev/null; then
6124 if test -s conftest.err; then
6125 ac_cpp_err=$ac_c_preproc_warn_flag
6132 if test -z "$ac_cpp_err"; then
6133 ac_header_preproc=yes
6135 echo "$as_me: failed program was:" >&5
6136 cat conftest.$ac_ext >&5
6137 ac_header_preproc=no
6139 rm -f conftest.err conftest.$ac_ext
6140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6141 echo "${ECHO_T}$ac_header_preproc" >&6
6143 # So? What about this header?
6144 case $ac_header_compiler:$ac_header_preproc in
6146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6158 echo "$as_me:$LINENO: checking for $ac_header" >&5
6159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 eval "$as_ac_Header=$ac_header_preproc"
6165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6170 cat >>confdefs.h <<_ACEOF
6171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6179 for ac_header in xfs/xqm.h
6181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6183 echo "$as_me:$LINENO: checking for $ac_header" >&5
6184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6191 # Is the header compilable?
6192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6194 cat >conftest.$ac_ext <<_ACEOF
6195 #line $LINENO "configure"
6196 #include "confdefs.h"
6197 $ac_includes_default
6198 #include <$ac_header>
6200 rm -f conftest.$ac_objext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202 (eval $ac_compile) 2>&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } &&
6206 { ac_try='test -s conftest.$ac_objext'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; }; then
6212 ac_header_compiler=yes
6214 echo "$as_me: failed program was:" >&5
6215 cat conftest.$ac_ext >&5
6216 ac_header_compiler=no
6218 rm -f conftest.$ac_objext conftest.$ac_ext
6219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6220 echo "${ECHO_T}$ac_header_compiler" >&6
6222 # Is the header present?
6223 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6225 cat >conftest.$ac_ext <<_ACEOF
6226 #line $LINENO "configure"
6227 #include "confdefs.h"
6228 #include <$ac_header>
6230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6233 egrep -v '^ *\+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } >/dev/null; then
6238 if test -s conftest.err; then
6239 ac_cpp_err=$ac_c_preproc_warn_flag
6246 if test -z "$ac_cpp_err"; then
6247 ac_header_preproc=yes
6249 echo "$as_me: failed program was:" >&5
6250 cat conftest.$ac_ext >&5
6251 ac_header_preproc=no
6253 rm -f conftest.err conftest.$ac_ext
6254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6255 echo "${ECHO_T}$ac_header_preproc" >&6
6257 # So? What about this header?
6258 case $ac_header_compiler:$ac_header_preproc in
6260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6272 echo "$as_me:$LINENO: checking for $ac_header" >&5
6273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 eval "$as_ac_Header=$ac_header_preproc"
6279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6284 cat >>confdefs.h <<_ACEOF
6285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6293 echo "$as_me:$LINENO: checking for int" >&5
6294 echo $ECHO_N "checking for int... $ECHO_C" >&6
6295 if test "${ac_cv_type_int+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 cat >conftest.$ac_ext <<_ACEOF
6299 #line $LINENO "configure"
6300 #include "confdefs.h"
6301 $ac_includes_default
6302 #ifdef F77_DUMMY_MAIN
6306 int F77_DUMMY_MAIN() { return 1; }
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try='test -s conftest.$ac_objext'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6333 echo "$as_me: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6339 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6340 echo "${ECHO_T}$ac_cv_type_int" >&6
6342 echo "$as_me:$LINENO: checking size of int" >&5
6343 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6344 if test "${ac_cv_sizeof_int+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 if test "$ac_cv_type_int" = yes; then
6348 # The cast to unsigned long works around a bug in the HP C Compiler
6349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6351 # This bug is HP SR number 8606223364.
6352 if test "$cross_compiling" = yes; then
6353 # Depending upon the size, compute the lo and hi bounds.
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6356 #include "confdefs.h"
6357 $ac_includes_default
6358 #ifdef F77_DUMMY_MAIN
6362 int F77_DUMMY_MAIN() { return 1; }
6367 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6374 rm -f conftest.$ac_objext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest.$ac_objext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6388 cat >conftest.$ac_ext <<_ACEOF
6389 #line $LINENO "configure"
6390 #include "confdefs.h"
6391 $ac_includes_default
6392 #ifdef F77_DUMMY_MAIN
6396 int F77_DUMMY_MAIN() { return 1; }
6401 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_hi=$ac_mid; break
6422 echo "$as_me: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6424 ac_lo=`expr $ac_mid + 1`
6425 if test $ac_lo -le $ac_mid; then
6429 ac_mid=`expr 2 '*' $ac_mid + 1`
6431 rm -f conftest.$ac_objext conftest.$ac_ext
6434 echo "$as_me: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6436 cat >conftest.$ac_ext <<_ACEOF
6437 #line $LINENO "configure"
6438 #include "confdefs.h"
6439 $ac_includes_default
6440 #ifdef F77_DUMMY_MAIN
6444 int F77_DUMMY_MAIN() { return 1; }
6449 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6470 cat >conftest.$ac_ext <<_ACEOF
6471 #line $LINENO "configure"
6472 #include "confdefs.h"
6473 $ac_includes_default
6474 #ifdef F77_DUMMY_MAIN
6478 int F77_DUMMY_MAIN() { return 1; }
6483 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6490 rm -f conftest.$ac_objext
6491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6492 (eval $ac_compile) 2>&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } &&
6496 { ac_try='test -s conftest.$ac_objext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_lo=$ac_mid; break
6504 echo "$as_me: failed program was:" >&5
6505 cat conftest.$ac_ext >&5
6506 ac_hi=`expr '(' $ac_mid ')' - 1`
6507 if test $ac_mid -le $ac_hi; then
6511 ac_mid=`expr 2 '*' $ac_mid`
6513 rm -f conftest.$ac_objext conftest.$ac_ext
6516 echo "$as_me: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6520 rm -f conftest.$ac_objext conftest.$ac_ext
6522 rm -f conftest.$ac_objext conftest.$ac_ext
6523 # Binary search between lo and hi bounds.
6524 while test "x$ac_lo" != "x$ac_hi"; do
6525 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6526 cat >conftest.$ac_ext <<_ACEOF
6527 #line $LINENO "configure"
6528 #include "confdefs.h"
6529 $ac_includes_default
6530 #ifdef F77_DUMMY_MAIN
6534 int F77_DUMMY_MAIN() { return 1; }
6539 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6546 rm -f conftest.$ac_objext
6547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6548 (eval $ac_compile) 2>&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } &&
6552 { ac_try='test -s conftest.$ac_objext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6560 echo "$as_me: failed program was:" >&5
6561 cat conftest.$ac_ext >&5
6562 ac_lo=`expr '(' $ac_mid ')' + 1`
6564 rm -f conftest.$ac_objext conftest.$ac_ext
6567 ?*) ac_cv_sizeof_int=$ac_lo;;
6568 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6569 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6570 { (exit 1); exit 1; }; } ;;
6573 if test "$cross_compiling" = yes; then
6574 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6575 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6576 { (exit 1); exit 1; }; }
6578 cat >conftest.$ac_ext <<_ACEOF
6579 #line $LINENO "configure"
6580 #include "confdefs.h"
6581 $ac_includes_default
6582 long longval () { return (long) (sizeof (int)); }
6583 unsigned long ulongval () { return (long) (sizeof (int)); }
6586 #ifdef F77_DUMMY_MAIN
6590 int F77_DUMMY_MAIN() { return 1; }
6596 FILE *f = fopen ("conftest.val", "w");
6599 if (((long) (sizeof (int))) < 0)
6601 long i = longval ();
6602 if (i != ((long) (sizeof (int))))
6604 fprintf (f, "%ld\n", i);
6608 unsigned long i = ulongval ();
6609 if (i != ((long) (sizeof (int))))
6611 fprintf (f, "%lu\n", i);
6613 exit (ferror (f) || fclose (f) != 0);
6619 rm -f conftest$ac_exeext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6621 (eval $ac_link) 2>&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
6630 ac_cv_sizeof_int=`cat conftest.val`
6632 echo "$as_me: program exited with status $ac_status" >&5
6633 echo "$as_me: failed program was:" >&5
6634 cat conftest.$ac_ext >&5
6636 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6637 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6638 { (exit 1); exit 1; }; }
6640 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6648 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6649 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6650 cat >>confdefs.h <<_ACEOF
6651 #define SIZEOF_INT $ac_cv_sizeof_int
6655 echo "$as_me:$LINENO: checking for long" >&5
6656 echo $ECHO_N "checking for long... $ECHO_C" >&6
6657 if test "${ac_cv_type_long+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 cat >conftest.$ac_ext <<_ACEOF
6661 #line $LINENO "configure"
6662 #include "confdefs.h"
6663 $ac_includes_default
6664 #ifdef F77_DUMMY_MAIN
6668 int F77_DUMMY_MAIN() { return 1; }
6681 rm -f conftest.$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683 (eval $ac_compile) 2>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -s conftest.$ac_objext'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; }; then
6695 echo "$as_me: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6699 rm -f conftest.$ac_objext conftest.$ac_ext
6701 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6702 echo "${ECHO_T}$ac_cv_type_long" >&6
6704 echo "$as_me:$LINENO: checking size of long" >&5
6705 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6706 if test "${ac_cv_sizeof_long+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 if test "$ac_cv_type_long" = yes; then
6710 # The cast to unsigned long works around a bug in the HP C Compiler
6711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6713 # This bug is HP SR number 8606223364.
6714 if test "$cross_compiling" = yes; then
6715 # Depending upon the size, compute the lo and hi bounds.
6716 cat >conftest.$ac_ext <<_ACEOF
6717 #line $LINENO "configure"
6718 #include "confdefs.h"
6719 $ac_includes_default
6720 #ifdef F77_DUMMY_MAIN
6724 int F77_DUMMY_MAIN() { return 1; }
6729 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6736 rm -f conftest.$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738 (eval $ac_compile) 2>&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try='test -s conftest.$ac_objext'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6750 cat >conftest.$ac_ext <<_ACEOF
6751 #line $LINENO "configure"
6752 #include "confdefs.h"
6753 $ac_includes_default
6754 #ifdef F77_DUMMY_MAIN
6758 int F77_DUMMY_MAIN() { return 1; }
6763 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6770 rm -f conftest.$ac_objext
6771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6772 (eval $ac_compile) 2>&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try='test -s conftest.$ac_objext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 ac_hi=$ac_mid; break
6784 echo "$as_me: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6786 ac_lo=`expr $ac_mid + 1`
6787 if test $ac_lo -le $ac_mid; then
6791 ac_mid=`expr 2 '*' $ac_mid + 1`
6793 rm -f conftest.$ac_objext conftest.$ac_ext
6796 echo "$as_me: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6798 cat >conftest.$ac_ext <<_ACEOF
6799 #line $LINENO "configure"
6800 #include "confdefs.h"
6801 $ac_includes_default
6802 #ifdef F77_DUMMY_MAIN
6806 int F77_DUMMY_MAIN() { return 1; }
6811 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6818 rm -f conftest.$ac_objext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820 (eval $ac_compile) 2>&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -s conftest.$ac_objext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6832 cat >conftest.$ac_ext <<_ACEOF
6833 #line $LINENO "configure"
6834 #include "confdefs.h"
6835 $ac_includes_default
6836 #ifdef F77_DUMMY_MAIN
6840 int F77_DUMMY_MAIN() { return 1; }
6845 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } &&
6858 { ac_try='test -s conftest.$ac_objext'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_lo=$ac_mid; break
6866 echo "$as_me: failed program was:" >&5
6867 cat conftest.$ac_ext >&5
6868 ac_hi=`expr '(' $ac_mid ')' - 1`
6869 if test $ac_mid -le $ac_hi; then
6873 ac_mid=`expr 2 '*' $ac_mid`
6875 rm -f conftest.$ac_objext conftest.$ac_ext
6878 echo "$as_me: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6882 rm -f conftest.$ac_objext conftest.$ac_ext
6884 rm -f conftest.$ac_objext conftest.$ac_ext
6885 # Binary search between lo and hi bounds.
6886 while test "x$ac_lo" != "x$ac_hi"; do
6887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6888 cat >conftest.$ac_ext <<_ACEOF
6889 #line $LINENO "configure"
6890 #include "confdefs.h"
6891 $ac_includes_default
6892 #ifdef F77_DUMMY_MAIN
6896 int F77_DUMMY_MAIN() { return 1; }
6901 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6908 rm -f conftest.$ac_objext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910 (eval $ac_compile) 2>&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } &&
6914 { ac_try='test -s conftest.$ac_objext'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
6922 echo "$as_me: failed program was:" >&5
6923 cat conftest.$ac_ext >&5
6924 ac_lo=`expr '(' $ac_mid ')' + 1`
6926 rm -f conftest.$ac_objext conftest.$ac_ext
6929 ?*) ac_cv_sizeof_long=$ac_lo;;
6930 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6931 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6932 { (exit 1); exit 1; }; } ;;
6935 if test "$cross_compiling" = yes; then
6936 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6937 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6938 { (exit 1); exit 1; }; }
6940 cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6942 #include "confdefs.h"
6943 $ac_includes_default
6944 long longval () { return (long) (sizeof (long)); }
6945 unsigned long ulongval () { return (long) (sizeof (long)); }
6948 #ifdef F77_DUMMY_MAIN
6952 int F77_DUMMY_MAIN() { return 1; }
6958 FILE *f = fopen ("conftest.val", "w");
6961 if (((long) (sizeof (long))) < 0)
6963 long i = longval ();
6964 if (i != ((long) (sizeof (long))))
6966 fprintf (f, "%ld\n", i);
6970 unsigned long i = ulongval ();
6971 if (i != ((long) (sizeof (long))))
6973 fprintf (f, "%lu\n", i);
6975 exit (ferror (f) || fclose (f) != 0);
6981 rm -f conftest$ac_exeext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983 (eval $ac_link) 2>&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 ac_cv_sizeof_long=`cat conftest.val`
6994 echo "$as_me: program exited with status $ac_status" >&5
6995 echo "$as_me: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6998 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6999 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
7000 { (exit 1); exit 1; }; }
7002 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7010 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7011 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7012 cat >>confdefs.h <<_ACEOF
7013 #define SIZEOF_LONG $ac_cv_sizeof_long
7017 echo "$as_me:$LINENO: checking for short" >&5
7018 echo $ECHO_N "checking for short... $ECHO_C" >&6
7019 if test "${ac_cv_type_short+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 cat >conftest.$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7024 #include "confdefs.h"
7025 $ac_includes_default
7026 #ifdef F77_DUMMY_MAIN
7030 int F77_DUMMY_MAIN() { return 1; }
7043 rm -f conftest.$ac_objext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045 (eval $ac_compile) 2>&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try='test -s conftest.$ac_objext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_cv_type_short=yes
7057 echo "$as_me: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7061 rm -f conftest.$ac_objext conftest.$ac_ext
7063 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7064 echo "${ECHO_T}$ac_cv_type_short" >&6
7066 echo "$as_me:$LINENO: checking size of short" >&5
7067 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7068 if test "${ac_cv_sizeof_short+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 if test "$ac_cv_type_short" = yes; then
7072 # The cast to unsigned long works around a bug in the HP C Compiler
7073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7075 # This bug is HP SR number 8606223364.
7076 if test "$cross_compiling" = yes; then
7077 # Depending upon the size, compute the lo and hi bounds.
7078 cat >conftest.$ac_ext <<_ACEOF
7079 #line $LINENO "configure"
7080 #include "confdefs.h"
7081 $ac_includes_default
7082 #ifdef F77_DUMMY_MAIN
7086 int F77_DUMMY_MAIN() { return 1; }
7091 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7098 rm -f conftest.$ac_objext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try='test -s conftest.$ac_objext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7112 cat >conftest.$ac_ext <<_ACEOF
7113 #line $LINENO "configure"
7114 #include "confdefs.h"
7115 $ac_includes_default
7116 #ifdef F77_DUMMY_MAIN
7120 int F77_DUMMY_MAIN() { return 1; }
7125 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7132 rm -f conftest.$ac_objext
7133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7134 (eval $ac_compile) 2>&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -s conftest.$ac_objext'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 ac_hi=$ac_mid; break
7146 echo "$as_me: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 ac_lo=`expr $ac_mid + 1`
7149 if test $ac_lo -le $ac_mid; then
7153 ac_mid=`expr 2 '*' $ac_mid + 1`
7155 rm -f conftest.$ac_objext conftest.$ac_ext
7158 echo "$as_me: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7160 cat >conftest.$ac_ext <<_ACEOF
7161 #line $LINENO "configure"
7162 #include "confdefs.h"
7163 $ac_includes_default
7164 #ifdef F77_DUMMY_MAIN
7168 int F77_DUMMY_MAIN() { return 1; }
7173 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7180 rm -f conftest.$ac_objext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7182 (eval $ac_compile) 2>&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -s conftest.$ac_objext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7194 cat >conftest.$ac_ext <<_ACEOF
7195 #line $LINENO "configure"
7196 #include "confdefs.h"
7197 $ac_includes_default
7198 #ifdef F77_DUMMY_MAIN
7202 int F77_DUMMY_MAIN() { return 1; }
7207 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7214 rm -f conftest.$ac_objext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7216 (eval $ac_compile) 2>&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_lo=$ac_mid; break
7228 echo "$as_me: failed program was:" >&5
7229 cat conftest.$ac_ext >&5
7230 ac_hi=`expr '(' $ac_mid ')' - 1`
7231 if test $ac_mid -le $ac_hi; then
7235 ac_mid=`expr 2 '*' $ac_mid`
7237 rm -f conftest.$ac_objext conftest.$ac_ext
7240 echo "$as_me: failed program was:" >&5
7241 cat conftest.$ac_ext >&5
7244 rm -f conftest.$ac_objext conftest.$ac_ext
7246 rm -f conftest.$ac_objext conftest.$ac_ext
7247 # Binary search between lo and hi bounds.
7248 while test "x$ac_lo" != "x$ac_hi"; do
7249 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7250 cat >conftest.$ac_ext <<_ACEOF
7251 #line $LINENO "configure"
7252 #include "confdefs.h"
7253 $ac_includes_default
7254 #ifdef F77_DUMMY_MAIN
7258 int F77_DUMMY_MAIN() { return 1; }
7263 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7270 rm -f conftest.$ac_objext
7271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7272 (eval $ac_compile) 2>&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try='test -s conftest.$ac_objext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7284 echo "$as_me: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7286 ac_lo=`expr '(' $ac_mid ')' + 1`
7288 rm -f conftest.$ac_objext conftest.$ac_ext
7291 ?*) ac_cv_sizeof_short=$ac_lo;;
7292 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7293 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7294 { (exit 1); exit 1; }; } ;;
7297 if test "$cross_compiling" = yes; then
7298 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7299 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7300 { (exit 1); exit 1; }; }
7302 cat >conftest.$ac_ext <<_ACEOF
7303 #line $LINENO "configure"
7304 #include "confdefs.h"
7305 $ac_includes_default
7306 long longval () { return (long) (sizeof (short)); }
7307 unsigned long ulongval () { return (long) (sizeof (short)); }
7310 #ifdef F77_DUMMY_MAIN
7314 int F77_DUMMY_MAIN() { return 1; }
7320 FILE *f = fopen ("conftest.val", "w");
7323 if (((long) (sizeof (short))) < 0)
7325 long i = longval ();
7326 if (i != ((long) (sizeof (short))))
7328 fprintf (f, "%ld\n", i);
7332 unsigned long i = ulongval ();
7333 if (i != ((long) (sizeof (short))))
7335 fprintf (f, "%lu\n", i);
7337 exit (ferror (f) || fclose (f) != 0);
7343 rm -f conftest$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7354 ac_cv_sizeof_short=`cat conftest.val`
7356 echo "$as_me: program exited with status $ac_status" >&5
7357 echo "$as_me: failed program was:" >&5
7358 cat conftest.$ac_ext >&5
7360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7361 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7362 { (exit 1); exit 1; }; }
7364 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7369 ac_cv_sizeof_short=0
7372 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7373 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7374 cat >>confdefs.h <<_ACEOF
7375 #define SIZEOF_SHORT $ac_cv_sizeof_short
7380 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7381 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7382 if test "${ac_cv_c_const+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 cat >conftest.$ac_ext <<_ACEOF
7386 #line $LINENO "configure"
7387 #include "confdefs.h"
7389 #ifdef F77_DUMMY_MAIN
7393 int F77_DUMMY_MAIN() { return 1; }
7398 /* FIXME: Include the comments suggested by Paul. */
7400 /* Ultrix mips cc rejects this. */
7401 typedef int charset[2];
7403 /* SunOS 4.1.1 cc rejects this. */
7404 char const *const *ccp;
7406 /* NEC SVR4.0.2 mips cc rejects this. */
7407 struct point {int x, y;};
7408 static struct point const zero = {0,0};
7409 /* AIX XL C 1.02.0.0 rejects this.
7410 It does not let you subtract one const X* pointer from another in
7411 an arm of an if-expression whose if-part is not a constant
7413 const char *g = "string";
7414 ccp = &g + (g ? g-g : 0);
7415 /* HPUX 7.0 cc rejects these. */
7418 ccp = (char const *const *) p;
7419 { /* SCO 3.2v4 cc rejects this. */
7421 char const *s = 0 ? (char *) 0 : (char const *) 0;
7425 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7427 const int *foo = &x[0];
7430 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7431 typedef const int *iptr;
7435 { /* AIX XL C 1.02.0.0 rejects this saying
7436 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7437 struct s { int j; const int *ap[3]; };
7438 struct s *b; b->j = 5;
7440 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7449 rm -f conftest.$ac_objext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7451 (eval $ac_compile) 2>&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -s conftest.$ac_objext'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7463 echo "$as_me: failed program was:" >&5
7464 cat conftest.$ac_ext >&5
7467 rm -f conftest.$ac_objext conftest.$ac_ext
7469 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7470 echo "${ECHO_T}$ac_cv_c_const" >&6
7471 if test $ac_cv_c_const = no; then
7473 cat >>confdefs.h <<\_ACEOF
7479 echo "$as_me:$LINENO: checking for inline" >&5
7480 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7481 if test "${ac_cv_c_inline+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 for ac_kw in inline __inline__ __inline; do
7486 cat >conftest.$ac_ext <<_ACEOF
7487 #line $LINENO "configure"
7488 #include "confdefs.h"
7490 static $ac_kw int static_foo () {return 0; }
7491 $ac_kw int foo () {return 0; }
7495 rm -f conftest.$ac_objext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497 (eval $ac_compile) 2>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -s conftest.$ac_objext'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 ac_cv_c_inline=$ac_kw; break
7509 echo "$as_me: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7512 rm -f conftest.$ac_objext conftest.$ac_ext
7516 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7517 echo "${ECHO_T}$ac_cv_c_inline" >&6
7518 case $ac_cv_c_inline in
7521 cat >>confdefs.h <<\_ACEOF
7525 *) cat >>confdefs.h <<_ACEOF
7526 #define inline $ac_cv_c_inline
7531 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7532 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7533 if test "${ac_cv_c_bigendian+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 # See if sys/param.h defines the BYTE_ORDER macro.
7537 cat >conftest.$ac_ext <<_ACEOF
7538 #line $LINENO "configure"
7539 #include "confdefs.h"
7540 #include <sys/types.h>
7541 #include <sys/param.h>
7543 #ifdef F77_DUMMY_MAIN
7547 int F77_DUMMY_MAIN() { return 1; }
7552 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7560 rm -f conftest.$ac_objext
7561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7562 (eval $ac_compile) 2>&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try='test -s conftest.$ac_objext'
7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; }; then
7572 # It does; now see whether it defined to BIG_ENDIAN or not.
7573 cat >conftest.$ac_ext <<_ACEOF
7574 #line $LINENO "configure"
7575 #include "confdefs.h"
7576 #include <sys/types.h>
7577 #include <sys/param.h>
7579 #ifdef F77_DUMMY_MAIN
7583 int F77_DUMMY_MAIN() { return 1; }
7588 #if BYTE_ORDER != BIG_ENDIAN
7596 rm -f conftest.$ac_objext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7598 (eval $ac_compile) 2>&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try='test -s conftest.$ac_objext'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; }; then
7608 ac_cv_c_bigendian=yes
7610 echo "$as_me: failed program was:" >&5
7611 cat conftest.$ac_ext >&5
7612 ac_cv_c_bigendian=no
7614 rm -f conftest.$ac_objext conftest.$ac_ext
7616 echo "$as_me: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7618 # It does not; compile a test program.
7619 if test "$cross_compiling" = yes; then
7620 # try to guess the endianess by grep'ing values into an object file
7621 ac_cv_c_bigendian=unknown
7622 cat >conftest.$ac_ext <<_ACEOF
7623 #line $LINENO "configure"
7624 #include "confdefs.h"
7625 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7626 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7627 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7628 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7629 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7630 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7631 #ifdef F77_DUMMY_MAIN
7635 int F77_DUMMY_MAIN() { return 1; }
7640 _ascii (); _ebcdic ();
7645 rm -f conftest.$ac_objext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647 (eval $ac_compile) 2>&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -s conftest.$ac_objext'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7657 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7658 ac_cv_c_bigendian=yes
7660 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7661 if test "$ac_cv_c_bigendian" = unknown; then
7662 ac_cv_c_bigendian=no
7664 # finding both strings is unlikely to happen, but who knows?
7665 ac_cv_c_bigendian=unknown
7669 echo "$as_me: failed program was:" >&5
7670 cat conftest.$ac_ext >&5
7672 rm -f conftest.$ac_objext conftest.$ac_ext
7674 cat >conftest.$ac_ext <<_ACEOF
7675 #line $LINENO "configure"
7676 #include "confdefs.h"
7680 /* Are we little or big endian? From Harbison&Steele. */
7684 char c[sizeof (long)];
7687 exit (u.c[sizeof (long) - 1] == 1);
7690 rm -f conftest$ac_exeext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7692 (eval $ac_link) 2>&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701 ac_cv_c_bigendian=no
7703 echo "$as_me: program exited with status $ac_status" >&5
7704 echo "$as_me: failed program was:" >&5
7705 cat conftest.$ac_ext >&5
7707 ac_cv_c_bigendian=yes
7709 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7712 rm -f conftest.$ac_objext conftest.$ac_ext
7714 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7715 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7716 case $ac_cv_c_bigendian in
7719 cat >>confdefs.h <<\_ACEOF
7720 #define WORDS_BIGENDIAN 1
7726 { { echo "$as_me:$LINENO: error: unknown endianess
7727 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7728 echo "$as_me: error: unknown endianess
7729 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7730 { (exit 1); exit 1; }; } ;;
7734 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7735 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7736 if test "${ac_cv_c_char_unsigned+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 cat >conftest.$ac_ext <<_ACEOF
7740 #line $LINENO "configure"
7741 #include "confdefs.h"
7742 $ac_includes_default
7743 #ifdef F77_DUMMY_MAIN
7747 int F77_DUMMY_MAIN() { return 1; }
7752 static int test_array [1 - 2 * !(((char) -1) < 0)];
7759 rm -f conftest.$ac_objext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -s conftest.$ac_objext'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; }; then
7771 ac_cv_c_char_unsigned=no
7773 echo "$as_me: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7775 ac_cv_c_char_unsigned=yes
7777 rm -f conftest.$ac_objext conftest.$ac_ext
7779 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7780 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7781 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7782 cat >>confdefs.h <<\_ACEOF
7783 #define __CHAR_UNSIGNED__ 1
7789 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7790 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7791 if test "${ac_cv_type_signal+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 cat >conftest.$ac_ext <<_ACEOF
7795 #line $LINENO "configure"
7796 #include "confdefs.h"
7797 #include <sys/types.h>
7803 extern "C" void (*signal (int, void (*)(int)))(int);
7805 void (*signal ()) ();
7808 #ifdef F77_DUMMY_MAIN
7812 int F77_DUMMY_MAIN() { return 1; }
7822 rm -f conftest.$ac_objext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7824 (eval $ac_compile) 2>&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -s conftest.$ac_objext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_cv_type_signal=void
7836 echo "$as_me: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7838 ac_cv_type_signal=int
7840 rm -f conftest.$ac_objext conftest.$ac_ext
7842 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7843 echo "${ECHO_T}$ac_cv_type_signal" >&6
7845 cat >>confdefs.h <<_ACEOF
7846 #define RETSIGTYPE $ac_cv_type_signal
7850 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7851 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7852 if test "${ac_cv_type_uid_t+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7858 #include <sys/types.h>
7861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7862 egrep "uid_t" >/dev/null 2>&1; then
7863 ac_cv_type_uid_t=yes
7870 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7871 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7872 if test $ac_cv_type_uid_t = no; then
7874 cat >>confdefs.h <<\_ACEOF
7879 cat >>confdefs.h <<\_ACEOF
7885 echo "$as_me:$LINENO: checking for mode_t" >&5
7886 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7887 if test "${ac_cv_type_mode_t+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 cat >conftest.$ac_ext <<_ACEOF
7891 #line $LINENO "configure"
7892 #include "confdefs.h"
7893 $ac_includes_default
7894 #ifdef F77_DUMMY_MAIN
7898 int F77_DUMMY_MAIN() { return 1; }
7905 if (sizeof (mode_t))
7911 rm -f conftest.$ac_objext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7913 (eval $ac_compile) 2>&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -s conftest.$ac_objext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_cv_type_mode_t=yes
7925 echo "$as_me: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7927 ac_cv_type_mode_t=no
7929 rm -f conftest.$ac_objext conftest.$ac_ext
7931 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7932 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7933 if test $ac_cv_type_mode_t = yes; then
7937 cat >>confdefs.h <<_ACEOF
7943 echo "$as_me:$LINENO: checking for off_t" >&5
7944 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7945 if test "${ac_cv_type_off_t+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 cat >conftest.$ac_ext <<_ACEOF
7949 #line $LINENO "configure"
7950 #include "confdefs.h"
7951 $ac_includes_default
7952 #ifdef F77_DUMMY_MAIN
7956 int F77_DUMMY_MAIN() { return 1; }
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -s conftest.$ac_objext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 ac_cv_type_off_t=yes
7983 echo "$as_me: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7987 rm -f conftest.$ac_objext conftest.$ac_ext
7989 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7990 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7991 if test $ac_cv_type_off_t = yes; then
7995 cat >>confdefs.h <<_ACEOF
8001 echo "$as_me:$LINENO: checking for size_t" >&5
8002 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8003 if test "${ac_cv_type_size_t+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 cat >conftest.$ac_ext <<_ACEOF
8007 #line $LINENO "configure"
8008 #include "confdefs.h"
8009 $ac_includes_default
8010 #ifdef F77_DUMMY_MAIN
8014 int F77_DUMMY_MAIN() { return 1; }
8021 if (sizeof (size_t))
8027 rm -f conftest.$ac_objext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8029 (eval $ac_compile) 2>&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -s conftest.$ac_objext'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 ac_cv_type_size_t=yes
8041 echo "$as_me: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8043 ac_cv_type_size_t=no
8045 rm -f conftest.$ac_objext conftest.$ac_ext
8047 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8048 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8049 if test $ac_cv_type_size_t = yes; then
8053 cat >>confdefs.h <<_ACEOF
8054 #define size_t unsigned
8059 echo "$as_me:$LINENO: checking for pid_t" >&5
8060 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8061 if test "${ac_cv_type_pid_t+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 cat >conftest.$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8066 #include "confdefs.h"
8067 $ac_includes_default
8068 #ifdef F77_DUMMY_MAIN
8072 int F77_DUMMY_MAIN() { return 1; }
8085 rm -f conftest.$ac_objext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8087 (eval $ac_compile) 2>&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } &&
8091 { ac_try='test -s conftest.$ac_objext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_cv_type_pid_t=yes
8099 echo "$as_me: failed program was:" >&5
8100 cat conftest.$ac_ext >&5
8103 rm -f conftest.$ac_objext conftest.$ac_ext
8105 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8106 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8107 if test $ac_cv_type_pid_t = yes; then
8111 cat >>confdefs.h <<_ACEOF
8118 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
8119 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
8120 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 cat >conftest.$ac_ext <<_ACEOF
8124 #line $LINENO "configure"
8125 #include "confdefs.h"
8126 $ac_includes_default
8127 #ifdef F77_DUMMY_MAIN
8131 int F77_DUMMY_MAIN() { return 1; }
8136 static struct stat ac_aggr;
8137 if (ac_aggr.st_rdev)
8143 rm -f conftest.$ac_objext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8145 (eval $ac_compile) 2>&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try='test -s conftest.$ac_objext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 ac_cv_member_struct_stat_st_rdev=yes
8157 echo "$as_me: failed program was:" >&5
8158 cat conftest.$ac_ext >&5
8159 ac_cv_member_struct_stat_st_rdev=no
8161 rm -f conftest.$ac_objext conftest.$ac_ext
8163 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
8164 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
8165 if test $ac_cv_member_struct_stat_st_rdev = yes; then
8167 cat >>confdefs.h <<_ACEOF
8168 #define HAVE_STRUCT_STAT_ST_RDEV 1
8172 cat >>confdefs.h <<\_ACEOF
8173 #define HAVE_ST_RDEV 1
8179 echo "$as_me:$LINENO: checking for d_off in dirent" >&5
8180 echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
8181 if test "${ac_cv_dirent_d_off+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 cat >conftest.$ac_ext <<_ACEOF
8185 #line $LINENO "configure"
8186 #include "confdefs.h"
8189 #include <sys/types.h>
8191 #ifdef F77_DUMMY_MAIN
8195 int F77_DUMMY_MAIN() { return 1; }
8200 struct dirent d; d.d_off;
8205 rm -f conftest.$ac_objext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207 (eval $ac_compile) 2>&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -s conftest.$ac_objext'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 ac_cv_dirent_d_off=yes
8219 echo "$as_me: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8221 ac_cv_dirent_d_off=no
8223 rm -f conftest.$ac_objext conftest.$ac_ext
8225 echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
8226 echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
8227 if test $ac_cv_dirent_d_off = yes; then
8229 cat >>confdefs.h <<\_ACEOF
8230 #define HAVE_DIRENT_D_OFF 1
8235 echo "$as_me:$LINENO: checking for ino_t" >&5
8236 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
8237 if test "${ac_cv_type_ino_t+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 cat >conftest.$ac_ext <<_ACEOF
8241 #line $LINENO "configure"
8242 #include "confdefs.h"
8243 $ac_includes_default
8244 #ifdef F77_DUMMY_MAIN
8248 int F77_DUMMY_MAIN() { return 1; }
8261 rm -f conftest.$ac_objext
8262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8263 (eval $ac_compile) 2>&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -s conftest.$ac_objext'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; }; then
8273 ac_cv_type_ino_t=yes
8275 echo "$as_me: failed program was:" >&5
8276 cat conftest.$ac_ext >&5
8279 rm -f conftest.$ac_objext conftest.$ac_ext
8281 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8282 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
8283 if test $ac_cv_type_ino_t = yes; then
8287 cat >>confdefs.h <<_ACEOF
8288 #define ino_t unsigned
8293 echo "$as_me:$LINENO: checking for loff_t" >&5
8294 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
8295 if test "${ac_cv_type_loff_t+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8299 #line $LINENO "configure"
8300 #include "confdefs.h"
8301 $ac_includes_default
8302 #ifdef F77_DUMMY_MAIN
8306 int F77_DUMMY_MAIN() { return 1; }
8313 if (sizeof (loff_t))
8319 rm -f conftest.$ac_objext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8321 (eval $ac_compile) 2>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -s conftest.$ac_objext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8331 ac_cv_type_loff_t=yes
8333 echo "$as_me: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8335 ac_cv_type_loff_t=no
8337 rm -f conftest.$ac_objext conftest.$ac_ext
8339 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
8340 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
8341 if test $ac_cv_type_loff_t = yes; then
8345 cat >>confdefs.h <<_ACEOF
8346 #define loff_t off_t
8351 echo "$as_me:$LINENO: checking for offset_t" >&5
8352 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
8353 if test "${ac_cv_type_offset_t+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 cat >conftest.$ac_ext <<_ACEOF
8357 #line $LINENO "configure"
8358 #include "confdefs.h"
8359 $ac_includes_default
8360 #ifdef F77_DUMMY_MAIN
8364 int F77_DUMMY_MAIN() { return 1; }
8371 if (sizeof (offset_t))
8377 rm -f conftest.$ac_objext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8379 (eval $ac_compile) 2>&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -s conftest.$ac_objext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_cv_type_offset_t=yes
8391 echo "$as_me: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8393 ac_cv_type_offset_t=no
8395 rm -f conftest.$ac_objext conftest.$ac_ext
8397 echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
8398 echo "${ECHO_T}$ac_cv_type_offset_t" >&6
8399 if test $ac_cv_type_offset_t = yes; then
8403 cat >>confdefs.h <<_ACEOF
8404 #define offset_t loff_t
8409 echo "$as_me:$LINENO: checking for ssize_t" >&5
8410 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8411 if test "${ac_cv_type_ssize_t+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 cat >conftest.$ac_ext <<_ACEOF
8415 #line $LINENO "configure"
8416 #include "confdefs.h"
8417 $ac_includes_default
8418 #ifdef F77_DUMMY_MAIN
8422 int F77_DUMMY_MAIN() { return 1; }
8429 if (sizeof (ssize_t))
8435 rm -f conftest.$ac_objext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8437 (eval $ac_compile) 2>&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -s conftest.$ac_objext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8447 ac_cv_type_ssize_t=yes
8449 echo "$as_me: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8451 ac_cv_type_ssize_t=no
8453 rm -f conftest.$ac_objext conftest.$ac_ext
8455 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8456 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8457 if test $ac_cv_type_ssize_t = yes; then
8461 cat >>confdefs.h <<_ACEOF
8467 echo "$as_me:$LINENO: checking for wchar_t" >&5
8468 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8469 if test "${ac_cv_type_wchar_t+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 cat >conftest.$ac_ext <<_ACEOF
8473 #line $LINENO "configure"
8474 #include "confdefs.h"
8475 $ac_includes_default
8476 #ifdef F77_DUMMY_MAIN
8480 int F77_DUMMY_MAIN() { return 1; }
8487 if (sizeof (wchar_t))
8493 rm -f conftest.$ac_objext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495 (eval $ac_compile) 2>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -s conftest.$ac_objext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_cv_type_wchar_t=yes
8507 echo "$as_me: failed program was:" >&5
8508 cat conftest.$ac_ext >&5
8509 ac_cv_type_wchar_t=no
8511 rm -f conftest.$ac_objext conftest.$ac_ext
8513 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
8514 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
8515 if test $ac_cv_type_wchar_t = yes; then
8519 cat >>confdefs.h <<_ACEOF
8520 #define wchar_t unsigned short
8526 ############################################
8527 # for cups support we need libcups, and a handful of header files
8529 # Check whether --enable-cups or --disable-cups was given.
8530 if test "${enable_cups+set}" = set; then
8531 enableval="$enable_cups"
8535 if test x$enable_cups != xno; then
8536 # Extract the first word of "cups-config", so it can be a program name with args.
8537 set dummy cups-config; ac_word=$2
8538 echo "$as_me:$LINENO: checking for $ac_word" >&5
8539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8540 if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 case $CUPS_CONFIG in
8545 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8555 ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
8567 if test -n "$CUPS_CONFIG"; then
8568 echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
8569 echo "${ECHO_T}$CUPS_CONFIG" >&6
8571 echo "$as_me:$LINENO: result: no" >&5
8572 echo "${ECHO_T}no" >&6
8576 if test "x$CUPS_CONFIG" != x; then
8578 cat >>confdefs.h <<\_ACEOF
8582 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
8583 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
8584 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
8588 ############################################
8589 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
8591 for ac_func in dlopen
8593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8594 echo "$as_me:$LINENO: checking for $ac_func" >&5
8595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8596 if eval "test \"\${$as_ac_var+set}\" = set"; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 cat >conftest.$ac_ext <<_ACEOF
8600 #line $LINENO "configure"
8601 #include "confdefs.h"
8602 /* System header to define __stub macros and hopefully few prototypes,
8603 which can conflict with char $ac_func (); below. */
8605 /* Override any gcc2 internal prototype to avoid an error. */
8609 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */
8614 #ifdef F77_DUMMY_MAIN
8618 int F77_DUMMY_MAIN() { return 1; }
8623 /* The GNU C library defines this for functions which it implements
8624 to always fail with ENOSYS. Some functions are actually named
8625 something starting with __ and the normal name is an alias. */
8626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8636 rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638 (eval $ac_link) 2>&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -s conftest$ac_exeext'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 eval "$as_ac_var=yes"
8650 echo "$as_me: failed program was:" >&5
8651 cat conftest.$ac_ext >&5
8652 eval "$as_ac_var=no"
8654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8658 if test `eval echo '${'$as_ac_var'}'` = yes; then
8659 cat >>confdefs.h <<_ACEOF
8660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8666 if test x"$ac_cv_func_dlopen" = x"no"; then
8667 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8668 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8669 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 ac_check_lib_save_LIBS=$LIBS
8674 cat >conftest.$ac_ext <<_ACEOF
8675 #line $LINENO "configure"
8676 #include "confdefs.h"
8678 /* Override any gcc2 internal prototype to avoid an error. */
8682 /* We use char because int might match the return type of a gcc2
8683 builtin and then its argument prototype would still apply. */
8685 #ifdef F77_DUMMY_MAIN
8689 int F77_DUMMY_MAIN() { return 1; }
8699 rm -f conftest.$ac_objext conftest$ac_exeext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8701 (eval $ac_link) 2>&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_lib_dl_dlopen=yes
8713 echo "$as_me: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 ac_cv_lib_dl_dlopen=no
8717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8718 LIBS=$ac_check_lib_save_LIBS
8720 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8721 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8722 if test $ac_cv_lib_dl_dlopen = yes; then
8725 cat >>confdefs.h <<\_ACEOF
8726 #define HAVE_DLOPEN 1
8732 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
8734 ############################################
8735 # check if the compiler can do immediate structures
8736 echo "$as_me:$LINENO: checking for immediate structures" >&5
8737 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
8738 if test "${samba_cv_immediate_structures+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 cat >conftest.$ac_ext <<_ACEOF
8743 #line $LINENO "configure"
8744 #include "confdefs.h"
8747 #ifdef F77_DUMMY_MAIN
8751 int F77_DUMMY_MAIN() { return 1; }
8757 typedef struct {unsigned x;} FOOBAR;
8758 #define X_FOOBAR(x) ((FOOBAR) { x })
8759 #define FOO_ONE X_FOOBAR(1)
8771 rm -f conftest.$ac_objext
8772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8773 (eval $ac_compile) 2>&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } &&
8777 { ac_try='test -s conftest.$ac_objext'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8783 samba_cv_immediate_structures=yes
8785 echo "$as_me: failed program was:" >&5
8786 cat conftest.$ac_ext >&5
8787 samba_cv_immediate_structures=no
8789 rm -f conftest.$ac_objext conftest.$ac_ext
8791 echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
8792 echo "${ECHO_T}$samba_cv_immediate_structures" >&6
8793 if test x"$samba_cv_immediate_structures" = x"yes"; then
8795 cat >>confdefs.h <<\_ACEOF
8796 #define HAVE_IMMEDIATE_STRUCTURES 1
8801 ############################################
8802 # check for unix domain sockets
8803 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8804 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
8805 if test "${samba_cv_unixsocket+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 cat >conftest.$ac_ext <<_ACEOF
8810 #line $LINENO "configure"
8811 #include "confdefs.h"
8813 #include <sys/types.h>
8816 #include <sys/socket.h>
8818 #ifdef F77_DUMMY_MAIN
8822 int F77_DUMMY_MAIN() { return 1; }
8828 struct sockaddr_un sunaddr;
8829 sunaddr.sun_family = AF_UNIX;
8835 rm -f conftest.$ac_objext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8837 (eval $ac_compile) 2>&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -s conftest.$ac_objext'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; }; then
8847 samba_cv_unixsocket=yes
8849 echo "$as_me: failed program was:" >&5
8850 cat conftest.$ac_ext >&5
8851 samba_cv_unixsocket=no
8853 rm -f conftest.$ac_objext conftest.$ac_ext
8855 echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
8856 echo "${ECHO_T}$samba_cv_unixsocket" >&6
8857 if test x"$samba_cv_unixsocket" = x"yes"; then
8859 cat >>confdefs.h <<\_ACEOF
8860 #define HAVE_UNIXSOCKET 1
8866 echo "$as_me:$LINENO: checking for socklen_t type" >&5
8867 echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
8868 if test "${samba_cv_socklen_t+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 cat >conftest.$ac_ext <<_ACEOF
8873 #line $LINENO "configure"
8874 #include "confdefs.h"
8876 #include <sys/types.h>
8881 #include <sys/socket.h>
8882 #ifdef F77_DUMMY_MAIN
8886 int F77_DUMMY_MAIN() { return 1; }
8896 rm -f conftest.$ac_objext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8898 (eval $ac_compile) 2>&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -s conftest.$ac_objext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 samba_cv_socklen_t=yes
8910 echo "$as_me: failed program was:" >&5
8911 cat conftest.$ac_ext >&5
8912 samba_cv_socklen_t=no
8914 rm -f conftest.$ac_objext conftest.$ac_ext
8916 echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
8917 echo "${ECHO_T}$samba_cv_socklen_t" >&6
8918 if test x"$samba_cv_socklen_t" = x"yes"; then
8920 cat >>confdefs.h <<\_ACEOF
8921 #define HAVE_SOCKLEN_T_TYPE 1
8926 echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
8927 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
8928 if test "${samba_cv_sig_atomic_t+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 cat >conftest.$ac_ext <<_ACEOF
8933 #line $LINENO "configure"
8934 #include "confdefs.h"
8936 #include <sys/types.h>
8942 #ifdef F77_DUMMY_MAIN
8946 int F77_DUMMY_MAIN() { return 1; }
8956 rm -f conftest.$ac_objext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8958 (eval $ac_compile) 2>&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
8962 { ac_try='test -s conftest.$ac_objext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 samba_cv_sig_atomic_t=yes
8970 echo "$as_me: failed program was:" >&5
8971 cat conftest.$ac_ext >&5
8972 samba_cv_sig_atomic_t=no
8974 rm -f conftest.$ac_objext conftest.$ac_ext
8976 echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
8977 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
8978 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_SIG_ATOMIC_T_TYPE 1
8986 # stupid headers have the functions but no declaration. grrrr.
8988 echo "$as_me:$LINENO: checking for errno declaration" >&5
8989 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
8990 if test "${ac_cv_have_errno_decl+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 cat >conftest.$ac_ext <<_ACEOF
8995 #line $LINENO "configure"
8996 #include "confdefs.h"
8998 #ifdef F77_DUMMY_MAIN
9002 int F77_DUMMY_MAIN() { return 1; }
9012 rm -f conftest.$ac_objext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9014 (eval $ac_compile) 2>&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
9018 { ac_try='test -s conftest.$ac_objext'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9024 ac_cv_have_errno_decl=yes
9026 echo "$as_me: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9028 ac_cv_have_errno_decl=no
9030 rm -f conftest.$ac_objext conftest.$ac_ext
9032 echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
9033 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
9034 if test x"$ac_cv_have_errno_decl" = x"yes"; then
9036 cat >>confdefs.h <<\_ACEOF
9037 #define HAVE_ERRNO_DECL 1
9043 echo "$as_me:$LINENO: checking for setresuid declaration" >&5
9044 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
9045 if test "${ac_cv_have_setresuid_decl+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 cat >conftest.$ac_ext <<_ACEOF
9050 #line $LINENO "configure"
9051 #include "confdefs.h"
9053 #ifdef F77_DUMMY_MAIN
9057 int F77_DUMMY_MAIN() { return 1; }
9062 int i = (int)setresuid
9067 rm -f conftest.$ac_objext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9069 (eval $ac_compile) 2>&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -s conftest.$ac_objext'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 ac_cv_have_setresuid_decl=yes
9081 echo "$as_me: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9083 ac_cv_have_setresuid_decl=no
9085 rm -f conftest.$ac_objext conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
9088 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
9089 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
9091 cat >>confdefs.h <<\_ACEOF
9092 #define HAVE_SETRESUID_DECL 1
9098 echo "$as_me:$LINENO: checking for setresgid declaration" >&5
9099 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
9100 if test "${ac_cv_have_setresgid_decl+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 cat >conftest.$ac_ext <<_ACEOF
9105 #line $LINENO "configure"
9106 #include "confdefs.h"
9108 #ifdef F77_DUMMY_MAIN
9112 int F77_DUMMY_MAIN() { return 1; }
9117 int i = (int)setresgid
9122 rm -f conftest.$ac_objext
9123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9124 (eval $ac_compile) 2>&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -s conftest.$ac_objext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 ac_cv_have_setresgid_decl=yes
9136 echo "$as_me: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9138 ac_cv_have_setresgid_decl=no
9140 rm -f conftest.$ac_objext conftest.$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
9143 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
9144 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
9146 cat >>confdefs.h <<\_ACEOF
9147 #define HAVE_SETRESGID_DECL 1
9153 echo "$as_me:$LINENO: checking for asprintf declaration" >&5
9154 echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
9155 if test "${ac_cv_have_asprintf_decl+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 cat >conftest.$ac_ext <<_ACEOF
9160 #line $LINENO "configure"
9161 #include "confdefs.h"
9163 #ifdef F77_DUMMY_MAIN
9167 int F77_DUMMY_MAIN() { return 1; }
9172 int i = (int)asprintf
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } &&
9183 { ac_try='test -s conftest.$ac_objext'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9189 ac_cv_have_asprintf_decl=yes
9191 echo "$as_me: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9193 ac_cv_have_asprintf_decl=no
9195 rm -f conftest.$ac_objext conftest.$ac_ext
9197 echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
9198 echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
9199 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
9201 cat >>confdefs.h <<\_ACEOF
9202 #define HAVE_ASPRINTF_DECL 1
9208 echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
9209 echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
9210 if test "${ac_cv_have_vasprintf_decl+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 cat >conftest.$ac_ext <<_ACEOF
9215 #line $LINENO "configure"
9216 #include "confdefs.h"
9218 #ifdef F77_DUMMY_MAIN
9222 int F77_DUMMY_MAIN() { return 1; }
9227 int i = (int)vasprintf
9232 rm -f conftest.$ac_objext
9233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9234 (eval $ac_compile) 2>&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } &&
9238 { ac_try='test -s conftest.$ac_objext'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 ac_cv_have_vasprintf_decl=yes
9246 echo "$as_me: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9248 ac_cv_have_vasprintf_decl=no
9250 rm -f conftest.$ac_objext conftest.$ac_ext
9252 echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
9253 echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
9254 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
9256 cat >>confdefs.h <<\_ACEOF
9257 #define HAVE_VASPRINTF_DECL 1
9263 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
9264 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
9265 if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9269 cat >conftest.$ac_ext <<_ACEOF
9270 #line $LINENO "configure"
9271 #include "confdefs.h"
9273 #ifdef F77_DUMMY_MAIN
9277 int F77_DUMMY_MAIN() { return 1; }
9282 int i = (int)vsnprintf
9287 rm -f conftest.$ac_objext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9289 (eval $ac_compile) 2>&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -s conftest.$ac_objext'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 ac_cv_have_vsnprintf_decl=yes
9301 echo "$as_me: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9303 ac_cv_have_vsnprintf_decl=no
9305 rm -f conftest.$ac_objext conftest.$ac_ext
9307 echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
9308 echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
9309 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
9311 cat >>confdefs.h <<\_ACEOF
9312 #define HAVE_VSNPRINTF_DECL 1
9318 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
9319 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
9320 if test "${ac_cv_have_snprintf_decl+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 cat >conftest.$ac_ext <<_ACEOF
9325 #line $LINENO "configure"
9326 #include "confdefs.h"
9328 #ifdef F77_DUMMY_MAIN
9332 int F77_DUMMY_MAIN() { return 1; }
9337 int i = (int)snprintf
9342 rm -f conftest.$ac_objext
9343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9344 (eval $ac_compile) 2>&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -s conftest.$ac_objext'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9354 ac_cv_have_snprintf_decl=yes
9356 echo "$as_me: failed program was:" >&5
9357 cat conftest.$ac_ext >&5
9358 ac_cv_have_snprintf_decl=no
9360 rm -f conftest.$ac_objext conftest.$ac_ext
9362 echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
9363 echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
9364 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
9366 cat >>confdefs.h <<\_ACEOF
9367 #define HAVE_SNPRINTF_DECL 1
9373 # and glibc has setresuid under linux but the function does
9374 # nothing until kernel 2.1.44! very dumb.
9375 echo "$as_me:$LINENO: checking for real setresuid" >&5
9376 echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
9377 if test "${samba_cv_have_setresuid+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 if test "$cross_compiling" = yes; then
9382 samba_cv_have_setresuid=cross
9384 cat >conftest.$ac_ext <<_ACEOF
9385 #line $LINENO "configure"
9386 #include "confdefs.h"
9388 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
9390 rm -f conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392 (eval $ac_link) 2>&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 samba_cv_have_setresuid=yes
9403 echo "$as_me: program exited with status $ac_status" >&5
9404 echo "$as_me: failed program was:" >&5
9405 cat conftest.$ac_ext >&5
9407 samba_cv_have_setresuid=no
9409 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9412 echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
9413 echo "${ECHO_T}$samba_cv_have_setresuid" >&6
9414 if test x"$samba_cv_have_setresuid" = x"yes"; then
9416 cat >>confdefs.h <<\_ACEOF
9417 #define HAVE_SETRESUID 1
9422 # Do the same check for setresguid...
9424 echo "$as_me:$LINENO: checking for real setresgid" >&5
9425 echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
9426 if test "${samba_cv_have_setresgid+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 if test "$cross_compiling" = yes; then
9431 samba_cv_have_setresgid=cross
9433 cat >conftest.$ac_ext <<_ACEOF
9434 #line $LINENO "configure"
9435 #include "confdefs.h"
9438 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
9440 rm -f conftest$ac_exeext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9442 (eval $ac_link) 2>&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 samba_cv_have_setresgid=yes
9453 echo "$as_me: program exited with status $ac_status" >&5
9454 echo "$as_me: failed program was:" >&5
9455 cat conftest.$ac_ext >&5
9457 samba_cv_have_setresgid=no
9459 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9462 echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
9463 echo "${ECHO_T}$samba_cv_have_setresgid" >&6
9464 if test x"$samba_cv_have_setresgid" = x"yes"; then
9466 cat >>confdefs.h <<\_ACEOF
9467 #define HAVE_SETRESGID 1
9472 echo "$as_me:$LINENO: checking for working memcmp" >&5
9473 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9474 if test "${ac_cv_func_memcmp_working+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 if test "$cross_compiling" = yes; then
9478 ac_cv_func_memcmp_working=no
9480 cat >conftest.$ac_ext <<_ACEOF
9481 #line $LINENO "configure"
9482 #include "confdefs.h"
9484 #ifdef F77_DUMMY_MAIN
9488 int F77_DUMMY_MAIN() { return 1; }
9494 /* Some versions of memcmp are not 8-bit clean. */
9495 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9496 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9499 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9500 or more and with at least one buffer not starting on a 4-byte boundary.
9501 William Lewis provided this test program. */
9506 for (i = 0; i < 4; i++)
9510 strcpy (a, "--------01111111");
9511 strcpy (b, "--------10000000");
9512 if (memcmp (a, b, 16) >= 0)
9522 rm -f conftest$ac_exeext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 ac_cv_func_memcmp_working=yes
9535 echo "$as_me: program exited with status $ac_status" >&5
9536 echo "$as_me: failed program was:" >&5
9537 cat conftest.$ac_ext >&5
9539 ac_cv_func_memcmp_working=no
9541 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9544 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9545 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9546 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9549 ###############################################
9550 # test for where we get crypt() from
9552 for ac_func in crypt
9554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9555 echo "$as_me:$LINENO: checking for $ac_func" >&5
9556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9557 if eval "test \"\${$as_ac_var+set}\" = set"; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 cat >conftest.$ac_ext <<_ACEOF
9561 #line $LINENO "configure"
9562 #include "confdefs.h"
9563 /* System header to define __stub macros and hopefully few prototypes,
9564 which can conflict with char $ac_func (); below. */
9566 /* Override any gcc2 internal prototype to avoid an error. */
9570 /* We use char because int might match the return type of a gcc2
9571 builtin and then its argument prototype would still apply. */
9575 #ifdef F77_DUMMY_MAIN
9579 int F77_DUMMY_MAIN() { return 1; }
9584 /* The GNU C library defines this for functions which it implements
9585 to always fail with ENOSYS. Some functions are actually named
9586 something starting with __ and the normal name is an alias. */
9587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599 (eval $ac_link) 2>&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } &&
9603 { ac_try='test -s conftest$ac_exeext'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; }; then
9609 eval "$as_ac_var=yes"
9611 echo "$as_me: failed program was:" >&5
9612 cat conftest.$ac_ext >&5
9613 eval "$as_ac_var=no"
9615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9619 if test `eval echo '${'$as_ac_var'}'` = yes; then
9620 cat >>confdefs.h <<_ACEOF
9621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9627 if test x"$ac_cv_func_crypt" = x"no"; then
9628 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9629 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9630 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 ac_check_lib_save_LIBS=$LIBS
9634 LIBS="-lcrypt $LIBS"
9635 cat >conftest.$ac_ext <<_ACEOF
9636 #line $LINENO "configure"
9637 #include "confdefs.h"
9639 /* Override any gcc2 internal prototype to avoid an error. */
9643 /* We use char because int might match the return type of a gcc2
9644 builtin and then its argument prototype would still apply. */
9646 #ifdef F77_DUMMY_MAIN
9650 int F77_DUMMY_MAIN() { return 1; }
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662 (eval $ac_link) 2>&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 ac_cv_lib_crypt_crypt=yes
9674 echo "$as_me: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9676 ac_cv_lib_crypt_crypt=no
9678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9679 LIBS=$ac_check_lib_save_LIBS
9681 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9682 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9683 if test $ac_cv_lib_crypt_crypt = yes; then
9684 AUTHLIBS="$AUTHLIBS -lcrypt";
9686 cat >>confdefs.h <<\_ACEOF
9687 #define HAVE_CRYPT 1
9695 ###############################################
9696 # Readline included by default unless explicitly asked not to
9697 test "${with_readline+set}" != "set" && with_readline=yes
9699 # test for where we get readline() from
9700 echo "$as_me:$LINENO: checking whether to use readline" >&5
9701 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
9703 # Check whether --with-readline or --without-readline was given.
9704 if test "${with_readline+set}" = set; then
9705 withval="$with_readline"
9706 case "$with_readline" in
9708 echo "$as_me:$LINENO: result: yes" >&5
9709 echo "${ECHO_T}yes" >&6
9714 for ac_header in readline.h history.h readline/readline.h
9716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9718 echo "$as_me:$LINENO: checking for $ac_header" >&5
9719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9726 # Is the header compilable?
9727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9729 cat >conftest.$ac_ext <<_ACEOF
9730 #line $LINENO "configure"
9731 #include "confdefs.h"
9732 $ac_includes_default
9733 #include <$ac_header>
9735 rm -f conftest.$ac_objext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737 (eval $ac_compile) 2>&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -s conftest.$ac_objext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_header_compiler=yes
9749 echo "$as_me: failed program was:" >&5
9750 cat conftest.$ac_ext >&5
9751 ac_header_compiler=no
9753 rm -f conftest.$ac_objext conftest.$ac_ext
9754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9755 echo "${ECHO_T}$ac_header_compiler" >&6
9757 # Is the header present?
9758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9760 cat >conftest.$ac_ext <<_ACEOF
9761 #line $LINENO "configure"
9762 #include "confdefs.h"
9763 #include <$ac_header>
9765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9768 egrep -v '^ *\+' conftest.er1 >conftest.err
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } >/dev/null; then
9773 if test -s conftest.err; then
9774 ac_cpp_err=$ac_c_preproc_warn_flag
9781 if test -z "$ac_cpp_err"; then
9782 ac_header_preproc=yes
9784 echo "$as_me: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9786 ac_header_preproc=no
9788 rm -f conftest.err conftest.$ac_ext
9789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9790 echo "${ECHO_T}$ac_header_preproc" >&6
9792 # So? What about this header?
9793 case $ac_header_compiler:$ac_header_preproc in
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9807 echo "$as_me:$LINENO: checking for $ac_header" >&5
9808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 eval "$as_ac_Header=$ac_header_preproc"
9814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9819 cat >>confdefs.h <<_ACEOF
9820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9828 for ac_header in readline/history.h
9830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9832 echo "$as_me:$LINENO: checking for $ac_header" >&5
9833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9840 # Is the header compilable?
9841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9843 cat >conftest.$ac_ext <<_ACEOF
9844 #line $LINENO "configure"
9845 #include "confdefs.h"
9846 $ac_includes_default
9847 #include <$ac_header>
9849 rm -f conftest.$ac_objext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9851 (eval $ac_compile) 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -s conftest.$ac_objext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_header_compiler=yes
9863 echo "$as_me: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 ac_header_compiler=no
9867 rm -f conftest.$ac_objext conftest.$ac_ext
9868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9869 echo "${ECHO_T}$ac_header_compiler" >&6
9871 # Is the header present?
9872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9874 cat >conftest.$ac_ext <<_ACEOF
9875 #line $LINENO "configure"
9876 #include "confdefs.h"
9877 #include <$ac_header>
9879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9882 egrep -v '^ *\+' conftest.er1 >conftest.err
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } >/dev/null; then
9887 if test -s conftest.err; then
9888 ac_cpp_err=$ac_c_preproc_warn_flag
9895 if test -z "$ac_cpp_err"; then
9896 ac_header_preproc=yes
9898 echo "$as_me: failed program was:" >&5
9899 cat conftest.$ac_ext >&5
9900 ac_header_preproc=no
9902 rm -f conftest.err conftest.$ac_ext
9903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9904 echo "${ECHO_T}$ac_header_preproc" >&6
9906 # So? What about this header?
9907 case $ac_header_compiler:$ac_header_preproc in
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9921 echo "$as_me:$LINENO: checking for $ac_header" >&5
9922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 eval "$as_ac_Header=$ac_header_preproc"
9928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9933 cat >>confdefs.h <<_ACEOF
9934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9944 for ac_header in readline.h readline/readline.h
9946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9948 echo "$as_me:$LINENO: checking for $ac_header" >&5
9949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9956 # Is the header compilable?
9957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9959 cat >conftest.$ac_ext <<_ACEOF
9960 #line $LINENO "configure"
9961 #include "confdefs.h"
9962 $ac_includes_default
9963 #include <$ac_header>
9965 rm -f conftest.$ac_objext
9966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9967 (eval $ac_compile) 2>&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -s conftest.$ac_objext'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; }; then
9977 ac_header_compiler=yes
9979 echo "$as_me: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9981 ac_header_compiler=no
9983 rm -f conftest.$ac_objext conftest.$ac_ext
9984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9985 echo "${ECHO_T}$ac_header_compiler" >&6
9987 # Is the header present?
9988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9990 cat >conftest.$ac_ext <<_ACEOF
9991 #line $LINENO "configure"
9992 #include "confdefs.h"
9993 #include <$ac_header>
9995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9998 egrep -v '^ *\+' conftest.er1 >conftest.err
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } >/dev/null; then
10003 if test -s conftest.err; then
10004 ac_cpp_err=$ac_c_preproc_warn_flag
10011 if test -z "$ac_cpp_err"; then
10012 ac_header_preproc=yes
10014 echo "$as_me: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10016 ac_header_preproc=no
10018 rm -f conftest.err conftest.$ac_ext
10019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10020 echo "${ECHO_T}$ac_header_preproc" >&6
10022 # So? What about this header?
10023 case $ac_header_compiler:$ac_header_preproc in
10025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10037 echo "$as_me:$LINENO: checking for $ac_header" >&5
10038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 eval "$as_ac_Header=$ac_header_preproc"
10044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10049 cat >>confdefs.h <<_ACEOF
10050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10053 for termlib in ncurses curses termcap terminfo termlib; do
10054 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10055 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10056 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10057 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 ac_check_lib_save_LIBS=$LIBS
10061 LIBS="-l${termlib} $LIBS"
10062 cat >conftest.$ac_ext <<_ACEOF
10063 #line $LINENO "configure"
10064 #include "confdefs.h"
10066 /* Override any gcc2 internal prototype to avoid an error. */
10070 /* We use char because int might match the return type of a gcc2
10071 builtin and then its argument prototype would still apply. */
10073 #ifdef F77_DUMMY_MAIN
10074 # ifdef __cplusplus
10077 int F77_DUMMY_MAIN() { return 1; }
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try='test -s conftest$ac_exeext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 eval "$as_ac_Lib=yes"
10101 echo "$as_me: failed program was:" >&5
10102 cat conftest.$ac_ext >&5
10103 eval "$as_ac_Lib=no"
10105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10106 LIBS=$ac_check_lib_save_LIBS
10108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10109 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10110 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10111 TERMLIBS="-l${termlib}"; break
10115 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10116 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10117 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 ac_check_lib_save_LIBS=$LIBS
10121 LIBS="-lreadline $TERMLIBS $LIBS"
10122 cat >conftest.$ac_ext <<_ACEOF
10123 #line $LINENO "configure"
10124 #include "confdefs.h"
10126 /* Override any gcc2 internal prototype to avoid an error. */
10130 /* We use char because int might match the return type of a gcc2
10131 builtin and then its argument prototype would still apply. */
10132 char rl_callback_handler_install ();
10133 #ifdef F77_DUMMY_MAIN
10134 # ifdef __cplusplus
10137 int F77_DUMMY_MAIN() { return 1; }
10142 rl_callback_handler_install ();
10147 rm -f conftest.$ac_objext conftest$ac_exeext
10148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10149 (eval $ac_link) 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } &&
10153 { ac_try='test -s conftest$ac_exeext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 ac_cv_lib_readline_rl_callback_handler_install=yes
10161 echo "$as_me: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10163 ac_cv_lib_readline_rl_callback_handler_install=no
10165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10168 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10169 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10170 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10171 TERMLIBS="-lreadline $TERMLIBS"
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_LIBREADLINE 1
10188 echo "$as_me:$LINENO: result: no" >&5
10189 echo "${ECHO_T}no" >&6
10192 echo "$as_me:$LINENO: result: yes" >&5
10193 echo "${ECHO_T}yes" >&6
10195 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
10196 # alternate readline path
10197 _ldflags=${LDFLAGS}
10198 _cppflags=${CPPFLAGS}
10200 # Add additional search path
10201 LDFLAGS="-L$with_readline/lib $LDFLAGS"
10202 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10207 for ac_header in readline.h history.h readline/readline.h
10209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10211 echo "$as_me:$LINENO: checking for $ac_header" >&5
10212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10219 # Is the header compilable?
10220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10222 cat >conftest.$ac_ext <<_ACEOF
10223 #line $LINENO "configure"
10224 #include "confdefs.h"
10225 $ac_includes_default
10226 #include <$ac_header>
10228 rm -f conftest.$ac_objext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10230 (eval $ac_compile) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -s conftest.$ac_objext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_header_compiler=yes
10242 echo "$as_me: failed program was:" >&5
10243 cat conftest.$ac_ext >&5
10244 ac_header_compiler=no
10246 rm -f conftest.$ac_objext conftest.$ac_ext
10247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10248 echo "${ECHO_T}$ac_header_compiler" >&6
10250 # Is the header present?
10251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10253 cat >conftest.$ac_ext <<_ACEOF
10254 #line $LINENO "configure"
10255 #include "confdefs.h"
10256 #include <$ac_header>
10258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10261 egrep -v '^ *\+' conftest.er1 >conftest.err
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } >/dev/null; then
10266 if test -s conftest.err; then
10267 ac_cpp_err=$ac_c_preproc_warn_flag
10274 if test -z "$ac_cpp_err"; then
10275 ac_header_preproc=yes
10277 echo "$as_me: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10279 ac_header_preproc=no
10281 rm -f conftest.err conftest.$ac_ext
10282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10283 echo "${ECHO_T}$ac_header_preproc" >&6
10285 # So? What about this header?
10286 case $ac_header_compiler:$ac_header_preproc in
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10300 echo "$as_me:$LINENO: checking for $ac_header" >&5
10301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 eval "$as_ac_Header=$ac_header_preproc"
10307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10312 cat >>confdefs.h <<_ACEOF
10313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10321 for ac_header in readline/history.h
10323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10325 echo "$as_me:$LINENO: checking for $ac_header" >&5
10326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10333 # Is the header compilable?
10334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10336 cat >conftest.$ac_ext <<_ACEOF
10337 #line $LINENO "configure"
10338 #include "confdefs.h"
10339 $ac_includes_default
10340 #include <$ac_header>
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344 (eval $ac_compile) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -s conftest.$ac_objext'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 ac_header_compiler=yes
10356 echo "$as_me: failed program was:" >&5
10357 cat conftest.$ac_ext >&5
10358 ac_header_compiler=no
10360 rm -f conftest.$ac_objext conftest.$ac_ext
10361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10362 echo "${ECHO_T}$ac_header_compiler" >&6
10364 # Is the header present?
10365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10367 cat >conftest.$ac_ext <<_ACEOF
10368 #line $LINENO "configure"
10369 #include "confdefs.h"
10370 #include <$ac_header>
10372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10375 egrep -v '^ *\+' conftest.er1 >conftest.err
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } >/dev/null; then
10380 if test -s conftest.err; then
10381 ac_cpp_err=$ac_c_preproc_warn_flag
10388 if test -z "$ac_cpp_err"; then
10389 ac_header_preproc=yes
10391 echo "$as_me: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10393 ac_header_preproc=no
10395 rm -f conftest.err conftest.$ac_ext
10396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10397 echo "${ECHO_T}$ac_header_preproc" >&6
10399 # So? What about this header?
10400 case $ac_header_compiler:$ac_header_preproc in
10402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10414 echo "$as_me:$LINENO: checking for $ac_header" >&5
10415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 eval "$as_ac_Header=$ac_header_preproc"
10421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10426 cat >>confdefs.h <<_ACEOF
10427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10437 for ac_header in readline.h readline/readline.h
10439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10441 echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10449 # Is the header compilable?
10450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10452 cat >conftest.$ac_ext <<_ACEOF
10453 #line $LINENO "configure"
10454 #include "confdefs.h"
10455 $ac_includes_default
10456 #include <$ac_header>
10458 rm -f conftest.$ac_objext
10459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10460 (eval $ac_compile) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } &&
10464 { ac_try='test -s conftest.$ac_objext'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; }; then
10470 ac_header_compiler=yes
10472 echo "$as_me: failed program was:" >&5
10473 cat conftest.$ac_ext >&5
10474 ac_header_compiler=no
10476 rm -f conftest.$ac_objext conftest.$ac_ext
10477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10478 echo "${ECHO_T}$ac_header_compiler" >&6
10480 # Is the header present?
10481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10483 cat >conftest.$ac_ext <<_ACEOF
10484 #line $LINENO "configure"
10485 #include "confdefs.h"
10486 #include <$ac_header>
10488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10491 egrep -v '^ *\+' conftest.er1 >conftest.err
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } >/dev/null; then
10496 if test -s conftest.err; then
10497 ac_cpp_err=$ac_c_preproc_warn_flag
10504 if test -z "$ac_cpp_err"; then
10505 ac_header_preproc=yes
10507 echo "$as_me: failed program was:" >&5
10508 cat conftest.$ac_ext >&5
10509 ac_header_preproc=no
10511 rm -f conftest.err conftest.$ac_ext
10512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10513 echo "${ECHO_T}$ac_header_preproc" >&6
10515 # So? What about this header?
10516 case $ac_header_compiler:$ac_header_preproc in
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10530 echo "$as_me:$LINENO: checking for $ac_header" >&5
10531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 eval "$as_ac_Header=$ac_header_preproc"
10537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10542 cat >>confdefs.h <<_ACEOF
10543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10546 for termlib in ncurses curses termcap terminfo termlib; do
10547 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10548 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10549 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10550 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 ac_check_lib_save_LIBS=$LIBS
10554 LIBS="-l${termlib} $LIBS"
10555 cat >conftest.$ac_ext <<_ACEOF
10556 #line $LINENO "configure"
10557 #include "confdefs.h"
10559 /* Override any gcc2 internal prototype to avoid an error. */
10563 /* We use char because int might match the return type of a gcc2
10564 builtin and then its argument prototype would still apply. */
10566 #ifdef F77_DUMMY_MAIN
10567 # ifdef __cplusplus
10570 int F77_DUMMY_MAIN() { return 1; }
10580 rm -f conftest.$ac_objext conftest$ac_exeext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582 (eval $ac_link) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -s conftest$ac_exeext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 eval "$as_ac_Lib=yes"
10594 echo "$as_me: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10596 eval "$as_ac_Lib=no"
10598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10602 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10603 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10604 TERMLIBS="-l${termlib}"; break
10608 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10609 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10610 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 ac_check_lib_save_LIBS=$LIBS
10614 LIBS="-lreadline $TERMLIBS $LIBS"
10615 cat >conftest.$ac_ext <<_ACEOF
10616 #line $LINENO "configure"
10617 #include "confdefs.h"
10619 /* Override any gcc2 internal prototype to avoid an error. */
10623 /* We use char because int might match the return type of a gcc2
10624 builtin and then its argument prototype would still apply. */
10625 char rl_callback_handler_install ();
10626 #ifdef F77_DUMMY_MAIN
10627 # ifdef __cplusplus
10630 int F77_DUMMY_MAIN() { return 1; }
10635 rl_callback_handler_install ();
10640 rm -f conftest.$ac_objext conftest$ac_exeext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642 (eval $ac_link) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 ac_cv_lib_readline_rl_callback_handler_install=yes
10654 echo "$as_me: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10656 ac_cv_lib_readline_rl_callback_handler_install=no
10658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10659 LIBS=$ac_check_lib_save_LIBS
10661 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10662 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10663 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10664 TERMLDFLAGS="-L$with_readline/lib"
10665 TERMCPPFLAGS="-I$with_readline/include"
10666 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10667 TERMLIBS="-lreadline $TERMLIBS"
10669 cat >>confdefs.h <<\_ACEOF
10670 #define HAVE_LIBREADLINE 1
10675 TERMLIBS= CPPFLAGS=$_cppflags
10687 echo "$as_me:$LINENO: result: no" >&5
10688 echo "${ECHO_T}no" >&6
10694 # The readline API changed slightly from readline3 to readline4, so
10695 # code will generate warnings on one of them unless we have a few
10697 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10698 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10699 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 ac_check_lib_save_LIBS=$LIBS
10703 LIBS="-lreadline $TERMLIBS $LIBS"
10704 cat >conftest.$ac_ext <<_ACEOF
10705 #line $LINENO "configure"
10706 #include "confdefs.h"
10708 /* Override any gcc2 internal prototype to avoid an error. */
10712 /* We use char because int might match the return type of a gcc2
10713 builtin and then its argument prototype would still apply. */
10714 char rl_completion_matches ();
10715 #ifdef F77_DUMMY_MAIN
10716 # ifdef __cplusplus
10719 int F77_DUMMY_MAIN() { return 1; }
10724 rl_completion_matches ();
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10731 (eval $ac_link) 2>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -s conftest$ac_exeext'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_cv_lib_readline_rl_completion_matches=yes
10743 echo "$as_me: failed program was:" >&5
10744 cat conftest.$ac_ext >&5
10745 ac_cv_lib_readline_rl_completion_matches=no
10747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10750 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10751 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10752 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10754 cat >>confdefs.h <<\_ACEOF
10755 #define HAVE_NEW_LIBREADLINE 1
10761 # The following test taken from the cvs sources
10762 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
10763 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
10764 # libsocket.so which has a bad implementation of gethostbyname (it
10765 # only looks in /etc/hosts), so we only look for -lsocket if we need
10768 for ac_func in connect
10770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10771 echo "$as_me:$LINENO: checking for $ac_func" >&5
10772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10773 if eval "test \"\${$as_ac_var+set}\" = set"; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 cat >conftest.$ac_ext <<_ACEOF
10777 #line $LINENO "configure"
10778 #include "confdefs.h"
10779 /* System header to define __stub macros and hopefully few prototypes,
10780 which can conflict with char $ac_func (); below. */
10781 #include <assert.h>
10782 /* Override any gcc2 internal prototype to avoid an error. */
10786 /* We use char because int might match the return type of a gcc2
10787 builtin and then its argument prototype would still apply. */
10791 #ifdef F77_DUMMY_MAIN
10792 # ifdef __cplusplus
10795 int F77_DUMMY_MAIN() { return 1; }
10800 /* The GNU C library defines this for functions which it implements
10801 to always fail with ENOSYS. Some functions are actually named
10802 something starting with __ and the normal name is an alias. */
10803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10815 (eval $ac_link) 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -s conftest$ac_exeext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 eval "$as_ac_var=yes"
10827 echo "$as_me: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10829 eval "$as_ac_var=no"
10831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10835 if test `eval echo '${'$as_ac_var'}'` = yes; then
10836 cat >>confdefs.h <<_ACEOF
10837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10843 if test x"$ac_cv_func_connect" = x"no"; then
10847 echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
10848 echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
10849 if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 ac_check_lib_save_LIBS=$LIBS
10853 LIBS="-lnsl_s $LIBS"
10854 cat >conftest.$ac_ext <<_ACEOF
10855 #line $LINENO "configure"
10856 #include "confdefs.h"
10858 /* Override any gcc2 internal prototype to avoid an error. */
10862 /* We use char because int might match the return type of a gcc2
10863 builtin and then its argument prototype would still apply. */
10865 #ifdef F77_DUMMY_MAIN
10866 # ifdef __cplusplus
10869 int F77_DUMMY_MAIN() { return 1; }
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10881 (eval $ac_link) 2>&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -s conftest$ac_exeext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_cv_lib_nsl_s_printf=yes
10893 echo "$as_me: failed program was:" >&5
10894 cat conftest.$ac_ext >&5
10895 ac_cv_lib_nsl_s_printf=no
10897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10898 LIBS=$ac_check_lib_save_LIBS
10900 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
10901 echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
10902 if test $ac_cv_lib_nsl_s_printf = yes; then
10903 cat >>confdefs.h <<_ACEOF
10904 #define HAVE_LIBNSL_S 1
10907 LIBS="-lnsl_s $LIBS"
10915 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
10916 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
10917 if test "${ac_cv_lib_nsl_printf+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 ac_check_lib_save_LIBS=$LIBS
10922 cat >conftest.$ac_ext <<_ACEOF
10923 #line $LINENO "configure"
10924 #include "confdefs.h"
10926 /* Override any gcc2 internal prototype to avoid an error. */
10930 /* We use char because int might match the return type of a gcc2
10931 builtin and then its argument prototype would still apply. */
10933 #ifdef F77_DUMMY_MAIN
10934 # ifdef __cplusplus
10937 int F77_DUMMY_MAIN() { return 1; }
10947 rm -f conftest.$ac_objext conftest$ac_exeext
10948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10949 (eval $ac_link) 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
10953 { ac_try='test -s conftest$ac_exeext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 ac_cv_lib_nsl_printf=yes
10961 echo "$as_me: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10963 ac_cv_lib_nsl_printf=no
10965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10968 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
10969 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
10970 if test $ac_cv_lib_nsl_printf = yes; then
10971 cat >>confdefs.h <<_ACEOF
10972 #define HAVE_LIBNSL 1
10983 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10984 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10985 if test "${ac_cv_lib_socket_connect+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-lsocket $LIBS"
10990 cat >conftest.$ac_ext <<_ACEOF
10991 #line $LINENO "configure"
10992 #include "confdefs.h"
10994 /* Override any gcc2 internal prototype to avoid an error. */
10998 /* We use char because int might match the return type of a gcc2
10999 builtin and then its argument prototype would still apply. */
11001 #ifdef F77_DUMMY_MAIN
11002 # ifdef __cplusplus
11005 int F77_DUMMY_MAIN() { return 1; }
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11017 (eval $ac_link) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -s conftest$ac_exeext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_cv_lib_socket_connect=yes
11029 echo "$as_me: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11031 ac_cv_lib_socket_connect=no
11033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11036 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
11037 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
11038 if test $ac_cv_lib_socket_connect = yes; then
11039 cat >>confdefs.h <<_ACEOF
11040 #define HAVE_LIBSOCKET 1
11043 LIBS="-lsocket $LIBS"
11051 echo "$as_me:$LINENO: checking for connect in -linet" >&5
11052 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
11053 if test "${ac_cv_lib_inet_connect+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 ac_check_lib_save_LIBS=$LIBS
11057 LIBS="-linet $LIBS"
11058 cat >conftest.$ac_ext <<_ACEOF
11059 #line $LINENO "configure"
11060 #include "confdefs.h"
11062 /* Override any gcc2 internal prototype to avoid an error. */
11066 /* We use char because int might match the return type of a gcc2
11067 builtin and then its argument prototype would still apply. */
11069 #ifdef F77_DUMMY_MAIN
11070 # ifdef __cplusplus
11073 int F77_DUMMY_MAIN() { return 1; }
11083 rm -f conftest.$ac_objext conftest$ac_exeext
11084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11085 (eval $ac_link) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } &&
11089 { ac_try='test -s conftest$ac_exeext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_cv_lib_inet_connect=yes
11097 echo "$as_me: failed program was:" >&5
11098 cat conftest.$ac_ext >&5
11099 ac_cv_lib_inet_connect=no
11101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11104 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
11105 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
11106 if test $ac_cv_lib_inet_connect = yes; then
11107 cat >>confdefs.h <<_ACEOF
11108 #define HAVE_LIBINET 1
11111 LIBS="-linet $LIBS"
11116 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
11117 test x"$ac_cv_lib_inet_connect" = x"yes"; then
11118 # ac_cv_func_connect=yes
11119 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
11121 cat >>confdefs.h <<\_ACEOF
11122 #define HAVE_CONNECT 1
11128 ###############################################
11129 # test for where we get get_yp_default_domain() from
11131 for ac_func in yp_get_default_domain
11133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11134 echo "$as_me:$LINENO: checking for $ac_func" >&5
11135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11136 if eval "test \"\${$as_ac_var+set}\" = set"; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 cat >conftest.$ac_ext <<_ACEOF
11140 #line $LINENO "configure"
11141 #include "confdefs.h"
11142 /* System header to define __stub macros and hopefully few prototypes,
11143 which can conflict with char $ac_func (); below. */
11144 #include <assert.h>
11145 /* Override any gcc2 internal prototype to avoid an error. */
11149 /* We use char because int might match the return type of a gcc2
11150 builtin and then its argument prototype would still apply. */
11154 #ifdef F77_DUMMY_MAIN
11155 # ifdef __cplusplus
11158 int F77_DUMMY_MAIN() { return 1; }
11163 /* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11178 (eval $ac_link) 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try='test -s conftest$ac_exeext'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; }; then
11188 eval "$as_ac_var=yes"
11190 echo "$as_me: failed program was:" >&5
11191 cat conftest.$ac_ext >&5
11192 eval "$as_ac_var=no"
11194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11198 if test `eval echo '${'$as_ac_var'}'` = yes; then
11199 cat >>confdefs.h <<_ACEOF
11200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11206 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
11207 echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
11208 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
11209 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 ac_check_lib_save_LIBS=$LIBS
11214 cat >conftest.$ac_ext <<_ACEOF
11215 #line $LINENO "configure"
11216 #include "confdefs.h"
11218 /* Override any gcc2 internal prototype to avoid an error. */
11222 /* We use char because int might match the return type of a gcc2
11223 builtin and then its argument prototype would still apply. */
11224 char yp_get_default_domain ();
11225 #ifdef F77_DUMMY_MAIN
11226 # ifdef __cplusplus
11229 int F77_DUMMY_MAIN() { return 1; }
11234 yp_get_default_domain ();
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11241 (eval $ac_link) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try='test -s conftest$ac_exeext'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 ac_cv_lib_nsl_yp_get_default_domain=yes
11253 echo "$as_me: failed program was:" >&5
11254 cat conftest.$ac_ext >&5
11255 ac_cv_lib_nsl_yp_get_default_domain=no
11257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_lib_save_LIBS
11260 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
11261 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
11262 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
11263 LIBS="$LIBS -lnsl";
11265 cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
11273 # Check if we have execl, if not we need to compile smbrun.
11275 for ac_func in execl
11277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11278 echo "$as_me:$LINENO: checking for $ac_func" >&5
11279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11280 if eval "test \"\${$as_ac_var+set}\" = set"; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 cat >conftest.$ac_ext <<_ACEOF
11284 #line $LINENO "configure"
11285 #include "confdefs.h"
11286 /* System header to define __stub macros and hopefully few prototypes,
11287 which can conflict with char $ac_func (); below. */
11288 #include <assert.h>
11289 /* Override any gcc2 internal prototype to avoid an error. */
11293 /* We use char because int might match the return type of a gcc2
11294 builtin and then its argument prototype would still apply. */
11298 #ifdef F77_DUMMY_MAIN
11299 # ifdef __cplusplus
11302 int F77_DUMMY_MAIN() { return 1; }
11307 /* The GNU C library defines this for functions which it implements
11308 to always fail with ENOSYS. Some functions are actually named
11309 something starting with __ and the normal name is an alias. */
11310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11322 (eval $ac_link) 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
11326 { ac_try='test -s conftest$ac_exeext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 eval "$as_ac_var=yes"
11334 echo "$as_me: failed program was:" >&5
11335 cat conftest.$ac_ext >&5
11336 eval "$as_ac_var=no"
11338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11342 if test `eval echo '${'$as_ac_var'}'` = yes; then
11343 cat >>confdefs.h <<_ACEOF
11344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11350 if test x"$ac_cv_func_execl" = x"no"; then
11351 RUNPROG="bin/smbrun"
11375 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
11377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 echo "$as_me:$LINENO: checking for $ac_func" >&5
11379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11380 if eval "test \"\${$as_ac_var+set}\" = set"; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11386 /* System header to define __stub macros and hopefully few prototypes,
11387 which can conflict with char $ac_func (); below. */
11388 #include <assert.h>
11389 /* Override any gcc2 internal prototype to avoid an error. */
11393 /* We use char because int might match the return type of a gcc2
11394 builtin and then its argument prototype would still apply. */
11398 #ifdef F77_DUMMY_MAIN
11399 # ifdef __cplusplus
11402 int F77_DUMMY_MAIN() { return 1; }
11407 /* The GNU C library defines this for functions which it implements
11408 to always fail with ENOSYS. Some functions are actually named
11409 something starting with __ and the normal name is an alias. */
11410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422 (eval $ac_link) 2>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -s conftest$ac_exeext'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 eval "$as_ac_var=yes"
11434 echo "$as_me: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11436 eval "$as_ac_var=no"
11438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11442 if test `eval echo '${'$as_ac_var'}'` = yes; then
11443 cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11461 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
11463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11464 echo "$as_me:$LINENO: checking for $ac_func" >&5
11465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11466 if eval "test \"\${$as_ac_var+set}\" = set"; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 cat >conftest.$ac_ext <<_ACEOF
11470 #line $LINENO "configure"
11471 #include "confdefs.h"
11472 /* System header to define __stub macros and hopefully few prototypes,
11473 which can conflict with char $ac_func (); below. */
11474 #include <assert.h>
11475 /* Override any gcc2 internal prototype to avoid an error. */
11479 /* We use char because int might match the return type of a gcc2
11480 builtin and then its argument prototype would still apply. */
11484 #ifdef F77_DUMMY_MAIN
11485 # ifdef __cplusplus
11488 int F77_DUMMY_MAIN() { return 1; }
11493 /* The GNU C library defines this for functions which it implements
11494 to always fail with ENOSYS. Some functions are actually named
11495 something starting with __ and the normal name is an alias. */
11496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508 (eval $ac_link) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -s conftest$ac_exeext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 eval "$as_ac_var=yes"
11520 echo "$as_me: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11522 eval "$as_ac_var=no"
11524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11528 if test `eval echo '${'$as_ac_var'}'` = yes; then
11529 cat >>confdefs.h <<_ACEOF
11530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11547 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
11549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11550 echo "$as_me:$LINENO: checking for $ac_func" >&5
11551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11552 if eval "test \"\${$as_ac_var+set}\" = set"; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 cat >conftest.$ac_ext <<_ACEOF
11556 #line $LINENO "configure"
11557 #include "confdefs.h"
11558 /* System header to define __stub macros and hopefully few prototypes,
11559 which can conflict with char $ac_func (); below. */
11560 #include <assert.h>
11561 /* Override any gcc2 internal prototype to avoid an error. */
11565 /* We use char because int might match the return type of a gcc2
11566 builtin and then its argument prototype would still apply. */
11570 #ifdef F77_DUMMY_MAIN
11571 # ifdef __cplusplus
11574 int F77_DUMMY_MAIN() { return 1; }
11579 /* The GNU C library defines this for functions which it implements
11580 to always fail with ENOSYS. Some functions are actually named
11581 something starting with __ and the normal name is an alias. */
11582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594 (eval $ac_link) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -s conftest$ac_exeext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 eval "$as_ac_var=yes"
11606 echo "$as_me: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 eval "$as_ac_var=no"
11610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11614 if test `eval echo '${'$as_ac_var'}'` = yes; then
11615 cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11631 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
11633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11634 echo "$as_me:$LINENO: checking for $ac_func" >&5
11635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11636 if eval "test \"\${$as_ac_var+set}\" = set"; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 cat >conftest.$ac_ext <<_ACEOF
11640 #line $LINENO "configure"
11641 #include "confdefs.h"
11642 /* System header to define __stub macros and hopefully few prototypes,
11643 which can conflict with char $ac_func (); below. */
11644 #include <assert.h>
11645 /* Override any gcc2 internal prototype to avoid an error. */
11649 /* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */
11654 #ifdef F77_DUMMY_MAIN
11655 # ifdef __cplusplus
11658 int F77_DUMMY_MAIN() { return 1; }
11663 /* The GNU C library defines this for functions which it implements
11664 to always fail with ENOSYS. Some functions are actually named
11665 something starting with __ and the normal name is an alias. */
11666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678 (eval $ac_link) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -s conftest$ac_exeext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 eval "$as_ac_var=yes"
11690 echo "$as_me: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 eval "$as_ac_var=no"
11694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11698 if test `eval echo '${'$as_ac_var'}'` = yes; then
11699 cat >>confdefs.h <<_ACEOF
11700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11714 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
11716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11717 echo "$as_me:$LINENO: checking for $ac_func" >&5
11718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11719 if eval "test \"\${$as_ac_var+set}\" = set"; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 cat >conftest.$ac_ext <<_ACEOF
11723 #line $LINENO "configure"
11724 #include "confdefs.h"
11725 /* System header to define __stub macros and hopefully few prototypes,
11726 which can conflict with char $ac_func (); below. */
11727 #include <assert.h>
11728 /* Override any gcc2 internal prototype to avoid an error. */
11732 /* We use char because int might match the return type of a gcc2
11733 builtin and then its argument prototype would still apply. */
11737 #ifdef F77_DUMMY_MAIN
11738 # ifdef __cplusplus
11741 int F77_DUMMY_MAIN() { return 1; }
11746 /* The GNU C library defines this for functions which it implements
11747 to always fail with ENOSYS. Some functions are actually named
11748 something starting with __ and the normal name is an alias. */
11749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11761 (eval $ac_link) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try='test -s conftest$ac_exeext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 eval "$as_ac_var=yes"
11773 echo "$as_me: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 eval "$as_ac_var=no"
11777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11781 if test `eval echo '${'$as_ac_var'}'` = yes; then
11782 cat >>confdefs.h <<_ACEOF
11783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
11801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11802 echo "$as_me:$LINENO: checking for $ac_func" >&5
11803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11804 if eval "test \"\${$as_ac_var+set}\" = set"; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 cat >conftest.$ac_ext <<_ACEOF
11808 #line $LINENO "configure"
11809 #include "confdefs.h"
11810 /* System header to define __stub macros and hopefully few prototypes,
11811 which can conflict with char $ac_func (); below. */
11812 #include <assert.h>
11813 /* Override any gcc2 internal prototype to avoid an error. */
11817 /* We use char because int might match the return type of a gcc2
11818 builtin and then its argument prototype would still apply. */
11822 #ifdef F77_DUMMY_MAIN
11823 # ifdef __cplusplus
11826 int F77_DUMMY_MAIN() { return 1; }
11831 /* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846 (eval $ac_link) 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
11850 { ac_try='test -s conftest$ac_exeext'
11851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; }; then
11856 eval "$as_ac_var=yes"
11858 echo "$as_me: failed program was:" >&5
11859 cat conftest.$ac_ext >&5
11860 eval "$as_ac_var=no"
11862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11866 if test `eval echo '${'$as_ac_var'}'` = yes; then
11867 cat >>confdefs.h <<_ACEOF
11868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11882 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
11884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11885 echo "$as_me:$LINENO: checking for $ac_func" >&5
11886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11887 if eval "test \"\${$as_ac_var+set}\" = set"; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 cat >conftest.$ac_ext <<_ACEOF
11891 #line $LINENO "configure"
11892 #include "confdefs.h"
11893 /* System header to define __stub macros and hopefully few prototypes,
11894 which can conflict with char $ac_func (); below. */
11895 #include <assert.h>
11896 /* Override any gcc2 internal prototype to avoid an error. */
11900 /* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11905 #ifdef F77_DUMMY_MAIN
11906 # ifdef __cplusplus
11909 int F77_DUMMY_MAIN() { return 1; }
11914 /* The GNU C library defines this for functions which it implements
11915 to always fail with ENOSYS. Some functions are actually named
11916 something starting with __ and the normal name is an alias. */
11917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929 (eval $ac_link) 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -s conftest$ac_exeext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 eval "$as_ac_var=yes"
11941 echo "$as_me: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11943 eval "$as_ac_var=no"
11945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11949 if test `eval echo '${'$as_ac_var'}'` = yes; then
11950 cat >>confdefs.h <<_ACEOF
11951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11964 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
11966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11967 echo "$as_me:$LINENO: checking for $ac_func" >&5
11968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11969 if eval "test \"\${$as_ac_var+set}\" = set"; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 cat >conftest.$ac_ext <<_ACEOF
11973 #line $LINENO "configure"
11974 #include "confdefs.h"
11975 /* System header to define __stub macros and hopefully few prototypes,
11976 which can conflict with char $ac_func (); below. */
11977 #include <assert.h>
11978 /* Override any gcc2 internal prototype to avoid an error. */
11982 /* We use char because int might match the return type of a gcc2
11983 builtin and then its argument prototype would still apply. */
11987 #ifdef F77_DUMMY_MAIN
11988 # ifdef __cplusplus
11991 int F77_DUMMY_MAIN() { return 1; }
11996 /* The GNU C library defines this for functions which it implements
11997 to always fail with ENOSYS. Some functions are actually named
11998 something starting with __ and the normal name is an alias. */
11999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011 (eval $ac_link) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 eval "$as_ac_var=yes"
12023 echo "$as_me: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 eval "$as_ac_var=no"
12027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12031 if test `eval echo '${'$as_ac_var'}'` = yes; then
12032 cat >>confdefs.h <<_ACEOF
12033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12050 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
12052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12053 echo "$as_me:$LINENO: checking for $ac_func" >&5
12054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12055 if eval "test \"\${$as_ac_var+set}\" = set"; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 cat >conftest.$ac_ext <<_ACEOF
12059 #line $LINENO "configure"
12060 #include "confdefs.h"
12061 /* System header to define __stub macros and hopefully few prototypes,
12062 which can conflict with char $ac_func (); below. */
12063 #include <assert.h>
12064 /* Override any gcc2 internal prototype to avoid an error. */
12068 /* We use char because int might match the return type of a gcc2
12069 builtin and then its argument prototype would still apply. */
12073 #ifdef F77_DUMMY_MAIN
12074 # ifdef __cplusplus
12077 int F77_DUMMY_MAIN() { return 1; }
12082 /* The GNU C library defines this for functions which it implements
12083 to always fail with ENOSYS. Some functions are actually named
12084 something starting with __ and the normal name is an alias. */
12085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097 (eval $ac_link) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } &&
12101 { ac_try='test -s conftest$ac_exeext'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 eval "$as_ac_var=yes"
12109 echo "$as_me: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12111 eval "$as_ac_var=no"
12113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12117 if test `eval echo '${'$as_ac_var'}'` = yes; then
12118 cat >>confdefs.h <<_ACEOF
12119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12129 for ac_func in syslog vsyslog getgrouplist timegm
12131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12132 echo "$as_me:$LINENO: checking for $ac_func" >&5
12133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12134 if eval "test \"\${$as_ac_var+set}\" = set"; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 cat >conftest.$ac_ext <<_ACEOF
12138 #line $LINENO "configure"
12139 #include "confdefs.h"
12140 /* System header to define __stub macros and hopefully few prototypes,
12141 which can conflict with char $ac_func (); below. */
12142 #include <assert.h>
12143 /* Override any gcc2 internal prototype to avoid an error. */
12147 /* We use char because int might match the return type of a gcc2
12148 builtin and then its argument prototype would still apply. */
12152 #ifdef F77_DUMMY_MAIN
12153 # ifdef __cplusplus
12156 int F77_DUMMY_MAIN() { return 1; }
12161 /* The GNU C library defines this for functions which it implements
12162 to always fail with ENOSYS. Some functions are actually named
12163 something starting with __ and the normal name is an alias. */
12164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12176 (eval $ac_link) 2>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } &&
12180 { ac_try='test -s conftest$ac_exeext'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; }; then
12186 eval "$as_ac_var=yes"
12188 echo "$as_me: failed program was:" >&5
12189 cat conftest.$ac_ext >&5
12190 eval "$as_ac_var=no"
12192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12196 if test `eval echo '${'$as_ac_var'}'` = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12204 # setbuffer is needed for smbtorture
12206 for ac_func in setbuffer
12208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12209 echo "$as_me:$LINENO: checking for $ac_func" >&5
12210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12211 if eval "test \"\${$as_ac_var+set}\" = set"; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 cat >conftest.$ac_ext <<_ACEOF
12215 #line $LINENO "configure"
12216 #include "confdefs.h"
12217 /* System header to define __stub macros and hopefully few prototypes,
12218 which can conflict with char $ac_func (); below. */
12219 #include <assert.h>
12220 /* Override any gcc2 internal prototype to avoid an error. */
12224 /* We use char because int might match the return type of a gcc2
12225 builtin and then its argument prototype would still apply. */
12229 #ifdef F77_DUMMY_MAIN
12230 # ifdef __cplusplus
12233 int F77_DUMMY_MAIN() { return 1; }
12238 /* The GNU C library defines this for functions which it implements
12239 to always fail with ENOSYS. Some functions are actually named
12240 something starting with __ and the normal name is an alias. */
12241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12253 (eval $ac_link) 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 eval "$as_ac_var=yes"
12265 echo "$as_me: failed program was:" >&5
12266 cat conftest.$ac_ext >&5
12267 eval "$as_ac_var=no"
12269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12273 if test `eval echo '${'$as_ac_var'}'` = yes; then
12274 cat >>confdefs.h <<_ACEOF
12275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12282 # syscall() is needed for smbwrapper.
12284 for ac_func in syscall
12286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12287 echo "$as_me:$LINENO: checking for $ac_func" >&5
12288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12289 if eval "test \"\${$as_ac_var+set}\" = set"; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 cat >conftest.$ac_ext <<_ACEOF
12293 #line $LINENO "configure"
12294 #include "confdefs.h"
12295 /* System header to define __stub macros and hopefully few prototypes,
12296 which can conflict with char $ac_func (); below. */
12297 #include <assert.h>
12298 /* Override any gcc2 internal prototype to avoid an error. */
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12307 #ifdef F77_DUMMY_MAIN
12308 # ifdef __cplusplus
12311 int F77_DUMMY_MAIN() { return 1; }
12316 /* The GNU C library defines this for functions which it implements
12317 to always fail with ENOSYS. Some functions are actually named
12318 something starting with __ and the normal name is an alias. */
12319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12331 (eval $ac_link) 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 eval "$as_ac_var=yes"
12343 echo "$as_me: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 eval "$as_ac_var=no"
12347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12351 if test `eval echo '${'$as_ac_var'}'` = yes; then
12352 cat >>confdefs.h <<_ACEOF
12353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12367 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
12369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12370 echo "$as_me:$LINENO: checking for $ac_func" >&5
12371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12372 if eval "test \"\${$as_ac_var+set}\" = set"; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 cat >conftest.$ac_ext <<_ACEOF
12376 #line $LINENO "configure"
12377 #include "confdefs.h"
12378 /* System header to define __stub macros and hopefully few prototypes,
12379 which can conflict with char $ac_func (); below. */
12380 #include <assert.h>
12381 /* Override any gcc2 internal prototype to avoid an error. */
12385 /* We use char because int might match the return type of a gcc2
12386 builtin and then its argument prototype would still apply. */
12390 #ifdef F77_DUMMY_MAIN
12391 # ifdef __cplusplus
12394 int F77_DUMMY_MAIN() { return 1; }
12399 /* The GNU C library defines this for functions which it implements
12400 to always fail with ENOSYS. Some functions are actually named
12401 something starting with __ and the normal name is an alias. */
12402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12412 rm -f conftest.$ac_objext conftest$ac_exeext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12414 (eval $ac_link) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 eval "$as_ac_var=yes"
12426 echo "$as_me: failed program was:" >&5
12427 cat conftest.$ac_ext >&5
12428 eval "$as_ac_var=no"
12430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12434 if test `eval echo '${'$as_ac_var'}'` = yes; then
12435 cat >>confdefs.h <<_ACEOF
12436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12449 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
12451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12452 echo "$as_me:$LINENO: checking for $ac_func" >&5
12453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12454 if eval "test \"\${$as_ac_var+set}\" = set"; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 cat >conftest.$ac_ext <<_ACEOF
12458 #line $LINENO "configure"
12459 #include "confdefs.h"
12460 /* System header to define __stub macros and hopefully few prototypes,
12461 which can conflict with char $ac_func (); below. */
12462 #include <assert.h>
12463 /* Override any gcc2 internal prototype to avoid an error. */
12467 /* We use char because int might match the return type of a gcc2
12468 builtin and then its argument prototype would still apply. */
12472 #ifdef F77_DUMMY_MAIN
12473 # ifdef __cplusplus
12476 int F77_DUMMY_MAIN() { return 1; }
12481 /* The GNU C library defines this for functions which it implements
12482 to always fail with ENOSYS. Some functions are actually named
12483 something starting with __ and the normal name is an alias. */
12484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12494 rm -f conftest.$ac_objext conftest$ac_exeext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12496 (eval $ac_link) 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } &&
12500 { ac_try='test -s conftest$ac_exeext'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; }; then
12506 eval "$as_ac_var=yes"
12508 echo "$as_me: failed program was:" >&5
12509 cat conftest.$ac_ext >&5
12510 eval "$as_ac_var=no"
12512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12516 if test `eval echo '${'$as_ac_var'}'` = yes; then
12517 cat >>confdefs.h <<_ACEOF
12518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12526 for ac_func in __getcwd _getcwd
12528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12529 echo "$as_me:$LINENO: checking for $ac_func" >&5
12530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12531 if eval "test \"\${$as_ac_var+set}\" = set"; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 cat >conftest.$ac_ext <<_ACEOF
12535 #line $LINENO "configure"
12536 #include "confdefs.h"
12537 /* System header to define __stub macros and hopefully few prototypes,
12538 which can conflict with char $ac_func (); below. */
12539 #include <assert.h>
12540 /* Override any gcc2 internal prototype to avoid an error. */
12544 /* We use char because int might match the return type of a gcc2
12545 builtin and then its argument prototype would still apply. */
12549 #ifdef F77_DUMMY_MAIN
12550 # ifdef __cplusplus
12553 int F77_DUMMY_MAIN() { return 1; }
12558 /* The GNU C library defines this for functions which it implements
12559 to always fail with ENOSYS. Some functions are actually named
12560 something starting with __ and the normal name is an alias. */
12561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12571 rm -f conftest.$ac_objext conftest$ac_exeext
12572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12573 (eval $ac_link) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -s conftest$ac_exeext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 eval "$as_ac_var=yes"
12585 echo "$as_me: failed program was:" >&5
12586 cat conftest.$ac_ext >&5
12587 eval "$as_ac_var=no"
12589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12593 if test `eval echo '${'$as_ac_var'}'` = yes; then
12594 cat >>confdefs.h <<_ACEOF
12595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12604 for ac_func in __xstat __fxstat __lxstat
12606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607 echo "$as_me:$LINENO: checking for $ac_func" >&5
12608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12609 if eval "test \"\${$as_ac_var+set}\" = set"; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12612 cat >conftest.$ac_ext <<_ACEOF
12613 #line $LINENO "configure"
12614 #include "confdefs.h"
12615 /* System header to define __stub macros and hopefully few prototypes,
12616 which can conflict with char $ac_func (); below. */
12617 #include <assert.h>
12618 /* Override any gcc2 internal prototype to avoid an error. */
12622 /* We use char because int might match the return type of a gcc2
12623 builtin and then its argument prototype would still apply. */
12627 #ifdef F77_DUMMY_MAIN
12628 # ifdef __cplusplus
12631 int F77_DUMMY_MAIN() { return 1; }
12636 /* The GNU C library defines this for functions which it implements
12637 to always fail with ENOSYS. Some functions are actually named
12638 something starting with __ and the normal name is an alias. */
12639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12649 rm -f conftest.$ac_objext conftest$ac_exeext
12650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12651 (eval $ac_link) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try='test -s conftest$ac_exeext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 eval "$as_ac_var=yes"
12663 echo "$as_me: failed program was:" >&5
12664 cat conftest.$ac_ext >&5
12665 eval "$as_ac_var=no"
12667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12671 if test `eval echo '${'$as_ac_var'}'` = yes; then
12672 cat >>confdefs.h <<_ACEOF
12673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12685 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
12687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12688 echo "$as_me:$LINENO: checking for $ac_func" >&5
12689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12690 if eval "test \"\${$as_ac_var+set}\" = set"; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 cat >conftest.$ac_ext <<_ACEOF
12694 #line $LINENO "configure"
12695 #include "confdefs.h"
12696 /* System header to define __stub macros and hopefully few prototypes,
12697 which can conflict with char $ac_func (); below. */
12698 #include <assert.h>
12699 /* Override any gcc2 internal prototype to avoid an error. */
12703 /* We use char because int might match the return type of a gcc2
12704 builtin and then its argument prototype would still apply. */
12708 #ifdef F77_DUMMY_MAIN
12709 # ifdef __cplusplus
12712 int F77_DUMMY_MAIN() { return 1; }
12717 /* The GNU C library defines this for functions which it implements
12718 to always fail with ENOSYS. Some functions are actually named
12719 something starting with __ and the normal name is an alias. */
12720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12732 (eval $ac_link) 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -s conftest$ac_exeext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 eval "$as_ac_var=yes"
12744 echo "$as_me: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 eval "$as_ac_var=no"
12748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12752 if test `eval echo '${'$as_ac_var'}'` = yes; then
12753 cat >>confdefs.h <<_ACEOF
12754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12768 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
12770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12771 echo "$as_me:$LINENO: checking for $ac_func" >&5
12772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12773 if eval "test \"\${$as_ac_var+set}\" = set"; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 cat >conftest.$ac_ext <<_ACEOF
12777 #line $LINENO "configure"
12778 #include "confdefs.h"
12779 /* System header to define __stub macros and hopefully few prototypes,
12780 which can conflict with char $ac_func (); below. */
12781 #include <assert.h>
12782 /* Override any gcc2 internal prototype to avoid an error. */
12786 /* We use char because int might match the return type of a gcc2
12787 builtin and then its argument prototype would still apply. */
12791 #ifdef F77_DUMMY_MAIN
12792 # ifdef __cplusplus
12795 int F77_DUMMY_MAIN() { return 1; }
12800 /* The GNU C library defines this for functions which it implements
12801 to always fail with ENOSYS. Some functions are actually named
12802 something starting with __ and the normal name is an alias. */
12803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12813 rm -f conftest.$ac_objext conftest$ac_exeext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12815 (eval $ac_link) 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } &&
12819 { ac_try='test -s conftest$ac_exeext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 eval "$as_ac_var=yes"
12827 echo "$as_me: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12829 eval "$as_ac_var=no"
12831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12835 if test `eval echo '${'$as_ac_var'}'` = yes; then
12836 cat >>confdefs.h <<_ACEOF
12837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12849 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
12851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12852 echo "$as_me:$LINENO: checking for $ac_func" >&5
12853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12854 if eval "test \"\${$as_ac_var+set}\" = set"; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 #include "confdefs.h"
12860 /* System header to define __stub macros and hopefully few prototypes,
12861 which can conflict with char $ac_func (); below. */
12862 #include <assert.h>
12863 /* Override any gcc2 internal prototype to avoid an error. */
12867 /* We use char because int might match the return type of a gcc2
12868 builtin and then its argument prototype would still apply. */
12872 #ifdef F77_DUMMY_MAIN
12873 # ifdef __cplusplus
12876 int F77_DUMMY_MAIN() { return 1; }
12881 /* The GNU C library defines this for functions which it implements
12882 to always fail with ENOSYS. Some functions are actually named
12883 something starting with __ and the normal name is an alias. */
12884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12896 (eval $ac_link) 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -s conftest$ac_exeext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 eval "$as_ac_var=yes"
12908 echo "$as_me: failed program was:" >&5
12909 cat conftest.$ac_ext >&5
12910 eval "$as_ac_var=no"
12912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12916 if test `eval echo '${'$as_ac_var'}'` = yes; then
12917 cat >>confdefs.h <<_ACEOF
12918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12931 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
12933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12934 echo "$as_me:$LINENO: checking for $ac_func" >&5
12935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12936 if eval "test \"\${$as_ac_var+set}\" = set"; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 cat >conftest.$ac_ext <<_ACEOF
12940 #line $LINENO "configure"
12941 #include "confdefs.h"
12942 /* System header to define __stub macros and hopefully few prototypes,
12943 which can conflict with char $ac_func (); below. */
12944 #include <assert.h>
12945 /* Override any gcc2 internal prototype to avoid an error. */
12949 /* We use char because int might match the return type of a gcc2
12950 builtin and then its argument prototype would still apply. */
12954 #ifdef F77_DUMMY_MAIN
12955 # ifdef __cplusplus
12958 int F77_DUMMY_MAIN() { return 1; }
12963 /* The GNU C library defines this for functions which it implements
12964 to always fail with ENOSYS. Some functions are actually named
12965 something starting with __ and the normal name is an alias. */
12966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12976 rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978 (eval $ac_link) 2>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } &&
12982 { ac_try='test -s conftest$ac_exeext'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12988 eval "$as_ac_var=yes"
12990 echo "$as_me: failed program was:" >&5
12991 cat conftest.$ac_ext >&5
12992 eval "$as_ac_var=no"
12994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12998 if test `eval echo '${'$as_ac_var'}'` = yes; then
12999 cat >>confdefs.h <<_ACEOF
13000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13010 for ac_func in _write __write _fork __fork
13012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13013 echo "$as_me:$LINENO: checking for $ac_func" >&5
13014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13015 if eval "test \"\${$as_ac_var+set}\" = set"; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 cat >conftest.$ac_ext <<_ACEOF
13019 #line $LINENO "configure"
13020 #include "confdefs.h"
13021 /* System header to define __stub macros and hopefully few prototypes,
13022 which can conflict with char $ac_func (); below. */
13023 #include <assert.h>
13024 /* Override any gcc2 internal prototype to avoid an error. */
13028 /* We use char because int might match the return type of a gcc2
13029 builtin and then its argument prototype would still apply. */
13033 #ifdef F77_DUMMY_MAIN
13034 # ifdef __cplusplus
13037 int F77_DUMMY_MAIN() { return 1; }
13042 /* The GNU C library defines this for functions which it implements
13043 to always fail with ENOSYS. Some functions are actually named
13044 something starting with __ and the normal name is an alias. */
13045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13057 (eval $ac_link) 2>&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } &&
13061 { ac_try='test -s conftest$ac_exeext'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 eval "$as_ac_var=yes"
13069 echo "$as_me: failed program was:" >&5
13070 cat conftest.$ac_ext >&5
13071 eval "$as_ac_var=no"
13073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13077 if test `eval echo '${'$as_ac_var'}'` = yes; then
13078 cat >>confdefs.h <<_ACEOF
13079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13091 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
13093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094 echo "$as_me:$LINENO: checking for $ac_func" >&5
13095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13096 if eval "test \"\${$as_ac_var+set}\" = set"; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 cat >conftest.$ac_ext <<_ACEOF
13100 #line $LINENO "configure"
13101 #include "confdefs.h"
13102 /* System header to define __stub macros and hopefully few prototypes,
13103 which can conflict with char $ac_func (); below. */
13104 #include <assert.h>
13105 /* Override any gcc2 internal prototype to avoid an error. */
13109 /* We use char because int might match the return type of a gcc2
13110 builtin and then its argument prototype would still apply. */
13114 #ifdef F77_DUMMY_MAIN
13115 # ifdef __cplusplus
13118 int F77_DUMMY_MAIN() { return 1; }
13123 /* The GNU C library defines this for functions which it implements
13124 to always fail with ENOSYS. Some functions are actually named
13125 something starting with __ and the normal name is an alias. */
13126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138 (eval $ac_link) 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 eval "$as_ac_var=yes"
13150 echo "$as_me: failed program was:" >&5
13151 cat conftest.$ac_ext >&5
13152 eval "$as_ac_var=no"
13154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13158 if test `eval echo '${'$as_ac_var'}'` = yes; then
13159 cat >>confdefs.h <<_ACEOF
13160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13173 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
13175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13176 echo "$as_me:$LINENO: checking for $ac_func" >&5
13177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13178 if eval "test \"\${$as_ac_var+set}\" = set"; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 cat >conftest.$ac_ext <<_ACEOF
13182 #line $LINENO "configure"
13183 #include "confdefs.h"
13184 /* System header to define __stub macros and hopefully few prototypes,
13185 which can conflict with char $ac_func (); below. */
13186 #include <assert.h>
13187 /* Override any gcc2 internal prototype to avoid an error. */
13191 /* We use char because int might match the return type of a gcc2
13192 builtin and then its argument prototype would still apply. */
13196 #ifdef F77_DUMMY_MAIN
13197 # ifdef __cplusplus
13200 int F77_DUMMY_MAIN() { return 1; }
13205 /* The GNU C library defines this for functions which it implements
13206 to always fail with ENOSYS. Some functions are actually named
13207 something starting with __ and the normal name is an alias. */
13208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13220 (eval $ac_link) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -s conftest$ac_exeext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 eval "$as_ac_var=yes"
13232 echo "$as_me: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13234 eval "$as_ac_var=no"
13236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13240 if test `eval echo '${'$as_ac_var'}'` = yes; then
13241 cat >>confdefs.h <<_ACEOF
13242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13254 for ac_func in pread _pread __pread pread64 _pread64 __pread64
13256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13257 echo "$as_me:$LINENO: checking for $ac_func" >&5
13258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13259 if eval "test \"\${$as_ac_var+set}\" = set"; then
13260 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 cat >conftest.$ac_ext <<_ACEOF
13263 #line $LINENO "configure"
13264 #include "confdefs.h"
13265 /* System header to define __stub macros and hopefully few prototypes,
13266 which can conflict with char $ac_func (); below. */
13267 #include <assert.h>
13268 /* Override any gcc2 internal prototype to avoid an error. */
13272 /* We use char because int might match the return type of a gcc2
13273 builtin and then its argument prototype would still apply. */
13277 #ifdef F77_DUMMY_MAIN
13278 # ifdef __cplusplus
13281 int F77_DUMMY_MAIN() { return 1; }
13286 /* The GNU C library defines this for functions which it implements
13287 to always fail with ENOSYS. Some functions are actually named
13288 something starting with __ and the normal name is an alias. */
13289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13299 rm -f conftest.$ac_objext conftest$ac_exeext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13301 (eval $ac_link) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } &&
13305 { ac_try='test -s conftest$ac_exeext'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; }; then
13311 eval "$as_ac_var=yes"
13313 echo "$as_me: failed program was:" >&5
13314 cat conftest.$ac_ext >&5
13315 eval "$as_ac_var=no"
13317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13321 if test `eval echo '${'$as_ac_var'}'` = yes; then
13322 cat >>confdefs.h <<_ACEOF
13323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13335 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
13337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13338 echo "$as_me:$LINENO: checking for $ac_func" >&5
13339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13340 if eval "test \"\${$as_ac_var+set}\" = set"; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 cat >conftest.$ac_ext <<_ACEOF
13344 #line $LINENO "configure"
13345 #include "confdefs.h"
13346 /* System header to define __stub macros and hopefully few prototypes,
13347 which can conflict with char $ac_func (); below. */
13348 #include <assert.h>
13349 /* Override any gcc2 internal prototype to avoid an error. */
13353 /* We use char because int might match the return type of a gcc2
13354 builtin and then its argument prototype would still apply. */
13358 #ifdef F77_DUMMY_MAIN
13359 # ifdef __cplusplus
13362 int F77_DUMMY_MAIN() { return 1; }
13367 /* The GNU C library defines this for functions which it implements
13368 to always fail with ENOSYS. Some functions are actually named
13369 something starting with __ and the normal name is an alias. */
13370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382 (eval $ac_link) 2>&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
13386 { ac_try='test -s conftest$ac_exeext'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13392 eval "$as_ac_var=yes"
13394 echo "$as_me: failed program was:" >&5
13395 cat conftest.$ac_ext >&5
13396 eval "$as_ac_var=no"
13398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13402 if test `eval echo '${'$as_ac_var'}'` = yes; then
13403 cat >>confdefs.h <<_ACEOF
13404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13414 for ac_func in open64 _open64 __open64 creat64
13416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13417 echo "$as_me:$LINENO: checking for $ac_func" >&5
13418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13419 if eval "test \"\${$as_ac_var+set}\" = set"; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 cat >conftest.$ac_ext <<_ACEOF
13423 #line $LINENO "configure"
13424 #include "confdefs.h"
13425 /* System header to define __stub macros and hopefully few prototypes,
13426 which can conflict with char $ac_func (); below. */
13427 #include <assert.h>
13428 /* Override any gcc2 internal prototype to avoid an error. */
13432 /* We use char because int might match the return type of a gcc2
13433 builtin and then its argument prototype would still apply. */
13437 #ifdef F77_DUMMY_MAIN
13438 # ifdef __cplusplus
13441 int F77_DUMMY_MAIN() { return 1; }
13446 /* The GNU C library defines this for functions which it implements
13447 to always fail with ENOSYS. Some functions are actually named
13448 something starting with __ and the normal name is an alias. */
13449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13461 (eval $ac_link) 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -s conftest$ac_exeext'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 eval "$as_ac_var=yes"
13473 echo "$as_me: failed program was:" >&5
13474 cat conftest.$ac_ext >&5
13475 eval "$as_ac_var=no"
13477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13481 if test `eval echo '${'$as_ac_var'}'` = yes; then
13482 cat >>confdefs.h <<_ACEOF
13483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13491 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
13494 if test x$ac_cv_func_stat64 = xno ; then
13495 echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
13496 echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
13497 cat >conftest.$ac_ext <<_ACEOF
13498 #line $LINENO "configure"
13499 #include "confdefs.h"
13501 #if defined(HAVE_UNISTD_H)
13502 #include <unistd.h>
13504 #include <sys/stat.h>
13506 #ifdef F77_DUMMY_MAIN
13507 # ifdef __cplusplus
13510 int F77_DUMMY_MAIN() { return 1; }
13515 struct stat64 st64; exit(stat64(".",&st64));
13520 rm -f conftest.$ac_objext conftest$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522 (eval $ac_link) 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try='test -s conftest$ac_exeext'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 ac_cv_func_stat64=yes
13534 echo "$as_me: failed program was:" >&5
13535 cat conftest.$ac_ext >&5
13537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13538 echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
13539 echo "${ECHO_T}$ac_cv_func_stat64" >&6
13540 if test x$ac_cv_func_stat64 = xyes ; then
13542 cat >>confdefs.h <<\_ACEOF
13543 #define HAVE_STAT64 1
13549 if test x$ac_cv_func_lstat64 = xno ; then
13550 echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
13551 echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6
13552 cat >conftest.$ac_ext <<_ACEOF
13553 #line $LINENO "configure"
13554 #include "confdefs.h"
13556 #if defined(HAVE_UNISTD_H)
13557 #include <unistd.h>
13559 #include <sys/stat.h>
13561 #ifdef F77_DUMMY_MAIN
13562 # ifdef __cplusplus
13565 int F77_DUMMY_MAIN() { return 1; }
13570 struct stat64 st64; exit(lstat64(".",&st64));
13575 rm -f conftest.$ac_objext conftest$ac_exeext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13577 (eval $ac_link) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -s conftest$ac_exeext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_cv_func_lstat64=yes
13589 echo "$as_me: failed program was:" >&5
13590 cat conftest.$ac_ext >&5
13592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13593 echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
13594 echo "${ECHO_T}$ac_cv_func_lstat64" >&6
13595 if test x$ac_cv_func_lstat64 = xyes ; then
13596 cat >>confdefs.h <<\_ACEOF
13597 #define HAVE_LSTAT64 Whether lstat64() is available
13603 if test x$ac_cv_func_fstat64 = xno ; then
13604 echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
13605 echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
13606 cat >conftest.$ac_ext <<_ACEOF
13607 #line $LINENO "configure"
13608 #include "confdefs.h"
13610 #if defined(HAVE_UNISTD_H)
13611 #include <unistd.h>
13613 #include <sys/stat.h>
13615 #ifdef F77_DUMMY_MAIN
13616 # ifdef __cplusplus
13619 int F77_DUMMY_MAIN() { return 1; }
13624 struct stat64 st64; exit(fstat64(0,&st64));
13629 rm -f conftest.$ac_objext conftest$ac_exeext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13631 (eval $ac_link) 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
13635 { ac_try='test -s conftest$ac_exeext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13641 ac_cv_func_fstat64=yes
13643 echo "$as_me: failed program was:" >&5
13644 cat conftest.$ac_ext >&5
13646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13647 echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
13648 echo "${ECHO_T}$ac_cv_func_fstat64" >&6
13649 if test x$ac_cv_func_fstat64 = xyes ; then
13651 cat >>confdefs.h <<\_ACEOF
13652 #define HAVE_FSTAT64 1
13658 #####################################
13659 # we might need the resolv library on some systems
13661 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
13662 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
13663 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 ac_check_lib_save_LIBS=$LIBS
13667 LIBS="-lresolv $LIBS"
13668 cat >conftest.$ac_ext <<_ACEOF
13669 #line $LINENO "configure"
13670 #include "confdefs.h"
13672 /* Override any gcc2 internal prototype to avoid an error. */
13676 /* We use char because int might match the return type of a gcc2
13677 builtin and then its argument prototype would still apply. */
13679 #ifdef F77_DUMMY_MAIN
13680 # ifdef __cplusplus
13683 int F77_DUMMY_MAIN() { return 1; }
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13695 (eval $ac_link) 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -s conftest$ac_exeext'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13705 ac_cv_lib_resolv_dn_expand=yes
13707 echo "$as_me: failed program was:" >&5
13708 cat conftest.$ac_ext >&5
13709 ac_cv_lib_resolv_dn_expand=no
13711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13714 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
13715 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
13716 if test $ac_cv_lib_resolv_dn_expand = yes; then
13717 cat >>confdefs.h <<_ACEOF
13718 #define HAVE_LIBRESOLV 1
13721 LIBS="-lresolv $LIBS"
13727 # Check for the functions putprpwnam, set_auth_parameters,
13728 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
13729 # Needed for OSF1 and HPUX.
13734 for ac_func in putprpwnam
13736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13737 echo "$as_me:$LINENO: checking for $ac_func" >&5
13738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13739 if eval "test \"\${$as_ac_var+set}\" = set"; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 cat >conftest.$ac_ext <<_ACEOF
13743 #line $LINENO "configure"
13744 #include "confdefs.h"
13745 /* System header to define __stub macros and hopefully few prototypes,
13746 which can conflict with char $ac_func (); below. */
13747 #include <assert.h>
13748 /* Override any gcc2 internal prototype to avoid an error. */
13752 /* We use char because int might match the return type of a gcc2
13753 builtin and then its argument prototype would still apply. */
13757 #ifdef F77_DUMMY_MAIN
13758 # ifdef __cplusplus
13761 int F77_DUMMY_MAIN() { return 1; }
13766 /* The GNU C library defines this for functions which it implements
13767 to always fail with ENOSYS. Some functions are actually named
13768 something starting with __ and the normal name is an alias. */
13769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13781 (eval $ac_link) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -s conftest$ac_exeext'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
13791 eval "$as_ac_var=yes"
13793 echo "$as_me: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13795 eval "$as_ac_var=no"
13797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13801 if test `eval echo '${'$as_ac_var'}'` = yes; then
13802 cat >>confdefs.h <<_ACEOF
13803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13810 echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
13811 echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
13812 if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 ac_check_lib_save_LIBS=$LIBS
13816 LIBS="-lsecurity $LIBS"
13817 cat >conftest.$ac_ext <<_ACEOF
13818 #line $LINENO "configure"
13819 #include "confdefs.h"
13821 /* Override any gcc2 internal prototype to avoid an error. */
13825 /* We use char because int might match the return type of a gcc2
13826 builtin and then its argument prototype would still apply. */
13827 char putprpwnam ();
13828 #ifdef F77_DUMMY_MAIN
13829 # ifdef __cplusplus
13832 int F77_DUMMY_MAIN() { return 1; }
13842 rm -f conftest.$ac_objext conftest$ac_exeext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844 (eval $ac_link) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -s conftest$ac_exeext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 ac_cv_lib_security_putprpwnam=yes
13856 echo "$as_me: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13858 ac_cv_lib_security_putprpwnam=no
13860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13861 LIBS=$ac_check_lib_save_LIBS
13863 echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
13864 echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
13865 if test $ac_cv_lib_security_putprpwnam = yes; then
13866 cat >>confdefs.h <<_ACEOF
13867 #define HAVE_LIBSECURITY 1
13870 LIBS="-lsecurity $LIBS"
13875 for ac_func in putprpwnam
13877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13878 echo "$as_me:$LINENO: checking for $ac_func" >&5
13879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13880 if eval "test \"\${$as_ac_var+set}\" = set"; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 cat >conftest.$ac_ext <<_ACEOF
13884 #line $LINENO "configure"
13885 #include "confdefs.h"
13886 /* System header to define __stub macros and hopefully few prototypes,
13887 which can conflict with char $ac_func (); below. */
13888 #include <assert.h>
13889 /* Override any gcc2 internal prototype to avoid an error. */
13893 /* We use char because int might match the return type of a gcc2
13894 builtin and then its argument prototype would still apply. */
13898 #ifdef F77_DUMMY_MAIN
13899 # ifdef __cplusplus
13902 int F77_DUMMY_MAIN() { return 1; }
13907 /* The GNU C library defines this for functions which it implements
13908 to always fail with ENOSYS. Some functions are actually named
13909 something starting with __ and the normal name is an alias. */
13910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13920 rm -f conftest.$ac_objext conftest$ac_exeext
13921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13922 (eval $ac_link) 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
13926 { ac_try='test -s conftest$ac_exeext'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13932 eval "$as_ac_var=yes"
13934 echo "$as_me: failed program was:" >&5
13935 cat conftest.$ac_ext >&5
13936 eval "$as_ac_var=no"
13938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13942 if test `eval echo '${'$as_ac_var'}'` = yes; then
13943 cat >>confdefs.h <<_ACEOF
13944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13955 for ac_func in putprpwnam
13957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13958 echo "$as_me:$LINENO: checking for $ac_func" >&5
13959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13960 if eval "test \"\${$as_ac_var+set}\" = set"; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 cat >conftest.$ac_ext <<_ACEOF
13964 #line $LINENO "configure"
13965 #include "confdefs.h"
13966 /* System header to define __stub macros and hopefully few prototypes,
13967 which can conflict with char $ac_func (); below. */
13968 #include <assert.h>
13969 /* Override any gcc2 internal prototype to avoid an error. */
13973 /* We use char because int might match the return type of a gcc2
13974 builtin and then its argument prototype would still apply. */
13978 #ifdef F77_DUMMY_MAIN
13979 # ifdef __cplusplus
13982 int F77_DUMMY_MAIN() { return 1; }
13987 /* The GNU C library defines this for functions which it implements
13988 to always fail with ENOSYS. Some functions are actually named
13989 something starting with __ and the normal name is an alias. */
13990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14000 rm -f conftest.$ac_objext conftest$ac_exeext
14001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14002 (eval $ac_link) 2>&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } &&
14006 { ac_try='test -s conftest$ac_exeext'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 eval "$as_ac_var=yes"
14014 echo "$as_me: failed program was:" >&5
14015 cat conftest.$ac_ext >&5
14016 eval "$as_ac_var=no"
14018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14022 if test `eval echo '${'$as_ac_var'}'` = yes; then
14023 cat >>confdefs.h <<_ACEOF
14024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14031 echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
14032 echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
14033 if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 ac_check_lib_save_LIBS=$LIBS
14038 cat >conftest.$ac_ext <<_ACEOF
14039 #line $LINENO "configure"
14040 #include "confdefs.h"
14042 /* Override any gcc2 internal prototype to avoid an error. */
14046 /* We use char because int might match the return type of a gcc2
14047 builtin and then its argument prototype would still apply. */
14048 char putprpwnam ();
14049 #ifdef F77_DUMMY_MAIN
14050 # ifdef __cplusplus
14053 int F77_DUMMY_MAIN() { return 1; }
14063 rm -f conftest.$ac_objext conftest$ac_exeext
14064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14065 (eval $ac_link) 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try='test -s conftest$ac_exeext'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 ac_cv_lib_sec_putprpwnam=yes
14077 echo "$as_me: failed program was:" >&5
14078 cat conftest.$ac_ext >&5
14079 ac_cv_lib_sec_putprpwnam=no
14081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14082 LIBS=$ac_check_lib_save_LIBS
14084 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
14085 echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
14086 if test $ac_cv_lib_sec_putprpwnam = yes; then
14087 cat >>confdefs.h <<_ACEOF
14088 #define HAVE_LIBSEC 1
14096 for ac_func in putprpwnam
14098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14099 echo "$as_me:$LINENO: checking for $ac_func" >&5
14100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14101 if eval "test \"\${$as_ac_var+set}\" = set"; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 cat >conftest.$ac_ext <<_ACEOF
14105 #line $LINENO "configure"
14106 #include "confdefs.h"
14107 /* System header to define __stub macros and hopefully few prototypes,
14108 which can conflict with char $ac_func (); below. */
14109 #include <assert.h>
14110 /* Override any gcc2 internal prototype to avoid an error. */
14114 /* We use char because int might match the return type of a gcc2
14115 builtin and then its argument prototype would still apply. */
14119 #ifdef F77_DUMMY_MAIN
14120 # ifdef __cplusplus
14123 int F77_DUMMY_MAIN() { return 1; }
14128 /* The GNU C library defines this for functions which it implements
14129 to always fail with ENOSYS. Some functions are actually named
14130 something starting with __ and the normal name is an alias. */
14131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143 (eval $ac_link) 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -s conftest$ac_exeext'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 eval "$as_ac_var=yes"
14155 echo "$as_me: failed program was:" >&5
14156 cat conftest.$ac_ext >&5
14157 eval "$as_ac_var=no"
14159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14163 if test `eval echo '${'$as_ac_var'}'` = yes; then
14164 cat >>confdefs.h <<_ACEOF
14165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14177 for ac_func in set_auth_parameters
14179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14180 echo "$as_me:$LINENO: checking for $ac_func" >&5
14181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14182 if eval "test \"\${$as_ac_var+set}\" = set"; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 cat >conftest.$ac_ext <<_ACEOF
14186 #line $LINENO "configure"
14187 #include "confdefs.h"
14188 /* System header to define __stub macros and hopefully few prototypes,
14189 which can conflict with char $ac_func (); below. */
14190 #include <assert.h>
14191 /* Override any gcc2 internal prototype to avoid an error. */
14195 /* We use char because int might match the return type of a gcc2
14196 builtin and then its argument prototype would still apply. */
14200 #ifdef F77_DUMMY_MAIN
14201 # ifdef __cplusplus
14204 int F77_DUMMY_MAIN() { return 1; }
14209 /* The GNU C library defines this for functions which it implements
14210 to always fail with ENOSYS. Some functions are actually named
14211 something starting with __ and the normal name is an alias. */
14212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14222 rm -f conftest.$ac_objext conftest$ac_exeext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14224 (eval $ac_link) 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -s conftest$ac_exeext'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 eval "$as_ac_var=yes"
14236 echo "$as_me: failed program was:" >&5
14237 cat conftest.$ac_ext >&5
14238 eval "$as_ac_var=no"
14240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14244 if test `eval echo '${'$as_ac_var'}'` = yes; then
14245 cat >>confdefs.h <<_ACEOF
14246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14253 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
14254 echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
14255 if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14258 ac_check_lib_save_LIBS=$LIBS
14259 LIBS="-lsecurity $LIBS"
14260 cat >conftest.$ac_ext <<_ACEOF
14261 #line $LINENO "configure"
14262 #include "confdefs.h"
14264 /* Override any gcc2 internal prototype to avoid an error. */
14268 /* We use char because int might match the return type of a gcc2
14269 builtin and then its argument prototype would still apply. */
14270 char set_auth_parameters ();
14271 #ifdef F77_DUMMY_MAIN
14272 # ifdef __cplusplus
14275 int F77_DUMMY_MAIN() { return 1; }
14280 set_auth_parameters ();
14285 rm -f conftest.$ac_objext conftest$ac_exeext
14286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14287 (eval $ac_link) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try='test -s conftest$ac_exeext'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 ac_cv_lib_security_set_auth_parameters=yes
14299 echo "$as_me: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 ac_cv_lib_security_set_auth_parameters=no
14303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14304 LIBS=$ac_check_lib_save_LIBS
14306 echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
14307 echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
14308 if test $ac_cv_lib_security_set_auth_parameters = yes; then
14309 cat >>confdefs.h <<_ACEOF
14310 #define HAVE_LIBSECURITY 1
14313 LIBS="-lsecurity $LIBS"
14318 for ac_func in set_auth_parameters
14320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14321 echo "$as_me:$LINENO: checking for $ac_func" >&5
14322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14323 if eval "test \"\${$as_ac_var+set}\" = set"; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 cat >conftest.$ac_ext <<_ACEOF
14327 #line $LINENO "configure"
14328 #include "confdefs.h"
14329 /* System header to define __stub macros and hopefully few prototypes,
14330 which can conflict with char $ac_func (); below. */
14331 #include <assert.h>
14332 /* Override any gcc2 internal prototype to avoid an error. */
14336 /* We use char because int might match the return type of a gcc2
14337 builtin and then its argument prototype would still apply. */
14341 #ifdef F77_DUMMY_MAIN
14342 # ifdef __cplusplus
14345 int F77_DUMMY_MAIN() { return 1; }
14350 /* The GNU C library defines this for functions which it implements
14351 to always fail with ENOSYS. Some functions are actually named
14352 something starting with __ and the normal name is an alias. */
14353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14363 rm -f conftest.$ac_objext conftest$ac_exeext
14364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14365 (eval $ac_link) 2>&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
14369 { ac_try='test -s conftest$ac_exeext'
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; }; then
14375 eval "$as_ac_var=yes"
14377 echo "$as_me: failed program was:" >&5
14378 cat conftest.$ac_ext >&5
14379 eval "$as_ac_var=no"
14381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14385 if test `eval echo '${'$as_ac_var'}'` = yes; then
14386 cat >>confdefs.h <<_ACEOF
14387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14398 for ac_func in set_auth_parameters
14400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14401 echo "$as_me:$LINENO: checking for $ac_func" >&5
14402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14403 if eval "test \"\${$as_ac_var+set}\" = set"; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 cat >conftest.$ac_ext <<_ACEOF
14407 #line $LINENO "configure"
14408 #include "confdefs.h"
14409 /* System header to define __stub macros and hopefully few prototypes,
14410 which can conflict with char $ac_func (); below. */
14411 #include <assert.h>
14412 /* Override any gcc2 internal prototype to avoid an error. */
14416 /* We use char because int might match the return type of a gcc2
14417 builtin and then its argument prototype would still apply. */
14421 #ifdef F77_DUMMY_MAIN
14422 # ifdef __cplusplus
14425 int F77_DUMMY_MAIN() { return 1; }
14430 /* The GNU C library defines this for functions which it implements
14431 to always fail with ENOSYS. Some functions are actually named
14432 something starting with __ and the normal name is an alias. */
14433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14443 rm -f conftest.$ac_objext conftest$ac_exeext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445 (eval $ac_link) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
14449 { ac_try='test -s conftest$ac_exeext'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 eval "$as_ac_var=yes"
14457 echo "$as_me: failed program was:" >&5
14458 cat conftest.$ac_ext >&5
14459 eval "$as_ac_var=no"
14461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14465 if test `eval echo '${'$as_ac_var'}'` = yes; then
14466 cat >>confdefs.h <<_ACEOF
14467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14474 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
14475 echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
14476 if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 ac_check_lib_save_LIBS=$LIBS
14481 cat >conftest.$ac_ext <<_ACEOF
14482 #line $LINENO "configure"
14483 #include "confdefs.h"
14485 /* Override any gcc2 internal prototype to avoid an error. */
14489 /* We use char because int might match the return type of a gcc2
14490 builtin and then its argument prototype would still apply. */
14491 char set_auth_parameters ();
14492 #ifdef F77_DUMMY_MAIN
14493 # ifdef __cplusplus
14496 int F77_DUMMY_MAIN() { return 1; }
14501 set_auth_parameters ();
14506 rm -f conftest.$ac_objext conftest$ac_exeext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14508 (eval $ac_link) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -s conftest$ac_exeext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14518 ac_cv_lib_sec_set_auth_parameters=yes
14520 echo "$as_me: failed program was:" >&5
14521 cat conftest.$ac_ext >&5
14522 ac_cv_lib_sec_set_auth_parameters=no
14524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14525 LIBS=$ac_check_lib_save_LIBS
14527 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
14528 echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
14529 if test $ac_cv_lib_sec_set_auth_parameters = yes; then
14530 cat >>confdefs.h <<_ACEOF
14531 #define HAVE_LIBSEC 1
14539 for ac_func in set_auth_parameters
14541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14542 echo "$as_me:$LINENO: checking for $ac_func" >&5
14543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14544 if eval "test \"\${$as_ac_var+set}\" = set"; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 cat >conftest.$ac_ext <<_ACEOF
14548 #line $LINENO "configure"
14549 #include "confdefs.h"
14550 /* System header to define __stub macros and hopefully few prototypes,
14551 which can conflict with char $ac_func (); below. */
14552 #include <assert.h>
14553 /* Override any gcc2 internal prototype to avoid an error. */
14557 /* We use char because int might match the return type of a gcc2
14558 builtin and then its argument prototype would still apply. */
14562 #ifdef F77_DUMMY_MAIN
14563 # ifdef __cplusplus
14566 int F77_DUMMY_MAIN() { return 1; }
14571 /* The GNU C library defines this for functions which it implements
14572 to always fail with ENOSYS. Some functions are actually named
14573 something starting with __ and the normal name is an alias. */
14574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14584 rm -f conftest.$ac_objext conftest$ac_exeext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14586 (eval $ac_link) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -s conftest$ac_exeext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 eval "$as_ac_var=yes"
14598 echo "$as_me: failed program was:" >&5
14599 cat conftest.$ac_ext >&5
14600 eval "$as_ac_var=no"
14602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14606 if test `eval echo '${'$as_ac_var'}'` = yes; then
14607 cat >>confdefs.h <<_ACEOF
14608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14618 # UnixWare 7.x has its getspnam in -lgen
14621 for ac_func in getspnam
14623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14624 echo "$as_me:$LINENO: checking for $ac_func" >&5
14625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14626 if eval "test \"\${$as_ac_var+set}\" = set"; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14629 cat >conftest.$ac_ext <<_ACEOF
14630 #line $LINENO "configure"
14631 #include "confdefs.h"
14632 /* System header to define __stub macros and hopefully few prototypes,
14633 which can conflict with char $ac_func (); below. */
14634 #include <assert.h>
14635 /* Override any gcc2 internal prototype to avoid an error. */
14639 /* We use char because int might match the return type of a gcc2
14640 builtin and then its argument prototype would still apply. */
14644 #ifdef F77_DUMMY_MAIN
14645 # ifdef __cplusplus
14648 int F77_DUMMY_MAIN() { return 1; }
14653 /* The GNU C library defines this for functions which it implements
14654 to always fail with ENOSYS. Some functions are actually named
14655 something starting with __ and the normal name is an alias. */
14656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14666 rm -f conftest.$ac_objext conftest$ac_exeext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14668 (eval $ac_link) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -s conftest$ac_exeext'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 eval "$as_ac_var=yes"
14680 echo "$as_me: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14682 eval "$as_ac_var=no"
14684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14688 if test `eval echo '${'$as_ac_var'}'` = yes; then
14689 cat >>confdefs.h <<_ACEOF
14690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14697 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14698 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
14699 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 ac_check_lib_save_LIBS=$LIBS
14704 cat >conftest.$ac_ext <<_ACEOF
14705 #line $LINENO "configure"
14706 #include "confdefs.h"
14708 /* Override any gcc2 internal prototype to avoid an error. */
14712 /* We use char because int might match the return type of a gcc2
14713 builtin and then its argument prototype would still apply. */
14715 #ifdef F77_DUMMY_MAIN
14716 # ifdef __cplusplus
14719 int F77_DUMMY_MAIN() { return 1; }
14729 rm -f conftest.$ac_objext conftest$ac_exeext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14731 (eval $ac_link) 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -s conftest$ac_exeext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_cv_lib_gen_getspnam=yes
14743 echo "$as_me: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14745 ac_cv_lib_gen_getspnam=no
14747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14748 LIBS=$ac_check_lib_save_LIBS
14750 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14751 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
14752 if test $ac_cv_lib_gen_getspnam = yes; then
14753 cat >>confdefs.h <<_ACEOF
14754 #define HAVE_LIBGEN 1
14762 for ac_func in getspnam
14764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14765 echo "$as_me:$LINENO: checking for $ac_func" >&5
14766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14767 if eval "test \"\${$as_ac_var+set}\" = set"; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 cat >conftest.$ac_ext <<_ACEOF
14771 #line $LINENO "configure"
14772 #include "confdefs.h"
14773 /* System header to define __stub macros and hopefully few prototypes,
14774 which can conflict with char $ac_func (); below. */
14775 #include <assert.h>
14776 /* Override any gcc2 internal prototype to avoid an error. */
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14785 #ifdef F77_DUMMY_MAIN
14786 # ifdef __cplusplus
14789 int F77_DUMMY_MAIN() { return 1; }
14794 /* The GNU C library defines this for functions which it implements
14795 to always fail with ENOSYS. Some functions are actually named
14796 something starting with __ and the normal name is an alias. */
14797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14807 rm -f conftest.$ac_objext conftest$ac_exeext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14809 (eval $ac_link) 2>&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -s conftest$ac_exeext'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 eval "$as_ac_var=yes"
14821 echo "$as_me: failed program was:" >&5
14822 cat conftest.$ac_ext >&5
14823 eval "$as_ac_var=no"
14825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14829 if test `eval echo '${'$as_ac_var'}'` = yes; then
14830 cat >>confdefs.h <<_ACEOF
14831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14843 for ac_func in getspnam
14845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14846 echo "$as_me:$LINENO: checking for $ac_func" >&5
14847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14848 if eval "test \"\${$as_ac_var+set}\" = set"; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 cat >conftest.$ac_ext <<_ACEOF
14852 #line $LINENO "configure"
14853 #include "confdefs.h"
14854 /* System header to define __stub macros and hopefully few prototypes,
14855 which can conflict with char $ac_func (); below. */
14856 #include <assert.h>
14857 /* Override any gcc2 internal prototype to avoid an error. */
14861 /* We use char because int might match the return type of a gcc2
14862 builtin and then its argument prototype would still apply. */
14866 #ifdef F77_DUMMY_MAIN
14867 # ifdef __cplusplus
14870 int F77_DUMMY_MAIN() { return 1; }
14875 /* The GNU C library defines this for functions which it implements
14876 to always fail with ENOSYS. Some functions are actually named
14877 something starting with __ and the normal name is an alias. */
14878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890 (eval $ac_link) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -s conftest$ac_exeext'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }; then
14900 eval "$as_ac_var=yes"
14902 echo "$as_me: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14904 eval "$as_ac_var=no"
14906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14910 if test `eval echo '${'$as_ac_var'}'` = yes; then
14911 cat >>confdefs.h <<_ACEOF
14912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14919 echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
14920 echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
14921 if test "${ac_cv_lib_security_getspnam+set}" = set; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 ac_check_lib_save_LIBS=$LIBS
14925 LIBS="-lsecurity $LIBS"
14926 cat >conftest.$ac_ext <<_ACEOF
14927 #line $LINENO "configure"
14928 #include "confdefs.h"
14930 /* Override any gcc2 internal prototype to avoid an error. */
14934 /* We use char because int might match the return type of a gcc2
14935 builtin and then its argument prototype would still apply. */
14937 #ifdef F77_DUMMY_MAIN
14938 # ifdef __cplusplus
14941 int F77_DUMMY_MAIN() { return 1; }
14951 rm -f conftest.$ac_objext conftest$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try='test -s conftest$ac_exeext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 ac_cv_lib_security_getspnam=yes
14965 echo "$as_me: failed program was:" >&5
14966 cat conftest.$ac_ext >&5
14967 ac_cv_lib_security_getspnam=no
14969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14970 LIBS=$ac_check_lib_save_LIBS
14972 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
14973 echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
14974 if test $ac_cv_lib_security_getspnam = yes; then
14975 cat >>confdefs.h <<_ACEOF
14976 #define HAVE_LIBSECURITY 1
14979 LIBS="-lsecurity $LIBS"
14984 for ac_func in getspnam
14986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14987 echo "$as_me:$LINENO: checking for $ac_func" >&5
14988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14989 if eval "test \"\${$as_ac_var+set}\" = set"; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 cat >conftest.$ac_ext <<_ACEOF
14993 #line $LINENO "configure"
14994 #include "confdefs.h"
14995 /* System header to define __stub macros and hopefully few prototypes,
14996 which can conflict with char $ac_func (); below. */
14997 #include <assert.h>
14998 /* Override any gcc2 internal prototype to avoid an error. */
15002 /* We use char because int might match the return type of a gcc2
15003 builtin and then its argument prototype would still apply. */
15007 #ifdef F77_DUMMY_MAIN
15008 # ifdef __cplusplus
15011 int F77_DUMMY_MAIN() { return 1; }
15016 /* The GNU C library defines this for functions which it implements
15017 to always fail with ENOSYS. Some functions are actually named
15018 something starting with __ and the normal name is an alias. */
15019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15031 (eval $ac_link) 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } &&
15035 { ac_try='test -s conftest$ac_exeext'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 eval "$as_ac_var=yes"
15043 echo "$as_me: failed program was:" >&5
15044 cat conftest.$ac_ext >&5
15045 eval "$as_ac_var=no"
15047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15051 if test `eval echo '${'$as_ac_var'}'` = yes; then
15052 cat >>confdefs.h <<_ACEOF
15053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15064 for ac_func in getspnam
15066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15067 echo "$as_me:$LINENO: checking for $ac_func" >&5
15068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15069 if eval "test \"\${$as_ac_var+set}\" = set"; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 cat >conftest.$ac_ext <<_ACEOF
15073 #line $LINENO "configure"
15074 #include "confdefs.h"
15075 /* System header to define __stub macros and hopefully few prototypes,
15076 which can conflict with char $ac_func (); below. */
15077 #include <assert.h>
15078 /* Override any gcc2 internal prototype to avoid an error. */
15082 /* We use char because int might match the return type of a gcc2
15083 builtin and then its argument prototype would still apply. */
15087 #ifdef F77_DUMMY_MAIN
15088 # ifdef __cplusplus
15091 int F77_DUMMY_MAIN() { return 1; }
15096 /* The GNU C library defines this for functions which it implements
15097 to always fail with ENOSYS. Some functions are actually named
15098 something starting with __ and the normal name is an alias. */
15099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15109 rm -f conftest.$ac_objext conftest$ac_exeext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15111 (eval $ac_link) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -s conftest$ac_exeext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 eval "$as_ac_var=yes"
15123 echo "$as_me: failed program was:" >&5
15124 cat conftest.$ac_ext >&5
15125 eval "$as_ac_var=no"
15127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15131 if test `eval echo '${'$as_ac_var'}'` = yes; then
15132 cat >>confdefs.h <<_ACEOF
15133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15140 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
15141 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
15142 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15145 ac_check_lib_save_LIBS=$LIBS
15147 cat >conftest.$ac_ext <<_ACEOF
15148 #line $LINENO "configure"
15149 #include "confdefs.h"
15151 /* Override any gcc2 internal prototype to avoid an error. */
15155 /* We use char because int might match the return type of a gcc2
15156 builtin and then its argument prototype would still apply. */
15158 #ifdef F77_DUMMY_MAIN
15159 # ifdef __cplusplus
15162 int F77_DUMMY_MAIN() { return 1; }
15172 rm -f conftest.$ac_objext conftest$ac_exeext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15174 (eval $ac_link) 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try='test -s conftest$ac_exeext'
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 ac_cv_lib_sec_getspnam=yes
15186 echo "$as_me: failed program was:" >&5
15187 cat conftest.$ac_ext >&5
15188 ac_cv_lib_sec_getspnam=no
15190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15191 LIBS=$ac_check_lib_save_LIBS
15193 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
15194 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
15195 if test $ac_cv_lib_sec_getspnam = yes; then
15196 cat >>confdefs.h <<_ACEOF
15197 #define HAVE_LIBSEC 1
15205 for ac_func in getspnam
15207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15208 echo "$as_me:$LINENO: checking for $ac_func" >&5
15209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15210 if eval "test \"\${$as_ac_var+set}\" = set"; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 cat >conftest.$ac_ext <<_ACEOF
15214 #line $LINENO "configure"
15215 #include "confdefs.h"
15216 /* System header to define __stub macros and hopefully few prototypes,
15217 which can conflict with char $ac_func (); below. */
15218 #include <assert.h>
15219 /* Override any gcc2 internal prototype to avoid an error. */
15223 /* We use char because int might match the return type of a gcc2
15224 builtin and then its argument prototype would still apply. */
15228 #ifdef F77_DUMMY_MAIN
15229 # ifdef __cplusplus
15232 int F77_DUMMY_MAIN() { return 1; }
15237 /* The GNU C library defines this for functions which it implements
15238 to always fail with ENOSYS. Some functions are actually named
15239 something starting with __ and the normal name is an alias. */
15240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15250 rm -f conftest.$ac_objext conftest$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -s conftest$ac_exeext'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
15262 eval "$as_ac_var=yes"
15264 echo "$as_me: failed program was:" >&5
15265 cat conftest.$ac_ext >&5
15266 eval "$as_ac_var=no"
15268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15272 if test `eval echo '${'$as_ac_var'}'` = yes; then
15273 cat >>confdefs.h <<_ACEOF
15274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15286 for ac_func in bigcrypt
15288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15289 echo "$as_me:$LINENO: checking for $ac_func" >&5
15290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15291 if eval "test \"\${$as_ac_var+set}\" = set"; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 cat >conftest.$ac_ext <<_ACEOF
15295 #line $LINENO "configure"
15296 #include "confdefs.h"
15297 /* System header to define __stub macros and hopefully few prototypes,
15298 which can conflict with char $ac_func (); below. */
15299 #include <assert.h>
15300 /* Override any gcc2 internal prototype to avoid an error. */
15304 /* We use char because int might match the return type of a gcc2
15305 builtin and then its argument prototype would still apply. */
15309 #ifdef F77_DUMMY_MAIN
15310 # ifdef __cplusplus
15313 int F77_DUMMY_MAIN() { return 1; }
15318 /* The GNU C library defines this for functions which it implements
15319 to always fail with ENOSYS. Some functions are actually named
15320 something starting with __ and the normal name is an alias. */
15321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15331 rm -f conftest.$ac_objext conftest$ac_exeext
15332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15333 (eval $ac_link) 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -s conftest$ac_exeext'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343 eval "$as_ac_var=yes"
15345 echo "$as_me: failed program was:" >&5
15346 cat conftest.$ac_ext >&5
15347 eval "$as_ac_var=no"
15349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15353 if test `eval echo '${'$as_ac_var'}'` = yes; then
15354 cat >>confdefs.h <<_ACEOF
15355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15362 echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
15363 echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
15364 if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 ac_check_lib_save_LIBS=$LIBS
15368 LIBS="-lsecurity $LIBS"
15369 cat >conftest.$ac_ext <<_ACEOF
15370 #line $LINENO "configure"
15371 #include "confdefs.h"
15373 /* Override any gcc2 internal prototype to avoid an error. */
15377 /* We use char because int might match the return type of a gcc2
15378 builtin and then its argument prototype would still apply. */
15380 #ifdef F77_DUMMY_MAIN
15381 # ifdef __cplusplus
15384 int F77_DUMMY_MAIN() { return 1; }
15394 rm -f conftest.$ac_objext conftest$ac_exeext
15395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15396 (eval $ac_link) 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try='test -s conftest$ac_exeext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 ac_cv_lib_security_bigcrypt=yes
15408 echo "$as_me: failed program was:" >&5
15409 cat conftest.$ac_ext >&5
15410 ac_cv_lib_security_bigcrypt=no
15412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15413 LIBS=$ac_check_lib_save_LIBS
15415 echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
15416 echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
15417 if test $ac_cv_lib_security_bigcrypt = yes; then
15418 cat >>confdefs.h <<_ACEOF
15419 #define HAVE_LIBSECURITY 1
15422 LIBS="-lsecurity $LIBS"
15427 for ac_func in bigcrypt
15429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15430 echo "$as_me:$LINENO: checking for $ac_func" >&5
15431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15432 if eval "test \"\${$as_ac_var+set}\" = set"; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15435 cat >conftest.$ac_ext <<_ACEOF
15436 #line $LINENO "configure"
15437 #include "confdefs.h"
15438 /* System header to define __stub macros and hopefully few prototypes,
15439 which can conflict with char $ac_func (); below. */
15440 #include <assert.h>
15441 /* Override any gcc2 internal prototype to avoid an error. */
15445 /* We use char because int might match the return type of a gcc2
15446 builtin and then its argument prototype would still apply. */
15450 #ifdef F77_DUMMY_MAIN
15451 # ifdef __cplusplus
15454 int F77_DUMMY_MAIN() { return 1; }
15459 /* The GNU C library defines this for functions which it implements
15460 to always fail with ENOSYS. Some functions are actually named
15461 something starting with __ and the normal name is an alias. */
15462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15472 rm -f conftest.$ac_objext conftest$ac_exeext
15473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15474 (eval $ac_link) 2>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try='test -s conftest$ac_exeext'
15479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15480 (eval $ac_try) 2>&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; }; then
15484 eval "$as_ac_var=yes"
15486 echo "$as_me: failed program was:" >&5
15487 cat conftest.$ac_ext >&5
15488 eval "$as_ac_var=no"
15490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15494 if test `eval echo '${'$as_ac_var'}'` = yes; then
15495 cat >>confdefs.h <<_ACEOF
15496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15507 for ac_func in bigcrypt
15509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15510 echo "$as_me:$LINENO: checking for $ac_func" >&5
15511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15512 if eval "test \"\${$as_ac_var+set}\" = set"; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 cat >conftest.$ac_ext <<_ACEOF
15516 #line $LINENO "configure"
15517 #include "confdefs.h"
15518 /* System header to define __stub macros and hopefully few prototypes,
15519 which can conflict with char $ac_func (); below. */
15520 #include <assert.h>
15521 /* Override any gcc2 internal prototype to avoid an error. */
15525 /* We use char because int might match the return type of a gcc2
15526 builtin and then its argument prototype would still apply. */
15530 #ifdef F77_DUMMY_MAIN
15531 # ifdef __cplusplus
15534 int F77_DUMMY_MAIN() { return 1; }
15539 /* The GNU C library defines this for functions which it implements
15540 to always fail with ENOSYS. Some functions are actually named
15541 something starting with __ and the normal name is an alias. */
15542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15554 (eval $ac_link) 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } &&
15558 { ac_try='test -s conftest$ac_exeext'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
15564 eval "$as_ac_var=yes"
15566 echo "$as_me: failed program was:" >&5
15567 cat conftest.$ac_ext >&5
15568 eval "$as_ac_var=no"
15570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15574 if test `eval echo '${'$as_ac_var'}'` = yes; then
15575 cat >>confdefs.h <<_ACEOF
15576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15583 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
15584 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
15585 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 ac_check_lib_save_LIBS=$LIBS
15590 cat >conftest.$ac_ext <<_ACEOF
15591 #line $LINENO "configure"
15592 #include "confdefs.h"
15594 /* Override any gcc2 internal prototype to avoid an error. */
15598 /* We use char because int might match the return type of a gcc2
15599 builtin and then its argument prototype would still apply. */
15601 #ifdef F77_DUMMY_MAIN
15602 # ifdef __cplusplus
15605 int F77_DUMMY_MAIN() { return 1; }
15615 rm -f conftest.$ac_objext conftest$ac_exeext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617 (eval $ac_link) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try='test -s conftest$ac_exeext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 ac_cv_lib_sec_bigcrypt=yes
15629 echo "$as_me: failed program was:" >&5
15630 cat conftest.$ac_ext >&5
15631 ac_cv_lib_sec_bigcrypt=no
15633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15634 LIBS=$ac_check_lib_save_LIBS
15636 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
15637 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
15638 if test $ac_cv_lib_sec_bigcrypt = yes; then
15639 cat >>confdefs.h <<_ACEOF
15640 #define HAVE_LIBSEC 1
15648 for ac_func in bigcrypt
15650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15651 echo "$as_me:$LINENO: checking for $ac_func" >&5
15652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15653 if eval "test \"\${$as_ac_var+set}\" = set"; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15656 cat >conftest.$ac_ext <<_ACEOF
15657 #line $LINENO "configure"
15658 #include "confdefs.h"
15659 /* System header to define __stub macros and hopefully few prototypes,
15660 which can conflict with char $ac_func (); below. */
15661 #include <assert.h>
15662 /* Override any gcc2 internal prototype to avoid an error. */
15666 /* We use char because int might match the return type of a gcc2
15667 builtin and then its argument prototype would still apply. */
15671 #ifdef F77_DUMMY_MAIN
15672 # ifdef __cplusplus
15675 int F77_DUMMY_MAIN() { return 1; }
15680 /* The GNU C library defines this for functions which it implements
15681 to always fail with ENOSYS. Some functions are actually named
15682 something starting with __ and the normal name is an alias. */
15683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15693 rm -f conftest.$ac_objext conftest$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695 (eval $ac_link) 2>&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); } &&
15699 { ac_try='test -s conftest$ac_exeext'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 eval "$as_ac_var=yes"
15707 echo "$as_me: failed program was:" >&5
15708 cat conftest.$ac_ext >&5
15709 eval "$as_ac_var=no"
15711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15715 if test `eval echo '${'$as_ac_var'}'` = yes; then
15716 cat >>confdefs.h <<_ACEOF
15717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15729 for ac_func in getprpwnam
15731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15732 echo "$as_me:$LINENO: checking for $ac_func" >&5
15733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15734 if eval "test \"\${$as_ac_var+set}\" = set"; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15737 cat >conftest.$ac_ext <<_ACEOF
15738 #line $LINENO "configure"
15739 #include "confdefs.h"
15740 /* System header to define __stub macros and hopefully few prototypes,
15741 which can conflict with char $ac_func (); below. */
15742 #include <assert.h>
15743 /* Override any gcc2 internal prototype to avoid an error. */
15747 /* We use char because int might match the return type of a gcc2
15748 builtin and then its argument prototype would still apply. */
15752 #ifdef F77_DUMMY_MAIN
15753 # ifdef __cplusplus
15756 int F77_DUMMY_MAIN() { return 1; }
15761 /* The GNU C library defines this for functions which it implements
15762 to always fail with ENOSYS. Some functions are actually named
15763 something starting with __ and the normal name is an alias. */
15764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15774 rm -f conftest.$ac_objext conftest$ac_exeext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15776 (eval $ac_link) 2>&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
15780 { ac_try='test -s conftest$ac_exeext'
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; }; then
15786 eval "$as_ac_var=yes"
15788 echo "$as_me: failed program was:" >&5
15789 cat conftest.$ac_ext >&5
15790 eval "$as_ac_var=no"
15792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15796 if test `eval echo '${'$as_ac_var'}'` = yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15805 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
15806 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
15807 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15810 ac_check_lib_save_LIBS=$LIBS
15811 LIBS="-lsecurity $LIBS"
15812 cat >conftest.$ac_ext <<_ACEOF
15813 #line $LINENO "configure"
15814 #include "confdefs.h"
15816 /* Override any gcc2 internal prototype to avoid an error. */
15820 /* We use char because int might match the return type of a gcc2
15821 builtin and then its argument prototype would still apply. */
15822 char getprpwnam ();
15823 #ifdef F77_DUMMY_MAIN
15824 # ifdef __cplusplus
15827 int F77_DUMMY_MAIN() { return 1; }
15837 rm -f conftest.$ac_objext conftest$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839 (eval $ac_link) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try='test -s conftest$ac_exeext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_cv_lib_security_getprpwnam=yes
15851 echo "$as_me: failed program was:" >&5
15852 cat conftest.$ac_ext >&5
15853 ac_cv_lib_security_getprpwnam=no
15855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15856 LIBS=$ac_check_lib_save_LIBS
15858 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
15859 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
15860 if test $ac_cv_lib_security_getprpwnam = yes; then
15861 cat >>confdefs.h <<_ACEOF
15862 #define HAVE_LIBSECURITY 1
15865 LIBS="-lsecurity $LIBS"
15870 for ac_func in getprpwnam
15872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15873 echo "$as_me:$LINENO: checking for $ac_func" >&5
15874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15875 if eval "test \"\${$as_ac_var+set}\" = set"; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 cat >conftest.$ac_ext <<_ACEOF
15879 #line $LINENO "configure"
15880 #include "confdefs.h"
15881 /* System header to define __stub macros and hopefully few prototypes,
15882 which can conflict with char $ac_func (); below. */
15883 #include <assert.h>
15884 /* Override any gcc2 internal prototype to avoid an error. */
15888 /* We use char because int might match the return type of a gcc2
15889 builtin and then its argument prototype would still apply. */
15893 #ifdef F77_DUMMY_MAIN
15894 # ifdef __cplusplus
15897 int F77_DUMMY_MAIN() { return 1; }
15902 /* The GNU C library defines this for functions which it implements
15903 to always fail with ENOSYS. Some functions are actually named
15904 something starting with __ and the normal name is an alias. */
15905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15915 rm -f conftest.$ac_objext conftest$ac_exeext
15916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15917 (eval $ac_link) 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try='test -s conftest$ac_exeext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 eval "$as_ac_var=yes"
15929 echo "$as_me: failed program was:" >&5
15930 cat conftest.$ac_ext >&5
15931 eval "$as_ac_var=no"
15933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15937 if test `eval echo '${'$as_ac_var'}'` = yes; then
15938 cat >>confdefs.h <<_ACEOF
15939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15950 for ac_func in getprpwnam
15952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15953 echo "$as_me:$LINENO: checking for $ac_func" >&5
15954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15955 if eval "test \"\${$as_ac_var+set}\" = set"; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 cat >conftest.$ac_ext <<_ACEOF
15959 #line $LINENO "configure"
15960 #include "confdefs.h"
15961 /* System header to define __stub macros and hopefully few prototypes,
15962 which can conflict with char $ac_func (); below. */
15963 #include <assert.h>
15964 /* Override any gcc2 internal prototype to avoid an error. */
15968 /* We use char because int might match the return type of a gcc2
15969 builtin and then its argument prototype would still apply. */
15973 #ifdef F77_DUMMY_MAIN
15974 # ifdef __cplusplus
15977 int F77_DUMMY_MAIN() { return 1; }
15982 /* The GNU C library defines this for functions which it implements
15983 to always fail with ENOSYS. Some functions are actually named
15984 something starting with __ and the normal name is an alias. */
15985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15995 rm -f conftest.$ac_objext 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); } &&
16001 { ac_try='test -s conftest$ac_exeext'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 eval "$as_ac_var=yes"
16009 echo "$as_me: failed program was:" >&5
16010 cat conftest.$ac_ext >&5
16011 eval "$as_ac_var=no"
16013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16017 if test `eval echo '${'$as_ac_var'}'` = yes; then
16018 cat >>confdefs.h <<_ACEOF
16019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16026 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
16027 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
16028 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 ac_check_lib_save_LIBS=$LIBS
16033 cat >conftest.$ac_ext <<_ACEOF
16034 #line $LINENO "configure"
16035 #include "confdefs.h"
16037 /* Override any gcc2 internal prototype to avoid an error. */
16041 /* We use char because int might match the return type of a gcc2
16042 builtin and then its argument prototype would still apply. */
16043 char getprpwnam ();
16044 #ifdef F77_DUMMY_MAIN
16045 # ifdef __cplusplus
16048 int F77_DUMMY_MAIN() { return 1; }
16058 rm -f conftest.$ac_objext conftest$ac_exeext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060 (eval $ac_link) 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -s conftest$ac_exeext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_cv_lib_sec_getprpwnam=yes
16072 echo "$as_me: failed program was:" >&5
16073 cat conftest.$ac_ext >&5
16074 ac_cv_lib_sec_getprpwnam=no
16076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16077 LIBS=$ac_check_lib_save_LIBS
16079 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
16080 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
16081 if test $ac_cv_lib_sec_getprpwnam = yes; then
16082 cat >>confdefs.h <<_ACEOF
16083 #define HAVE_LIBSEC 1
16091 for ac_func in getprpwnam
16093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16094 echo "$as_me:$LINENO: checking for $ac_func" >&5
16095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16096 if eval "test \"\${$as_ac_var+set}\" = set"; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16099 cat >conftest.$ac_ext <<_ACEOF
16100 #line $LINENO "configure"
16101 #include "confdefs.h"
16102 /* System header to define __stub macros and hopefully few prototypes,
16103 which can conflict with char $ac_func (); below. */
16104 #include <assert.h>
16105 /* Override any gcc2 internal prototype to avoid an error. */
16109 /* We use char because int might match the return type of a gcc2
16110 builtin and then its argument prototype would still apply. */
16114 #ifdef F77_DUMMY_MAIN
16115 # ifdef __cplusplus
16118 int F77_DUMMY_MAIN() { return 1; }
16123 /* The GNU C library defines this for functions which it implements
16124 to always fail with ENOSYS. Some functions are actually named
16125 something starting with __ and the normal name is an alias. */
16126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16136 rm -f conftest.$ac_objext conftest$ac_exeext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16138 (eval $ac_link) 2>&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } &&
16142 { ac_try='test -s conftest$ac_exeext'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16148 eval "$as_ac_var=yes"
16150 echo "$as_me: failed program was:" >&5
16151 cat conftest.$ac_ext >&5
16152 eval "$as_ac_var=no"
16154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16158 if test `eval echo '${'$as_ac_var'}'` = yes; then
16159 cat >>confdefs.h <<_ACEOF
16160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16170 # this bit needs to be modified for each OS that is suported by
16171 # smbwrapper. You need to specify how to created a shared library and
16172 # how to compile C code to produce PIC object files
16174 # these are the defaults, good for lots of systems
16176 LDSHFLAGS="-shared"
16183 # Assume non-shared by default and override below
16185 echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
16186 echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
16188 # and these are for particular systems
16191 cat >>confdefs.h <<\_ACEOF
16196 LDSHFLAGS="-shared"
16197 DYNEXP="-Wl,--export-dynamic"
16199 SONAMEFLAG="-Wl,-soname="
16200 cat >>confdefs.h <<\_ACEOF
16201 #define STAT_ST_BLOCKSIZE 512
16206 cat >>confdefs.h <<\_ACEOF
16213 if test "${GCC}" = "yes"; then
16215 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
16220 ## ${CFLAGS} added for building 64-bit shared
16221 ## libs using Sun's Compiler
16222 LDSHFLAGS="-G \${CFLAGS}"
16227 cat >>confdefs.h <<\_ACEOF
16228 #define STAT_ST_BLOCKSIZE 512
16233 cat >>confdefs.h <<\_ACEOF
16239 SONAMEFLAG="-Wl,-h,"
16240 PICFLAG="-KPIC" # Is this correct for SunOS
16242 *freebsd*) BLDSHARED="true"
16243 LDSHFLAGS="-shared"
16244 DYNEXP="-Wl,--export-dynamic"
16245 SONAMEFLAG="-Wl,-soname,"
16246 PICFLAG="-fPIC -DPIC"
16248 cat >>confdefs.h <<\_ACEOF
16249 #define STAT_ST_BLOCKSIZE 512
16253 *openbsd*) BLDSHARED="true"
16254 LDSHFLAGS="-shared"
16255 DYNEXP="-Wl,-Bdynamic"
16256 SONAMEFLAG="-Wl,-soname,"
16259 cat >>confdefs.h <<\_ACEOF
16260 #define STAT_ST_BLOCKSIZE 512
16265 cat >>confdefs.h <<\_ACEOF
16271 cat >>confdefs.h <<\_ACEOF
16277 ATTEMPT_WRAP32_BUILD=yes
16279 LDSHFLAGS="-set_version sgi1.0 -shared"
16280 SONAMEFLAG="-soname "
16282 if test "${GCC}" = "yes"; then
16288 cat >>confdefs.h <<\_ACEOF
16289 #define STAT_ST_BLOCKSIZE 512
16294 cat >>confdefs.h <<\_ACEOF
16299 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
16300 DYNEXP="-Wl,-brtl,-bexpall"
16302 if test "${GCC}" != "yes"; then
16303 ## for funky AIX compiler using strncpy()
16304 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
16308 cat >>confdefs.h <<\_ACEOF
16309 #define STAT_ST_BLOCKSIZE DEV_BSIZE
16314 cat >>confdefs.h <<\_ACEOF
16319 # Use special PIC flags for the native HP-UX compiler.
16320 if test $ac_cv_prog_cc_Ae = yes; then
16323 LDSHFLAGS="-B symbolic -b -z"
16329 cat >>confdefs.h <<\_ACEOF
16330 #define STAT_ST_BLOCKSIZE 8192
16335 cat >>confdefs.h <<\_ACEOF
16340 cat >>confdefs.h <<\_ACEOF
16345 LDSHFLAGS="-shared"
16346 SONAMEFLAG="-Wl,-soname,"
16350 cat >>confdefs.h <<\_ACEOF
16355 cat >>confdefs.h <<\_ACEOF
16360 LDSHFLAGS="-shared"
16361 SONAMEFLAG="-Wl,-soname,"
16365 cat >>confdefs.h <<\_ACEOF
16369 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
16370 set dummy groff; ac_word=$2
16371 echo "$as_me:$LINENO: checking for $ac_word" >&5
16372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16373 if test "${ac_cv_prog_ROFF+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 if test -n "$ROFF"; then
16377 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
16379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16380 for as_dir in $PATH
16383 test -z "$as_dir" && as_dir=.
16384 for ac_exec_ext in '' $ac_executable_extensions; do
16385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16386 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
16387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16395 ROFF=$ac_cv_prog_ROFF
16396 if test -n "$ROFF"; then
16397 echo "$as_me:$LINENO: result: $ROFF" >&5
16398 echo "${ECHO_T}$ROFF" >&6
16400 echo "$as_me:$LINENO: result: no" >&5
16401 echo "${ECHO_T}no" >&6
16405 cat >>confdefs.h <<\_ACEOF
16410 *-univel-*) if test "$GCC" != yes ; then
16412 cat >>confdefs.h <<\_ACEOF
16413 #define HAVE_MEMSET 1
16421 cat >>confdefs.h <<\_ACEOF
16422 #define RELIANTUNIX 1
16429 cat >>confdefs.h <<\_ACEOF
16433 if test "$GCC" != yes ; then
16435 cat >>confdefs.h <<\_ACEOF
16436 #define HAVE_MEMSET 1
16444 echo "$as_me:$LINENO: result: $BLDSHARED" >&5
16445 echo "${ECHO_T}$BLDSHARED" >&6
16446 echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
16447 echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
16448 echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
16449 echo "${ECHO_T}$LDSHFLAGS" >&6
16450 echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
16451 echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
16452 echo "$as_me:$LINENO: result: $PICFLAGS" >&5
16453 echo "${ECHO_T}$PICFLAGS" >&6
16455 #######################################################
16456 # test whether building a shared library actually works
16457 if test $BLDSHARED = true; then
16458 echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
16459 echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
16460 if test "${ac_cv_shlib_works+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 ac_cv_shlib_works=no
16465 # try building a trivial shared library
16466 if test "$PICSUFFIX" = "po"; then
16467 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
16468 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16469 ac_cv_shlib_works=yes
16471 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
16472 mv shlib.$PICSUFFIX shlib.po &&
16473 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16474 ac_cv_shlib_works=yes
16476 rm -f shlib.so shlib.po
16479 echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
16480 echo "${ECHO_T}$ac_cv_shlib_works" >&6
16481 if test $ac_cv_shlib_works = no; then
16487 # this updates our target list if we can build shared libs
16488 if test $BLDSHARED = true; then
16489 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
16491 LIBSMBCLIENT_SHARED=
16496 echo "$as_me:$LINENO: checking for long long" >&5
16497 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16498 if test "${samba_cv_have_longlong+set}" = set; then
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 if test "$cross_compiling" = yes; then
16503 samba_cv_have_longlong=cross
16505 cat >conftest.$ac_ext <<_ACEOF
16506 #line $LINENO "configure"
16507 #include "confdefs.h"
16509 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
16511 rm -f conftest$ac_exeext
16512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16513 (eval $ac_link) 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; }; then
16522 samba_cv_have_longlong=yes
16524 echo "$as_me: program exited with status $ac_status" >&5
16525 echo "$as_me: failed program was:" >&5
16526 cat conftest.$ac_ext >&5
16527 ( exit $ac_status )
16528 samba_cv_have_longlong=no
16530 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16533 echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
16534 echo "${ECHO_T}$samba_cv_have_longlong" >&6
16535 if test x"$samba_cv_have_longlong" = x"yes"; then
16537 cat >>confdefs.h <<\_ACEOF
16538 #define HAVE_LONGLONG 1
16544 # Check if the compiler supports the LL prefix on long long integers.
16547 echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
16548 echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
16549 if test "${samba_cv_compiler_supports_ll+set}" = set; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 cat >conftest.$ac_ext <<_ACEOF
16554 #line $LINENO "configure"
16555 #include "confdefs.h"
16557 #ifdef F77_DUMMY_MAIN
16558 # ifdef __cplusplus
16561 int F77_DUMMY_MAIN() { return 1; }
16566 long long i = 0x8000000000LL
16571 rm -f conftest.$ac_objext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16573 (eval $ac_compile) 2>&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
16577 { ac_try='test -s conftest.$ac_objext'
16578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579 (eval $ac_try) 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 samba_cv_compiler_supports_ll=yes
16585 echo "$as_me: failed program was:" >&5
16586 cat conftest.$ac_ext >&5
16587 samba_cv_compiler_supports_ll=no
16589 rm -f conftest.$ac_objext conftest.$ac_ext
16591 echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
16592 echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
16593 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
16595 cat >>confdefs.h <<\_ACEOF
16596 #define COMPILER_SUPPORTS_LL 1
16602 echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
16603 echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
16604 if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 if test "$cross_compiling" = yes; then
16609 samba_cv_SIZEOF_OFF_T=cross
16611 cat >conftest.$ac_ext <<_ACEOF
16612 #line $LINENO "configure"
16613 #include "confdefs.h"
16615 #include <sys/stat.h>
16616 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
16618 rm -f conftest$ac_exeext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16620 (eval $ac_link) 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; }; then
16629 samba_cv_SIZEOF_OFF_T=yes
16631 echo "$as_me: program exited with status $ac_status" >&5
16632 echo "$as_me: failed program was:" >&5
16633 cat conftest.$ac_ext >&5
16634 ( exit $ac_status )
16635 samba_cv_SIZEOF_OFF_T=no
16637 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16640 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
16641 echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
16642 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
16644 cat >>confdefs.h <<\_ACEOF
16645 #define SIZEOF_OFF_T 8
16650 echo "$as_me:$LINENO: checking for off64_t" >&5
16651 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
16652 if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 if test "$cross_compiling" = yes; then
16657 samba_cv_HAVE_OFF64_T=cross
16659 cat >conftest.$ac_ext <<_ACEOF
16660 #line $LINENO "configure"
16661 #include "confdefs.h"
16663 #if defined(HAVE_UNISTD_H)
16664 #include <unistd.h>
16667 #include <sys/stat.h>
16668 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16670 rm -f conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; }; then
16681 samba_cv_HAVE_OFF64_T=yes
16683 echo "$as_me: program exited with status $ac_status" >&5
16684 echo "$as_me: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16686 ( exit $ac_status )
16687 samba_cv_HAVE_OFF64_T=no
16689 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16692 echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
16693 echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
16694 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
16696 cat >>confdefs.h <<\_ACEOF
16697 #define HAVE_OFF64_T 1
16702 echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
16703 echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
16704 if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
16705 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 if test "$cross_compiling" = yes; then
16709 samba_cv_SIZEOF_INO_T=cross
16711 cat >conftest.$ac_ext <<_ACEOF
16712 #line $LINENO "configure"
16713 #include "confdefs.h"
16715 #include <sys/stat.h>
16716 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
16718 rm -f conftest$ac_exeext
16719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16720 (eval $ac_link) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 samba_cv_SIZEOF_INO_T=yes
16731 echo "$as_me: program exited with status $ac_status" >&5
16732 echo "$as_me: failed program was:" >&5
16733 cat conftest.$ac_ext >&5
16734 ( exit $ac_status )
16735 samba_cv_SIZEOF_INO_T=no
16737 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16740 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
16741 echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
16742 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
16744 cat >>confdefs.h <<\_ACEOF
16745 #define SIZEOF_INO_T 8
16750 echo "$as_me:$LINENO: checking for ino64_t" >&5
16751 echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
16752 if test "${samba_cv_HAVE_INO64_T+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 if test "$cross_compiling" = yes; then
16757 samba_cv_HAVE_INO64_T=cross
16759 cat >conftest.$ac_ext <<_ACEOF
16760 #line $LINENO "configure"
16761 #include "confdefs.h"
16763 #if defined(HAVE_UNISTD_H)
16764 #include <unistd.h>
16767 #include <sys/stat.h>
16768 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16770 rm -f conftest$ac_exeext
16771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16772 (eval $ac_link) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
16781 samba_cv_HAVE_INO64_T=yes
16783 echo "$as_me: program exited with status $ac_status" >&5
16784 echo "$as_me: failed program was:" >&5
16785 cat conftest.$ac_ext >&5
16786 ( exit $ac_status )
16787 samba_cv_HAVE_INO64_T=no
16789 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16792 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
16793 echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
16794 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
16796 cat >>confdefs.h <<\_ACEOF
16797 #define HAVE_INO64_T 1
16802 echo "$as_me:$LINENO: checking for dev64_t" >&5
16803 echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
16804 if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16808 if test "$cross_compiling" = yes; then
16809 samba_cv_HAVE_DEV64_T=cross
16811 cat >conftest.$ac_ext <<_ACEOF
16812 #line $LINENO "configure"
16813 #include "confdefs.h"
16815 #if defined(HAVE_UNISTD_H)
16816 #include <unistd.h>
16819 #include <sys/stat.h>
16820 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16822 rm -f conftest$ac_exeext
16823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16824 (eval $ac_link) 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 samba_cv_HAVE_DEV64_T=yes
16835 echo "$as_me: program exited with status $ac_status" >&5
16836 echo "$as_me: failed program was:" >&5
16837 cat conftest.$ac_ext >&5
16838 ( exit $ac_status )
16839 samba_cv_HAVE_DEV64_T=no
16841 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16844 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
16845 echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
16846 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
16848 cat >>confdefs.h <<\_ACEOF
16849 #define HAVE_DEV64_T 1
16854 echo "$as_me:$LINENO: checking for struct dirent64" >&5
16855 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
16856 if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 cat >conftest.$ac_ext <<_ACEOF
16861 #line $LINENO "configure"
16862 #include "confdefs.h"
16864 #if defined(HAVE_UNISTD_H)
16865 #include <unistd.h>
16867 #include <sys/types.h>
16868 #include <dirent.h>
16869 #ifdef F77_DUMMY_MAIN
16870 # ifdef __cplusplus
16873 int F77_DUMMY_MAIN() { return 1; }
16878 struct dirent64 de;
16883 rm -f conftest.$ac_objext
16884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16885 (eval $ac_compile) 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } &&
16889 { ac_try='test -s conftest.$ac_objext'
16890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 samba_cv_HAVE_STRUCT_DIRENT64=yes
16897 echo "$as_me: failed program was:" >&5
16898 cat conftest.$ac_ext >&5
16899 samba_cv_HAVE_STRUCT_DIRENT64=no
16901 rm -f conftest.$ac_objext conftest.$ac_ext
16903 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
16904 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
16905 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
16907 cat >>confdefs.h <<\_ACEOF
16908 #define HAVE_STRUCT_DIRENT64 1
16913 echo "$as_me:$LINENO: checking for major macro" >&5
16914 echo $ECHO_N "checking for major macro... $ECHO_C" >&6
16915 if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16919 if test "$cross_compiling" = yes; then
16920 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
16922 cat >conftest.$ac_ext <<_ACEOF
16923 #line $LINENO "configure"
16924 #include "confdefs.h"
16926 #if defined(HAVE_UNISTD_H)
16927 #include <unistd.h>
16929 #include <sys/types.h>
16930 main() { dev_t dev; int i = major(dev); return 0; }
16932 rm -f conftest$ac_exeext
16933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16934 (eval $ac_link) 2>&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
16945 echo "$as_me: program exited with status $ac_status" >&5
16946 echo "$as_me: failed program was:" >&5
16947 cat conftest.$ac_ext >&5
16948 ( exit $ac_status )
16949 samba_cv_HAVE_DEVICE_MAJOR_FN=no
16951 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16954 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
16955 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
16956 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
16958 cat >>confdefs.h <<\_ACEOF
16959 #define HAVE_DEVICE_MAJOR_FN 1
16964 echo "$as_me:$LINENO: checking for minor macro" >&5
16965 echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
16966 if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
16967 echo $ECHO_N "(cached) $ECHO_C" >&6
16970 if test "$cross_compiling" = yes; then
16971 samba_cv_HAVE_DEVICE_MINOR_FN=cross
16973 cat >conftest.$ac_ext <<_ACEOF
16974 #line $LINENO "configure"
16975 #include "confdefs.h"
16977 #if defined(HAVE_UNISTD_H)
16978 #include <unistd.h>
16980 #include <sys/types.h>
16981 main() { dev_t dev; int i = minor(dev); return 0; }
16983 rm -f conftest$ac_exeext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985 (eval $ac_link) 2>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 samba_cv_HAVE_DEVICE_MINOR_FN=yes
16996 echo "$as_me: program exited with status $ac_status" >&5
16997 echo "$as_me: failed program was:" >&5
16998 cat conftest.$ac_ext >&5
16999 ( exit $ac_status )
17000 samba_cv_HAVE_DEVICE_MINOR_FN=no
17002 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17005 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
17006 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
17007 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
17009 cat >>confdefs.h <<\_ACEOF
17010 #define HAVE_DEVICE_MINOR_FN 1
17015 echo "$as_me:$LINENO: checking for unsigned char" >&5
17016 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
17017 if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 if test "$cross_compiling" = yes; then
17022 samba_cv_HAVE_UNSIGNED_CHAR=cross
17024 cat >conftest.$ac_ext <<_ACEOF
17025 #line $LINENO "configure"
17026 #include "confdefs.h"
17028 main() { char c; c=250; exit((c > 0)?0:1); }
17030 rm -f conftest$ac_exeext
17031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17032 (eval $ac_link) 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 samba_cv_HAVE_UNSIGNED_CHAR=yes
17043 echo "$as_me: program exited with status $ac_status" >&5
17044 echo "$as_me: failed program was:" >&5
17045 cat conftest.$ac_ext >&5
17046 ( exit $ac_status )
17047 samba_cv_HAVE_UNSIGNED_CHAR=no
17049 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17052 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
17053 echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
17054 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
17056 cat >>confdefs.h <<\_ACEOF
17057 #define HAVE_UNSIGNED_CHAR 1
17062 echo "$as_me:$LINENO: checking for sin_len in sock" >&5
17063 echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
17064 if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 cat >conftest.$ac_ext <<_ACEOF
17069 #line $LINENO "configure"
17070 #include "confdefs.h"
17071 #include <sys/types.h>
17072 #include <sys/socket.h>
17073 #include <netinet/in.h>
17074 #ifdef F77_DUMMY_MAIN
17075 # ifdef __cplusplus
17078 int F77_DUMMY_MAIN() { return 1; }
17083 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
17088 rm -f conftest.$ac_objext
17089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17090 (eval $ac_compile) 2>&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
17094 { ac_try='test -s conftest.$ac_objext'
17095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096 (eval $ac_try) 2>&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; }; then
17100 samba_cv_HAVE_SOCK_SIN_LEN=yes
17102 echo "$as_me: failed program was:" >&5
17103 cat conftest.$ac_ext >&5
17104 samba_cv_HAVE_SOCK_SIN_LEN=no
17106 rm -f conftest.$ac_objext conftest.$ac_ext
17108 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
17109 echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
17110 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
17112 cat >>confdefs.h <<\_ACEOF
17113 #define HAVE_SOCK_SIN_LEN 1
17118 echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
17119 echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
17120 if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17124 cat >conftest.$ac_ext <<_ACEOF
17125 #line $LINENO "configure"
17126 #include "confdefs.h"
17127 #include <sys/types.h>
17128 #include <dirent.h>
17129 void seekdir(DIR *d, long loc) { return; }
17130 #ifdef F77_DUMMY_MAIN
17131 # ifdef __cplusplus
17134 int F77_DUMMY_MAIN() { return 1; }
17144 rm -f conftest.$ac_objext
17145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17146 (eval $ac_compile) 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } &&
17150 { ac_try='test -s conftest.$ac_objext'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 samba_cv_SEEKDIR_RETURNS_VOID=yes
17158 echo "$as_me: failed program was:" >&5
17159 cat conftest.$ac_ext >&5
17160 samba_cv_SEEKDIR_RETURNS_VOID=no
17162 rm -f conftest.$ac_objext conftest.$ac_ext
17164 echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
17165 echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
17166 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
17168 cat >>confdefs.h <<\_ACEOF
17169 #define SEEKDIR_RETURNS_VOID 1
17174 echo "$as_me:$LINENO: checking for __FILE__ macro" >&5
17175 echo $ECHO_N "checking for __FILE__ macro... $ECHO_C" >&6
17176 if test "${samba_cv_HAVE_FILE_MACRO+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 cat >conftest.$ac_ext <<_ACEOF
17181 #line $LINENO "configure"
17182 #include "confdefs.h"
17184 #ifdef F77_DUMMY_MAIN
17185 # ifdef __cplusplus
17188 int F77_DUMMY_MAIN() { return 1; }
17193 printf("%s\n", __FILE__);
17198 rm -f conftest.$ac_objext
17199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17200 (eval $ac_compile) 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 samba_cv_HAVE_FILE_MACRO=yes
17212 echo "$as_me: failed program was:" >&5
17213 cat conftest.$ac_ext >&5
17214 samba_cv_HAVE_FILE_MACRO=no
17216 rm -f conftest.$ac_objext conftest.$ac_ext
17218 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FILE_MACRO" >&5
17219 echo "${ECHO_T}$samba_cv_HAVE_FILE_MACRO" >&6
17220 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
17222 cat >>confdefs.h <<\_ACEOF
17223 #define HAVE_FILE_MACRO 1
17228 echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
17229 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
17230 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 cat >conftest.$ac_ext <<_ACEOF
17235 #line $LINENO "configure"
17236 #include "confdefs.h"
17238 #ifdef F77_DUMMY_MAIN
17239 # ifdef __cplusplus
17242 int F77_DUMMY_MAIN() { return 1; }
17247 printf("%s\n", __FUNCTION__);
17252 rm -f conftest.$ac_objext
17253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17254 (eval $ac_compile) 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -s conftest.$ac_objext'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 samba_cv_HAVE_FUNCTION_MACRO=yes
17266 echo "$as_me: failed program was:" >&5
17267 cat conftest.$ac_ext >&5
17268 samba_cv_HAVE_FUNCTION_MACRO=no
17270 rm -f conftest.$ac_objext conftest.$ac_ext
17272 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
17273 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
17274 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
17276 cat >>confdefs.h <<\_ACEOF
17277 #define HAVE_FUNCTION_MACRO 1
17282 echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
17283 echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
17284 if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 if test "$cross_compiling" = yes; then
17289 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
17291 cat >conftest.$ac_ext <<_ACEOF
17292 #line $LINENO "configure"
17293 #include "confdefs.h"
17295 #include <sys/time.h>
17296 #include <unistd.h>
17297 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
17299 rm -f 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); } && { ac_try='./conftest$ac_exeext'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
17312 echo "$as_me: program exited with status $ac_status" >&5
17313 echo "$as_me: failed program was:" >&5
17314 cat conftest.$ac_ext >&5
17315 ( exit $ac_status )
17316 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
17318 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17321 echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
17322 echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
17323 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
17325 cat >>confdefs.h <<\_ACEOF
17326 #define HAVE_GETTIMEOFDAY_TZ 1
17331 echo "$as_me:$LINENO: checking for __va_copy" >&5
17332 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17333 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 cat >conftest.$ac_ext <<_ACEOF
17338 #line $LINENO "configure"
17339 #include "confdefs.h"
17340 #include <stdarg.h>
17342 #ifdef F77_DUMMY_MAIN
17343 # ifdef __cplusplus
17346 int F77_DUMMY_MAIN() { return 1; }
17351 __va_copy(ap1,ap2);
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17358 (eval $ac_link) 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
17362 { ac_try='test -s conftest$ac_exeext'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 samba_cv_HAVE_VA_COPY=yes
17370 echo "$as_me: failed program was:" >&5
17371 cat conftest.$ac_ext >&5
17372 samba_cv_HAVE_VA_COPY=no
17374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17376 echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
17377 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
17378 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
17380 cat >>confdefs.h <<\_ACEOF
17381 #define HAVE_VA_COPY 1
17386 echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
17387 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
17388 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17392 if test "$cross_compiling" = yes; then
17393 samba_cv_HAVE_C99_VSNPRINTF=cross
17395 cat >conftest.$ac_ext <<_ACEOF
17396 #line $LINENO "configure"
17397 #include "confdefs.h"
17399 #include <sys/types.h>
17400 #include <stdarg.h>
17401 void foo(const char *format, ...) {
17406 va_start(ap, format);
17407 len = vsnprintf(buf, 0, format, ap);
17409 if (len != 5) exit(1);
17411 va_start(ap, format);
17412 len = vsnprintf(0, 0, format, ap);
17414 if (len != 5) exit(1);
17416 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
17420 main() { foo("hello"); }
17423 rm -f conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425 (eval $ac_link) 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 samba_cv_HAVE_C99_VSNPRINTF=yes
17436 echo "$as_me: program exited with status $ac_status" >&5
17437 echo "$as_me: failed program was:" >&5
17438 cat conftest.$ac_ext >&5
17439 ( exit $ac_status )
17440 samba_cv_HAVE_C99_VSNPRINTF=no
17442 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17445 echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
17446 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
17447 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
17449 cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_C99_VSNPRINTF 1
17455 echo "$as_me:$LINENO: checking for broken readdir" >&5
17456 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
17457 if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17461 if test "$cross_compiling" = yes; then
17462 samba_cv_HAVE_BROKEN_READDIR=cross
17464 cat >conftest.$ac_ext <<_ACEOF
17465 #line $LINENO "configure"
17466 #include "confdefs.h"
17467 #include <sys/types.h>
17468 #include <dirent.h>
17469 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
17470 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
17471 di->d_name[0] == 0) exit(0); exit(1);}
17473 rm -f conftest$ac_exeext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17475 (eval $ac_link) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; }; then
17484 samba_cv_HAVE_BROKEN_READDIR=yes
17486 echo "$as_me: program exited with status $ac_status" >&5
17487 echo "$as_me: failed program was:" >&5
17488 cat conftest.$ac_ext >&5
17489 ( exit $ac_status )
17490 samba_cv_HAVE_BROKEN_READDIR=no
17492 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17495 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
17496 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
17497 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
17499 cat >>confdefs.h <<\_ACEOF
17500 #define HAVE_BROKEN_READDIR 1
17505 echo "$as_me:$LINENO: checking for utimbuf" >&5
17506 echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
17507 if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 cat >conftest.$ac_ext <<_ACEOF
17512 #line $LINENO "configure"
17513 #include "confdefs.h"
17514 #include <sys/types.h>
17516 #ifdef F77_DUMMY_MAIN
17517 # ifdef __cplusplus
17520 int F77_DUMMY_MAIN() { return 1; }
17525 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
17530 rm -f conftest.$ac_objext
17531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17532 (eval $ac_compile) 2>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -s conftest.$ac_objext'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 samba_cv_HAVE_UTIMBUF=yes
17544 echo "$as_me: failed program was:" >&5
17545 cat conftest.$ac_ext >&5
17546 samba_cv_HAVE_UTIMBUF=no
17548 rm -f conftest.$ac_objext conftest.$ac_ext
17550 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
17551 echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
17552 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
17554 cat >>confdefs.h <<\_ACEOF
17555 #define HAVE_UTIMBUF 1
17566 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
17568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17569 echo "$as_me:$LINENO: checking for $ac_func" >&5
17570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17571 if eval "test \"\${$as_ac_var+set}\" = set"; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17574 cat >conftest.$ac_ext <<_ACEOF
17575 #line $LINENO "configure"
17576 #include "confdefs.h"
17577 /* System header to define __stub macros and hopefully few prototypes,
17578 which can conflict with char $ac_func (); below. */
17579 #include <assert.h>
17580 /* Override any gcc2 internal prototype to avoid an error. */
17584 /* We use char because int might match the return type of a gcc2
17585 builtin and then its argument prototype would still apply. */
17589 #ifdef F77_DUMMY_MAIN
17590 # ifdef __cplusplus
17593 int F77_DUMMY_MAIN() { return 1; }
17598 /* The GNU C library defines this for functions which it implements
17599 to always fail with ENOSYS. Some functions are actually named
17600 something starting with __ and the normal name is an alias. */
17601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17613 (eval $ac_link) 2>&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } &&
17617 { ac_try='test -s conftest$ac_exeext'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17623 eval "$as_ac_var=yes"
17625 echo "$as_me: failed program was:" >&5
17626 cat conftest.$ac_ext >&5
17627 eval "$as_ac_var=no"
17629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17633 if test `eval echo '${'$as_ac_var'}'` = yes; then
17634 cat >>confdefs.h <<_ACEOF
17635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17642 echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
17643 echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
17644 if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
17645 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 cat >conftest.$ac_ext <<_ACEOF
17649 #line $LINENO "configure"
17650 #include "confdefs.h"
17651 #include <sys/types.h>
17653 #ifdef F77_DUMMY_MAIN
17654 # ifdef __cplusplus
17657 int F77_DUMMY_MAIN() { return 1; }
17662 struct utmp ut; ut.ut_name[0] = 'a';
17667 rm -f conftest.$ac_objext
17668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17669 (eval $ac_compile) 2>&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } &&
17673 { ac_try='test -s conftest.$ac_objext'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 samba_cv_HAVE_UT_UT_NAME=yes
17681 echo "$as_me: failed program was:" >&5
17682 cat conftest.$ac_ext >&5
17683 samba_cv_HAVE_UT_UT_NAME=no
17685 rm -f conftest.$ac_objext conftest.$ac_ext
17687 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
17688 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
17689 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
17691 cat >>confdefs.h <<\_ACEOF
17692 #define HAVE_UT_UT_NAME 1
17697 echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
17698 echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
17699 if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
17700 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 cat >conftest.$ac_ext <<_ACEOF
17704 #line $LINENO "configure"
17705 #include "confdefs.h"
17706 #include <sys/types.h>
17708 #ifdef F77_DUMMY_MAIN
17709 # ifdef __cplusplus
17712 int F77_DUMMY_MAIN() { return 1; }
17717 struct utmp ut; ut.ut_user[0] = 'a';
17722 rm -f conftest.$ac_objext
17723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17724 (eval $ac_compile) 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
17728 { ac_try='test -s conftest.$ac_objext'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 samba_cv_HAVE_UT_UT_USER=yes
17736 echo "$as_me: failed program was:" >&5
17737 cat conftest.$ac_ext >&5
17738 samba_cv_HAVE_UT_UT_USER=no
17740 rm -f conftest.$ac_objext conftest.$ac_ext
17742 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
17743 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
17744 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
17746 cat >>confdefs.h <<\_ACEOF
17747 #define HAVE_UT_UT_USER 1
17752 echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
17753 echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
17754 if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 cat >conftest.$ac_ext <<_ACEOF
17759 #line $LINENO "configure"
17760 #include "confdefs.h"
17761 #include <sys/types.h>
17763 #ifdef F77_DUMMY_MAIN
17764 # ifdef __cplusplus
17767 int F77_DUMMY_MAIN() { return 1; }
17772 struct utmp ut; ut.ut_id[0] = 'a';
17777 rm -f conftest.$ac_objext
17778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17779 (eval $ac_compile) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } &&
17783 { ac_try='test -s conftest.$ac_objext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 samba_cv_HAVE_UT_UT_ID=yes
17791 echo "$as_me: failed program was:" >&5
17792 cat conftest.$ac_ext >&5
17793 samba_cv_HAVE_UT_UT_ID=no
17795 rm -f conftest.$ac_objext conftest.$ac_ext
17797 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
17798 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
17799 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
17801 cat >>confdefs.h <<\_ACEOF
17802 #define HAVE_UT_UT_ID 1
17807 echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
17808 echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
17809 if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17813 cat >conftest.$ac_ext <<_ACEOF
17814 #line $LINENO "configure"
17815 #include "confdefs.h"
17816 #include <sys/types.h>
17818 #ifdef F77_DUMMY_MAIN
17819 # ifdef __cplusplus
17822 int F77_DUMMY_MAIN() { return 1; }
17827 struct utmp ut; ut.ut_host[0] = 'a';
17832 rm -f conftest.$ac_objext
17833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17834 (eval $ac_compile) 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -s conftest.$ac_objext'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 samba_cv_HAVE_UT_UT_HOST=yes
17846 echo "$as_me: failed program was:" >&5
17847 cat conftest.$ac_ext >&5
17848 samba_cv_HAVE_UT_UT_HOST=no
17850 rm -f conftest.$ac_objext conftest.$ac_ext
17852 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
17853 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
17854 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
17856 cat >>confdefs.h <<\_ACEOF
17857 #define HAVE_UT_UT_HOST 1
17862 echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
17863 echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
17864 if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 cat >conftest.$ac_ext <<_ACEOF
17869 #line $LINENO "configure"
17870 #include "confdefs.h"
17871 #include <sys/types.h>
17873 #ifdef F77_DUMMY_MAIN
17874 # ifdef __cplusplus
17877 int F77_DUMMY_MAIN() { return 1; }
17882 struct utmp ut; time_t t; ut.ut_time = t;
17887 rm -f conftest.$ac_objext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17889 (eval $ac_compile) 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -s conftest.$ac_objext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 samba_cv_HAVE_UT_UT_TIME=yes
17901 echo "$as_me: failed program was:" >&5
17902 cat conftest.$ac_ext >&5
17903 samba_cv_HAVE_UT_UT_TIME=no
17905 rm -f conftest.$ac_objext conftest.$ac_ext
17907 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
17908 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
17909 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
17911 cat >>confdefs.h <<\_ACEOF
17912 #define HAVE_UT_UT_TIME 1
17917 echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
17918 echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
17919 if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17923 cat >conftest.$ac_ext <<_ACEOF
17924 #line $LINENO "configure"
17925 #include "confdefs.h"
17926 #include <sys/types.h>
17928 #ifdef F77_DUMMY_MAIN
17929 # ifdef __cplusplus
17932 int F77_DUMMY_MAIN() { return 1; }
17937 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
17942 rm -f conftest.$ac_objext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17944 (eval $ac_compile) 2>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
17948 { ac_try='test -s conftest.$ac_objext'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 samba_cv_HAVE_UT_UT_TV=yes
17956 echo "$as_me: failed program was:" >&5
17957 cat conftest.$ac_ext >&5
17958 samba_cv_HAVE_UT_UT_TV=no
17960 rm -f conftest.$ac_objext conftest.$ac_ext
17962 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
17963 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
17964 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
17966 cat >>confdefs.h <<\_ACEOF
17967 #define HAVE_UT_UT_TV 1
17972 echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
17973 echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
17974 if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 cat >conftest.$ac_ext <<_ACEOF
17979 #line $LINENO "configure"
17980 #include "confdefs.h"
17981 #include <sys/types.h>
17983 #ifdef F77_DUMMY_MAIN
17984 # ifdef __cplusplus
17987 int F77_DUMMY_MAIN() { return 1; }
17992 struct utmp ut; ut.ut_type = 0;
17997 rm -f conftest.$ac_objext
17998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17999 (eval $ac_compile) 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try='test -s conftest.$ac_objext'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 samba_cv_HAVE_UT_UT_TYPE=yes
18011 echo "$as_me: failed program was:" >&5
18012 cat conftest.$ac_ext >&5
18013 samba_cv_HAVE_UT_UT_TYPE=no
18015 rm -f conftest.$ac_objext conftest.$ac_ext
18017 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
18018 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
18019 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
18021 cat >>confdefs.h <<\_ACEOF
18022 #define HAVE_UT_UT_TYPE 1
18027 echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
18028 echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
18029 if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18033 cat >conftest.$ac_ext <<_ACEOF
18034 #line $LINENO "configure"
18035 #include "confdefs.h"
18036 #include <sys/types.h>
18038 #ifdef F77_DUMMY_MAIN
18039 # ifdef __cplusplus
18042 int F77_DUMMY_MAIN() { return 1; }
18047 struct utmp ut; ut.ut_pid = 0;
18052 rm -f conftest.$ac_objext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054 (eval $ac_compile) 2>&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
18058 { ac_try='test -s conftest.$ac_objext'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 samba_cv_HAVE_UT_UT_PID=yes
18066 echo "$as_me: failed program was:" >&5
18067 cat conftest.$ac_ext >&5
18068 samba_cv_HAVE_UT_UT_PID=no
18070 rm -f conftest.$ac_objext conftest.$ac_ext
18072 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
18073 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
18074 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
18076 cat >>confdefs.h <<\_ACEOF
18077 #define HAVE_UT_UT_PID 1
18082 echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
18083 echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
18084 if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 cat >conftest.$ac_ext <<_ACEOF
18089 #line $LINENO "configure"
18090 #include "confdefs.h"
18091 #include <sys/types.h>
18093 #ifdef F77_DUMMY_MAIN
18094 # ifdef __cplusplus
18097 int F77_DUMMY_MAIN() { return 1; }
18102 struct utmp ut; ut.ut_exit.e_exit = 0;
18107 rm -f conftest.$ac_objext
18108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18109 (eval $ac_compile) 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -s conftest.$ac_objext'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
18119 samba_cv_HAVE_UT_UT_EXIT=yes
18121 echo "$as_me: failed program was:" >&5
18122 cat conftest.$ac_ext >&5
18123 samba_cv_HAVE_UT_UT_EXIT=no
18125 rm -f conftest.$ac_objext conftest.$ac_ext
18127 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
18128 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
18129 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
18131 cat >>confdefs.h <<\_ACEOF
18132 #define HAVE_UT_UT_EXIT 1
18137 echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
18138 echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
18139 if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
18140 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 cat >conftest.$ac_ext <<_ACEOF
18144 #line $LINENO "configure"
18145 #include "confdefs.h"
18146 #include <sys/types.h>
18148 #ifdef F77_DUMMY_MAIN
18149 # ifdef __cplusplus
18152 int F77_DUMMY_MAIN() { return 1; }
18157 struct utmp ut; ut.ut_addr = 0;
18162 rm -f conftest.$ac_objext
18163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164 (eval $ac_compile) 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } &&
18168 { ac_try='test -s conftest.$ac_objext'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; }; then
18174 samba_cv_HAVE_UT_UT_ADDR=yes
18176 echo "$as_me: failed program was:" >&5
18177 cat conftest.$ac_ext >&5
18178 samba_cv_HAVE_UT_UT_ADDR=no
18180 rm -f conftest.$ac_objext conftest.$ac_ext
18182 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
18183 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
18184 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
18186 cat >>confdefs.h <<\_ACEOF
18187 #define HAVE_UT_UT_ADDR 1
18192 if test x$ac_cv_func_pututline = xyes ; then
18193 echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
18194 echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
18195 if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18199 cat >conftest.$ac_ext <<_ACEOF
18200 #line $LINENO "configure"
18201 #include "confdefs.h"
18202 #include <sys/types.h>
18204 #ifdef F77_DUMMY_MAIN
18205 # ifdef __cplusplus
18208 int F77_DUMMY_MAIN() { return 1; }
18213 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
18218 rm -f conftest.$ac_objext
18219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18220 (eval $ac_compile) 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -s conftest.$ac_objext'
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
18232 echo "$as_me: failed program was:" >&5
18233 cat conftest.$ac_ext >&5
18234 samba_cv_PUTUTLINE_RETURNS_UTMP=no
18236 rm -f conftest.$ac_objext conftest.$ac_ext
18238 echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
18239 echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
18240 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
18242 cat >>confdefs.h <<\_ACEOF
18243 #define PUTUTLINE_RETURNS_UTMP 1
18249 echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
18250 echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
18251 if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
18255 cat >conftest.$ac_ext <<_ACEOF
18256 #line $LINENO "configure"
18257 #include "confdefs.h"
18258 #include <sys/types.h>
18260 #ifdef F77_DUMMY_MAIN
18261 # ifdef __cplusplus
18264 int F77_DUMMY_MAIN() { return 1; }
18269 struct utmpx ux; ux.ut_syslen = 0;
18274 rm -f conftest.$ac_objext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18276 (eval $ac_compile) 2>&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -s conftest.$ac_objext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 samba_cv_HAVE_UX_UT_SYSLEN=yes
18288 echo "$as_me: failed program was:" >&5
18289 cat conftest.$ac_ext >&5
18290 samba_cv_HAVE_UX_UT_SYSLEN=no
18292 rm -f conftest.$ac_objext conftest.$ac_ext
18294 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
18295 echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
18296 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
18298 cat >>confdefs.h <<\_ACEOF
18299 #define HAVE_UX_UT_SYSLEN 1
18305 #################################################
18306 # check for libiconv support
18307 echo "$as_me:$LINENO: checking whether to use libiconv" >&5
18308 echo $ECHO_N "checking whether to use libiconv... $ECHO_C" >&6
18310 # Check whether --with-libiconv or --without-libiconv was given.
18311 if test "${with_libiconv+set}" = set; then
18312 withval="$with_libiconv"
18315 echo "$as_me:$LINENO: result: no" >&5
18316 echo "${ECHO_T}no" >&6
18319 echo "$as_me:$LINENO: result: yes" >&5
18320 echo "${ECHO_T}yes" >&6
18321 CFLAGS="$CFLAGS -I$withval/include"
18322 LDFLAGS="$LDFLAGS -L$withval/lib"
18324 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
18325 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
18326 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18329 ac_check_lib_save_LIBS=$LIBS
18330 LIBS="-liconv $LIBS"
18331 cat >conftest.$ac_ext <<_ACEOF
18332 #line $LINENO "configure"
18333 #include "confdefs.h"
18335 /* Override any gcc2 internal prototype to avoid an error. */
18339 /* We use char because int might match the return type of a gcc2
18340 builtin and then its argument prototype would still apply. */
18341 char iconv_open ();
18342 #ifdef F77_DUMMY_MAIN
18343 # ifdef __cplusplus
18346 int F77_DUMMY_MAIN() { return 1; }
18356 rm -f conftest.$ac_objext conftest$ac_exeext
18357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18358 (eval $ac_link) 2>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -s conftest$ac_exeext'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; }; then
18368 ac_cv_lib_iconv_iconv_open=yes
18370 echo "$as_me: failed program was:" >&5
18371 cat conftest.$ac_ext >&5
18372 ac_cv_lib_iconv_iconv_open=no
18374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18375 LIBS=$ac_check_lib_save_LIBS
18377 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
18378 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
18379 if test $ac_cv_lib_iconv_iconv_open = yes; then
18380 cat >>confdefs.h <<_ACEOF
18381 #define HAVE_LIBICONV 1
18384 LIBS="-liconv $LIBS"
18389 cat >>confdefs.h <<_ACEOF
18390 #define WITH_LIBICONV "${withval}"
18396 echo "$as_me:$LINENO: result: no" >&5
18397 echo "${ECHO_T}no" >&6
18403 # check for iconv in libc
18404 echo "$as_me:$LINENO: checking for working iconv" >&5
18405 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6
18406 if test "${samba_cv_HAVE_NATIVE_ICONV+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18410 if test "$cross_compiling" = yes; then
18411 samba_cv_HAVE_NATIVE_ICONV=cross
18413 cat >conftest.$ac_ext <<_ACEOF
18414 #line $LINENO "configure"
18415 #include "confdefs.h"
18419 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
18420 if (cd == 0 || cd == (iconv_t)-1) return -1;
18425 rm -f conftest$ac_exeext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18427 (eval $ac_link) 2>&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; }; then
18436 samba_cv_HAVE_NATIVE_ICONV=yes
18438 echo "$as_me: program exited with status $ac_status" >&5
18439 echo "$as_me: failed program was:" >&5
18440 cat conftest.$ac_ext >&5
18441 ( exit $ac_status )
18442 samba_cv_HAVE_NATIVE_ICONV=no
18444 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18447 echo "$as_me:$LINENO: result: $samba_cv_HAVE_NATIVE_ICONV" >&5
18448 echo "${ECHO_T}$samba_cv_HAVE_NATIVE_ICONV" >&6
18449 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
18451 cat >>confdefs.h <<\_ACEOF
18452 #define HAVE_NATIVE_ICONV 1
18458 echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
18459 echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
18460 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18464 if test "$cross_compiling" = yes; then
18465 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
18467 cat >conftest.$ac_ext <<_ACEOF
18468 #line $LINENO "configure"
18469 #include "confdefs.h"
18471 #include <sys/types.h>
18474 #define F_GETLEASE 1025
18477 int fd = open("/dev/null", O_RDONLY);
18478 return fcntl(fd, F_GETLEASE, 0) == -1;
18482 rm -f conftest$ac_exeext
18483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18484 (eval $ac_link) 2>&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489 (eval $ac_try) 2>&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
18495 echo "$as_me: program exited with status $ac_status" >&5
18496 echo "$as_me: failed program was:" >&5
18497 cat conftest.$ac_ext >&5
18498 ( exit $ac_status )
18499 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
18501 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18504 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
18505 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
18506 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
18508 cat >>confdefs.h <<\_ACEOF
18509 #define HAVE_KERNEL_OPLOCKS_LINUX 1
18514 echo "$as_me:$LINENO: checking for kernel change notify support" >&5
18515 echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
18516 if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18520 if test "$cross_compiling" = yes; then
18521 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
18523 cat >conftest.$ac_ext <<_ACEOF
18524 #line $LINENO "configure"
18525 #include "confdefs.h"
18527 #include <sys/types.h>
18529 #include <signal.h>
18531 #define F_NOTIFY 1026
18534 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
18538 rm -f conftest$ac_exeext
18539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540 (eval $ac_link) 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
18549 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
18551 echo "$as_me: program exited with status $ac_status" >&5
18552 echo "$as_me: failed program was:" >&5
18553 cat conftest.$ac_ext >&5
18554 ( exit $ac_status )
18555 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
18557 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18560 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
18561 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
18562 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
18564 cat >>confdefs.h <<\_ACEOF
18565 #define HAVE_KERNEL_CHANGE_NOTIFY 1
18570 echo "$as_me:$LINENO: checking for kernel share modes" >&5
18571 echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
18572 if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 if test "$cross_compiling" = yes; then
18577 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
18579 cat >conftest.$ac_ext <<_ACEOF
18580 #line $LINENO "configure"
18581 #include "confdefs.h"
18583 #include <sys/types.h>
18585 #include <signal.h>
18586 #include <sys/file.h>
18588 #define LOCK_MAND 32
18589 #define LOCK_READ 64
18592 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
18596 rm -f conftest$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598 (eval $ac_link) 2>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18603 (eval $ac_try) 2>&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; }; then
18607 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
18609 echo "$as_me: program exited with status $ac_status" >&5
18610 echo "$as_me: failed program was:" >&5
18611 cat conftest.$ac_ext >&5
18612 ( exit $ac_status )
18613 samba_cv_HAVE_KERNEL_SHARE_MODES=no
18615 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18618 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
18619 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
18620 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
18622 cat >>confdefs.h <<\_ACEOF
18623 #define HAVE_KERNEL_SHARE_MODES 1
18631 echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
18632 echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
18633 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18637 cat >conftest.$ac_ext <<_ACEOF
18638 #line $LINENO "configure"
18639 #include "confdefs.h"
18640 #include <sys/types.h>
18642 #ifdef F77_DUMMY_MAIN
18643 # ifdef __cplusplus
18646 int F77_DUMMY_MAIN() { return 1; }
18651 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
18656 rm -f conftest.$ac_objext
18657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18658 (eval $ac_compile) 2>&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } &&
18662 { ac_try='test -s conftest.$ac_objext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
18670 echo "$as_me: failed program was:" >&5
18671 cat conftest.$ac_ext >&5
18672 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
18674 rm -f conftest.$ac_objext conftest.$ac_ext
18676 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
18677 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
18678 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
18680 cat >>confdefs.h <<\_ACEOF
18681 #define HAVE_KERNEL_OPLOCKS_IRIX 1
18686 echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
18687 echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
18688 if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18692 if test "$cross_compiling" = yes; then
18693 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
18695 cat >conftest.$ac_ext <<_ACEOF
18696 #line $LINENO "configure"
18697 #include "confdefs.h"
18698 #include <sys/types.h>
18699 #include <sys/capability.h>
18702 if ((cap = cap_get_proc()) == NULL)
18704 cap->cap_effective |= CAP_NETWORK_MGT;
18705 cap->cap_inheritable |= CAP_NETWORK_MGT;
18711 rm -f conftest$ac_exeext
18712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18713 (eval $ac_link) 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
18724 echo "$as_me: program exited with status $ac_status" >&5
18725 echo "$as_me: failed program was:" >&5
18726 cat conftest.$ac_ext >&5
18727 ( exit $ac_status )
18728 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
18730 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18733 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
18734 echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
18735 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
18737 cat >>confdefs.h <<\_ACEOF
18738 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
18744 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
18745 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
18748 echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
18749 echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18750 if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 cat >conftest.$ac_ext <<_ACEOF
18755 #line $LINENO "configure"
18756 #include "confdefs.h"
18757 #include <sys/types.h>
18758 #if defined(HAVE_RPC_RPC_H)
18759 #include <rpc/rpc.h>
18761 #ifdef F77_DUMMY_MAIN
18762 # ifdef __cplusplus
18765 int F77_DUMMY_MAIN() { return 1; }
18775 rm -f conftest.$ac_objext
18776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18777 (eval $ac_compile) 2>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -s conftest.$ac_objext'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
18789 echo "$as_me: failed program was:" >&5
18790 cat conftest.$ac_ext >&5
18791 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
18793 rm -f conftest.$ac_objext conftest.$ac_ext
18795 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
18796 echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
18797 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
18799 cat >>confdefs.h <<\_ACEOF
18800 #define HAVE_INT16_FROM_RPC_RPC_H 1
18805 echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
18806 echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18807 if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 cat >conftest.$ac_ext <<_ACEOF
18812 #line $LINENO "configure"
18813 #include "confdefs.h"
18814 #include <sys/types.h>
18815 #if defined(HAVE_RPC_RPC_H)
18816 #include <rpc/rpc.h>
18818 #ifdef F77_DUMMY_MAIN
18819 # ifdef __cplusplus
18822 int F77_DUMMY_MAIN() { return 1; }
18832 rm -f conftest.$ac_objext
18833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18834 (eval $ac_compile) 2>&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -s conftest.$ac_objext'
18839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840 (eval $ac_try) 2>&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; }; then
18844 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
18846 echo "$as_me: failed program was:" >&5
18847 cat conftest.$ac_ext >&5
18848 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
18850 rm -f conftest.$ac_objext conftest.$ac_ext
18852 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
18853 echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
18854 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
18856 cat >>confdefs.h <<\_ACEOF
18857 #define HAVE_UINT16_FROM_RPC_RPC_H 1
18862 echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
18863 echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18864 if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 cat >conftest.$ac_ext <<_ACEOF
18869 #line $LINENO "configure"
18870 #include "confdefs.h"
18871 #include <sys/types.h>
18872 #if defined(HAVE_RPC_RPC_H)
18873 #include <rpc/rpc.h>
18875 #ifdef F77_DUMMY_MAIN
18876 # ifdef __cplusplus
18879 int F77_DUMMY_MAIN() { return 1; }
18889 rm -f conftest.$ac_objext
18890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18891 (eval $ac_compile) 2>&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } &&
18895 { ac_try='test -s conftest.$ac_objext'
18896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897 (eval $ac_try) 2>&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; }; then
18901 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
18903 echo "$as_me: failed program was:" >&5
18904 cat conftest.$ac_ext >&5
18905 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
18907 rm -f conftest.$ac_objext conftest.$ac_ext
18909 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
18910 echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
18911 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
18913 cat >>confdefs.h <<\_ACEOF
18914 #define HAVE_INT32_FROM_RPC_RPC_H 1
18919 echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
18920 echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18921 if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 cat >conftest.$ac_ext <<_ACEOF
18926 #line $LINENO "configure"
18927 #include "confdefs.h"
18928 #include <sys/types.h>
18929 #if defined(HAVE_RPC_RPC_H)
18930 #include <rpc/rpc.h>
18932 #ifdef F77_DUMMY_MAIN
18933 # ifdef __cplusplus
18936 int F77_DUMMY_MAIN() { return 1; }
18946 rm -f conftest.$ac_objext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18948 (eval $ac_compile) 2>&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -s conftest.$ac_objext'
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; }; then
18958 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
18960 echo "$as_me: failed program was:" >&5
18961 cat conftest.$ac_ext >&5
18962 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
18964 rm -f conftest.$ac_objext conftest.$ac_ext
18966 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
18967 echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
18968 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
18970 cat >>confdefs.h <<\_ACEOF
18971 #define HAVE_UINT32_FROM_RPC_RPC_H 1
18977 echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
18978 echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
18979 if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18983 cat >conftest.$ac_ext <<_ACEOF
18984 #line $LINENO "configure"
18985 #include "confdefs.h"
18986 #include <sys/types.h>
18987 #ifdef HAVE_SYS_SECURITY_H
18988 #include <sys/security.h>
18990 #endif /* HAVE_SYS_SECURITY_H */
18991 #if defined(HAVE_RPC_RPC_H)
18992 #include <rpc/rpc.h>
18994 #ifdef F77_DUMMY_MAIN
18995 # ifdef __cplusplus
18998 int F77_DUMMY_MAIN() { return 1; }
19008 rm -f conftest.$ac_objext
19009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19010 (eval $ac_compile) 2>&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
19014 { ac_try='test -s conftest.$ac_objext'
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
19022 echo "$as_me: failed program was:" >&5
19023 cat conftest.$ac_ext >&5
19024 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
19026 rm -f conftest.$ac_objext conftest.$ac_ext
19028 echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
19029 echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
19030 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
19032 cat >>confdefs.h <<\_ACEOF
19033 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
19038 echo "$as_me:$LINENO: checking for test routines" >&5
19039 echo $ECHO_N "checking for test routines... $ECHO_C" >&6
19040 if test "$cross_compiling" = yes; then
19041 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
19042 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
19044 cat >conftest.$ac_ext <<_ACEOF
19045 #line $LINENO "configure"
19046 #include "confdefs.h"
19047 #include "${srcdir-.}/tests/trivial.c"
19049 rm -f conftest$ac_exeext
19050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19051 (eval $ac_link) 2>&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 echo "$as_me:$LINENO: result: yes" >&5
19061 echo "${ECHO_T}yes" >&6
19063 echo "$as_me: program exited with status $ac_status" >&5
19064 echo "$as_me: failed program was:" >&5
19065 cat conftest.$ac_ext >&5
19066 ( exit $ac_status )
19067 { { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
19068 echo "$as_me: error: cant find test code. Aborting config" >&2;}
19069 { (exit 1); exit 1; }; }
19071 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19074 echo "$as_me:$LINENO: checking for ftruncate extend" >&5
19075 echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
19076 if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 if test "$cross_compiling" = yes; then
19081 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
19083 cat >conftest.$ac_ext <<_ACEOF
19084 #line $LINENO "configure"
19085 #include "confdefs.h"
19086 #include "${srcdir-.}/tests/ftruncate.c"
19088 rm -f conftest$ac_exeext
19089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19090 (eval $ac_link) 2>&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
19101 echo "$as_me: program exited with status $ac_status" >&5
19102 echo "$as_me: failed program was:" >&5
19103 cat conftest.$ac_ext >&5
19104 ( exit $ac_status )
19105 samba_cv_HAVE_FTRUNCATE_EXTEND=no
19107 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19110 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
19111 echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
19112 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
19114 cat >>confdefs.h <<\_ACEOF
19115 #define HAVE_FTRUNCATE_EXTEND 1
19120 echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
19121 echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
19122 if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19126 if test "$cross_compiling" = yes; then
19127 samba_cv_HAVE_WORKING_AF_LOCAL=cross
19129 cat >conftest.$ac_ext <<_ACEOF
19130 #line $LINENO "configure"
19131 #include "confdefs.h"
19132 #include "${srcdir-.}/tests/unixsock.c"
19134 rm -f conftest$ac_exeext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136 (eval $ac_link) 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 samba_cv_HAVE_WORKING_AF_LOCAL=yes
19147 echo "$as_me: program exited with status $ac_status" >&5
19148 echo "$as_me: failed program was:" >&5
19149 cat conftest.$ac_ext >&5
19150 ( exit $ac_status )
19151 samba_cv_HAVE_WORKING_AF_LOCAL=no
19153 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19156 echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
19157 echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
19158 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
19161 cat >>confdefs.h <<\_ACEOF
19162 #define HAVE_WORKING_AF_LOCAL 1
19167 echo "$as_me:$LINENO: checking for broken getgroups" >&5
19168 echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
19169 if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 if test "$cross_compiling" = yes; then
19174 samba_cv_HAVE_BROKEN_GETGROUPS=cross
19176 cat >conftest.$ac_ext <<_ACEOF
19177 #line $LINENO "configure"
19178 #include "confdefs.h"
19179 #include "${srcdir-.}/tests/getgroups.c"
19181 rm -f conftest$ac_exeext
19182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19183 (eval $ac_link) 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 samba_cv_HAVE_BROKEN_GETGROUPS=yes
19194 echo "$as_me: program exited with status $ac_status" >&5
19195 echo "$as_me: failed program was:" >&5
19196 cat conftest.$ac_ext >&5
19197 ( exit $ac_status )
19198 samba_cv_HAVE_BROKEN_GETGROUPS=no
19200 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19203 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
19204 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
19205 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
19207 cat >>confdefs.h <<\_ACEOF
19208 #define HAVE_BROKEN_GETGROUPS 1
19213 echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
19214 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
19215 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 SAVE_CPPFLAGS="$CPPFLAGS"
19220 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
19221 cat >conftest.$ac_ext <<_ACEOF
19222 #line $LINENO "configure"
19223 #include "confdefs.h"
19225 #define REPLACE_GETPASS 1
19226 #define NO_CONFIG_H 1
19227 #define main dont_declare_main
19228 #include "${srcdir-.}/lib/getsmbpass.c"
19231 #ifdef F77_DUMMY_MAIN
19232 # ifdef __cplusplus
19235 int F77_DUMMY_MAIN() { return 1; }
19245 rm -f conftest.$ac_objext
19246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19247 (eval $ac_compile) 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
19251 { ac_try='test -s conftest.$ac_objext'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 samba_cv_REPLACE_GETPASS=yes
19259 echo "$as_me: failed program was:" >&5
19260 cat conftest.$ac_ext >&5
19261 samba_cv_REPLACE_GETPASS=no
19263 rm -f conftest.$ac_objext conftest.$ac_ext
19264 CPPFLAGS="$SAVE_CPPFLAGS"
19267 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
19268 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
19269 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
19271 cat >>confdefs.h <<\_ACEOF
19272 #define REPLACE_GETPASS 1
19277 echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
19278 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
19279 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
19280 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 if test "$cross_compiling" = yes; then
19284 samba_cv_REPLACE_INET_NTOA=cross
19286 cat >conftest.$ac_ext <<_ACEOF
19287 #line $LINENO "configure"
19288 #include "confdefs.h"
19291 #include <sys/types.h>
19292 #include <netinet/in.h>
19293 #ifdef HAVE_ARPA_INET_H
19294 #include <arpa/inet.h>
19296 main() { struct in_addr ip; ip.s_addr = 0x12345678;
19297 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
19298 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
19301 rm -f conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303 (eval $ac_link) 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 samba_cv_REPLACE_INET_NTOA=yes
19314 echo "$as_me: program exited with status $ac_status" >&5
19315 echo "$as_me: failed program was:" >&5
19316 cat conftest.$ac_ext >&5
19317 ( exit $ac_status )
19318 samba_cv_REPLACE_INET_NTOA=no
19320 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19323 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
19324 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
19325 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
19327 cat >>confdefs.h <<\_ACEOF
19328 #define REPLACE_INET_NTOA 1
19333 echo "$as_me:$LINENO: checking for secure mkstemp" >&5
19334 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
19335 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 if test "$cross_compiling" = yes; then
19340 samba_cv_HAVE_SECURE_MKSTEMP=cross
19342 cat >conftest.$ac_ext <<_ACEOF
19343 #line $LINENO "configure"
19344 #include "confdefs.h"
19345 #include <stdlib.h>
19346 #include <sys/types.h>
19347 #include <sys/stat.h>
19348 #include <unistd.h>
19351 char tpl[20]="/tmp/test.XXXXXX";
19352 int fd = mkstemp(tpl);
19353 if (fd == -1) exit(1);
19355 if (fstat(fd, &st) != 0) exit(1);
19356 if ((st.st_mode & 0777) != 0600) exit(1);
19360 rm -f conftest$ac_exeext
19361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19362 (eval $ac_link) 2>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 samba_cv_HAVE_SECURE_MKSTEMP=yes
19373 echo "$as_me: program exited with status $ac_status" >&5
19374 echo "$as_me: failed program was:" >&5
19375 cat conftest.$ac_ext >&5
19376 ( exit $ac_status )
19377 samba_cv_HAVE_SECURE_MKSTEMP=no
19379 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19382 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
19383 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
19384 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
19386 cat >>confdefs.h <<\_ACEOF
19387 #define HAVE_SECURE_MKSTEMP 1
19392 echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
19393 echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
19394 if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 if test "$cross_compiling" = yes; then
19399 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
19401 cat >conftest.$ac_ext <<_ACEOF
19402 #line $LINENO "configure"
19403 #include "confdefs.h"
19404 #include <unistd.h>
19405 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
19407 rm -f conftest$ac_exeext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409 (eval $ac_link) 2>&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
19420 echo "$as_me: program exited with status $ac_status" >&5
19421 echo "$as_me: failed program was:" >&5
19422 cat conftest.$ac_ext >&5
19423 ( exit $ac_status )
19424 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
19426 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19429 echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
19430 echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
19431 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
19433 cat >>confdefs.h <<\_ACEOF
19434 #define SYSCONF_SC_NGROUPS_MAX 1
19439 echo "$as_me:$LINENO: checking for root" >&5
19440 echo $ECHO_N "checking for root... $ECHO_C" >&6
19441 if test "${samba_cv_HAVE_ROOT+set}" = set; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 if test "$cross_compiling" = yes; then
19446 samba_cv_HAVE_ROOT=cross
19448 cat >conftest.$ac_ext <<_ACEOF
19449 #line $LINENO "configure"
19450 #include "confdefs.h"
19451 main() { exit(getuid() != 0); }
19453 rm -f conftest$ac_exeext
19454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19455 (eval $ac_link) 2>&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 samba_cv_HAVE_ROOT=yes
19466 echo "$as_me: program exited with status $ac_status" >&5
19467 echo "$as_me: failed program was:" >&5
19468 cat conftest.$ac_ext >&5
19469 ( exit $ac_status )
19470 samba_cv_HAVE_ROOT=no
19472 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19475 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
19476 echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
19477 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_ROOT 1
19484 { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
19485 echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
19489 # look for a method of finding the list of network interfaces
19491 echo "$as_me:$LINENO: checking for iface AIX" >&5
19492 echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
19493 if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
19494 echo $ECHO_N "(cached) $ECHO_C" >&6
19497 if test "$cross_compiling" = yes; then
19498 samba_cv_HAVE_IFACE_AIX=cross
19500 cat >conftest.$ac_ext <<_ACEOF
19501 #line $LINENO "configure"
19502 #include "confdefs.h"
19504 #define HAVE_IFACE_AIX 1
19505 #define AUTOCONF_TEST 1
19506 #include "confdefs.h"
19507 #include "${srcdir-.}/lib/interfaces.c"
19509 rm -f conftest$ac_exeext
19510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19511 (eval $ac_link) 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 samba_cv_HAVE_IFACE_AIX=yes
19522 echo "$as_me: program exited with status $ac_status" >&5
19523 echo "$as_me: failed program was:" >&5
19524 cat conftest.$ac_ext >&5
19525 ( exit $ac_status )
19526 samba_cv_HAVE_IFACE_AIX=no
19528 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19531 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
19532 echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
19533 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
19535 cat >>confdefs.h <<\_ACEOF
19536 #define HAVE_IFACE_AIX 1
19541 if test $iface = no; then
19542 echo "$as_me:$LINENO: checking for iface ifconf" >&5
19543 echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
19544 if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 if test "$cross_compiling" = yes; then
19549 samba_cv_HAVE_IFACE_IFCONF=cross
19551 cat >conftest.$ac_ext <<_ACEOF
19552 #line $LINENO "configure"
19553 #include "confdefs.h"
19555 #define HAVE_IFACE_IFCONF 1
19556 #define AUTOCONF_TEST 1
19557 #include "confdefs.h"
19558 #include "${srcdir-.}/lib/interfaces.c"
19560 rm -f conftest$ac_exeext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19562 (eval $ac_link) 2>&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 samba_cv_HAVE_IFACE_IFCONF=yes
19573 echo "$as_me: program exited with status $ac_status" >&5
19574 echo "$as_me: failed program was:" >&5
19575 cat conftest.$ac_ext >&5
19576 ( exit $ac_status )
19577 samba_cv_HAVE_IFACE_IFCONF=no
19579 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19582 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
19583 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
19584 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
19586 cat >>confdefs.h <<\_ACEOF
19587 #define HAVE_IFACE_IFCONF 1
19593 if test $iface = no; then
19594 echo "$as_me:$LINENO: checking for iface ifreq" >&5
19595 echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
19596 if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 if test "$cross_compiling" = yes; then
19601 samba_cv_HAVE_IFACE_IFREQ=cross
19603 cat >conftest.$ac_ext <<_ACEOF
19604 #line $LINENO "configure"
19605 #include "confdefs.h"
19607 #define HAVE_IFACE_IFREQ 1
19608 #define AUTOCONF_TEST 1
19609 #include "confdefs.h"
19610 #include "${srcdir-.}/lib/interfaces.c"
19612 rm -f conftest$ac_exeext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19614 (eval $ac_link) 2>&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19623 samba_cv_HAVE_IFACE_IFREQ=yes
19625 echo "$as_me: program exited with status $ac_status" >&5
19626 echo "$as_me: failed program was:" >&5
19627 cat conftest.$ac_ext >&5
19628 ( exit $ac_status )
19629 samba_cv_HAVE_IFACE_IFREQ=no
19631 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19634 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
19635 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
19636 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
19638 cat >>confdefs.h <<\_ACEOF
19639 #define HAVE_IFACE_IFREQ 1
19646 ################################################
19647 # look for a method of setting the effective uid
19649 if test $seteuid = no; then
19650 echo "$as_me:$LINENO: checking for setresuid" >&5
19651 echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
19652 if test "${samba_cv_USE_SETRESUID+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19656 if test "$cross_compiling" = yes; then
19657 samba_cv_USE_SETRESUID=cross
19659 cat >conftest.$ac_ext <<_ACEOF
19660 #line $LINENO "configure"
19661 #include "confdefs.h"
19663 #define AUTOCONF_TEST 1
19664 #define USE_SETRESUID 1
19665 #include "confdefs.h"
19666 #include "${srcdir-.}/lib/util_sec.c"
19668 rm -f conftest$ac_exeext
19669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19670 (eval $ac_link) 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; }; then
19679 samba_cv_USE_SETRESUID=yes
19681 echo "$as_me: program exited with status $ac_status" >&5
19682 echo "$as_me: failed program was:" >&5
19683 cat conftest.$ac_ext >&5
19684 ( exit $ac_status )
19685 samba_cv_USE_SETRESUID=no
19687 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19690 echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
19691 echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
19692 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
19694 cat >>confdefs.h <<\_ACEOF
19695 #define USE_SETRESUID 1
19702 if test $seteuid = no; then
19703 echo "$as_me:$LINENO: checking for setreuid" >&5
19704 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
19705 if test "${samba_cv_USE_SETREUID+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19709 if test "$cross_compiling" = yes; then
19710 samba_cv_USE_SETREUID=cross
19712 cat >conftest.$ac_ext <<_ACEOF
19713 #line $LINENO "configure"
19714 #include "confdefs.h"
19716 #define AUTOCONF_TEST 1
19717 #define USE_SETREUID 1
19718 #include "confdefs.h"
19719 #include "${srcdir-.}/lib/util_sec.c"
19721 rm -f conftest$ac_exeext
19722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19723 (eval $ac_link) 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19732 samba_cv_USE_SETREUID=yes
19734 echo "$as_me: program exited with status $ac_status" >&5
19735 echo "$as_me: failed program was:" >&5
19736 cat conftest.$ac_ext >&5
19737 ( exit $ac_status )
19738 samba_cv_USE_SETREUID=no
19740 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19743 echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
19744 echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
19745 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
19747 cat >>confdefs.h <<\_ACEOF
19748 #define USE_SETREUID 1
19754 if test $seteuid = no; then
19755 echo "$as_me:$LINENO: checking for seteuid" >&5
19756 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
19757 if test "${samba_cv_USE_SETEUID+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 if test "$cross_compiling" = yes; then
19762 samba_cv_USE_SETEUID=cross
19764 cat >conftest.$ac_ext <<_ACEOF
19765 #line $LINENO "configure"
19766 #include "confdefs.h"
19768 #define AUTOCONF_TEST 1
19769 #define USE_SETEUID 1
19770 #include "confdefs.h"
19771 #include "${srcdir-.}/lib/util_sec.c"
19773 rm -f conftest$ac_exeext
19774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19775 (eval $ac_link) 2>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 samba_cv_USE_SETEUID=yes
19786 echo "$as_me: program exited with status $ac_status" >&5
19787 echo "$as_me: failed program was:" >&5
19788 cat conftest.$ac_ext >&5
19789 ( exit $ac_status )
19790 samba_cv_USE_SETEUID=no
19792 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19795 echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
19796 echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
19797 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
19799 cat >>confdefs.h <<\_ACEOF
19800 #define USE_SETEUID 1
19806 if test $seteuid = no; then
19807 echo "$as_me:$LINENO: checking for setuidx" >&5
19808 echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
19809 if test "${samba_cv_USE_SETUIDX+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 if test "$cross_compiling" = yes; then
19814 samba_cv_USE_SETUIDX=cross
19816 cat >conftest.$ac_ext <<_ACEOF
19817 #line $LINENO "configure"
19818 #include "confdefs.h"
19820 #define AUTOCONF_TEST 1
19821 #define USE_SETUIDX 1
19822 #include "confdefs.h"
19823 #include "${srcdir-.}/lib/util_sec.c"
19825 rm -f conftest$ac_exeext
19826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19827 (eval $ac_link) 2>&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836 samba_cv_USE_SETUIDX=yes
19838 echo "$as_me: program exited with status $ac_status" >&5
19839 echo "$as_me: failed program was:" >&5
19840 cat conftest.$ac_ext >&5
19841 ( exit $ac_status )
19842 samba_cv_USE_SETUIDX=no
19844 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19847 echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
19848 echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
19849 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
19851 cat >>confdefs.h <<\_ACEOF
19852 #define USE_SETUIDX 1
19859 echo "$as_me:$LINENO: checking for working mmap" >&5
19860 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19861 if test "${samba_cv_HAVE_MMAP+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19865 if test "$cross_compiling" = yes; then
19866 samba_cv_HAVE_MMAP=cross
19868 cat >conftest.$ac_ext <<_ACEOF
19869 #line $LINENO "configure"
19870 #include "confdefs.h"
19871 #include "${srcdir-.}/tests/shared_mmap.c"
19873 rm -f conftest$ac_exeext
19874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19875 (eval $ac_link) 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 samba_cv_HAVE_MMAP=yes
19886 echo "$as_me: program exited with status $ac_status" >&5
19887 echo "$as_me: failed program was:" >&5
19888 cat conftest.$ac_ext >&5
19889 ( exit $ac_status )
19890 samba_cv_HAVE_MMAP=no
19892 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19895 echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
19896 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
19897 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_MMAP 1
19905 echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
19906 echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
19907 if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 if test "$cross_compiling" = yes; then
19912 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
19914 cat >conftest.$ac_ext <<_ACEOF
19915 #line $LINENO "configure"
19916 #include "confdefs.h"
19917 #include "${srcdir-.}/tests/ftruncroot.c"
19919 rm -f conftest$ac_exeext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19921 (eval $ac_link) 2>&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
19932 echo "$as_me: program exited with status $ac_status" >&5
19933 echo "$as_me: failed program was:" >&5
19934 cat conftest.$ac_ext >&5
19935 ( exit $ac_status )
19936 samba_cv_FTRUNCATE_NEEDS_ROOT=no
19938 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19941 echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
19942 echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
19943 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
19945 cat >>confdefs.h <<\_ACEOF
19946 #define FTRUNCATE_NEEDS_ROOT 1
19951 echo "$as_me:$LINENO: checking for fcntl locking" >&5
19952 echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
19953 if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
19954 echo $ECHO_N "(cached) $ECHO_C" >&6
19957 if test "$cross_compiling" = yes; then
19958 samba_cv_HAVE_FCNTL_LOCK=cross
19960 cat >conftest.$ac_ext <<_ACEOF
19961 #line $LINENO "configure"
19962 #include "confdefs.h"
19963 #include "${srcdir-.}/tests/fcntl_lock.c"
19965 rm -f conftest$ac_exeext
19966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19967 (eval $ac_link) 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972 (eval $ac_try) 2>&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); }; }; then
19976 samba_cv_HAVE_FCNTL_LOCK=yes
19978 echo "$as_me: program exited with status $ac_status" >&5
19979 echo "$as_me: failed program was:" >&5
19980 cat conftest.$ac_ext >&5
19981 ( exit $ac_status )
19982 samba_cv_HAVE_FCNTL_LOCK=no
19984 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19987 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
19988 echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
19989 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
19991 cat >>confdefs.h <<\_ACEOF
19992 #define HAVE_FCNTL_LOCK 1
19997 echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
19998 echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
19999 if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 if test "$cross_compiling" = yes; then
20004 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
20006 cat >conftest.$ac_ext <<_ACEOF
20007 #line $LINENO "configure"
20008 #include "confdefs.h"
20009 #include "${srcdir-.}/tests/fcntl_lock64.c"
20011 rm -f conftest$ac_exeext
20012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20013 (eval $ac_link) 2>&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; }; then
20022 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
20024 echo "$as_me: program exited with status $ac_status" >&5
20025 echo "$as_me: failed program was:" >&5
20026 cat conftest.$ac_ext >&5
20027 ( exit $ac_status )
20028 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
20030 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20033 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
20034 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
20035 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
20037 cat >>confdefs.h <<\_ACEOF
20038 #define HAVE_BROKEN_FCNTL64_LOCKS 1
20045 echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
20046 echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
20047 if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 if test "$cross_compiling" = yes; then
20052 samba_cv_HAVE_STRUCT_FLOCK64=cross
20054 cat >conftest.$ac_ext <<_ACEOF
20055 #line $LINENO "configure"
20056 #include "confdefs.h"
20058 #if defined(HAVE_UNISTD_H)
20059 #include <unistd.h>
20062 #include <stdlib.h>
20064 #ifdef HAVE_FCNTL_H
20068 #ifdef HAVE_SYS_FCNTL_H
20069 #include <sys/fcntl.h>
20071 main() { struct flock64 fl64;
20072 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
20079 rm -f conftest$ac_exeext
20080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20081 (eval $ac_link) 2>&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 samba_cv_HAVE_STRUCT_FLOCK64=yes
20092 echo "$as_me: program exited with status $ac_status" >&5
20093 echo "$as_me: failed program was:" >&5
20094 cat conftest.$ac_ext >&5
20095 ( exit $ac_status )
20096 samba_cv_HAVE_STRUCT_FLOCK64=no
20098 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20101 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
20102 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
20104 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
20106 cat >>confdefs.h <<\_ACEOF
20107 #define HAVE_STRUCT_FLOCK64 1
20113 echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
20114 echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
20115 if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 cat >conftest.$ac_ext <<_ACEOF
20120 #line $LINENO "configure"
20121 #include "confdefs.h"
20122 #include <sys/types.h>
20123 #include <sys/stat.h>
20124 #include <unistd.h>
20125 #ifdef F77_DUMMY_MAIN
20126 # ifdef __cplusplus
20129 int F77_DUMMY_MAIN() { return 1; }
20134 struct stat st; st.st_blocks = 0;
20139 rm -f conftest.$ac_objext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141 (eval $ac_compile) 2>&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -s conftest.$ac_objext'
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 samba_cv_HAVE_STAT_ST_BLOCKS=yes
20153 echo "$as_me: failed program was:" >&5
20154 cat conftest.$ac_ext >&5
20155 samba_cv_HAVE_STAT_ST_BLOCKS=no
20157 rm -f conftest.$ac_objext conftest.$ac_ext
20159 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
20160 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
20161 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
20163 cat >>confdefs.h <<\_ACEOF
20164 #define HAVE_STAT_ST_BLOCKS 1
20169 echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
20170 echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
20171 if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20175 cat >conftest.$ac_ext <<_ACEOF
20176 #line $LINENO "configure"
20177 #include "confdefs.h"
20178 #include <sys/types.h>
20179 #include <sys/stat.h>
20180 #include <unistd.h>
20181 #ifdef F77_DUMMY_MAIN
20182 # ifdef __cplusplus
20185 int F77_DUMMY_MAIN() { return 1; }
20190 struct stat st; st.st_blksize = 0;
20195 rm -f conftest.$ac_objext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197 (eval $ac_compile) 2>&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -s conftest.$ac_objext'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
20209 echo "$as_me: failed program was:" >&5
20210 cat conftest.$ac_ext >&5
20211 samba_cv_HAVE_STAT_ST_BLKSIZE=no
20213 rm -f conftest.$ac_objext conftest.$ac_ext
20215 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
20216 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
20217 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
20219 cat >>confdefs.h <<\_ACEOF
20220 #define HAVE_STAT_ST_BLKSIZE 1
20227 echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
20228 echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
20229 if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 cat >conftest.$ac_ext <<_ACEOF
20234 #line $LINENO "configure"
20235 #include "confdefs.h"
20237 #ifdef HAVE_SYS_VFS_H
20238 #include <sys/vfs.h>
20240 #ifdef HAVE_SYS_CAPABILITY_H
20241 #include <sys/capability.h>
20244 #ifdef F77_DUMMY_MAIN
20245 # ifdef __cplusplus
20248 int F77_DUMMY_MAIN() { return 1; }
20258 rm -f conftest.$ac_objext
20259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20260 (eval $ac_compile) 2>&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
20264 { ac_try='test -s conftest.$ac_objext'
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; }; then
20270 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
20272 echo "$as_me: failed program was:" >&5
20273 cat conftest.$ac_ext >&5
20274 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
20276 rm -f conftest.$ac_objext conftest.$ac_ext
20278 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
20279 echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
20280 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
20282 cat >>confdefs.h <<\_ACEOF
20283 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
20290 echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
20291 echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
20292 if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
20293 echo $ECHO_N "(cached) $ECHO_C" >&6
20296 cat >conftest.$ac_ext <<_ACEOF
20297 #line $LINENO "configure"
20298 #include "confdefs.h"
20299 #include <sys/acl.h>
20300 #if defined(HAVE_RPCSVC_NIS_H)
20301 #include <rpcsvc/nis.h>
20303 #ifdef F77_DUMMY_MAIN
20304 # ifdef __cplusplus
20307 int F77_DUMMY_MAIN() { return 1; }
20317 rm -f conftest.$ac_objext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319 (eval $ac_compile) 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -s conftest.$ac_objext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
20331 echo "$as_me: failed program was:" >&5
20332 cat conftest.$ac_ext >&5
20333 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
20335 rm -f conftest.$ac_objext conftest.$ac_ext
20337 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
20338 echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
20339 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
20341 cat >>confdefs.h <<\_ACEOF
20342 #define BROKEN_NISPLUS_INCLUDE_FILES 1
20348 #################################################
20349 # check for smbwrapper support
20350 echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
20351 echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
20353 # Check whether --with-smbwrapper or --without-smbwrapper was given.
20354 if test "${with_smbwrapper+set}" = set; then
20355 withval="$with_smbwrapper"
20358 echo "$as_me:$LINENO: result: yes" >&5
20359 echo "${ECHO_T}yes" >&6
20361 cat >>confdefs.h <<\_ACEOF
20362 #define WITH_SMBWRAPPER 1
20365 WRAPPROG="bin/smbsh"
20366 WRAP="bin/smbwrapper.$SHLIBEXT"
20368 if test x$ATTEMPT_WRAP32_BUILD = x; then
20371 WRAP32=bin/smbwrapper.32.$SHLIBEXT
20374 # Conditions under which smbwrapper should not be built.
20376 if test x$PICFLAG = x; then
20377 echo No support for PIC code - disabling smbwrapper and smbsh
20381 elif test x$ac_cv_func_syscall = xno; then
20382 echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
20383 echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
20390 echo "$as_me:$LINENO: result: no" >&5
20391 echo "${ECHO_T}no" >&6
20395 echo "$as_me:$LINENO: result: no" >&5
20396 echo "${ECHO_T}no" >&6
20400 #################################################
20401 # check for AFS clear-text auth support
20402 echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
20403 echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
20405 # Check whether --with-afs or --without-afs was given.
20406 if test "${with_afs+set}" = set; then
20407 withval="$with_afs"
20410 echo "$as_me:$LINENO: result: yes" >&5
20411 echo "${ECHO_T}yes" >&6
20413 cat >>confdefs.h <<\_ACEOF
20419 echo "$as_me:$LINENO: result: no" >&5
20420 echo "${ECHO_T}no" >&6
20424 echo "$as_me:$LINENO: result: no" >&5
20425 echo "${ECHO_T}no" >&6
20430 #################################################
20431 # check for the DFS clear-text auth system
20432 echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
20433 echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
20435 # Check whether --with-dfs or --without-dfs was given.
20436 if test "${with_dfs+set}" = set; then
20437 withval="$with_dfs"
20440 echo "$as_me:$LINENO: result: yes" >&5
20441 echo "${ECHO_T}yes" >&6
20443 cat >>confdefs.h <<\_ACEOF
20449 echo "$as_me:$LINENO: result: no" >&5
20450 echo "${ECHO_T}no" >&6
20454 echo "$as_me:$LINENO: result: no" >&5
20455 echo "${ECHO_T}no" >&6
20459 #################################################
20460 # active directory support
20462 with_ads_support=yes
20463 echo "$as_me:$LINENO: checking whether to use Active Directory" >&5
20464 echo $ECHO_N "checking whether to use Active Directory... $ECHO_C" >&6
20467 # Check whether --with-ads or --without-ads was given.
20468 if test "${with_ads+set}" = set; then
20469 withval="$with_ads"
20472 with_ads_support=no
20477 if test x"$with_ads_support" = x"yes"; then
20479 cat >>confdefs.h <<\_ACEOF
20485 echo "$as_me:$LINENO: result: $with_ads_support" >&5
20486 echo "${ECHO_T}$with_ads_support" >&6
20489 if test x"$with_ads_support" = x"yes"; then
20491 #################################################
20492 # check for location of Kerberos 5 install
20493 echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
20494 echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
20496 # Check whether --with-krb5 or --without-krb5 was given.
20497 if test "${with_krb5+set}" = set; then
20498 withval="$with_krb5"
20501 echo "$as_me:$LINENO: result: no" >&5
20502 echo "${ECHO_T}no" >&6
20505 echo "$as_me:$LINENO: result: yes" >&5
20506 echo "${ECHO_T}yes" >&6
20507 LIBS="$LIBS -lkrb5"
20508 CFLAGS="$CFLAGS -I$withval/include"
20509 CPPFLAGS="$CPPFLAGS -I$withval/include"
20510 LDFLAGS="$LDFLAGS -L$withval/lib"
20515 echo "$as_me:$LINENO: result: no" >&5
20516 echo "${ECHO_T}no" >&6
20521 if test x$FOUND_KRB5 = x"no"; then
20522 #################################################
20523 # see if this box has the SuSE location for the heimdal kerberos implementation
20524 echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
20525 echo $ECHO_N "checking for /usr/include/heimdal... $ECHO_C" >&6
20526 if test -d /usr/include/heimdal; then
20527 CFLAGS="$CFLAGS -I/usr/include/heimdal"
20528 CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
20529 echo "$as_me:$LINENO: result: yes" >&5
20530 echo "${ECHO_T}yes" >&6
20532 echo "$as_me:$LINENO: result: no" >&5
20533 echo "${ECHO_T}no" >&6
20538 if test x$FOUND_KRB5 = x"no"; then
20539 #################################################
20540 # see if this box has the RedHat location for kerberos
20541 echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
20542 echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
20543 if test -d /usr/kerberos; then
20544 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
20545 CFLAGS="$CFLAGS -I/usr/kerberos/include"
20546 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
20547 echo "$as_me:$LINENO: result: yes" >&5
20548 echo "${ECHO_T}yes" >&6
20550 echo "$as_me:$LINENO: result: no" >&5
20551 echo "${ECHO_T}no" >&6
20556 # now check for krb5.h. Some systems have the libraries without the headers!
20557 # note that this check is done here to allow for different kerberos
20560 for ac_header in krb5.h
20562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20564 echo "$as_me:$LINENO: checking for $ac_header" >&5
20565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20572 # Is the header compilable?
20573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20575 cat >conftest.$ac_ext <<_ACEOF
20576 #line $LINENO "configure"
20577 #include "confdefs.h"
20578 $ac_includes_default
20579 #include <$ac_header>
20581 rm -f conftest.$ac_objext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20583 (eval $ac_compile) 2>&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } &&
20587 { ac_try='test -s conftest.$ac_objext'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; }; then
20593 ac_header_compiler=yes
20595 echo "$as_me: failed program was:" >&5
20596 cat conftest.$ac_ext >&5
20597 ac_header_compiler=no
20599 rm -f conftest.$ac_objext conftest.$ac_ext
20600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20601 echo "${ECHO_T}$ac_header_compiler" >&6
20603 # Is the header present?
20604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20606 cat >conftest.$ac_ext <<_ACEOF
20607 #line $LINENO "configure"
20608 #include "confdefs.h"
20609 #include <$ac_header>
20611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20614 egrep -v '^ *\+' conftest.er1 >conftest.err
20616 cat conftest.err >&5
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } >/dev/null; then
20619 if test -s conftest.err; then
20620 ac_cpp_err=$ac_c_preproc_warn_flag
20627 if test -z "$ac_cpp_err"; then
20628 ac_header_preproc=yes
20630 echo "$as_me: failed program was:" >&5
20631 cat conftest.$ac_ext >&5
20632 ac_header_preproc=no
20634 rm -f conftest.err conftest.$ac_ext
20635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20636 echo "${ECHO_T}$ac_header_preproc" >&6
20638 # So? What about this header?
20639 case $ac_header_compiler:$ac_header_preproc in
20641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20653 echo "$as_me:$LINENO: checking for $ac_header" >&5
20654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20658 eval "$as_ac_Header=$ac_header_preproc"
20660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20665 cat >>confdefs.h <<_ACEOF
20666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20674 # now check for gssapi headers. This is also done here to allow for
20675 # different kerberos include paths
20678 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi.h
20680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20682 echo "$as_me:$LINENO: checking for $ac_header" >&5
20683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20690 # Is the header compilable?
20691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20693 cat >conftest.$ac_ext <<_ACEOF
20694 #line $LINENO "configure"
20695 #include "confdefs.h"
20696 $ac_includes_default
20697 #include <$ac_header>
20699 rm -f conftest.$ac_objext
20700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20701 (eval $ac_compile) 2>&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } &&
20705 { ac_try='test -s conftest.$ac_objext'
20706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707 (eval $ac_try) 2>&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); }; }; then
20711 ac_header_compiler=yes
20713 echo "$as_me: failed program was:" >&5
20714 cat conftest.$ac_ext >&5
20715 ac_header_compiler=no
20717 rm -f conftest.$ac_objext conftest.$ac_ext
20718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20719 echo "${ECHO_T}$ac_header_compiler" >&6
20721 # Is the header present?
20722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20724 cat >conftest.$ac_ext <<_ACEOF
20725 #line $LINENO "configure"
20726 #include "confdefs.h"
20727 #include <$ac_header>
20729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20732 egrep -v '^ *\+' conftest.er1 >conftest.err
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } >/dev/null; then
20737 if test -s conftest.err; then
20738 ac_cpp_err=$ac_c_preproc_warn_flag
20745 if test -z "$ac_cpp_err"; then
20746 ac_header_preproc=yes
20748 echo "$as_me: failed program was:" >&5
20749 cat conftest.$ac_ext >&5
20750 ac_header_preproc=no
20752 rm -f conftest.err conftest.$ac_ext
20753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20754 echo "${ECHO_T}$ac_header_preproc" >&6
20756 # So? What about this header?
20757 case $ac_header_compiler:$ac_header_preproc in
20759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20771 echo "$as_me:$LINENO: checking for $ac_header" >&5
20772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20774 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 eval "$as_ac_Header=$ac_header_preproc"
20778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20783 cat >>confdefs.h <<_ACEOF
20784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20792 ##################################################################
20793 # we might need the k5crypto and com_err libraries on some systems
20794 echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
20795 echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
20796 if test "${ac_cv_lib_com_err__et_list+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20799 ac_check_lib_save_LIBS=$LIBS
20800 LIBS="-lcom_err $LIBS"
20801 cat >conftest.$ac_ext <<_ACEOF
20802 #line $LINENO "configure"
20803 #include "confdefs.h"
20805 /* Override any gcc2 internal prototype to avoid an error. */
20809 /* We use char because int might match the return type of a gcc2
20810 builtin and then its argument prototype would still apply. */
20812 #ifdef F77_DUMMY_MAIN
20813 # ifdef __cplusplus
20816 int F77_DUMMY_MAIN() { return 1; }
20826 rm -f conftest.$ac_objext conftest$ac_exeext
20827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20828 (eval $ac_link) 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } &&
20832 { ac_try='test -s conftest$ac_exeext'
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
20838 ac_cv_lib_com_err__et_list=yes
20840 echo "$as_me: failed program was:" >&5
20841 cat conftest.$ac_ext >&5
20842 ac_cv_lib_com_err__et_list=no
20844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20845 LIBS=$ac_check_lib_save_LIBS
20847 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err__et_list" >&5
20848 echo "${ECHO_T}$ac_cv_lib_com_err__et_list" >&6
20849 if test $ac_cv_lib_com_err__et_list = yes; then
20850 LIBS="$LIBS -lcom_err"
20853 echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
20854 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
20855 if test "${ac_cv_lib_k5crypto_krb5_encrypt_data+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20858 ac_check_lib_save_LIBS=$LIBS
20859 LIBS="-lk5crypto $LIBS"
20860 cat >conftest.$ac_ext <<_ACEOF
20861 #line $LINENO "configure"
20862 #include "confdefs.h"
20864 /* Override any gcc2 internal prototype to avoid an error. */
20868 /* We use char because int might match the return type of a gcc2
20869 builtin and then its argument prototype would still apply. */
20870 char krb5_encrypt_data ();
20871 #ifdef F77_DUMMY_MAIN
20872 # ifdef __cplusplus
20875 int F77_DUMMY_MAIN() { return 1; }
20880 krb5_encrypt_data ();
20885 rm -f conftest.$ac_objext conftest$ac_exeext
20886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20887 (eval $ac_link) 2>&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } &&
20891 { ac_try='test -s conftest$ac_exeext'
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; }; then
20897 ac_cv_lib_k5crypto_krb5_encrypt_data=yes
20899 echo "$as_me: failed program was:" >&5
20900 cat conftest.$ac_ext >&5
20901 ac_cv_lib_k5crypto_krb5_encrypt_data=no
20903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20904 LIBS=$ac_check_lib_save_LIBS
20906 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_encrypt_data" >&5
20907 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_encrypt_data" >&6
20908 if test $ac_cv_lib_k5crypto_krb5_encrypt_data = yes; then
20909 LIBS="$LIBS -lk5crypto"
20913 ########################################################
20914 # now see if we can find the krb5 libs in standard paths
20915 # or as specified above
20916 echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
20917 echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
20918 if test "${ac_cv_lib_krb5_krb5_mk_req_extended+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20921 ac_check_lib_save_LIBS=$LIBS
20922 LIBS="-lkrb5 $LIBS"
20923 cat >conftest.$ac_ext <<_ACEOF
20924 #line $LINENO "configure"
20925 #include "confdefs.h"
20927 /* Override any gcc2 internal prototype to avoid an error. */
20931 /* We use char because int might match the return type of a gcc2
20932 builtin and then its argument prototype would still apply. */
20933 char krb5_mk_req_extended ();
20934 #ifdef F77_DUMMY_MAIN
20935 # ifdef __cplusplus
20938 int F77_DUMMY_MAIN() { return 1; }
20943 krb5_mk_req_extended ();
20948 rm -f conftest.$ac_objext conftest$ac_exeext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20950 (eval $ac_link) 2>&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); } &&
20954 { ac_try='test -s conftest$ac_exeext'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; }; then
20960 ac_cv_lib_krb5_krb5_mk_req_extended=yes
20962 echo "$as_me: failed program was:" >&5
20963 cat conftest.$ac_ext >&5
20964 ac_cv_lib_krb5_krb5_mk_req_extended=no
20966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20967 LIBS=$ac_check_lib_save_LIBS
20969 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_mk_req_extended" >&5
20970 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_mk_req_extended" >&6
20971 if test $ac_cv_lib_krb5_krb5_mk_req_extended = yes; then
20972 LIBS="$LIBS -lkrb5";
20974 cat >>confdefs.h <<\_ACEOF
20975 #define HAVE_KRB5 1
20981 ########################################################
20982 # now see if we can find the gssapi libs in standard paths
20983 echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
20984 echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
20985 if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 ac_check_lib_save_LIBS=$LIBS
20989 LIBS="-lgssapi_krb5 $LIBS"
20990 cat >conftest.$ac_ext <<_ACEOF
20991 #line $LINENO "configure"
20992 #include "confdefs.h"
20994 /* Override any gcc2 internal prototype to avoid an error. */
20998 /* We use char because int might match the return type of a gcc2
20999 builtin and then its argument prototype would still apply. */
21000 char gss_display_status ();
21001 #ifdef F77_DUMMY_MAIN
21002 # ifdef __cplusplus
21005 int F77_DUMMY_MAIN() { return 1; }
21010 gss_display_status ();
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21017 (eval $ac_link) 2>&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try='test -s conftest$ac_exeext'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; }; then
21027 ac_cv_lib_gssapi_krb5_gss_display_status=yes
21029 echo "$as_me: failed program was:" >&5
21030 cat conftest.$ac_ext >&5
21031 ac_cv_lib_gssapi_krb5_gss_display_status=no
21033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21034 LIBS=$ac_check_lib_save_LIBS
21036 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
21037 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6
21038 if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
21039 LIBS="$LIBS -lgssapi_krb5";
21041 cat >>confdefs.h <<\_ACEOF
21042 #define HAVE_GSSAPI 1
21049 ########################################################
21050 # Compile with LDAP support?
21052 with_ldap_support=yes
21053 echo "$as_me:$LINENO: checking whether to use LDAP" >&5
21054 echo $ECHO_N "checking whether to use LDAP... $ECHO_C" >&6
21057 # Check whether --with-ldap or --without-ldap was given.
21058 if test "${with_ldap+set}" = set; then
21059 withval="$with_ldap"
21062 with_ldap_support=no
21067 echo "$as_me:$LINENO: result: $with_ldap_support" >&5
21068 echo "${ECHO_T}$with_ldap_support" >&6
21070 if test x"$with_ldap_support" = x"yes"; then
21072 ##################################################################
21073 # we might need the lber lib on some systems. To avoid link errors
21074 # this test must be before the libldap test
21075 echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
21076 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
21077 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21080 ac_check_lib_save_LIBS=$LIBS
21081 LIBS="-llber $LIBS"
21082 cat >conftest.$ac_ext <<_ACEOF
21083 #line $LINENO "configure"
21084 #include "confdefs.h"
21086 /* Override any gcc2 internal prototype to avoid an error. */
21090 /* We use char because int might match the return type of a gcc2
21091 builtin and then its argument prototype would still apply. */
21093 #ifdef F77_DUMMY_MAIN
21094 # ifdef __cplusplus
21097 int F77_DUMMY_MAIN() { return 1; }
21107 rm -f conftest.$ac_objext conftest$ac_exeext
21108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21109 (eval $ac_link) 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } &&
21113 { ac_try='test -s conftest$ac_exeext'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 ac_cv_lib_lber_ber_scanf=yes
21121 echo "$as_me: failed program was:" >&5
21122 cat conftest.$ac_ext >&5
21123 ac_cv_lib_lber_ber_scanf=no
21125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21126 LIBS=$ac_check_lib_save_LIBS
21128 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
21129 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6
21130 if test $ac_cv_lib_lber_ber_scanf = yes; then
21131 LIBS="$LIBS -llber"
21135 ########################################################
21136 # now see if we can find the ldap libs in standard paths
21137 if test x$have_ldap != xyes; then
21138 echo "$as_me:$LINENO: checking for ldap_domain2hostlist in -lldap" >&5
21139 echo $ECHO_N "checking for ldap_domain2hostlist in -lldap... $ECHO_C" >&6
21140 if test "${ac_cv_lib_ldap_ldap_domain2hostlist+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 ac_check_lib_save_LIBS=$LIBS
21144 LIBS="-lldap $LIBS"
21145 cat >conftest.$ac_ext <<_ACEOF
21146 #line $LINENO "configure"
21147 #include "confdefs.h"
21149 /* Override any gcc2 internal prototype to avoid an error. */
21153 /* We use char because int might match the return type of a gcc2
21154 builtin and then its argument prototype would still apply. */
21155 char ldap_domain2hostlist ();
21156 #ifdef F77_DUMMY_MAIN
21157 # ifdef __cplusplus
21160 int F77_DUMMY_MAIN() { return 1; }
21165 ldap_domain2hostlist ();
21170 rm -f conftest.$ac_objext conftest$ac_exeext
21171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21172 (eval $ac_link) 2>&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } &&
21176 { ac_try='test -s conftest$ac_exeext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 ac_cv_lib_ldap_ldap_domain2hostlist=yes
21184 echo "$as_me: failed program was:" >&5
21185 cat conftest.$ac_ext >&5
21186 ac_cv_lib_ldap_ldap_domain2hostlist=no
21188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21189 LIBS=$ac_check_lib_save_LIBS
21191 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_domain2hostlist" >&5
21192 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_domain2hostlist" >&6
21193 if test $ac_cv_lib_ldap_ldap_domain2hostlist = yes; then
21194 LIBS="$LIBS -lldap";
21196 cat >>confdefs.h <<\_ACEOF
21197 #define HAVE_LDAP 1
21203 ########################################################
21204 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
21205 # Check found in pam_ldap 145.
21207 for ac_func in ldap_set_rebind_proc
21209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21210 echo "$as_me:$LINENO: checking for $ac_func" >&5
21211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21212 if eval "test \"\${$as_ac_var+set}\" = set"; then
21213 echo $ECHO_N "(cached) $ECHO_C" >&6
21215 cat >conftest.$ac_ext <<_ACEOF
21216 #line $LINENO "configure"
21217 #include "confdefs.h"
21218 /* System header to define __stub macros and hopefully few prototypes,
21219 which can conflict with char $ac_func (); below. */
21220 #include <assert.h>
21221 /* Override any gcc2 internal prototype to avoid an error. */
21225 /* We use char because int might match the return type of a gcc2
21226 builtin and then its argument prototype would still apply. */
21230 #ifdef F77_DUMMY_MAIN
21231 # ifdef __cplusplus
21234 int F77_DUMMY_MAIN() { return 1; }
21239 /* The GNU C library defines this for functions which it implements
21240 to always fail with ENOSYS. Some functions are actually named
21241 something starting with __ and the normal name is an alias. */
21242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21252 rm -f conftest.$ac_objext conftest$ac_exeext
21253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21254 (eval $ac_link) 2>&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } &&
21258 { ac_try='test -s conftest$ac_exeext'
21259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260 (eval $ac_try) 2>&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; }; then
21264 eval "$as_ac_var=yes"
21266 echo "$as_me: failed program was:" >&5
21267 cat conftest.$ac_ext >&5
21268 eval "$as_ac_var=no"
21270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21274 if test `eval echo '${'$as_ac_var'}'` = yes; then
21275 cat >>confdefs.h <<_ACEOF
21276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21282 echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
21283 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
21284 if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21288 cat >conftest.$ac_ext <<_ACEOF
21289 #line $LINENO "configure"
21290 #include "confdefs.h"
21294 #ifdef F77_DUMMY_MAIN
21295 # ifdef __cplusplus
21298 int F77_DUMMY_MAIN() { return 1; }
21303 ldap_set_rebind_proc(0, 0, 0);
21308 rm -f conftest.$ac_objext
21309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21310 (eval $ac_compile) 2>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try='test -s conftest.$ac_objext'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; }; then
21320 pam_ldap_cv_ldap_set_rebind_proc=3
21322 echo "$as_me: failed program was:" >&5
21323 cat conftest.$ac_ext >&5
21324 pam_ldap_cv_ldap_set_rebind_proc=2
21326 rm -f conftest.$ac_objext conftest.$ac_ext
21328 echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
21329 echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
21331 cat >>confdefs.h <<_ACEOF
21332 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
21338 ########################################################
21339 # Compile with MySQL support?
21341 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
21342 if test "${with_mysql_prefix+set}" = set; then
21343 withval="$with_mysql_prefix"
21344 mysql_prefix="$withval"
21349 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
21350 if test "${with_mysql_exec_prefix+set}" = set; then
21351 withval="$with_mysql_exec_prefix"
21352 mysql_exec_prefix="$withval"
21354 mysql_exec_prefix=""
21356 # Check whether --enable-mysqltest or --disable-mysqltest was given.
21357 if test "${enable_mysqltest+set}" = set; then
21358 enableval="$enable_mysqltest"
21361 enable_mysqltest=yes
21364 if test x$mysql_exec_prefix != x ; then
21365 mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
21366 if test x${MYSQL_CONFIG+set} != xset ; then
21367 MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
21370 if test x$mysql_prefix != x ; then
21371 mysql_args="$mysql_args --prefix=$mysql_prefix"
21372 if test x${MYSQL_CONFIG+set} != xset ; then
21373 MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
21378 # Extract the first word of "mysql_config", so it can be a program name with args.
21379 set dummy mysql_config; ac_word=$2
21380 echo "$as_me:$LINENO: checking for $ac_word" >&5
21381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21382 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 case $MYSQL_CONFIG in
21387 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
21390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21391 for as_dir in $PATH
21394 test -z "$as_dir" && as_dir=.
21395 for ac_exec_ext in '' $ac_executable_extensions; do
21396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21397 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21404 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
21408 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
21410 if test -n "$MYSQL_CONFIG"; then
21411 echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
21412 echo "${ECHO_T}$MYSQL_CONFIG" >&6
21414 echo "$as_me:$LINENO: result: no" >&5
21415 echo "${ECHO_T}no" >&6
21418 min_mysql_version=0.11.0
21419 echo "$as_me:$LINENO: checking for MYSQL - version >= $min_mysql_version" >&5
21420 echo $ECHO_N "checking for MYSQL - version >= $min_mysql_version... $ECHO_C" >&6
21422 if test "$MYSQL_CONFIG" = "no" ; then
21425 MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
21426 MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
21428 mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
21429 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21430 mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
21431 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21432 mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
21433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21434 if test "x$enable_mysqltest" = "xyes" ; then
21435 ac_save_CFLAGS="$CFLAGS"
21436 ac_save_LIBS="$LIBS"
21437 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21438 LIBS="$LIBS $MYSQL_LIBS"
21439 rm -f conf.mysqltest
21440 if test "$cross_compiling" = yes; then
21441 echo $ac_n "cross compiling; assumed OK... $ac_c"
21443 cat >conftest.$ac_ext <<_ACEOF
21444 #line $LINENO "configure"
21445 #include "confdefs.h"
21448 #include <stdlib.h>
21449 #include <string.h>
21453 my_strdup (char *str)
21459 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
21460 strcpy (new_str, str);
21468 int main (int argc, char *argv[])
21470 int major, minor, micro;
21473 /* This hangs on some systems (?)
21474 system ("touch conf.mysqltest");
21476 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
21478 /* HP/UX 9 (%@#!) writes to sscanf strings */
21479 tmp_version = my_strdup("$min_mysql_version");
21480 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
21481 printf("%s, bad version string\n", "$min_mysql_version");
21485 if (($mysql_major_version > major) ||
21486 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
21487 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
21493 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
21494 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
21495 printf("*** best to upgrade to the required version.\n");
21496 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
21497 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
21498 printf("*** config.cache before re-running configure\n");
21505 rm -f conftest$ac_exeext
21506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21507 (eval $ac_link) 2>&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512 (eval $ac_try) 2>&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; }; then
21518 echo "$as_me: program exited with status $ac_status" >&5
21519 echo "$as_me: failed program was:" >&5
21520 cat conftest.$ac_ext >&5
21521 ( exit $ac_status )
21524 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21526 CFLAGS="$ac_save_CFLAGS"
21527 LIBS="$ac_save_LIBS"
21530 if test "x$no_mysql" = x ; then
21531 echo "$as_me:$LINENO: result: yes" >&5
21532 echo "${ECHO_T}yes" >&6
21533 MODULE_MYSQL=bin/mysql.so
21535 echo "$as_me:$LINENO: result: no" >&5
21536 echo "${ECHO_T}no" >&6
21537 if test "$MYSQL_CONFIG" = "no" ; then
21538 echo "*** The mysql_config script installed by MYSQL could not be found"
21539 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
21540 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
21541 echo "*** full path to mysql_config."
21543 if test -f conf.mysqltest ; then
21546 echo "*** Could not run MYSQL test program, checking why..."
21547 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21548 LIBS="$LIBS $MYSQL_LIBS"
21549 cat >conftest.$ac_ext <<_ACEOF
21550 #line $LINENO "configure"
21551 #include "confdefs.h"
21556 int main(int argc, char *argv[])
21559 #define main K_and_R_C_main
21561 #ifdef F77_DUMMY_MAIN
21562 # ifdef __cplusplus
21565 int F77_DUMMY_MAIN() { return 1; }
21575 rm -f conftest.$ac_objext conftest$ac_exeext
21576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21577 (eval $ac_link) 2>&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } &&
21581 { ac_try='test -s conftest$ac_exeext'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 echo "*** The test program compiled, but did not run. This usually means"
21588 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
21589 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
21590 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21591 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21592 echo "*** is required on your system"
21594 echo "*** If you have an old version installed, it is best to remove it, although"
21595 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21597 echo "$as_me: failed program was:" >&5
21598 cat conftest.$ac_ext >&5
21599 echo "*** The test program failed to compile or link. See the file config.log for the"
21600 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
21601 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
21602 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
21604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21605 CFLAGS="$ac_save_CFLAGS"
21606 LIBS="$ac_save_LIBS"
21615 rm -f conf.mysqltest
21617 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21620 ########################################################
21621 # Compile with XML support?
21624 # Check whether --with-xml-prefix or --without-xml-prefix was given.
21625 if test "${with_xml_prefix+set}" = set; then
21626 withval="$with_xml_prefix"
21627 xml_config_prefix="$withval"
21629 xml_config_prefix=""
21632 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
21633 if test "${with_xml_exec_prefix+set}" = set; then
21634 withval="$with_xml_exec_prefix"
21635 xml_config_exec_prefix="$withval"
21637 xml_config_exec_prefix=""
21639 # Check whether --enable-xmltest or --disable-xmltest was given.
21640 if test "${enable_xmltest+set}" = set; then
21641 enableval="$enable_xmltest"
21647 if test x$xml_config_exec_prefix != x ; then
21648 xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
21649 if test x${XML2_CONFIG+set} != xset ; then
21650 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
21653 if test x$xml_config_prefix != x ; then
21654 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
21655 if test x${XML2_CONFIG+set} != xset ; then
21656 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
21660 # Extract the first word of "xml2-config", so it can be a program name with args.
21661 set dummy xml2-config; ac_word=$2
21662 echo "$as_me:$LINENO: checking for $ac_word" >&5
21663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21664 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
21667 case $XML2_CONFIG in
21669 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
21672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21673 for as_dir in $PATH
21676 test -z "$as_dir" && as_dir=.
21677 for ac_exec_ext in '' $ac_executable_extensions; do
21678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21679 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21686 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
21690 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
21692 if test -n "$XML2_CONFIG"; then
21693 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
21694 echo "${ECHO_T}$XML2_CONFIG" >&6
21696 echo "$as_me:$LINENO: result: no" >&5
21697 echo "${ECHO_T}no" >&6
21700 min_xml_version=2.0.0
21701 echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
21702 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
21704 if test "$XML2_CONFIG" = "no" ; then
21707 XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
21708 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
21709 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
21710 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21711 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
21712 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21713 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
21714 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21715 if test "x$enable_xmltest" = "xyes" ; then
21716 ac_save_CFLAGS="$CFLAGS"
21717 ac_save_LIBS="$LIBS"
21718 CFLAGS="$CFLAGS $XML_CFLAGS"
21719 LIBS="$XML_LIBS $LIBS"
21721 if test "$cross_compiling" = yes; then
21722 echo $ac_n "cross compiling; assumed OK... $ac_c"
21724 cat >conftest.$ac_ext <<_ACEOF
21725 #line $LINENO "configure"
21726 #include "confdefs.h"
21728 #include <stdlib.h>
21730 #include <string.h>
21731 #include <libxml/xmlversion.h>
21736 int xml_major_version, xml_minor_version, xml_micro_version;
21737 int major, minor, micro;
21740 system("touch conf.xmltest");
21742 /* Capture xml2-config output via autoconf/configure variables */
21743 /* HP/UX 9 (%@#!) writes to sscanf strings */
21744 tmp_version = (char *)strdup("$min_xml_version");
21745 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
21746 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
21751 /* Capture the version information from the header files */
21752 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
21753 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
21754 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
21759 /* Compare xml2-config output to the libxml headers */
21760 if ((xml_major_version != $xml_config_major_version) ||
21761 (xml_minor_version != $xml_config_minor_version) ||
21762 (xml_micro_version != $xml_config_micro_version))
21764 printf("*** libxml header files (version %d.%d.%d) do not match\n",
21765 xml_major_version, xml_minor_version, xml_micro_version);
21766 printf("*** xml2-config (version %d.%d.%d)\n",
21767 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
21770 /* Compare the headers to the library to make sure we match */
21771 /* Less than ideal -- doesn't provide us with return value feedback,
21772 * only exits if there's a serious mismatch between header and library.
21774 LIBXML_TEST_VERSION;
21776 /* Test that the library is greater than our minimum version */
21777 if ((xml_major_version > major) ||
21778 ((xml_major_version == major) && (xml_minor_version > minor)) ||
21779 ((xml_major_version == major) && (xml_minor_version == minor) &&
21780 (xml_micro_version >= micro)))
21786 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
21787 xml_major_version, xml_minor_version, xml_micro_version);
21788 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
21789 major, minor, micro);
21790 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
21792 printf("*** If you have already installed a sufficiently new version, this error\n");
21793 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
21794 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21795 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
21796 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
21797 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21798 printf("*** so that the correct libraries are found at run-time))\n");
21804 rm -f conftest$ac_exeext
21805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21806 (eval $ac_link) 2>&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; }; then
21817 echo "$as_me: program exited with status $ac_status" >&5
21818 echo "$as_me: failed program was:" >&5
21819 cat conftest.$ac_ext >&5
21820 ( exit $ac_status )
21823 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21825 CFLAGS="$ac_save_CFLAGS"
21826 LIBS="$ac_save_LIBS"
21830 if test "x$no_xml" = x ; then
21831 echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
21832 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
21833 MODULE_XML=bin/xml.so
21835 echo "$as_me:$LINENO: result: no" >&5
21836 echo "${ECHO_T}no" >&6
21837 if test "$XML2_CONFIG" = "no" ; then
21838 echo "*** The xml2-config script installed by LIBXML could not be found"
21839 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
21840 echo "*** your path, or set the XML2_CONFIG environment variable to the"
21841 echo "*** full path to xml2-config."
21843 if test -f conf.xmltest ; then
21846 echo "*** Could not run libxml test program, checking why..."
21847 CFLAGS="$CFLAGS $XML_CFLAGS"
21848 LIBS="$LIBS $XML_LIBS"
21849 cat >conftest.$ac_ext <<_ACEOF
21850 #line $LINENO "configure"
21851 #include "confdefs.h"
21853 #include <libxml/xmlversion.h>
21856 #ifdef F77_DUMMY_MAIN
21857 # ifdef __cplusplus
21860 int F77_DUMMY_MAIN() { return 1; }
21865 LIBXML_TEST_VERSION; return 0;
21870 rm -f conftest.$ac_objext conftest$ac_exeext
21871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21872 (eval $ac_link) 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } &&
21876 { ac_try='test -s conftest$ac_exeext'
21877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878 (eval $ac_try) 2>&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; }; then
21882 echo "*** The test program compiled, but did not run. This usually means"
21883 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
21884 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
21885 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21886 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21887 echo "*** is required on your system"
21889 echo "*** If you have an old version installed, it is best to remove it, although"
21890 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21892 echo "$as_me: failed program was:" >&5
21893 cat conftest.$ac_ext >&5
21894 echo "*** The test program failed to compile or link. See the file config.log for the"
21895 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
21896 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
21897 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
21899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21900 CFLAGS="$ac_save_CFLAGS"
21901 LIBS="$ac_save_LIBS"
21913 CFLAGS="$CFLAGS $XML_CFLAGS"
21916 #################################################
21917 # check for automount support
21918 echo "$as_me:$LINENO: checking whether to use AUTOMOUNT" >&5
21919 echo $ECHO_N "checking whether to use AUTOMOUNT... $ECHO_C" >&6
21921 # Check whether --with-automount or --without-automount was given.
21922 if test "${with_automount+set}" = set; then
21923 withval="$with_automount"
21926 echo "$as_me:$LINENO: result: yes" >&5
21927 echo "${ECHO_T}yes" >&6
21929 cat >>confdefs.h <<\_ACEOF
21930 #define WITH_AUTOMOUNT 1
21935 echo "$as_me:$LINENO: result: no" >&5
21936 echo "${ECHO_T}no" >&6
21940 echo "$as_me:$LINENO: result: no" >&5
21941 echo "${ECHO_T}no" >&6
21945 #################################################
21946 # check for smbmount support
21947 echo "$as_me:$LINENO: checking whether to use SMBMOUNT" >&5
21948 echo $ECHO_N "checking whether to use SMBMOUNT... $ECHO_C" >&6
21950 # Check whether --with-smbmount or --without-smbmount was given.
21951 if test "${with_smbmount+set}" = set; then
21952 withval="$with_smbmount"
21957 echo "$as_me:$LINENO: result: yes" >&5
21958 echo "${ECHO_T}yes" >&6
21960 cat >>confdefs.h <<\_ACEOF
21961 #define WITH_SMBMOUNT 1
21964 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
21967 { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
21968 echo "$as_me: error: not on a linux system!" >&2;}
21969 { (exit 1); exit 1; }; }
21974 echo "$as_me:$LINENO: result: no" >&5
21975 echo "${ECHO_T}no" >&6
21980 echo "$as_me:$LINENO: result: no" >&5
21981 echo "${ECHO_T}no" >&6
21987 #################################################
21988 # check for a PAM clear-text auth, accounts, password and session support
21989 with_pam_for_crypt=no
21990 echo "$as_me:$LINENO: checking whether to use PAM" >&5
21991 echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
21993 # Check whether --with-pam or --without-pam was given.
21994 if test "${with_pam+set}" = set; then
21995 withval="$with_pam"
21998 echo "$as_me:$LINENO: result: yes" >&5
21999 echo "${ECHO_T}yes" >&6
22001 cat >>confdefs.h <<\_ACEOF
22005 AUTHLIBS="$AUTHLIBS -lpam"
22006 with_pam_for_crypt=yes
22009 echo "$as_me:$LINENO: result: no" >&5
22010 echo "${ECHO_T}no" >&6
22014 echo "$as_me:$LINENO: result: no" >&5
22015 echo "${ECHO_T}no" >&6
22019 # we can't build a pam module if we don't have pam.
22020 echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
22021 echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
22022 if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 ac_check_lib_save_LIBS=$LIBS
22027 cat >conftest.$ac_ext <<_ACEOF
22028 #line $LINENO "configure"
22029 #include "confdefs.h"
22031 /* Override any gcc2 internal prototype to avoid an error. */
22035 /* We use char because int might match the return type of a gcc2
22036 builtin and then its argument prototype would still apply. */
22037 char pam_get_data ();
22038 #ifdef F77_DUMMY_MAIN
22039 # ifdef __cplusplus
22042 int F77_DUMMY_MAIN() { return 1; }
22052 rm -f conftest.$ac_objext conftest$ac_exeext
22053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22054 (eval $ac_link) 2>&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); } &&
22058 { ac_try='test -s conftest$ac_exeext'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; }; then
22064 ac_cv_lib_pam_pam_get_data=yes
22066 echo "$as_me: failed program was:" >&5
22067 cat conftest.$ac_ext >&5
22068 ac_cv_lib_pam_pam_get_data=no
22070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22071 LIBS=$ac_check_lib_save_LIBS
22073 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
22074 echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
22075 if test $ac_cv_lib_pam_pam_get_data = yes; then
22077 cat >>confdefs.h <<\_ACEOF
22078 #define HAVE_LIBPAM 1
22084 #################################################
22085 # check for pam_smbpass support
22086 echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
22087 echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
22089 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
22090 if test "${with_pam_smbpass+set}" = set; then
22091 withval="$with_pam_smbpass"
22094 echo "$as_me:$LINENO: result: yes" >&5
22095 echo "${ECHO_T}yes" >&6
22097 # Conditions under which pam_smbpass should not be built.
22099 if test x$PICFLAG = x; then
22100 echo "$as_me:$LINENO: result: No support for PIC code - disabling pam_smbpass" >&5
22101 echo "${ECHO_T}No support for PIC code - disabling pam_smbpass" >&6
22103 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
22104 echo "$as_me:$LINENO: result: No libpam found -- disabling pam_smbpass" >&5
22105 echo "${ECHO_T}No libpam found -- disabling pam_smbpass" >&6
22108 PAM_MOD="bin/pam_smbpass.so"
22112 echo "$as_me:$LINENO: result: no" >&5
22113 echo "${ECHO_T}no" >&6
22117 echo "$as_me:$LINENO: result: no" >&5
22118 echo "${ECHO_T}no" >&6
22123 ###############################################
22124 # test for where we get crypt() from, but only
22126 if test x"$with_pam_for_crypt" = x"no"; then
22128 for ac_func in crypt
22130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22131 echo "$as_me:$LINENO: checking for $ac_func" >&5
22132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22133 if eval "test \"\${$as_ac_var+set}\" = set"; then
22134 echo $ECHO_N "(cached) $ECHO_C" >&6
22136 cat >conftest.$ac_ext <<_ACEOF
22137 #line $LINENO "configure"
22138 #include "confdefs.h"
22139 /* System header to define __stub macros and hopefully few prototypes,
22140 which can conflict with char $ac_func (); below. */
22141 #include <assert.h>
22142 /* Override any gcc2 internal prototype to avoid an error. */
22146 /* We use char because int might match the return type of a gcc2
22147 builtin and then its argument prototype would still apply. */
22151 #ifdef F77_DUMMY_MAIN
22152 # ifdef __cplusplus
22155 int F77_DUMMY_MAIN() { return 1; }
22160 /* The GNU C library defines this for functions which it implements
22161 to always fail with ENOSYS. Some functions are actually named
22162 something starting with __ and the normal name is an alias. */
22163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22175 (eval $ac_link) 2>&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } &&
22179 { ac_try='test -s conftest$ac_exeext'
22180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181 (eval $ac_try) 2>&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; }; then
22185 eval "$as_ac_var=yes"
22187 echo "$as_me: failed program was:" >&5
22188 cat conftest.$ac_ext >&5
22189 eval "$as_ac_var=no"
22191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22195 if test `eval echo '${'$as_ac_var'}'` = yes; then
22196 cat >>confdefs.h <<_ACEOF
22197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22203 if test x"$ac_cv_func_crypt" = x"no"; then
22204 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22205 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22206 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22207 echo $ECHO_N "(cached) $ECHO_C" >&6
22209 ac_check_lib_save_LIBS=$LIBS
22210 LIBS="-lcrypt $LIBS"
22211 cat >conftest.$ac_ext <<_ACEOF
22212 #line $LINENO "configure"
22213 #include "confdefs.h"
22215 /* Override any gcc2 internal prototype to avoid an error. */
22219 /* We use char because int might match the return type of a gcc2
22220 builtin and then its argument prototype would still apply. */
22222 #ifdef F77_DUMMY_MAIN
22223 # ifdef __cplusplus
22226 int F77_DUMMY_MAIN() { return 1; }
22236 rm -f conftest.$ac_objext conftest$ac_exeext
22237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22238 (eval $ac_link) 2>&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } &&
22242 { ac_try='test -s conftest$ac_exeext'
22243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22244 (eval $ac_try) 2>&5
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; }; then
22248 ac_cv_lib_crypt_crypt=yes
22250 echo "$as_me: failed program was:" >&5
22251 cat conftest.$ac_ext >&5
22252 ac_cv_lib_crypt_crypt=no
22254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22255 LIBS=$ac_check_lib_save_LIBS
22257 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22258 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22259 if test $ac_cv_lib_crypt_crypt = yes; then
22260 AUTHLIBS="$AUTHLIBS -lcrypt";
22262 cat >>confdefs.h <<\_ACEOF
22263 #define HAVE_CRYPT 1
22272 ## moved after the check for -lcrypt in order to
22273 ## ensure that the necessary libraries are included
22274 ## check checking for truncated salt. Wrapped by the
22275 ## $with_pam_for_crypt variable as above --jerry
22277 if test $with_pam_for_crypt = no; then
22278 echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
22279 echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
22280 if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22285 LIBS="$AUTHLIBS $LIBS"
22286 if test "$cross_compiling" = yes; then
22287 samba_cv_HAVE_TRUNCATED_SALT=cross
22289 cat >conftest.$ac_ext <<_ACEOF
22290 #line $LINENO "configure"
22291 #include "confdefs.h"
22292 #include "${srcdir-.}/tests/crypttest.c"
22294 rm -f conftest$ac_exeext
22295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22296 (eval $ac_link) 2>&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301 (eval $ac_try) 2>&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; }; then
22305 samba_cv_HAVE_TRUNCATED_SALT=no
22307 echo "$as_me: program exited with status $ac_status" >&5
22308 echo "$as_me: failed program was:" >&5
22309 cat conftest.$ac_ext >&5
22310 ( exit $ac_status )
22311 samba_cv_HAVE_TRUNCATED_SALT=yes
22313 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22317 echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
22318 echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
22319 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
22321 cat >>confdefs.h <<\_ACEOF
22322 #define HAVE_TRUNCATED_SALT 1
22328 # New experimental SAM system
22330 echo "$as_me:$LINENO: checking whether to build the new (experimental) SAM database" >&5
22331 echo $ECHO_N "checking whether to build the new (experimental) SAM database... $ECHO_C" >&6
22333 # Check whether --with-sam or --without-sam was given.
22334 if test "${with_sam+set}" = set; then
22335 withval="$with_sam"
22338 echo "$as_me:$LINENO: result: yes" >&5
22339 echo "${ECHO_T}yes" >&6
22341 cat >>confdefs.h <<\_ACEOF
22347 echo "$as_me:$LINENO: result: no" >&5
22348 echo "${ECHO_T}no" >&6
22352 echo "$as_me:$LINENO: result: no" >&5
22353 echo "${ECHO_T}no" >&6
22358 ########################################################################################
22360 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
22362 ########################################################################################
22364 #################################################
22365 # check for a LDAP password database configuration backwards compatibility
22366 echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
22367 echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
22369 # Check whether --with-ldapsam or --without-ldapsam was given.
22370 if test "${with_ldapsam+set}" = set; then
22371 withval="$with_ldapsam"
22374 echo "$as_me:$LINENO: result: yes" >&5
22375 echo "${ECHO_T}yes" >&6
22377 cat >>confdefs.h <<\_ACEOF
22378 #define WITH_LDAP_SAMCONFIG 1
22383 echo "$as_me:$LINENO: result: no" >&5
22384 echo "${ECHO_T}no" >&6
22388 echo "$as_me:$LINENO: result: no" >&5
22389 echo "${ECHO_T}no" >&6
22393 #################################################
22394 # check for a TDB password database
22395 echo "$as_me:$LINENO: checking whether to use TDB SAM database" >&5
22396 echo $ECHO_N "checking whether to use TDB SAM database... $ECHO_C" >&6
22398 # Check whether --with-tdbsam or --without-tdbsam was given.
22399 if test "${with_tdbsam+set}" = set; then
22400 withval="$with_tdbsam"
22403 echo "$as_me:$LINENO: result: yes" >&5
22404 echo "${ECHO_T}yes" >&6
22406 cat >>confdefs.h <<\_ACEOF
22407 #define WITH_TDB_SAM 1
22412 echo "$as_me:$LINENO: result: no" >&5
22413 echo "${ECHO_T}no" >&6
22417 echo "$as_me:$LINENO: result: no" >&5
22418 echo "${ECHO_T}no" >&6
22422 #################################################
22423 # check for a NISPLUS password database
22424 echo "$as_me:$LINENO: checking whether to use NISPLUS SAM database" >&5
22425 echo $ECHO_N "checking whether to use NISPLUS SAM database... $ECHO_C" >&6
22427 # Check whether --with-nisplussam or --without-nisplussam was given.
22428 if test "${with_nisplussam+set}" = set; then
22429 withval="$with_nisplussam"
22432 echo "$as_me:$LINENO: result: yes" >&5
22433 echo "${ECHO_T}yes" >&6
22435 cat >>confdefs.h <<\_ACEOF
22436 #define WITH_NISPLUS_SAM 1
22441 echo "$as_me:$LINENO: result: no" >&5
22442 echo "${ECHO_T}no" >&6
22446 echo "$as_me:$LINENO: result: no" >&5
22447 echo "${ECHO_T}no" >&6
22451 ########################################################################################
22453 ## END OF TESTS FOR SAM BACKENDS.
22455 ########################################################################################
22457 #################################################
22458 # check for a NISPLUS_HOME support
22459 echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
22460 echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
22462 # Check whether --with-nisplus-home or --without-nisplus-home was given.
22463 if test "${with_nisplus_home+set}" = set; then
22464 withval="$with_nisplus_home"
22467 echo "$as_me:$LINENO: result: yes" >&5
22468 echo "${ECHO_T}yes" >&6
22470 cat >>confdefs.h <<\_ACEOF
22471 #define WITH_NISPLUS_HOME 1
22476 echo "$as_me:$LINENO: result: no" >&5
22477 echo "${ECHO_T}no" >&6
22481 echo "$as_me:$LINENO: result: no" >&5
22482 echo "${ECHO_T}no" >&6
22486 #################################################
22487 # check for syslog logging
22488 echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
22489 echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
22491 # Check whether --with-syslog or --without-syslog was given.
22492 if test "${with_syslog+set}" = set; then
22493 withval="$with_syslog"
22496 echo "$as_me:$LINENO: result: yes" >&5
22497 echo "${ECHO_T}yes" >&6
22499 cat >>confdefs.h <<\_ACEOF
22500 #define WITH_SYSLOG 1
22505 echo "$as_me:$LINENO: result: no" >&5
22506 echo "${ECHO_T}no" >&6
22510 echo "$as_me:$LINENO: result: no" >&5
22511 echo "${ECHO_T}no" >&6
22515 #################################################
22516 # check for a shared memory profiling support
22517 echo "$as_me:$LINENO: checking whether to use profiling" >&5
22518 echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
22520 # Check whether --with-profiling-data or --without-profiling-data was given.
22521 if test "${with_profiling_data+set}" = set; then
22522 withval="$with_profiling_data"
22525 echo "$as_me:$LINENO: result: yes" >&5
22526 echo "${ECHO_T}yes" >&6
22528 cat >>confdefs.h <<\_ACEOF
22529 #define WITH_PROFILE 1
22534 echo "$as_me:$LINENO: result: no" >&5
22535 echo "${ECHO_T}no" >&6
22539 echo "$as_me:$LINENO: result: no" >&5
22540 echo "${ECHO_T}no" >&6
22545 #################################################
22546 # check for experimental disk-quotas support
22547 QUOTAOBJS=smbd/noquotas.o
22549 echo "$as_me:$LINENO: checking whether to support disk-quotas" >&5
22550 echo $ECHO_N "checking whether to support disk-quotas... $ECHO_C" >&6
22552 # Check whether --with-quotas or --without-quotas was given.
22553 if test "${with_quotas+set}" = set; then
22554 withval="$with_quotas"
22557 echo "$as_me:$LINENO: result: yes" >&5
22558 echo "${ECHO_T}yes" >&6
22561 # Check for kernel 2.4.x quota braindamage...
22562 echo "$as_me:$LINENO: checking for linux 2.4.x quota braindamage.." >&5
22563 echo $ECHO_N "checking for linux 2.4.x quota braindamage..... $ECHO_C" >&6
22564 if test "${samba_cv_linux_2_4_quota_braindamage+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22568 cat >conftest.$ac_ext <<_ACEOF
22569 #line $LINENO "configure"
22570 #include "confdefs.h"
22572 #include <sys/types.h>
22573 #include <asm/types.h>
22574 #include <linux/quota.h>
22575 #include <mntent.h>
22576 #include <linux/unistd.h>
22577 #ifdef F77_DUMMY_MAIN
22578 # ifdef __cplusplus
22581 int F77_DUMMY_MAIN() { return 1; }
22586 struct mem_dqblk D;
22591 rm -f conftest.$ac_objext
22592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22593 (eval $ac_compile) 2>&5
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); } &&
22597 { ac_try='test -s conftest.$ac_objext'
22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599 (eval $ac_try) 2>&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); }; }; then
22603 samba_cv_linux_2_4_quota_braindamage=yes
22605 echo "$as_me: failed program was:" >&5
22606 cat conftest.$ac_ext >&5
22607 samba_cv_linux_2_4_quota_braindamage=no
22609 rm -f conftest.$ac_objext conftest.$ac_ext
22611 echo "$as_me:$LINENO: result: $samba_cv_linux_2_4_quota_braindamage" >&5
22612 echo "${ECHO_T}$samba_cv_linux_2_4_quota_braindamage" >&6
22613 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
22615 cat >>confdefs.h <<\_ACEOF
22616 #define LINUX_QUOTAS_2 1
22621 cat >>confdefs.h <<\_ACEOF
22622 #define LINUX_QUOTAS_1 1
22630 QUOTAOBJS=smbd/quotas.o
22632 cat >>confdefs.h <<\_ACEOF
22633 #define WITH_QUOTAS 1
22638 echo "$as_me:$LINENO: result: no" >&5
22639 echo "${ECHO_T}no" >&6
22643 echo "$as_me:$LINENO: result: no" >&5
22644 echo "${ECHO_T}no" >&6
22649 #################################################
22650 # check for experimental utmp accounting
22652 echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
22653 echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
22655 # Check whether --with-utmp or --without-utmp was given.
22656 if test "${with_utmp+set}" = set; then
22657 withval="$with_utmp"
22660 echo "$as_me:$LINENO: result: yes" >&5
22661 echo "${ECHO_T}yes" >&6
22663 cat >>confdefs.h <<\_ACEOF
22664 #define WITH_UTMP 1
22669 echo "$as_me:$LINENO: result: no" >&5
22670 echo "${ECHO_T}no" >&6
22674 echo "$as_me:$LINENO: result: no" >&5
22675 echo "${ECHO_T}no" >&6
22679 #################################################
22680 # choose native language(s) of man pages
22681 echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
22682 echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
22684 # Check whether --with-manpages-langs or --without-manpages-langs was given.
22685 if test "${with_manpages_langs+set}" = set; then
22686 withval="$with_manpages_langs"
22689 { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
22690 echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
22694 manlangs="$withval"
22698 echo "$as_me:$LINENO: result: $manlangs" >&5
22699 echo "${ECHO_T}$manlangs" >&6
22700 manlangs=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
22704 echo "$as_me:$LINENO: result: $manlangs" >&5
22705 echo "${ECHO_T}$manlangs" >&6
22710 #################################################
22711 # should we build libsmbclient?
22713 LIBSMBCLIENT_SHARED=
22715 echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
22716 echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
22718 # Check whether --with-libsmbclient or --without-libsmbclient was given.
22719 if test "${with_libsmbclient+set}" = set; then
22720 withval="$with_libsmbclient"
22723 echo "$as_me:$LINENO: result: no" >&5
22724 echo "${ECHO_T}no" >&6
22727 if test $BLDSHARED = true; then
22728 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
22729 LIBSMBCLIENT=libsmbclient
22730 echo "$as_me:$LINENO: result: yes" >&5
22731 echo "${ECHO_T}yes" >&6
22733 echo "$as_me:$LINENO: result: no shared library support" >&5
22734 echo "${ECHO_T}no shared library support" >&6
22739 echo "$as_me:$LINENO: result: yes" >&5
22740 echo "${ECHO_T}yes" >&6
22745 #################################################
22746 # these tests are taken from the GNU fileutils package
22747 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
22748 echo "$as_me: checking how to get filesystem space usage..." >&6;}
22751 # Test for statvfs64.
22752 if test $space = no; then
22754 echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
22755 echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
22756 if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
22757 echo $ECHO_N "(cached) $ECHO_C" >&6
22759 if test "$cross_compiling" = yes; then
22760 fu_cv_sys_stat_statvfs64=cross
22762 cat >conftest.$ac_ext <<_ACEOF
22763 #line $LINENO "configure"
22764 #include "confdefs.h"
22766 #if defined(HAVE_UNISTD_H)
22767 #include <unistd.h>
22769 #include <sys/types.h>
22770 #include <sys/statvfs.h>
22773 struct statvfs64 fsd;
22774 exit (statvfs64 (".", &fsd));
22777 rm -f conftest$ac_exeext
22778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22779 (eval $ac_link) 2>&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784 (eval $ac_try) 2>&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); }; }; then
22788 fu_cv_sys_stat_statvfs64=yes
22790 echo "$as_me: program exited with status $ac_status" >&5
22791 echo "$as_me: failed program was:" >&5
22792 cat conftest.$ac_ext >&5
22793 ( exit $ac_status )
22794 fu_cv_sys_stat_statvfs64=no
22796 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22799 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
22800 echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
22801 if test $fu_cv_sys_stat_statvfs64 = yes; then
22804 cat >>confdefs.h <<\_ACEOF
22805 #define STAT_STATVFS64 1
22811 # Perform only the link test since it seems there are no variants of the
22812 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
22813 # because that got a false positive on SCO OSR5. Adding the declaration
22814 # of a `struct statvfs' causes this test to fail (as it should) on such
22815 # systems. That system is reported to work fine with STAT_STATFS4 which
22816 # is what it gets when this test fails.
22817 if test $space = no; then
22819 echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
22820 echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
22821 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
22822 echo $ECHO_N "(cached) $ECHO_C" >&6
22824 cat >conftest.$ac_ext <<_ACEOF
22825 #line $LINENO "configure"
22826 #include "confdefs.h"
22827 #include <sys/types.h>
22828 #include <sys/statvfs.h>
22829 #ifdef F77_DUMMY_MAIN
22830 # ifdef __cplusplus
22833 int F77_DUMMY_MAIN() { return 1; }
22838 struct statvfs fsd; statvfs (0, &fsd);
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22845 (eval $ac_link) 2>&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); } &&
22849 { ac_try='test -s conftest$ac_exeext'
22850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22851 (eval $ac_try) 2>&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); }; }; then
22855 fu_cv_sys_stat_statvfs=yes
22857 echo "$as_me: failed program was:" >&5
22858 cat conftest.$ac_ext >&5
22859 fu_cv_sys_stat_statvfs=no
22861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22863 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
22864 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
22865 if test $fu_cv_sys_stat_statvfs = yes; then
22868 cat >>confdefs.h <<\_ACEOF
22869 #define STAT_STATVFS 1
22875 if test $space = no; then
22876 # DEC Alpha running OSF/1
22877 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
22878 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
22879 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
22880 echo $ECHO_N "(cached) $ECHO_C" >&6
22882 if test "$cross_compiling" = yes; then
22883 fu_cv_sys_stat_statfs3_osf1=no
22885 cat >conftest.$ac_ext <<_ACEOF
22886 #line $LINENO "configure"
22887 #include "confdefs.h"
22889 #include <sys/param.h>
22890 #include <sys/types.h>
22891 #include <sys/mount.h>
22896 exit (statfs (".", &fsd, sizeof (struct statfs)));
22899 rm -f conftest$ac_exeext
22900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22901 (eval $ac_link) 2>&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; }; then
22910 fu_cv_sys_stat_statfs3_osf1=yes
22912 echo "$as_me: program exited with status $ac_status" >&5
22913 echo "$as_me: failed program was:" >&5
22914 cat conftest.$ac_ext >&5
22915 ( exit $ac_status )
22916 fu_cv_sys_stat_statfs3_osf1=no
22918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22922 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
22923 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
22924 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
22927 cat >>confdefs.h <<\_ACEOF
22928 #define STAT_STATFS3_OSF1 1
22934 if test $space = no; then
22936 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
22937 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
22938 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
22939 echo $ECHO_N "(cached) $ECHO_C" >&6
22941 if test "$cross_compiling" = yes; then
22942 fu_cv_sys_stat_statfs2_bsize=no
22944 cat >conftest.$ac_ext <<_ACEOF
22945 #line $LINENO "configure"
22946 #include "confdefs.h"
22948 #ifdef HAVE_SYS_PARAM_H
22949 #include <sys/param.h>
22951 #ifdef HAVE_SYS_MOUNT_H
22952 #include <sys/mount.h>
22954 #ifdef HAVE_SYS_VFS_H
22955 #include <sys/vfs.h>
22961 exit (statfs (".", &fsd));
22964 rm -f conftest$ac_exeext
22965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22966 (eval $ac_link) 2>&5
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22971 (eval $ac_try) 2>&5
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); }; }; then
22975 fu_cv_sys_stat_statfs2_bsize=yes
22977 echo "$as_me: program exited with status $ac_status" >&5
22978 echo "$as_me: failed program was:" >&5
22979 cat conftest.$ac_ext >&5
22980 ( exit $ac_status )
22981 fu_cv_sys_stat_statfs2_bsize=no
22983 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22987 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
22988 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
22989 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
22992 cat >>confdefs.h <<\_ACEOF
22993 #define STAT_STATFS2_BSIZE 1
22999 if test $space = no; then
23001 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
23002 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
23003 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
23004 echo $ECHO_N "(cached) $ECHO_C" >&6
23006 if test "$cross_compiling" = yes; then
23007 fu_cv_sys_stat_statfs4=no
23009 cat >conftest.$ac_ext <<_ACEOF
23010 #line $LINENO "configure"
23011 #include "confdefs.h"
23012 #include <sys/types.h>
23013 #include <sys/statfs.h>
23017 exit (statfs (".", &fsd, sizeof fsd, 0));
23020 rm -f conftest$ac_exeext
23021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23022 (eval $ac_link) 2>&5
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); }; }; then
23031 fu_cv_sys_stat_statfs4=yes
23033 echo "$as_me: program exited with status $ac_status" >&5
23034 echo "$as_me: failed program was:" >&5
23035 cat conftest.$ac_ext >&5
23036 ( exit $ac_status )
23037 fu_cv_sys_stat_statfs4=no
23039 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23043 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
23044 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
23045 if test $fu_cv_sys_stat_statfs4 = yes; then
23048 cat >>confdefs.h <<\_ACEOF
23049 #define STAT_STATFS4 1
23055 if test $space = no; then
23056 # 4.4BSD and NetBSD
23057 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
23058 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
23059 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
23060 echo $ECHO_N "(cached) $ECHO_C" >&6
23062 if test "$cross_compiling" = yes; then
23063 fu_cv_sys_stat_statfs2_fsize=no
23065 cat >conftest.$ac_ext <<_ACEOF
23066 #line $LINENO "configure"
23067 #include "confdefs.h"
23068 #include <sys/types.h>
23069 #ifdef HAVE_SYS_PARAM_H
23070 #include <sys/param.h>
23072 #ifdef HAVE_SYS_MOUNT_H
23073 #include <sys/mount.h>
23079 exit (statfs (".", &fsd));
23082 rm -f conftest$ac_exeext
23083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23084 (eval $ac_link) 2>&5
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; }; then
23093 fu_cv_sys_stat_statfs2_fsize=yes
23095 echo "$as_me: program exited with status $ac_status" >&5
23096 echo "$as_me: failed program was:" >&5
23097 cat conftest.$ac_ext >&5
23098 ( exit $ac_status )
23099 fu_cv_sys_stat_statfs2_fsize=no
23101 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23105 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
23106 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
23107 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
23110 cat >>confdefs.h <<\_ACEOF
23111 #define STAT_STATFS2_FSIZE 1
23117 if test $space = no; then
23119 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
23120 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
23121 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 if test "$cross_compiling" = yes; then
23125 fu_cv_sys_stat_fs_data=no
23127 cat >conftest.$ac_ext <<_ACEOF
23128 #line $LINENO "configure"
23129 #include "confdefs.h"
23130 #include <sys/types.h>
23131 #ifdef HAVE_SYS_PARAM_H
23132 #include <sys/param.h>
23134 #ifdef HAVE_SYS_MOUNT_H
23135 #include <sys/mount.h>
23137 #ifdef HAVE_SYS_FS_TYPES_H
23138 #include <sys/fs_types.h>
23142 struct fs_data fsd;
23143 /* Ultrix's statfs returns 1 for success,
23144 0 for not mounted, -1 for failure. */
23145 exit (statfs (".", &fsd) != 1);
23148 rm -f conftest$ac_exeext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23150 (eval $ac_link) 2>&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } && { ac_try='./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 fu_cv_sys_stat_fs_data=yes
23161 echo "$as_me: program exited with status $ac_status" >&5
23162 echo "$as_me: failed program was:" >&5
23163 cat conftest.$ac_ext >&5
23164 ( exit $ac_status )
23165 fu_cv_sys_stat_fs_data=no
23167 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23171 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
23172 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
23173 if test $fu_cv_sys_stat_fs_data = yes; then
23176 cat >>confdefs.h <<\_ACEOF
23177 #define STAT_STATFS2_FS_DATA 1
23184 # As a gating factor for large file support, in order to
23185 # use <4GB files we must have the following minimal support
23187 # long long, and a 64 bit off_t or off64_t.
23188 # If we don't have all of these then disable large
23191 echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
23192 echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
23193 cat >conftest.$ac_ext <<_ACEOF
23194 #line $LINENO "configure"
23195 #include "confdefs.h"
23197 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
23198 #include <sys/types.h>
23203 #ifdef F77_DUMMY_MAIN
23204 # ifdef __cplusplus
23207 int F77_DUMMY_MAIN() { return 1; }
23217 rm -f conftest.$ac_objext
23218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23219 (eval $ac_compile) 2>&5
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); } &&
23223 { ac_try='test -s conftest.$ac_objext'
23224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225 (eval $ac_try) 2>&5
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); }; }; then
23229 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
23231 echo "$as_me: failed program was:" >&5
23232 cat conftest.$ac_ext >&5
23233 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
23235 rm -f conftest.$ac_objext conftest.$ac_ext
23236 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
23238 cat >>confdefs.h <<\_ACEOF
23239 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
23243 echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
23244 echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
23247 # Check whether --with-spinlocks or --without-spinlocks was given.
23248 if test "${with_spinlocks+set}" = set; then
23249 withval="$with_spinlocks"
23252 if test "x$with_spinlocks" = "xyes"; then
23254 cat >>confdefs.h <<\_ACEOF
23255 #define USE_SPINLOCKS 1
23259 case "$host_cpu" in
23262 cat >>confdefs.h <<\_ACEOF
23263 #define SPARC_SPINLOCKS 1
23268 i386|i486|i586|i686)
23270 cat >>confdefs.h <<\_ACEOF
23271 #define INTEL_SPINLOCKS 1
23278 cat >>confdefs.h <<\_ACEOF
23279 #define MIPS_SPINLOCKS 1
23286 cat >>confdefs.h <<\_ACEOF
23287 #define POWERPC_SPINLOCKS 1
23294 #################################################
23295 # check for ACL support
23297 echo "$as_me:$LINENO: checking whether to support ACLs" >&5
23298 echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
23300 # Check whether --with-acl-support or --without-acl-support was given.
23301 if test "${with_acl_support+set}" = set; then
23302 withval="$with_acl_support"
23308 echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
23309 echo "${ECHO_T}Using UnixWare ACLs" >&6
23311 cat >>confdefs.h <<\_ACEOF
23312 #define HAVE_UNIXWARE_ACLS 1
23317 echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
23318 echo "${ECHO_T}Using solaris ACLs" >&6
23320 cat >>confdefs.h <<\_ACEOF
23321 #define HAVE_SOLARIS_ACLS 1
23326 echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
23327 echo "${ECHO_T}Using HPUX ACLs" >&6
23329 cat >>confdefs.h <<\_ACEOF
23330 #define HAVE_HPUX_ACLS 1
23335 echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
23336 echo "${ECHO_T}Using IRIX ACLs" >&6
23338 cat >>confdefs.h <<\_ACEOF
23339 #define HAVE_IRIX_ACLS 1
23344 echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
23345 echo "${ECHO_T}Using AIX ACLs" >&6
23347 cat >>confdefs.h <<\_ACEOF
23348 #define HAVE_AIX_ACLS 1
23353 echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
23354 echo "${ECHO_T}Using Tru64 ACLs" >&6
23356 cat >>confdefs.h <<\_ACEOF
23357 #define HAVE_TRU64_ACLS 1
23360 LIBS="$LIBS -lpacl"
23364 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
23365 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
23366 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
23367 echo $ECHO_N "(cached) $ECHO_C" >&6
23369 ac_check_lib_save_LIBS=$LIBS
23371 cat >conftest.$ac_ext <<_ACEOF
23372 #line $LINENO "configure"
23373 #include "confdefs.h"
23375 /* Override any gcc2 internal prototype to avoid an error. */
23379 /* We use char because int might match the return type of a gcc2
23380 builtin and then its argument prototype would still apply. */
23381 char acl_get_file ();
23382 #ifdef F77_DUMMY_MAIN
23383 # ifdef __cplusplus
23386 int F77_DUMMY_MAIN() { return 1; }
23396 rm -f conftest.$ac_objext conftest$ac_exeext
23397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23398 (eval $ac_link) 2>&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } &&
23402 { ac_try='test -s conftest$ac_exeext'
23403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23404 (eval $ac_try) 2>&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); }; }; then
23408 ac_cv_lib_acl_acl_get_file=yes
23410 echo "$as_me: failed program was:" >&5
23411 cat conftest.$ac_ext >&5
23412 ac_cv_lib_acl_acl_get_file=no
23414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23415 LIBS=$ac_check_lib_save_LIBS
23417 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
23418 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
23419 if test $ac_cv_lib_acl_acl_get_file = yes; then
23420 cat >>confdefs.h <<_ACEOF
23421 #define HAVE_LIBACL 1
23428 echo "$as_me:$LINENO: checking for ACL support" >&5
23429 echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
23430 if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
23431 echo $ECHO_N "(cached) $ECHO_C" >&6
23434 cat >conftest.$ac_ext <<_ACEOF
23435 #line $LINENO "configure"
23436 #include "confdefs.h"
23437 #include <sys/types.h>
23438 #include <sys/acl.h>
23439 #ifdef F77_DUMMY_MAIN
23440 # ifdef __cplusplus
23443 int F77_DUMMY_MAIN() { return 1; }
23448 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
23453 rm -f conftest.$ac_objext conftest$ac_exeext
23454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23455 (eval $ac_link) 2>&5
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); } &&
23459 { ac_try='test -s conftest$ac_exeext'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; }; then
23465 samba_cv_HAVE_POSIX_ACLS=yes
23467 echo "$as_me: failed program was:" >&5
23468 cat conftest.$ac_ext >&5
23469 samba_cv_HAVE_POSIX_ACLS=no
23471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23473 echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
23474 echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
23475 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
23476 echo "$as_me:$LINENO: result: Using posix ACLs" >&5
23477 echo "${ECHO_T}Using posix ACLs" >&6
23479 cat >>confdefs.h <<\_ACEOF
23480 #define HAVE_POSIX_ACLS 1
23483 echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
23484 echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
23485 if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23489 cat >conftest.$ac_ext <<_ACEOF
23490 #line $LINENO "configure"
23491 #include "confdefs.h"
23492 #include <sys/types.h>
23493 #include <sys/acl.h>
23494 #ifdef F77_DUMMY_MAIN
23495 # ifdef __cplusplus
23498 int F77_DUMMY_MAIN() { return 1; }
23503 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
23508 rm -f conftest.$ac_objext conftest$ac_exeext
23509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23510 (eval $ac_link) 2>&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } &&
23514 { ac_try='test -s conftest$ac_exeext'
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; }; then
23520 samba_cv_HAVE_ACL_GET_PERM_NP=yes
23522 echo "$as_me: failed program was:" >&5
23523 cat conftest.$ac_ext >&5
23524 samba_cv_HAVE_ACL_GET_PERM_NP=no
23526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23528 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
23529 echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
23530 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
23532 cat >>confdefs.h <<\_ACEOF
23533 #define HAVE_ACL_GET_PERM_NP 1
23542 echo "$as_me:$LINENO: result: no" >&5
23543 echo "${ECHO_T}no" >&6
23545 cat >>confdefs.h <<\_ACEOF
23546 #define HAVE_NO_ACLS 1
23553 cat >>confdefs.h <<\_ACEOF
23554 #define HAVE_NO_ACLS 1
23557 echo "$as_me:$LINENO: result: no" >&5
23558 echo "${ECHO_T}no" >&6
23562 #################################################
23563 # check for sendfile support
23565 with_sendfile_support=yes
23566 echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
23567 echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
23569 # Check whether --with-sendfile-support or --without-sendfile-support was given.
23570 if test "${with_sendfile_support+set}" = set; then
23571 withval="$with_sendfile_support"
23575 echo "$as_me:$LINENO: result: yes" >&5
23576 echo "${ECHO_T}yes" >&6;
23580 echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
23581 echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
23582 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
23583 echo $ECHO_N "(cached) $ECHO_C" >&6
23586 cat >conftest.$ac_ext <<_ACEOF
23587 #line $LINENO "configure"
23588 #include "confdefs.h"
23589 #include <sys/sendfile.h>
23590 #ifdef F77_DUMMY_MAIN
23591 # ifdef __cplusplus
23594 int F77_DUMMY_MAIN() { return 1; }
23603 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
23609 rm -f conftest.$ac_objext conftest$ac_exeext
23610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23611 (eval $ac_link) 2>&5
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } &&
23615 { ac_try='test -s conftest$ac_exeext'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; }; then
23621 samba_cv_HAVE_SENDFILE64=yes
23623 echo "$as_me: failed program was:" >&5
23624 cat conftest.$ac_ext >&5
23625 samba_cv_HAVE_SENDFILE64=no
23627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23629 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
23630 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
23632 echo "$as_me:$LINENO: checking for linux sendfile support" >&5
23633 echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
23634 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23638 cat >conftest.$ac_ext <<_ACEOF
23639 #line $LINENO "configure"
23640 #include "confdefs.h"
23641 #include <sys/sendfile.h>
23642 #ifdef F77_DUMMY_MAIN
23643 # ifdef __cplusplus
23646 int F77_DUMMY_MAIN() { return 1; }
23655 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
23661 rm -f conftest.$ac_objext conftest$ac_exeext
23662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23663 (eval $ac_link) 2>&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); } &&
23667 { ac_try='test -s conftest$ac_exeext'
23668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23669 (eval $ac_try) 2>&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); }; }; then
23673 samba_cv_HAVE_SENDFILE=yes
23675 echo "$as_me: failed program was:" >&5
23676 cat conftest.$ac_ext >&5
23677 samba_cv_HAVE_SENDFILE=no
23679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23681 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
23682 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
23684 # Try and cope with broken Linux sendfile....
23685 echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
23686 echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
23687 if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
23688 echo $ECHO_N "(cached) $ECHO_C" >&6
23691 cat >conftest.$ac_ext <<_ACEOF
23692 #line $LINENO "configure"
23693 #include "confdefs.h"
23695 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
23696 #undef _FILE_OFFSET_BITS
23698 #include <sys/sendfile.h>
23699 #ifdef F77_DUMMY_MAIN
23700 # ifdef __cplusplus
23703 int F77_DUMMY_MAIN() { return 1; }
23712 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
23718 rm -f conftest.$ac_objext conftest$ac_exeext
23719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23720 (eval $ac_link) 2>&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } &&
23724 { ac_try='test -s conftest$ac_exeext'
23725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23726 (eval $ac_try) 2>&5
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); }; }; then
23730 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
23732 echo "$as_me: failed program was:" >&5
23733 cat conftest.$ac_ext >&5
23734 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
23736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23738 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
23739 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
23741 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
23743 cat >>confdefs.h <<\_ACEOF
23744 #define HAVE_SENDFILE64 1
23748 cat >>confdefs.h <<\_ACEOF
23749 #define LINUX_SENDFILE_API 1
23753 cat >>confdefs.h <<\_ACEOF
23754 #define WITH_SENDFILE 1
23757 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
23759 cat >>confdefs.h <<\_ACEOF
23760 #define HAVE_SENDFILE 1
23764 cat >>confdefs.h <<\_ACEOF
23765 #define LINUX_SENDFILE_API 1
23769 cat >>confdefs.h <<\_ACEOF
23770 #define WITH_SENDFILE 1
23773 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
23775 cat >>confdefs.h <<\_ACEOF
23776 #define LINUX_BROKEN_SENDFILE_API 1
23780 cat >>confdefs.h <<\_ACEOF
23781 #define WITH_SENDFILE 1
23785 echo "$as_me:$LINENO: result: no" >&5
23786 echo "${ECHO_T}no" >&6;
23791 echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
23792 echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
23793 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23794 echo $ECHO_N "(cached) $ECHO_C" >&6
23797 cat >conftest.$ac_ext <<_ACEOF
23798 #line $LINENO "configure"
23799 #include "confdefs.h"
23801 #include <sys/types.h>
23802 #include <sys/socket.h>
23803 #include <sys/uio.h>
23804 #ifdef F77_DUMMY_MAIN
23805 # ifdef __cplusplus
23808 int F77_DUMMY_MAIN() { return 1; }
23815 off_t offset, nwritten;
23816 struct sf_hdtr hdr;
23817 struct iovec hdtrl;
23818 hdr->headers = &hdtrl;
23820 hdr->trailers = NULL;
23822 hdtrl.iov_base = NULL;
23824 int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23832 (eval $ac_link) 2>&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } &&
23836 { ac_try='test -s conftest$ac_exeext'
23837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23838 (eval $ac_try) 2>&5
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); }; }; then
23842 samba_cv_HAVE_SENDFILE=yes
23844 echo "$as_me: failed program was:" >&5
23845 cat conftest.$ac_ext >&5
23846 samba_cv_HAVE_SENDFILE=no
23848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23850 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
23851 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
23853 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
23855 cat >>confdefs.h <<\_ACEOF
23856 #define HAVE_SENDFILE 1
23860 cat >>confdefs.h <<\_ACEOF
23861 #define FREEBSD_SENDFILE_API 1
23865 cat >>confdefs.h <<\_ACEOF
23866 #define WITH_SENDFILE 1
23870 echo "$as_me:$LINENO: result: no" >&5
23871 echo "${ECHO_T}no" >&6;
23876 echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
23877 echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
23878 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
23879 echo $ECHO_N "(cached) $ECHO_C" >&6
23882 cat >conftest.$ac_ext <<_ACEOF
23883 #line $LINENO "configure"
23884 #include "confdefs.h"
23886 #include <sys/socket.h>
23887 #include <sys/uio.h>
23888 #ifdef F77_DUMMY_MAIN
23889 # ifdef __cplusplus
23892 int F77_DUMMY_MAIN() { return 1; }
23900 struct iovec hdtrl[2];
23904 hdtrl[0].iov_base = 0;
23905 hdtrl[0].iov_len = 0;
23907 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
23913 rm -f conftest.$ac_objext conftest$ac_exeext
23914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23915 (eval $ac_link) 2>&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } &&
23919 { ac_try='test -s conftest$ac_exeext'
23920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921 (eval $ac_try) 2>&5
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); }; }; then
23925 samba_cv_HAVE_SENDFILE64=yes
23927 echo "$as_me: failed program was:" >&5
23928 cat conftest.$ac_ext >&5
23929 samba_cv_HAVE_SENDFILE64=no
23931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23933 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
23934 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
23935 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
23937 cat >>confdefs.h <<\_ACEOF
23938 #define HAVE_SENDFILE64 1
23942 cat >>confdefs.h <<\_ACEOF
23943 #define HPUX_SENDFILE_API 1
23947 cat >>confdefs.h <<\_ACEOF
23948 #define WITH_SENDFILE 1
23952 echo "$as_me:$LINENO: result: no" >&5
23953 echo "${ECHO_T}no" >&6;
23956 echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
23957 echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
23958 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23959 echo $ECHO_N "(cached) $ECHO_C" >&6
23962 cat >conftest.$ac_ext <<_ACEOF
23963 #line $LINENO "configure"
23964 #include "confdefs.h"
23966 #include <sys/socket.h>
23967 #include <sys/uio.h>
23968 #ifdef F77_DUMMY_MAIN
23969 # ifdef __cplusplus
23972 int F77_DUMMY_MAIN() { return 1; }
23980 struct iovec hdtrl[2];
23984 hdtrl[0].iov_base = 0;
23985 hdtrl[0].iov_len = 0;
23987 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
23993 rm -f conftest.$ac_objext conftest$ac_exeext
23994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23995 (eval $ac_link) 2>&5
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } &&
23999 { ac_try='test -s conftest$ac_exeext'
24000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24001 (eval $ac_try) 2>&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); }; }; then
24005 samba_cv_HAVE_SENDFILE=yes
24007 echo "$as_me: failed program was:" >&5
24008 cat conftest.$ac_ext >&5
24009 samba_cv_HAVE_SENDFILE=no
24011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24013 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
24014 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
24015 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
24017 cat >>confdefs.h <<\_ACEOF
24018 #define HAVE_SENDFILE 1
24022 cat >>confdefs.h <<\_ACEOF
24023 #define HPUX_SENDFILE_API 1
24027 cat >>confdefs.h <<\_ACEOF
24028 #define WITH_SENDFILE 1
24032 echo "$as_me:$LINENO: result: no" >&5
24033 echo "${ECHO_T}no" >&6;
24039 echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
24040 echo $ECHO_N "checking for sendfilev in -lsendfile... $ECHO_C" >&6
24041 if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
24042 echo $ECHO_N "(cached) $ECHO_C" >&6
24044 ac_check_lib_save_LIBS=$LIBS
24045 LIBS="-lsendfile $LIBS"
24046 cat >conftest.$ac_ext <<_ACEOF
24047 #line $LINENO "configure"
24048 #include "confdefs.h"
24050 /* Override any gcc2 internal prototype to avoid an error. */
24054 /* We use char because int might match the return type of a gcc2
24055 builtin and then its argument prototype would still apply. */
24057 #ifdef F77_DUMMY_MAIN
24058 # ifdef __cplusplus
24061 int F77_DUMMY_MAIN() { return 1; }
24071 rm -f conftest.$ac_objext conftest$ac_exeext
24072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24073 (eval $ac_link) 2>&5
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); } &&
24077 { ac_try='test -s conftest$ac_exeext'
24078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24079 (eval $ac_try) 2>&5
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); }; }; then
24083 ac_cv_lib_sendfile_sendfilev=yes
24085 echo "$as_me: failed program was:" >&5
24086 cat conftest.$ac_ext >&5
24087 ac_cv_lib_sendfile_sendfilev=no
24089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24090 LIBS=$ac_check_lib_save_LIBS
24092 echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
24093 echo "${ECHO_T}$ac_cv_lib_sendfile_sendfilev" >&6
24094 if test $ac_cv_lib_sendfile_sendfilev = yes; then
24095 cat >>confdefs.h <<_ACEOF
24096 #define HAVE_LIBSENDFILE 1
24099 LIBS="-lsendfile $LIBS"
24103 echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
24104 echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
24105 if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
24106 echo $ECHO_N "(cached) $ECHO_C" >&6
24109 cat >conftest.$ac_ext <<_ACEOF
24110 #line $LINENO "configure"
24111 #include "confdefs.h"
24113 #include <sys/sendfile.h>
24114 #ifdef F77_DUMMY_MAIN
24115 # ifdef __cplusplus
24118 int F77_DUMMY_MAIN() { return 1; }
24126 struct sendfilevec vec[2];
24132 vec[0].sfv_fd = SFV_FD_SELF;
24133 vec[0].sfv_flag = 0;
24134 vec[0].sfv_off = 0;
24135 vec[0].sfv_len = 0;
24138 vec[1].sfv_flag = 0;
24139 vec[1].sfv_off = 0;
24140 vec[1].sfv_len = 0;
24141 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
24147 rm -f conftest.$ac_objext conftest$ac_exeext
24148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24149 (eval $ac_link) 2>&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); } &&
24153 { ac_try='test -s conftest$ac_exeext'
24154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155 (eval $ac_try) 2>&5
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); }; }; then
24159 samba_cv_HAVE_SENDFILEV64=yes
24161 echo "$as_me: failed program was:" >&5
24162 cat conftest.$ac_ext >&5
24163 samba_cv_HAVE_SENDFILEV64=no
24165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24167 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
24168 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
24170 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
24172 cat >>confdefs.h <<\_ACEOF
24173 #define HAVE_SENDFILEV64 1
24177 cat >>confdefs.h <<\_ACEOF
24178 #define SOLARIS_SENDFILE_API 1
24182 cat >>confdefs.h <<\_ACEOF
24183 #define WITH_SENDFILE 1
24187 echo "$as_me:$LINENO: result: no" >&5
24188 echo "${ECHO_T}no" >&6;
24191 echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
24192 echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
24193 if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
24194 echo $ECHO_N "(cached) $ECHO_C" >&6
24197 cat >conftest.$ac_ext <<_ACEOF
24198 #line $LINENO "configure"
24199 #include "confdefs.h"
24201 #include <sys/sendfile.h>
24202 #ifdef F77_DUMMY_MAIN
24203 # ifdef __cplusplus
24206 int F77_DUMMY_MAIN() { return 1; }
24214 struct sendfilevec vec[2];
24220 vec[0].sfv_fd = SFV_FD_SELF;
24221 vec[0].sfv_flag = 0;
24222 vec[0].sfv_off = 0;
24223 vec[0].sfv_len = 0;
24226 vec[1].sfv_flag = 0;
24227 vec[1].sfv_off = 0;
24228 vec[1].sfv_len = 0;
24229 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
24235 rm -f conftest.$ac_objext conftest$ac_exeext
24236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24237 (eval $ac_link) 2>&5
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); } &&
24241 { ac_try='test -s conftest$ac_exeext'
24242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243 (eval $ac_try) 2>&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; }; then
24247 samba_cv_HAVE_SENDFILEV=yes
24249 echo "$as_me: failed program was:" >&5
24250 cat conftest.$ac_ext >&5
24251 samba_cv_HAVE_SENDFILEV=no
24253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24255 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
24256 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
24258 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
24260 cat >>confdefs.h <<\_ACEOF
24261 #define HAVE_SENDFILEV 1
24265 cat >>confdefs.h <<\_ACEOF
24266 #define SOLARIS_SENDFILE_API 1
24270 cat >>confdefs.h <<\_ACEOF
24271 #define WITH_SENDFILE 1
24275 echo "$as_me:$LINENO: result: no" >&5
24276 echo "${ECHO_T}no" >&6;
24285 echo "$as_me:$LINENO: result: no" >&5
24286 echo "${ECHO_T}no" >&6
24290 echo "$as_me:$LINENO: result: yes" >&5
24291 echo "${ECHO_T}yes" >&6
24296 #################################################
24297 # Check whether winbind is supported on this platform. If so we need to
24298 # build and install client programs (WINBIND_TARGETS), sbin programs
24299 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
24301 echo "$as_me:$LINENO: checking whether to build winbind" >&5
24302 echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
24304 # Initially, the value of $host_os decides whether winbind is supported
24312 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
24313 WINBIND_NSS_EXTRA_LIBS="-lsocket"
24317 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
24321 winbind_no_reason=", unsupported on $host_os"
24325 # Check the setting of --with-winbindd
24328 # Check whether --with-winbind or --without-winbind was given.
24329 if test "${with_winbind+set}" = set; then
24330 withval="$with_winbind"
24343 # We need unix domain sockets for winbind
24345 if test x"$HAVE_WINBIND" = x"yes"; then
24346 if test x"$samba_cv_unixsocket" = x"no"; then
24347 winbind_no_reason=", no unix domain socket support on $host_os"
24352 # Display test results
24355 WINBIND_STARGETS=""
24356 WINBIND_LTARGETS=""
24357 WINBIND_PAM_PROGS=""
24359 if test x"$HAVE_WINBIND" = x"yes"; then
24360 echo "$as_me:$LINENO: result: yes" >&5
24361 echo "${ECHO_T}yes" >&6
24363 cat >>confdefs.h <<\_ACEOF
24364 #define WITH_WINBIND 1
24368 WINBIND_TARGETS="bin/wbinfo"
24369 WINBIND_STARGETS="bin/winbindd"
24370 if test x"$BLDSHARED" = x"true"; then
24371 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
24372 if test x"$with_pam" = x"yes"; then
24373 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
24377 echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
24378 echo "${ECHO_T}no$winbind_no_reason" >&6
24382 # Substitution time!
24391 # Solaris has some extra fields in struct passwd that need to be
24392 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
24393 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
24396 #AC_CHECK_MEMBER(struct passwd.pw_comment,
24397 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
24398 # [#include <pwd.h>])
24400 echo "$as_me:$LINENO: checking whether struct passwd has pw_comment" >&5
24401 echo $ECHO_N "checking whether struct passwd has pw_comment... $ECHO_C" >&6
24402 if test "${samba_cv_passwd_pw_comment+set}" = set; then
24403 echo $ECHO_N "(cached) $ECHO_C" >&6
24406 cat >conftest.$ac_ext <<_ACEOF
24407 #line $LINENO "configure"
24408 #include "confdefs.h"
24410 #ifdef F77_DUMMY_MAIN
24411 # ifdef __cplusplus
24414 int F77_DUMMY_MAIN() { return 1; }
24419 struct passwd p; p.pw_comment;
24424 rm -f conftest.$ac_objext
24425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24426 (eval $ac_compile) 2>&5
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); } &&
24430 { ac_try='test -s conftest.$ac_objext'
24431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24432 (eval $ac_try) 2>&5
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); }; }; then
24436 samba_cv_passwd_pw_comment=yes
24438 echo "$as_me: failed program was:" >&5
24439 cat conftest.$ac_ext >&5
24440 samba_cv_passwd_pw_comment=no
24442 rm -f conftest.$ac_objext conftest.$ac_ext
24444 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_comment" >&5
24445 echo "${ECHO_T}$samba_cv_passwd_pw_comment" >&6
24446 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
24448 cat >>confdefs.h <<\_ACEOF
24449 #define HAVE_PASSWD_PW_COMMENT 1
24454 #AC_CHECK_MEMBER(struct passwd.pw_age,
24455 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
24456 # [#include <pwd.h>])
24458 echo "$as_me:$LINENO: checking whether struct passwd has pw_age" >&5
24459 echo $ECHO_N "checking whether struct passwd has pw_age... $ECHO_C" >&6
24460 if test "${samba_cv_passwd_pw_age+set}" = set; then
24461 echo $ECHO_N "(cached) $ECHO_C" >&6
24464 cat >conftest.$ac_ext <<_ACEOF
24465 #line $LINENO "configure"
24466 #include "confdefs.h"
24468 #ifdef F77_DUMMY_MAIN
24469 # ifdef __cplusplus
24472 int F77_DUMMY_MAIN() { return 1; }
24477 struct passwd p; p.pw_age;
24482 rm -f conftest.$ac_objext
24483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24484 (eval $ac_compile) 2>&5
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); } &&
24488 { ac_try='test -s conftest.$ac_objext'
24489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24490 (eval $ac_try) 2>&5
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); }; }; then
24494 samba_cv_passwd_pw_age=yes
24496 echo "$as_me: failed program was:" >&5
24497 cat conftest.$ac_ext >&5
24498 samba_cv_passwd_pw_age=no
24500 rm -f conftest.$ac_objext conftest.$ac_ext
24502 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_age" >&5
24503 echo "${ECHO_T}$samba_cv_passwd_pw_age" >&6
24504 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
24506 cat >>confdefs.h <<\_ACEOF
24507 #define HAVE_PASSWD_PW_AGE 1
24512 #################################################
24513 # Check to see if we should use the included popt
24516 # Check whether --with-included-popt or --without-included-popt was given.
24517 if test "${with_included_popt+set}" = set; then
24518 withval="$with_included_popt"
24529 if test x"$INCLUDED_POPT" != x"yes"; then
24530 echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
24531 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
24532 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
24533 echo $ECHO_N "(cached) $ECHO_C" >&6
24535 ac_check_lib_save_LIBS=$LIBS
24536 LIBS="-lpopt $LIBS"
24537 cat >conftest.$ac_ext <<_ACEOF
24538 #line $LINENO "configure"
24539 #include "confdefs.h"
24541 /* Override any gcc2 internal prototype to avoid an error. */
24545 /* We use char because int might match the return type of a gcc2
24546 builtin and then its argument prototype would still apply. */
24547 char poptGetContext ();
24548 #ifdef F77_DUMMY_MAIN
24549 # ifdef __cplusplus
24552 int F77_DUMMY_MAIN() { return 1; }
24562 rm -f conftest.$ac_objext conftest$ac_exeext
24563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24564 (eval $ac_link) 2>&5
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); } &&
24568 { ac_try='test -s conftest$ac_exeext'
24569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570 (eval $ac_try) 2>&5
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); }; }; then
24574 ac_cv_lib_popt_poptGetContext=yes
24576 echo "$as_me: failed program was:" >&5
24577 cat conftest.$ac_ext >&5
24578 ac_cv_lib_popt_poptGetContext=no
24580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24581 LIBS=$ac_check_lib_save_LIBS
24583 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
24584 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
24585 if test $ac_cv_lib_popt_poptGetContext = yes; then
24593 echo "$as_me:$LINENO: checking whether to use included popt" >&5
24594 echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
24595 if test x"$INCLUDED_POPT" = x"yes"; then
24596 echo "$as_me:$LINENO: result: yes" >&5
24597 echo "${ECHO_T}yes" >&6
24598 BUILD_POPT='$(POPT_OBJS)'
24599 FLAGS1="-I$srcdir/popt"
24601 echo "$as_me:$LINENO: result: no" >&5
24602 echo "${ECHO_T}no" >&6
24603 LIBS="$LIBS -lpopt"
24608 #################################################
24609 # Check if the user wants Python
24611 # At the moment, you can use this to set which Python binary to link
24612 # against. (Libraries built for Python2.2 can't be used by 2.1,
24613 # though they can coexist in different directories.) In the future
24614 # this might make the Python stuff be built by default.
24617 # Check whether --with-python or --without-python was given.
24618 if test "${with_python+set}" = set; then
24619 withval="$with_python"
24620 case "${withval-python}" in
24625 PYTHON=${withval-python}
24631 #################################################
24632 # do extra things if we are running insure
24634 if test "${ac_cv_prog_CC}" = "insure"; then
24635 CPPFLAGS="$CPPFLAGS -D__INSURE__"
24638 #################################################
24639 # final configure stuff
24641 echo "$as_me:$LINENO: checking configure summary" >&5
24642 echo $ECHO_N "checking configure summary... $ECHO_C" >&6
24643 if test "$cross_compiling" = yes; then
24644 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
24645 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
24647 cat >conftest.$ac_ext <<_ACEOF
24648 #line $LINENO "configure"
24649 #include "confdefs.h"
24650 #include "${srcdir-.}/tests/summary.c"
24652 rm -f conftest$ac_exeext
24653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24654 (eval $ac_link) 2>&5
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659 (eval $ac_try) 2>&5
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; }; then
24663 echo "$as_me:$LINENO: result: yes" >&5
24664 echo "${ECHO_T}yes" >&6
24666 echo "$as_me: program exited with status $ac_status" >&5
24667 echo "$as_me: failed program was:" >&5
24668 cat conftest.$ac_ext >&5
24669 ( exit $ac_status )
24670 { { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
24671 echo "$as_me: error: summary failure. Aborting config" >&2;}
24672 { (exit 1); exit 1; }; }; exit 1;
24674 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24680 # I added make files that are outside /source directory.
24681 # I know this is not a good solution, will work out a better
24682 # solution soon. --simo
24683 ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb ../examples/sam/Makefile"
24684 cat >confcache <<\_ACEOF
24685 # This file is a shell script that caches the results of configure
24686 # tests run on this system so they can be shared between configure
24687 # scripts and configure runs, see configure's option --config-cache.
24688 # It is not useful on other systems. If it contains results you don't
24689 # want to keep, you may remove or edit it.
24691 # config.status only pays attention to the cache file if you give it
24692 # the --recheck option to rerun configure.
24694 # `ac_cv_env_foo' variables (set or unset) will be overriden when
24695 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24696 # following values.
24700 # The following way of writing the cache mishandles newlines in values,
24701 # but we know of no workaround that is simple, portable, and efficient.
24702 # So, don't put newlines in cache variables' values.
24703 # Ultrix sh set writes to stderr and can't be redirected directly,
24704 # and sets the high bit in the cache file unless we assign to the vars.
24707 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24709 # `set' does not quote correctly, so add quotes (double-quote
24710 # substitution turns \\\\ into \\, and sed turns \\ into \).
24713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24716 # `set' quotes correctly as required by POSIX, so do not add quotes.
24718 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24725 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24727 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24729 if cmp -s $cache_file confcache; then :; else
24730 if test -w $cache_file; then
24731 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24732 cat confcache >$cache_file
24734 echo "not updating unwritable cache $cache_file"
24739 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24740 # Let make expand exec_prefix.
24741 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24743 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24744 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24745 # trailing colons and then remove the whole line if VPATH becomes empty
24746 # (actually we leave an empty line to preserve line numbers).
24747 if test "x$srcdir" = x.; then
24748 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24749 s/:*\$(srcdir):*/:/;
24750 s/:*\${srcdir}:*/:/;
24752 s/^\([^=]*=[ ]*\):*/\1/;
24758 DEFS=-DHAVE_CONFIG_H
24761 : ${CONFIG_STATUS=./config.status}
24762 ac_clean_files_save=$ac_clean_files
24763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24764 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24765 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24766 cat >$CONFIG_STATUS <<_ACEOF
24768 # Generated by $as_me.
24769 # Run this file to recreate the current configuration.
24770 # Compiler output produced by configure, useful for debugging
24771 # configure, is in config.log if it exists.
24774 SHELL=\${CONFIG_SHELL-$SHELL}
24777 cat >>$CONFIG_STATUS <<\_ACEOF
24779 ## --------------------- ##
24780 ## M4sh Initialization. ##
24781 ## --------------------- ##
24783 # Be Bourne compatible
24784 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24787 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24792 # Support unset when possible.
24793 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24799 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
24800 { $as_unset LANG || test "${LANG+set}" != set; } ||
24801 { LANG=C; export LANG; }
24802 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
24803 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
24804 { LC_ALL=C; export LC_ALL; }
24805 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
24806 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
24807 { LC_TIME=C; export LC_TIME; }
24808 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
24809 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
24810 { LC_CTYPE=C; export LC_CTYPE; }
24811 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
24812 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
24813 { LANGUAGE=C; export LANGUAGE; }
24814 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
24815 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
24816 { LC_COLLATE=C; export LC_COLLATE; }
24817 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
24818 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
24819 { LC_NUMERIC=C; export LC_NUMERIC; }
24820 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
24821 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
24822 { LC_MESSAGES=C; export LC_MESSAGES; }
24825 # Name of the executable.
24826 as_me=`(basename "$0") 2>/dev/null ||
24827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24828 X"$0" : 'X\(//\)$' \| \
24829 X"$0" : 'X\(/\)$' \| \
24830 . : '\(.\)' 2>/dev/null ||
24832 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24833 /^X\/\(\/\/\)$/{ s//\1/; q; }
24834 /^X\/\(\/\).*/{ s//\1/; q; }
24837 # PATH needs CR, and LINENO needs CR and PATH.
24838 # Avoid depending upon Character Ranges.
24839 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24840 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24841 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24842 as_cr_digits='0123456789'
24843 as_cr_alnum=$as_cr_Letters$as_cr_digits
24845 # The user is always right.
24846 if test "${PATH_SEPARATOR+set}" != set; then
24847 echo "#! /bin/sh" >conftest.sh
24848 echo "exit 0" >>conftest.sh
24849 chmod +x conftest.sh
24850 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
24859 as_lineno_1=$LINENO
24860 as_lineno_2=$LINENO
24861 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24862 test "x$as_lineno_1" != "x$as_lineno_2" &&
24863 test "x$as_lineno_3" = "x$as_lineno_2" || {
24864 # Find who we are. Look in the path if we contain no path at all
24867 *[\\/]* ) as_myself=$0 ;;
24868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24869 for as_dir in $PATH
24872 test -z "$as_dir" && as_dir=.
24873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24878 # We did not find ourselves, most probably we were run as `sh COMMAND'
24879 # in which case we are not to be found in the path.
24880 if test "x$as_myself" = x; then
24883 if test ! -f "$as_myself"; then
24884 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24885 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24886 { (exit 1); exit 1; }; }
24888 case $CONFIG_SHELL in
24890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24891 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24894 test -z "$as_dir" && as_dir=.
24895 for as_base in sh bash ksh sh5; do
24898 if ("$as_dir/$as_base" -c '
24899 as_lineno_1=$LINENO
24900 as_lineno_2=$LINENO
24901 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24902 test "x$as_lineno_1" != "x$as_lineno_2" &&
24903 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24904 CONFIG_SHELL=$as_dir/$as_base
24905 export CONFIG_SHELL
24906 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24914 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24915 # uniformly replaced by the line number. The first 'sed' inserts a
24916 # line-number line before each line; the second 'sed' does the real
24917 # work. The second script uses 'N' to pair each line-number line
24918 # with the numbered line, and appends trailing '-' during
24919 # substitution so that $LINENO is not a special case at line end.
24920 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24921 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24922 sed '=' <$as_myself |
24927 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24930 s,^['$as_cr_digits']*\n,,
24931 ' >$as_me.lineno &&
24932 chmod +x $as_me.lineno ||
24933 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24934 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24935 { (exit 1); exit 1; }; }
24937 # Don't try to exec as it changes $[0], causing all sort of problems
24938 # (the dirname of $[0] is not the place where we might find the
24939 # original and so on. Autoconf is especially sensible to this).
24941 # Exit status is that of the last command.
24946 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24947 *c*,-n*) ECHO_N= ECHO_C='
24949 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24950 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24953 if expr a : '\(a\)' >/dev/null 2>&1; then
24959 rm -f conf$$ conf$$.exe conf$$.file
24961 if ln -s conf$$.file conf$$ 2>/dev/null; then
24962 # We could just check for DJGPP; but this test a) works b) is more generic
24963 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24964 if test -f conf$$.exe; then
24965 # Don't use ln at all; we don't have any links
24970 elif ln conf$$.file conf$$ 2>/dev/null; then
24975 rm -f conf$$ conf$$.exe conf$$.file
24977 as_executable_p="test -f"
24979 # Sed expression to map a string onto a valid CPP name.
24980 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24982 # Sed expression to map a string onto a valid variable name.
24983 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24987 # We need space, tab and new line, in precisely that order.
24993 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
24997 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24998 # report actual input values of CONFIG_FILES etc. instead of their
24999 # values after options handling. Logging --version etc. is OK.
25003 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25004 ## Running $as_me. ##
25009 This file was extended by $as_me, which was
25010 generated by GNU Autoconf 2.53. Invocation command line was
25012 CONFIG_FILES = $CONFIG_FILES
25013 CONFIG_HEADERS = $CONFIG_HEADERS
25014 CONFIG_LINKS = $CONFIG_LINKS
25015 CONFIG_COMMANDS = $CONFIG_COMMANDS
25019 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25023 # Files that config.status was made for.
25024 if test -n "$ac_config_files"; then
25025 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25028 if test -n "$ac_config_headers"; then
25029 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25032 if test -n "$ac_config_links"; then
25033 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25036 if test -n "$ac_config_commands"; then
25037 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25040 cat >>$CONFIG_STATUS <<\_ACEOF
25043 \`$as_me' instantiates files from templates according to the
25044 current configuration.
25046 Usage: $0 [OPTIONS] [FILE]...
25048 -h, --help print this help, then exit
25049 -V, --version print version number, then exit
25050 -d, --debug don't remove temporary files
25051 --recheck update $as_me by reconfiguring in the same conditions
25052 --file=FILE[:TEMPLATE]
25053 instantiate the configuration file FILE
25054 --header=FILE[:TEMPLATE]
25055 instantiate the configuration header FILE
25057 Configuration files:
25060 Configuration headers:
25063 Report bugs to <bug-autoconf@gnu.org>."
25066 cat >>$CONFIG_STATUS <<_ACEOF
25069 configured by $0, generated by GNU Autoconf 2.53,
25070 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25072 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25073 Free Software Foundation, Inc.
25074 This config.status script is free software; the Free Software Foundation
25075 gives unlimited permission to copy, distribute and modify it."
25080 cat >>$CONFIG_STATUS <<\_ACEOF
25081 # If no file are specified by the user, then we need to provide default
25082 # value. By we need to know if files were specified by the user.
25088 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25089 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25091 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
25095 *) # This is not an option, so the user has probably given explicit
25097 ac_need_defaults=false;;
25101 # Handling of the options.
25103 cat >>$CONFIG_STATUS <<_ACEOF
25104 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25105 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25106 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25108 cat >>$CONFIG_STATUS <<\_ACEOF
25109 --version | --vers* | -V )
25110 echo "$ac_cs_version"; exit 0 ;;
25112 # Conflict between --help and --header
25113 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25114 Try \`$0 --help' for more information." >&5
25115 echo "$as_me: error: ambiguous option: $1
25116 Try \`$0 --help' for more information." >&2;}
25117 { (exit 1); exit 1; }; };;
25118 --help | --hel | -h )
25119 echo "$ac_cs_usage"; exit 0 ;;
25120 --debug | --d* | -d )
25122 --file | --fil | --fi | --f )
25124 CONFIG_FILES="$CONFIG_FILES $1"
25125 ac_need_defaults=false;;
25126 --header | --heade | --head | --hea )
25128 CONFIG_HEADERS="$CONFIG_HEADERS $1"
25129 ac_need_defaults=false;;
25131 # This is an error.
25132 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25133 Try \`$0 --help' for more information." >&5
25134 echo "$as_me: error: unrecognized option: $1
25135 Try \`$0 --help' for more information." >&2;}
25136 { (exit 1); exit 1; }; } ;;
25138 *) ac_config_targets="$ac_config_targets $1" ;;
25150 cat >>$CONFIG_STATUS <<\_ACEOF
25151 for ac_config_target in $ac_config_targets
25153 case "$ac_config_target" in
25154 # Handling of arguments.
25155 "include/stamp-h" ) CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
25156 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25157 "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
25158 "../examples/sam/Makefile" ) CONFIG_FILES="$CONFIG_FILES ../examples/sam/Makefile" ;;
25159 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25160 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25161 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25162 { (exit 1); exit 1; }; };;
25166 # If the user did not use the arguments to specify the items to instantiate,
25167 # then the envvar interface is used. Set only those that are not.
25168 # We use the long form for the default assignment because of an extremely
25169 # bizarre bug on SunOS 4.1.3.
25170 if $ac_need_defaults; then
25171 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25172 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25175 # Create a temporary directory, and hook for its removal unless debugging.
25178 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25179 trap '{ (exit 1); exit 1; }' 1 2 13 15
25182 # Create a (secure) tmp directory for tmp files.
25185 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25186 test -n "$tmp" && test -d "$tmp"
25189 tmp=$TMPDIR/cs$$-$RANDOM
25190 (umask 077 && mkdir $tmp)
25193 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25194 { (exit 1); exit 1; }
25199 cat >>$CONFIG_STATUS <<_ACEOF
25202 # CONFIG_FILES section.
25205 # No need to generate the scripts if there are no CONFIG_FILES.
25206 # This happens for instance when ./config.status config.h
25207 if test -n "\$CONFIG_FILES"; then
25208 # Protect against being on the right side of a sed subst in config.status.
25209 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25210 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25211 s,@SHELL@,$SHELL,;t t
25212 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25213 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25214 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25215 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25216 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25217 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25218 s,@exec_prefix@,$exec_prefix,;t t
25219 s,@prefix@,$prefix,;t t
25220 s,@program_transform_name@,$program_transform_name,;t t
25221 s,@bindir@,$bindir,;t t
25222 s,@sbindir@,$sbindir,;t t
25223 s,@libexecdir@,$libexecdir,;t t
25224 s,@datadir@,$datadir,;t t
25225 s,@sysconfdir@,$sysconfdir,;t t
25226 s,@sharedstatedir@,$sharedstatedir,;t t
25227 s,@localstatedir@,$localstatedir,;t t
25228 s,@libdir@,$libdir,;t t
25229 s,@includedir@,$includedir,;t t
25230 s,@oldincludedir@,$oldincludedir,;t t
25231 s,@infodir@,$infodir,;t t
25232 s,@mandir@,$mandir,;t t
25233 s,@build_alias@,$build_alias,;t t
25234 s,@host_alias@,$host_alias,;t t
25235 s,@target_alias@,$target_alias,;t t
25236 s,@DEFS@,$DEFS,;t t
25237 s,@ECHO_C@,$ECHO_C,;t t
25238 s,@ECHO_N@,$ECHO_N,;t t
25239 s,@ECHO_T@,$ECHO_T,;t t
25240 s,@LIBS@,$LIBS,;t t
25241 s,@configdir@,$configdir,;t t
25242 s,@lockdir@,$lockdir,;t t
25243 s,@piddir@,$piddir,;t t
25244 s,@logfilebase@,$logfilebase,;t t
25245 s,@privatedir@,$privatedir,;t t
25246 s,@swatdir@,$swatdir,;t t
25247 s,@RUNPROG@,$RUNPROG,;t t
25248 s,@MPROGS@,$MPROGS,;t t
25249 s,@LDSHFLAGS@,$LDSHFLAGS,;t t
25250 s,@SONAMEFLAG@,$SONAMEFLAG,;t t
25251 s,@SHLD@,$SHLD,;t t
25252 s,@HOST_OS@,$HOST_OS,;t t
25253 s,@PAM_MOD@,$PAM_MOD,;t t
25254 s,@WRAP@,$WRAP,;t t
25255 s,@WRAP32@,$WRAP32,;t t
25256 s,@WRAPPROG@,$WRAPPROG,;t t
25257 s,@PICFLAG@,$PICFLAG,;t t
25258 s,@PICSUFFIX@,$PICSUFFIX,;t t
25259 s,@POBAD_CC@,$POBAD_CC,;t t
25260 s,@SHLIBEXT@,$SHLIBEXT,;t t
25261 s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
25262 s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
25263 s,@PRINTLIBS@,$PRINTLIBS,;t t
25264 s,@AUTHLIBS@,$AUTHLIBS,;t t
25266 s,@CFLAGS@,$CFLAGS,;t t
25267 s,@LDFLAGS@,$LDFLAGS,;t t
25268 s,@CPPFLAGS@,$CPPFLAGS,;t t
25269 s,@ac_ct_CC@,$ac_ct_CC,;t t
25270 s,@EXEEXT@,$EXEEXT,;t t
25271 s,@OBJEXT@,$OBJEXT,;t t
25272 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25273 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25274 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25276 s,@BROKEN_CC@,$BROKEN_CC,;t t
25277 s,@build@,$build,;t t
25278 s,@build_cpu@,$build_cpu,;t t
25279 s,@build_vendor@,$build_vendor,;t t
25280 s,@build_os@,$build_os,;t t
25281 s,@host@,$host,;t t
25282 s,@host_cpu@,$host_cpu,;t t
25283 s,@host_vendor@,$host_vendor,;t t
25284 s,@host_os@,$host_os,;t t
25285 s,@target@,$target,;t t
25286 s,@target_cpu@,$target_cpu,;t t
25287 s,@target_vendor@,$target_vendor,;t t
25288 s,@target_os@,$target_os,;t t
25290 s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
25291 s,@LIBOBJS@,$LIBOBJS,;t t
25292 s,@TERMLIBS@,$TERMLIBS,;t t
25293 s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
25294 s,@ROFF@,$ROFF,;t t
25295 s,@DYNEXP@,$DYNEXP,;t t
25296 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
25297 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
25298 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
25299 s,@MODULE_MYSQL@,$MODULE_MYSQL,;t t
25300 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
25301 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
25302 s,@XML_LIBS@,$XML_LIBS,;t t
25303 s,@MODULE_XML@,$MODULE_XML,;t t
25304 s,@QUOTAOBJS@,$QUOTAOBJS,;t t
25305 s,@manlangs@,$manlangs,;t t
25306 s,@WINBIND_TARGETS@,$WINBIND_TARGETS,;t t
25307 s,@WINBIND_STARGETS@,$WINBIND_STARGETS,;t t
25308 s,@WINBIND_LTARGETS@,$WINBIND_LTARGETS,;t t
25309 s,@WINBIND_PAM_TARGETS@,$WINBIND_PAM_TARGETS,;t t
25310 s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
25311 s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
25312 s,@BUILD_POPT@,$BUILD_POPT,;t t
25313 s,@FLAGS1@,$FLAGS1,;t t
25314 s,@PYTHON@,$PYTHON,;t t
25315 s,@builddir@,$builddir,;t t
25320 cat >>$CONFIG_STATUS <<\_ACEOF
25321 # Split the substitutions into bite-sized pieces for seds with
25322 # small command number limits, like on Digital OSF/1 and HP-UX.
25323 ac_max_sed_lines=48
25324 ac_sed_frag=1 # Number of current file.
25325 ac_beg=1 # First line for current file.
25326 ac_end=$ac_max_sed_lines # Line after last line for current file.
25329 while $ac_more_lines; do
25330 if test $ac_beg -gt 1; then
25331 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25333 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25335 if test ! -s $tmp/subs.frag; then
25336 ac_more_lines=false
25338 # The purpose of the label and of the branching condition is to
25339 # speed up the sed processing (if there are no `@' at all, there
25340 # is no need to browse any of the substitutions).
25341 # These are the two extra sed commands mentioned above.
25343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25344 if test -z "$ac_sed_cmds"; then
25345 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25347 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25349 ac_sed_frag=`expr $ac_sed_frag + 1`
25351 ac_end=`expr $ac_end + $ac_max_sed_lines`
25354 if test -z "$ac_sed_cmds"; then
25357 fi # test -n "$CONFIG_FILES"
25360 cat >>$CONFIG_STATUS <<\_ACEOF
25361 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25362 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25364 - | *:- | *:-:* ) # input from stdin
25366 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25367 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25368 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25369 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25370 * ) ac_file_in=$ac_file.in ;;
25373 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25374 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25376 X"$ac_file" : 'X\(//\)[^/]' \| \
25377 X"$ac_file" : 'X\(//\)$' \| \
25378 X"$ac_file" : 'X\(/\)' \| \
25379 . : '\(.\)' 2>/dev/null ||
25381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25383 /^X\(\/\/\)$/{ s//\1/; q; }
25384 /^X\(\/\).*/{ s//\1/; q; }
25386 { case "$ac_dir" in
25387 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25391 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25392 case $as_mkdir_dir in
25393 # Skip DOS drivespec
25394 ?:) as_incr_dir=$as_mkdir_dir ;;
25396 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25397 test -d "$as_incr_dir" ||
25398 mkdir "$as_incr_dir" ||
25399 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25400 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25401 { (exit 1); exit 1; }; }
25408 if test "$ac_dir" != .; then
25409 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25410 # A "../" for each directory in $ac_dir_suffix.
25411 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25413 ac_dir_suffix= ac_top_builddir=
25417 .) # No --srcdir option. We are building in place.
25419 if test -z "$ac_top_builddir"; then
25422 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25424 [\\/]* | ?:[\\/]* ) # Absolute path.
25425 ac_srcdir=$srcdir$ac_dir_suffix;
25426 ac_top_srcdir=$srcdir ;;
25427 *) # Relative path.
25428 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25429 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25431 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25433 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25434 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
25435 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25436 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25440 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25441 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25444 if test x"$ac_file" != x-; then
25445 { echo "$as_me:$LINENO: creating $ac_file" >&5
25446 echo "$as_me: creating $ac_file" >&6;}
25449 # Let's still pretend it is `configure' which instantiates (i.e., don't
25450 # use $as_me), people would be surprised to read:
25451 # /* config.h. Generated by config.status. */
25452 if test x"$ac_file" = x-; then
25455 configure_input="$ac_file. "
25457 configure_input=$configure_input"Generated from `echo $ac_file_in |
25458 sed 's,.*/,,'` by configure."
25460 # First look for the input files in the build tree, otherwise in the
25462 ac_file_inputs=`IFS=:
25463 for f in $ac_file_in; do
25465 -) echo $tmp/stdin ;;
25467 # Absolute (can't be DOS-style, as IFS=:)
25468 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25469 echo "$as_me: error: cannot find input file: $f" >&2;}
25470 { (exit 1); exit 1; }; }
25473 if test -f "$f"; then
25476 elif test -f "$srcdir/$f"; then
25481 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25482 echo "$as_me: error: cannot find input file: $f" >&2;}
25483 { (exit 1); exit 1; }; }
25486 done` || { (exit 1); exit 1; }
25488 cat >>$CONFIG_STATUS <<_ACEOF
25492 cat >>$CONFIG_STATUS <<\_ACEOF
25494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25495 s,@configure_input@,$configure_input,;t t
25496 s,@srcdir@,$ac_srcdir,;t t
25497 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25498 s,@top_srcdir@,$ac_top_srcdir,;t t
25499 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25500 s,@builddir@,$ac_builddir,;t t
25501 s,@abs_builddir@,$ac_abs_builddir,;t t
25502 s,@top_builddir@,$ac_top_builddir,;t t
25503 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25504 s,@INSTALL@,$ac_INSTALL,;t t
25505 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25507 if test x"$ac_file" != x-; then
25508 mv $tmp/out $ac_file
25516 cat >>$CONFIG_STATUS <<\_ACEOF
25519 # CONFIG_HEADER section.
25522 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25523 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25525 # ac_d sets the value in "#define NAME VALUE" lines.
25526 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25527 ac_dB='[ ].*$,\1#\2'
25530 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25531 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25532 ac_uB='$,\1#\2define\3'
25536 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25537 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25539 - | *:- | *:-:* ) # input from stdin
25541 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25542 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25543 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25544 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25545 * ) ac_file_in=$ac_file.in ;;
25548 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25549 echo "$as_me: creating $ac_file" >&6;}
25551 # First look for the input files in the build tree, otherwise in the
25553 ac_file_inputs=`IFS=:
25554 for f in $ac_file_in; do
25556 -) echo $tmp/stdin ;;
25558 # Absolute (can't be DOS-style, as IFS=:)
25559 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25560 echo "$as_me: error: cannot find input file: $f" >&2;}
25561 { (exit 1); exit 1; }; }
25564 if test -f "$f"; then
25567 elif test -f "$srcdir/$f"; then
25572 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25573 echo "$as_me: error: cannot find input file: $f" >&2;}
25574 { (exit 1); exit 1; }; }
25577 done` || { (exit 1); exit 1; }
25578 # Remove the trailing spaces.
25579 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25583 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25584 # `conftest.undefs', that substitutes the proper values into
25585 # config.h.in to produce config.h. The first handles `#define'
25586 # templates, and the second `#undef' templates.
25587 # And first: Protect against being on the right side of a sed subst in
25588 # config.status. Protect against being in an unquoted here document
25589 # in config.status.
25590 rm -f conftest.defines conftest.undefs
25591 # Using a here document instead of a string reduces the quoting nightmare.
25592 # Putting comments in sed scripts is not portable.
25594 # `end' is used to avoid that the second main sed command (meant for
25595 # 0-ary CPP macros) applies to n-ary macro definitions.
25596 # See the Autoconf documentation for `clear'.
25597 cat >confdef2sed.sed <<\_ACEOF
25602 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25604 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25607 # If some macros were called several times there might be several times
25608 # the same #defines, which is useless. Nevertheless, we may not want to
25609 # sort them, since we want the *last* AC-DEFINE to be honored.
25610 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25611 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25612 rm -f confdef2sed.sed
25614 # This sed command replaces #undef with comments. This is necessary, for
25615 # example, in the case of _POSIX_SOURCE, which is predefined and required
25616 # on some systems where configure will not decide to define it.
25617 cat >>conftest.undefs <<\_ACEOF
25618 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25621 # Break up conftest.defines because some shells have a limit on the size
25622 # of here documents, and old seds have small limits too (100 cmds).
25623 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25624 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25625 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25626 echo ' :' >>$CONFIG_STATUS
25627 rm -f conftest.tail
25628 while grep . conftest.defines >/dev/null
25630 # Write a limited-size here document to $tmp/defines.sed.
25631 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25632 # Speed up: don't consider the non `#define' lines.
25633 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25634 # Work around the forget-to-reset-the-flag bug.
25635 echo 't clr' >>$CONFIG_STATUS
25636 echo ': clr' >>$CONFIG_STATUS
25637 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25639 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25641 mv $tmp/out $tmp/in
25643 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25644 rm -f conftest.defines
25645 mv conftest.tail conftest.defines
25647 rm -f conftest.defines
25648 echo ' fi # egrep' >>$CONFIG_STATUS
25649 echo >>$CONFIG_STATUS
25651 # Break up conftest.undefs because some shells have a limit on the size
25652 # of here documents, and old seds have small limits too (100 cmds).
25653 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25654 rm -f conftest.tail
25655 while grep . conftest.undefs >/dev/null
25657 # Write a limited-size here document to $tmp/undefs.sed.
25658 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25659 # Speed up: don't consider the non `#undef'
25660 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25661 # Work around the forget-to-reset-the-flag bug.
25662 echo 't clr' >>$CONFIG_STATUS
25663 echo ': clr' >>$CONFIG_STATUS
25664 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25666 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25668 mv $tmp/out $tmp/in
25670 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25671 rm -f conftest.undefs
25672 mv conftest.tail conftest.undefs
25674 rm -f conftest.undefs
25676 cat >>$CONFIG_STATUS <<\_ACEOF
25677 # Let's still pretend it is `configure' which instantiates (i.e., don't
25678 # use $as_me), people would be surprised to read:
25679 # /* config.h. Generated by config.status. */
25680 if test x"$ac_file" = x-; then
25681 echo "/* Generated by configure. */" >$tmp/config.h
25683 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25685 cat $tmp/in >>$tmp/config.h
25687 if test x"$ac_file" != x-; then
25688 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
25689 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25690 echo "$as_me: $ac_file is unchanged" >&6;}
25692 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25694 X"$ac_file" : 'X\(//\)[^/]' \| \
25695 X"$ac_file" : 'X\(//\)$' \| \
25696 X"$ac_file" : 'X\(/\)' \| \
25697 . : '\(.\)' 2>/dev/null ||
25699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25701 /^X\(\/\/\)$/{ s//\1/; q; }
25702 /^X\(\/\).*/{ s//\1/; q; }
25704 { case "$ac_dir" in
25705 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25709 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25710 case $as_mkdir_dir in
25711 # Skip DOS drivespec
25712 ?:) as_incr_dir=$as_mkdir_dir ;;
25714 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25715 test -d "$as_incr_dir" ||
25716 mkdir "$as_incr_dir" ||
25717 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25718 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25719 { (exit 1); exit 1; }; }
25725 mv $tmp/config.h $ac_file
25729 rm -f $tmp/config.h
25734 cat >>$CONFIG_STATUS <<\_ACEOF
25736 { (exit 0); exit 0; }
25738 chmod +x $CONFIG_STATUS
25739 ac_clean_files=$ac_clean_files_save
25742 # configure is writing to config.log, and then calls config.status.
25743 # config.status does its own redirection, appending to config.log.
25744 # Unfortunately, on DOS this fails, as config.log is still kept open
25745 # by configure, so config.status won't be able to write to it; its
25746 # output is simply discarded. So we exec the FD to /dev/null,
25747 # effectively closing config.log, so it can be properly (re)opened and
25748 # appended to by config.status. When coming back to configure, we
25749 # need to make the FD available again.
25750 if test "$no_create" != yes; then
25753 $SHELL $CONFIG_STATUS || ac_cs_success=false
25755 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25756 # would make configure fail if this is the last instruction.
25757 $ac_cs_success || { (exit 1); exit 1; }
25761 #################################################
25762 # Print very concise instructions on building/use
25763 if test "x$enable_dmalloc" = xyes
25765 echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included. To turn it on use" >&5
25766 echo "${ECHO_T}Note: The dmalloc debug library will be included. To turn it on use" >&6
25767 echo "$as_me:$LINENO: result: \$ eval \\`dmalloc samba\\`." >&5
25768 echo "${ECHO_T} \$ eval \\`dmalloc samba\\`." >&6