reran autoconf
[Samba/bb.git] / source3 / configure
blob476fc2bd8a310b911631e450315593e1f5919dbb
1 #! /bin/sh
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
11 as_expr=expr
12 else
13 as_expr=false
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
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 ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; 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
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
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
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
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
119 as_myself=$0
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
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
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
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
149 esac
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 |
160 sed '
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
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).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >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
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
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"
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
226 IFS=" $as_nl"
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232 # Name of the host.
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`
237 exec 6>&1
240 # Initializations.
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
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.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
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="\
265 #include <stdio.h>
266 #if HAVE_SYS_TYPES_H
267 # include <sys/types.h>
268 #endif
269 #if HAVE_SYS_STAT_H
270 # include <sys/stat.h>
271 #endif
272 #if STDC_HEADERS
273 # include <stdlib.h>
274 # include <stddef.h>
275 #else
276 # if HAVE_STDLIB_H
277 # include <stdlib.h>
278 # endif
279 #endif
280 #if HAVE_STRING_H
281 # if !STDC_HEADERS && HAVE_MEMORY_H
282 # include <memory.h>
283 # endif
284 # include <string.h>
285 #endif
286 #if HAVE_STRINGS_H
287 # include <strings.h>
288 #endif
289 #if HAVE_INTTYPES_H
290 # include <inttypes.h>
291 #else
292 # if HAVE_STDINT_H
293 # include <stdint.h>
294 # endif
295 #endif
296 #if HAVE_UNISTD_H
297 # include <unistd.h>
298 #endif"
301 # Initialize some variables set by options.
302 ac_init_help=
303 ac_init_version=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
306 cache_file=/dev/null
307 exec_prefix=NONE
308 no_create=
309 no_recursion=
310 prefix=NONE
311 program_prefix=NONE
312 program_suffix=NONE
313 program_transform_name=s,x,x,
314 silent=
315 site=
316 srcdir=
317 verbose=
318 x_includes=NONE
319 x_libraries=NONE
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'
339 ac_prev=
340 for ac_option
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
345 ac_prev=
346 continue
349 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351 # Accept the important Cygnus configure options, so we can diagnose typos.
353 case $ac_option in
355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 ac_prev=bindir ;;
357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
358 bindir=$ac_optarg ;;
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 ;;
372 --config-cache | -C)
373 cache_file=config.cache ;;
375 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 ac_prev=datadir ;;
377 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 | --da=*)
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'`
397 case $ac_option in
398 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399 *) ac_optarg=yes ;;
400 esac
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.
414 with_gas=yes ;;
416 -help | --help | --hel | --he | -h)
417 ac_init_help=long ;;
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)
436 ac_prev=infodir ;;
437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438 infodir=$ac_optarg ;;
440 -libdir | --libdir | --libdi | --libd)
441 ac_prev=libdir ;;
442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
443 libdir=$ac_optarg ;;
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)
462 ac_prev=mandir ;;
463 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
464 mandir=$ac_optarg ;;
466 -nfp | --nfp | --nf)
467 # Obsolete; use --without-fp.
468 with_fp=no ;;
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c | -n)
472 no_create=yes ;;
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
476 no_recursion=yes ;;
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)
488 ac_prev=prefix ;;
489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
490 prefix=$ac_optarg ;;
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)
525 silent=yes ;;
527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 ac_prev=sbindir ;;
529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 | --sbi=* | --sb=*)
531 sbindir=$ac_optarg ;;
533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535 | --sharedst | --shareds | --shared | --share | --shar \
536 | --sha | --sh)
537 ac_prev=sharedstatedir ;;
538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 | --sha=* | --sh=*)
542 sharedstatedir=$ac_optarg ;;
544 -site | --site | --sit)
545 ac_prev=site ;;
546 -site=* | --site=* | --sit=*)
547 site=$ac_optarg ;;
549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 ac_prev=srcdir ;;
551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
552 srcdir=$ac_optarg ;;
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)
567 verbose=yes ;;
569 -version | --version | --versio | --versi | --vers | -V)
570 ac_init_version=: ;;
572 -with-* | --with-*)
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'`
579 case $ac_option in
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581 *) ac_optarg=yes ;;
582 esac
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" ;;
594 --x)
595 # Obsolete; use --with-x.
596 with_x=yes ;;
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; }; }
617 *=*)
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'"
625 export $ac_envvar ;;
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}
635 esac
636 done
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`
648 case $ac_val in
649 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
650 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651 { (exit 1); exit 1; }; };;
652 esac
653 done
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`
660 case $ac_val in
661 [\\/$]* | ?:[\\/]* ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
664 esac
665 done
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.
670 build=$build_alias
671 host=$host_alias
672 target=$target_alias
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
681 cross_compiling=yes
685 ac_tool_prefix=
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 ||
701 echo X"$0" |
702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704 /^X\(\/\/\)$/{ s//\1/; q; }
705 /^X\(\/\).*/{ s//\1/; q; }
706 s/.*/./; q'`
707 srcdir=$ac_confdir
708 if test ! -r $srcdir/$ac_unique_file; then
709 srcdir=..
711 else
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; }; }
718 else
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}
737 ac_env_CC_value=$CC
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.
763 cat <<_ACEOF
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.
773 Configuration:
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 \`..']
784 _ACEOF
786 cat <<_ACEOF
787 Installation directories:
788 --prefix=PREFIX install architecture-independent files in PREFIX
789 [$ac_default_prefix]
790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
791 [PREFIX]
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]
813 _ACEOF
815 cat <<\_ACEOF
817 System types:
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]
821 _ACEOF
824 if test -n "$ac_init_help"; then
826 cat <<\_ACEOF
828 Optional Features:
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
839 Optional Packages:
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>
890 CPP C preprocessor
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.
895 _ACEOF
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
900 ac_popdir=`pwd`
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
903 ac_builddir=.
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'`
909 else
910 ac_dir_suffix= ac_top_builddir=
913 case $srcdir in
914 .) # No --srcdir option. We are building in place.
915 ac_srcdir=.
916 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=.
918 else
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 fi ;;
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
924 *) # Relative path.
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 esac
928 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
929 # absolute.
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`
935 cd $ac_dir
936 # Check for guested configure; otherwise get Cygnus style configure.
937 if test -f $ac_srcdir/configure.gnu; then
938 echo
939 $SHELL $ac_srcdir/configure.gnu --help=recursive
940 elif test -f $ac_srcdir/configure; then
941 echo
942 $SHELL $ac_srcdir/configure --help=recursive
943 elif test -f $ac_srcdir/configure.ac ||
944 test -f $ac_srcdir/configure.in; then
945 echo
946 $ac_configure --help
947 else
948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 cd $ac_popdir
951 done
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
956 cat <<\_ACEOF
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.
962 _ACEOF
963 exit 0
965 exec 5>config.log
966 cat >&5 <<_ACEOF
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
973 $ $0 $@
975 _ACEOF
977 cat <<_ASUNAME
978 ## --------- ##
979 ## Platform. ##
980 ## --------- ##
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`
999 _ASUNAME
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002 for as_dir in $PATH
1004 IFS=$as_save_IFS
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1007 done
1009 } >&5
1011 cat >&5 <<_ACEOF
1014 ## ----------- ##
1015 ## Core tests. ##
1016 ## ----------- ##
1018 _ACEOF
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.
1024 ac_configure_args=
1025 ac_sep=
1026 for ac_arg
1028 case $ac_arg in
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)
1033 continue ;;
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 esac
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'"
1040 ac_sep=" " ;;
1041 esac
1042 # Get rid of the leading space.
1043 done
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.
1053 echo
1054 cat <<\_ASBOX
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1058 _ASBOX
1059 echo
1060 # The following way of writing the cache mishandles newlines in values,
1062 (set) 2>&1 |
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064 *ac_space=\ *)
1065 sed -n \
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 sed -n \
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1073 esac;
1075 echo
1076 if test -s confdefs.h; then
1077 cat <<\_ASBOX
1078 ## ----------- ##
1079 ## confdefs.h. ##
1080 ## ----------- ##
1081 _ASBOX
1082 echo
1083 sed "/^$/d" confdefs.h
1084 echo
1086 test "$ac_signal" != 0 &&
1087 echo "$as_me: caught signal $ac_signal"
1088 echo "$as_me: exit $exit_status"
1089 } >&5
1090 rm -f core core.* *.core &&
1091 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1092 exit $exit_status
1094 for ac_signal in 1 2 13 15; do
1095 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1096 done
1097 ac_signal=0
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.
1102 echo >confdefs.h
1104 # Predefined preprocessor variables.
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1108 _ACEOF
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1113 _ACEOF
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1118 _ACEOF
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1123 _ACEOF
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1128 _ACEOF
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"
1136 else
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
1145 . "$ac_site_file"
1147 done
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;}
1155 case $cache_file in
1156 [\\/]* | ?:[\\/]* ) . $cache_file;;
1157 *) . ./$cache_file;;
1158 esac
1160 else
1161 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1163 >$cache_file
1166 # Check that the precious variables saved in the cache have kept the same
1167 # value.
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
1176 set,)
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=: ;;
1180 ,set)
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=: ;;
1184 ,);;
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=:
1194 fi;;
1195 esac
1196 # Pass precious variables to config.status.
1197 if test "$ac_new_set" = set; then
1198 case $ac_new_val in
1199 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201 *) ac_arg=$ac_var=$ac_new_val ;;
1202 esac
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'" ;;
1206 esac
1208 done
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; }; }
1217 ac_ext=c
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
1246 # ones...
1250 # Check whether --with-fhs or --without-fhs was given.
1251 if test "${with_fhs+set}" = set; then
1252 withval="$with_fhs"
1253 configdir="${sysconfdir}/samba"
1254 lockdir="\${VARDIR}/cache/samba"
1255 piddir="\${VARDIR}/run/samba"
1256 logfilebase="\${VARDIR}/log/samba"
1257 privatedir="\${CONFIGDIR}/private"
1258 libdir="\${prefix}/lib/samba"
1259 swatdir="\${DATADIR}/samba/swat"
1260 else
1261 configdir="\${LIBDIR}"
1262 logfilebase="\${VARDIR}"
1263 lockdir="\${VARDIR}/locks"
1264 piddir="\${VARDIR}/locks"
1265 privatedir="\${prefix}/private"
1266 swatdir="\${prefix}/swat"
1269 #################################################
1270 # set private directory location
1272 # Check whether --with-privatedir or --without-privatedir was given.
1273 if test "${with_privatedir+set}" = set; then
1274 withval="$with_privatedir"
1275 case "$withval" in
1276 yes|no)
1278 # Just in case anybody calls it without argument
1280 { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1281 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1284 privatedir="$withval"
1286 esac
1289 #################################################
1290 # set lock directory location
1292 # Check whether --with-lockdir or --without-lockdir was given.
1293 if test "${with_lockdir+set}" = set; then
1294 withval="$with_lockdir"
1295 case "$withval" in
1296 yes|no)
1298 # Just in case anybody calls it without argument
1300 { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1301 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1304 lockdir="$withval"
1306 esac
1309 #################################################
1310 # set pid directory location
1312 # Check whether --with-piddir or --without-piddir was given.
1313 if test "${with_piddir+set}" = set; then
1314 withval="$with_piddir"
1315 case "$withval" in
1316 yes|no)
1318 # Just in case anybody calls it without argument
1320 { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1321 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1324 piddir="$withval"
1326 esac
1329 #################################################
1330 # set SWAT directory location
1332 # Check whether --with-swatdir or --without-swatdir was given.
1333 if test "${with_swatdir+set}" = set; then
1334 withval="$with_swatdir"
1335 case "$withval" in
1336 yes|no)
1338 # Just in case anybody does it
1340 { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1341 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1344 swatdir="$withval"
1346 esac
1349 #################################################
1350 # set configuration directory location
1352 # Check whether --with-configdir or --without-configdir was given.
1353 if test "${with_configdir+set}" = set; then
1354 withval="$with_configdir"
1355 case "$withval" in
1356 yes|no)
1358 # Just in case anybody does it
1360 { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1361 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1364 configdir="$withval"
1366 esac
1369 #################################################
1370 # set log directory location
1372 # Check whether --with-logfilebase or --without-logfilebase was given.
1373 if test "${with_logfilebase+set}" = set; then
1374 withval="$with_logfilebase"
1375 case "$withval" in
1376 yes|no)
1378 # Just in case anybody does it
1380 { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1381 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1384 logfilebase="$withval"
1386 esac
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
1451 then
1453 cat >>confdefs.h <<\_ACEOF
1454 #define ENABLE_DMALLOC 1
1455 _ACEOF
1458 cat >>confdefs.h <<\_ACEOF
1459 #define DMALLOC_FUNC_CHECK 1
1460 _ACEOF
1462 LIBS="$LIBS -ldmalloc"
1465 ac_ext=c
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
1477 else
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1480 else
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1484 IFS=$as_save_IFS
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
1490 break 2
1492 done
1493 done
1497 CC=$ac_cv_prog_CC
1498 if test -n "$CC"; then
1499 echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1501 else
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1507 if test -z "$ac_cv_prog_CC"; then
1508 ac_ct_CC=$CC
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
1515 else
1516 if test -n "$ac_ct_CC"; then
1517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518 else
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 for as_dir in $PATH
1522 IFS=$as_save_IFS
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
1528 break 2
1530 done
1531 done
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
1539 else
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1544 CC=$ac_ct_CC
1545 else
1546 CC="$ac_cv_prog_CC"
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
1557 else
1558 if test -n "$CC"; then
1559 ac_cv_prog_CC="$CC" # Let the user override the test.
1560 else
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1564 IFS=$as_save_IFS
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
1570 break 2
1572 done
1573 done
1577 CC=$ac_cv_prog_CC
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1581 else
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$ac_cv_prog_CC"; then
1588 ac_ct_CC=$CC
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
1595 else
1596 if test -n "$ac_ct_CC"; then
1597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1598 else
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1602 IFS=$as_save_IFS
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
1608 break 2
1610 done
1611 done
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
1619 else
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1624 CC=$ac_ct_CC
1625 else
1626 CC="$ac_cv_prog_CC"
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
1637 else
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1640 else
1641 ac_prog_rejected=no
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 for as_dir in $PATH
1645 IFS=$as_save_IFS
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
1651 continue
1653 ac_cv_prog_CC="cc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
1657 done
1658 done
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
1663 shift
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.
1668 shift
1669 set dummy "$as_dir/$ac_word" ${1+"$@"}
1670 shift
1671 ac_cv_prog_CC="$@"
1676 CC=$ac_cv_prog_CC
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1680 else
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
1688 for ac_prog in cl
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
1696 else
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1703 IFS=$as_save_IFS
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
1709 break 2
1711 done
1712 done
1716 CC=$ac_cv_prog_CC
1717 if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$CC" && break
1726 done
1728 if test -z "$CC"; then
1729 ac_ct_CC=$CC
1730 for ac_prog in cl
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
1738 else
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1745 IFS=$as_save_IFS
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
1751 break 2
1753 done
1754 done
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
1762 else
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 test -n "$ac_ct_CC" && break
1768 done
1770 CC=$ac_ct_CC
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
1786 ac_status=$?
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
1791 ac_status=$?
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
1796 ac_status=$?
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
1805 # ifdef __cplusplus
1806 extern "C"
1807 # endif
1808 int F77_DUMMY_MAIN() { return 1; }
1809 #endif
1811 main ()
1815 return 0;
1817 _ACEOF
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
1822 # of exeext.
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
1828 ac_status=$?
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
1833 # resort.
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.
1837 ac_cv_exeext=
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
1841 case $ac_file in
1842 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1843 a.out ) # We found the default executable, but exeext='' is most
1844 # certainly right.
1845 break;;
1846 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1847 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1848 export ac_cv_exeext
1849 break;;
1850 * ) break;;
1851 esac
1852 done
1853 else
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
1874 (eval $ac_try) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; }; then
1878 cross_compiling=no
1879 else
1880 if test "$cross_compiling" = maybe; then
1881 cross_compiling=yes
1882 else
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
1907 ac_status=$?
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
1913 # `rm'.
1914 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1915 case $ac_file in
1916 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1917 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1918 export ac_cv_exeext
1919 break;;
1920 * ) break;;
1921 esac
1922 done
1923 else
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
1935 ac_exeext=$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
1940 else
1941 cat >conftest.$ac_ext <<_ACEOF
1942 #line $LINENO "configure"
1943 #include "confdefs.h"
1945 #ifdef F77_DUMMY_MAIN
1946 # ifdef __cplusplus
1947 extern "C"
1948 # endif
1949 int F77_DUMMY_MAIN() { return 1; }
1950 #endif
1952 main ()
1956 return 0;
1958 _ACEOF
1959 rm -f conftest.o conftest.obj
1960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1961 (eval $ac_compile) 2>&5
1962 ac_status=$?
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
1966 case $ac_file in
1967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1968 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1969 break;;
1970 esac
1971 done
1972 else
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
1985 ac_objext=$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
1990 else
1991 cat >conftest.$ac_ext <<_ACEOF
1992 #line $LINENO "configure"
1993 #include "confdefs.h"
1995 #ifdef F77_DUMMY_MAIN
1996 # ifdef __cplusplus
1997 extern "C"
1998 # endif
1999 int F77_DUMMY_MAIN() { return 1; }
2000 #endif
2002 main ()
2004 #ifndef __GNUC__
2005 choke me
2006 #endif
2009 return 0;
2011 _ACEOF
2012 rm -f conftest.$ac_objext
2013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2014 (eval $ac_compile) 2>&5
2015 ac_status=$?
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
2020 (eval $ac_try) 2>&5
2021 ac_status=$?
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; }; then
2024 ac_compiler_gnu=yes
2025 else
2026 echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 ac_compiler_gnu=no
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
2039 CFLAGS="-g"
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
2044 else
2045 cat >conftest.$ac_ext <<_ACEOF
2046 #line $LINENO "configure"
2047 #include "confdefs.h"
2049 #ifdef F77_DUMMY_MAIN
2050 # ifdef __cplusplus
2051 extern "C"
2052 # endif
2053 int F77_DUMMY_MAIN() { return 1; }
2054 #endif
2056 main ()
2060 return 0;
2062 _ACEOF
2063 rm -f conftest.$ac_objext
2064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2065 (eval $ac_compile) 2>&5
2066 ac_status=$?
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
2071 (eval $ac_try) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2075 ac_cv_prog_cc_g=yes
2076 else
2077 echo "$as_me: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2079 ac_cv_prog_cc_g=no
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
2089 CFLAGS="-g -O2"
2090 else
2091 CFLAGS="-g"
2093 else
2094 if test "$GCC" = yes; then
2095 CFLAGS="-O2"
2096 else
2097 CFLAGS=
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
2105 #ifndef __cplusplus
2106 choke me
2107 #endif
2108 _ACEOF
2109 rm -f conftest.$ac_objext
2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111 (eval $ac_compile) 2>&5
2112 ac_status=$?
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
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
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);' \
2128 'void exit (int);'
2130 cat >conftest.$ac_ext <<_ACEOF
2131 #line $LINENO "configure"
2132 #include "confdefs.h"
2133 #include <stdlib.h>
2134 $ac_declaration
2135 #ifdef F77_DUMMY_MAIN
2136 # ifdef __cplusplus
2137 extern "C"
2138 # endif
2139 int F77_DUMMY_MAIN() { return 1; }
2140 #endif
2142 main ()
2144 exit (42);
2146 return 0;
2148 _ACEOF
2149 rm -f conftest.$ac_objext
2150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>&5
2152 ac_status=$?
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
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2162 else
2163 echo "$as_me: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2165 continue
2167 rm -f conftest.$ac_objext conftest.$ac_ext
2168 cat >conftest.$ac_ext <<_ACEOF
2169 #line $LINENO "configure"
2170 #include "confdefs.h"
2171 $ac_declaration
2172 #ifdef F77_DUMMY_MAIN
2173 # ifdef __cplusplus
2174 extern "C"
2175 # endif
2176 int F77_DUMMY_MAIN() { return 1; }
2177 #endif
2179 main ()
2181 exit (42);
2183 return 0;
2185 _ACEOF
2186 rm -f conftest.$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>&5
2189 ac_status=$?
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
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 break
2199 else
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2203 rm -f conftest.$ac_objext conftest.$ac_ext
2204 done
2205 rm -f conftest*
2206 if test -n "$ac_declaration"; then
2207 echo '#ifdef __cplusplus' >>confdefs.h
2208 echo $ac_declaration >>confdefs.h
2209 echo '#endif' >>confdefs.h
2212 else
2213 echo "$as_me: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 rm -f conftest.$ac_objext conftest.$ac_ext
2217 ac_ext=c
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
2223 ac_aux_dir=
2224 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2225 if test -f $ac_dir/install-sh; then
2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/install-sh -c"
2228 break
2229 elif test -f $ac_dir/install.sh; then
2230 ac_aux_dir=$ac_dir
2231 ac_install_sh="$ac_aux_dir/install.sh -c"
2232 break
2233 elif test -f $ac_dir/shtool; then
2234 ac_aux_dir=$ac_dir
2235 ac_install_sh="$ac_aux_dir/shtool install -c"
2236 break
2238 done
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
2254 # AIX /bin/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
2265 else
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2269 IFS=$as_save_IFS
2270 test -z "$as_dir" && as_dir=.
2271 # Account for people who put trailing slashes in PATH elements.
2272 case $as_dir/ in
2273 ./ | .// | /cC/* | \
2274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2275 /usr/ucb/* ) ;;
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
2279 # by default.
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.
2291 else
2292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2293 break 3
2296 done
2297 done
2299 esac
2300 done
2304 if test "${ac_cv_path_install+set}" = set; then
2305 INSTALL=$ac_cv_path_install
2306 else
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
2333 else
2334 if test -n "$AWK"; then
2335 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2340 IFS=$as_save_IFS
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
2346 break 2
2348 done
2349 done
2353 AWK=$ac_cv_prog_AWK
2354 if test -n "$AWK"; then
2355 echo "$as_me:$LINENO: result: $AWK" >&5
2356 echo "${ECHO_T}$AWK" >&6
2357 else
2358 echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6
2362 test -n "$AWK" && break
2363 done
2366 LD=ld
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
2371 else
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
2375 else
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
2388 else
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. */
2396 #ifdef __cplusplus
2397 extern "C"
2398 #endif
2399 /* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2401 char strerror ();
2402 #ifdef F77_DUMMY_MAIN
2403 # ifdef __cplusplus
2404 extern "C"
2405 # endif
2406 int F77_DUMMY_MAIN() { return 1; }
2407 #endif
2409 main ()
2411 strerror ();
2413 return 0;
2415 _ACEOF
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
2419 ac_status=$?
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
2424 (eval $ac_try) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2428 ac_cv_search_strerror="none required"
2429 else
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. */
2442 #ifdef __cplusplus
2443 extern "C"
2444 #endif
2445 /* We use char because int might match the return type of a gcc2
2446 builtin and then its argument prototype would still apply. */
2447 char strerror ();
2448 #ifdef F77_DUMMY_MAIN
2449 # ifdef __cplusplus
2450 extern "C"
2451 # endif
2452 int F77_DUMMY_MAIN() { return 1; }
2453 #endif
2455 main ()
2457 strerror ();
2459 return 0;
2461 _ACEOF
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
2465 ac_status=$?
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
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 ac_cv_search_strerror="-l$ac_lib"
2475 break
2476 else
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
2481 done
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"
2495 if test "x$CC" != xcc; then
2496 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2497 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2498 else
2499 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2500 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2502 set dummy $CC; ac_cc=`echo $2 |
2503 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2504 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 #include "confdefs.h"
2511 #ifdef F77_DUMMY_MAIN
2512 # ifdef __cplusplus
2513 extern "C"
2514 # endif
2515 int F77_DUMMY_MAIN() { return 1; }
2516 #endif
2518 main ()
2522 return 0;
2524 _ACEOF
2525 # Make sure it works both with $CC and with simple cc.
2526 # We do the test twice because some compilers refuse to overwrite an
2527 # existing .o file with -o, though they will create one.
2528 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2529 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 (eval $ac_try) 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); };
2539 then
2540 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2541 if test "x$CC" != xcc; then
2542 # Test first that cc exists at all.
2543 if { ac_try='cc -c conftest.$ac_ext >&5'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 (eval $ac_try) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2550 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 (eval $ac_try) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); };
2560 then
2561 # cc works too.
2563 else
2564 # cc exists but doesn't like -o.
2565 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2569 else
2570 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2572 rm -f conftest*
2575 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2576 echo "$as_me:$LINENO: result: yes" >&5
2577 echo "${ECHO_T}yes" >&6
2578 else
2579 echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6
2582 cat >>confdefs.h <<\_ACEOF
2583 #define NO_MINUS_C_MINUS_O 1
2584 _ACEOF
2588 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2589 BROKEN_CC=
2590 else
2591 BROKEN_CC=#
2595 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2596 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2597 if test "${samba_cv_volatile+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #line $LINENO "configure"
2603 #include "confdefs.h"
2604 #include <sys/types.h>
2605 #ifdef F77_DUMMY_MAIN
2606 # ifdef __cplusplus
2607 extern "C"
2608 # endif
2609 int F77_DUMMY_MAIN() { return 1; }
2610 #endif
2612 main ()
2614 volatile int i = 0
2616 return 0;
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 samba_cv_volatile=yes
2632 else
2633 echo "$as_me: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2635 samba_cv_volatile=no
2637 rm -f conftest.$ac_objext conftest.$ac_ext
2639 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2640 echo "${ECHO_T}$samba_cv_volatile" >&6
2641 if test x"$samba_cv_volatile" = x"yes"; then
2643 cat >>confdefs.h <<\_ACEOF
2644 #define HAVE_VOLATILE 1
2645 _ACEOF
2650 # Make sure we can run config.sub.
2651 $ac_config_sub sun4 >/dev/null 2>&1 ||
2652 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2653 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2654 { (exit 1); exit 1; }; }
2656 echo "$as_me:$LINENO: checking build system type" >&5
2657 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2658 if test "${ac_cv_build+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661 ac_cv_build_alias=$build_alias
2662 test -z "$ac_cv_build_alias" &&
2663 ac_cv_build_alias=`$ac_config_guess`
2664 test -z "$ac_cv_build_alias" &&
2665 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2666 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2667 { (exit 1); exit 1; }; }
2668 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2669 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2670 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2671 { (exit 1); exit 1; }; }
2674 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2675 echo "${ECHO_T}$ac_cv_build" >&6
2676 build=$ac_cv_build
2677 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2678 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2679 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2682 echo "$as_me:$LINENO: checking host system type" >&5
2683 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2684 if test "${ac_cv_host+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 ac_cv_host_alias=$host_alias
2688 test -z "$ac_cv_host_alias" &&
2689 ac_cv_host_alias=$ac_cv_build_alias
2690 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2691 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2692 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2693 { (exit 1); exit 1; }; }
2696 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2697 echo "${ECHO_T}$ac_cv_host" >&6
2698 host=$ac_cv_host
2699 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2700 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2701 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2704 echo "$as_me:$LINENO: checking target system type" >&5
2705 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2706 if test "${ac_cv_target+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 ac_cv_target_alias=$target_alias
2710 test "x$ac_cv_target_alias" = "x" &&
2711 ac_cv_target_alias=$ac_cv_host_alias
2712 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2713 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2714 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2715 { (exit 1); exit 1; }; }
2718 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2719 echo "${ECHO_T}$ac_cv_target" >&6
2720 target=$ac_cv_target
2721 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2722 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2723 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2726 # The aliases save the names the user supplied, while $host etc.
2727 # will get canonicalized.
2728 test -n "$target_alias" &&
2729 test "$program_prefix$program_suffix$program_transform_name" = \
2730 NONENONEs,x,x, &&
2731 program_prefix=${target_alias}-
2733 case "$host_os" in
2734 *irix6*) cat >> confdefs.h <<\EOF
2735 #include <standards.h>
2739 esac
2743 echo "$as_me:$LINENO: checking config.cache system type" >&5
2744 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2745 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2746 test x"$ac_cv_host_system_type" != x"$host"; } ||
2747 { test x"${ac_cv_build_system_type+set}" = x"set" &&
2748 test x"$ac_cv_build_system_type" != x"$build"; } ||
2749 { test x"${ac_cv_target_system_type+set}" = x"set" &&
2750 test x"$ac_cv_target_system_type" != x"$target"; }; then
2751 echo "$as_me:$LINENO: result: different" >&5
2752 echo "${ECHO_T}different" >&6
2753 { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2754 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2755 { (exit 1); exit 1; }; }
2756 else
2757 echo "$as_me:$LINENO: result: same" >&5
2758 echo "${ECHO_T}same" >&6
2760 ac_cv_host_system_type="$host"
2761 ac_cv_build_system_type="$build"
2762 ac_cv_target_system_type="$target"
2765 DYNEXP=
2768 # Config CPPFLAG settings for strange OS's that must be set
2769 # before other tests.
2771 case "$host_os" in
2772 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2773 *hpux*)
2775 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2776 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2777 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780 echo 'void f(){}' > conftest.c
2781 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2782 ac_cv_prog_cc_Ae=yes
2783 else
2784 ac_cv_prog_cc_Ae=no
2786 rm -f conftest*
2789 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2790 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2791 # mmap on HPUX is completely broken...
2793 cat >>confdefs.h <<\_ACEOF
2794 #define MMAP_BLACKLIST 1
2795 _ACEOF
2797 if test $ac_cv_prog_cc_Ae = yes; then
2798 CPPFLAGS="$CPPFLAGS -Ae"
2801 # Defines needed for HPUX support.
2802 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2803 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2805 case `uname -r` in
2806 *9*|*10*)
2807 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2809 cat >>confdefs.h <<\_ACEOF
2810 #define USE_BOTH_CRYPT_CALLS 1
2811 _ACEOF
2814 cat >>confdefs.h <<\_ACEOF
2815 #define _HPUX_SOURCE 1
2816 _ACEOF
2819 cat >>confdefs.h <<\_ACEOF
2820 #define _POSIX_SOURCE 1
2821 _ACEOF
2824 cat >>confdefs.h <<\_ACEOF
2825 #define _ALIGNMENT_REQUIRED 1
2826 _ACEOF
2829 cat >>confdefs.h <<\_ACEOF
2830 #define _MAX_ALIGNMENT 4
2831 _ACEOF
2834 *11*)
2835 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2837 cat >>confdefs.h <<\_ACEOF
2838 #define USE_BOTH_CRYPT_CALLS 1
2839 _ACEOF
2842 cat >>confdefs.h <<\_ACEOF
2843 #define _HPUX_SOURCE 1
2844 _ACEOF
2847 cat >>confdefs.h <<\_ACEOF
2848 #define _POSIX_SOURCE 1
2849 _ACEOF
2852 cat >>confdefs.h <<\_ACEOF
2853 #define _LARGEFILE64_SOURCE 1
2854 _ACEOF
2857 cat >>confdefs.h <<\_ACEOF
2858 #define _ALIGNMENT_REQUIRED 1
2859 _ACEOF
2862 cat >>confdefs.h <<\_ACEOF
2863 #define _MAX_ALIGNMENT 4
2864 _ACEOF
2867 esac
2868 DYNEXP="-Wl,-E"
2872 # CRAY Unicos has broken const handling
2873 *unicos*)
2874 echo "$as_me:$LINENO: result: disabling const" >&5
2875 echo "${ECHO_T}disabling const" >&6
2876 CPPFLAGS="$CPPFLAGS -Dconst="
2880 # AIX4.x doesn't even admit to having large
2881 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2883 *aix4*)
2884 echo "$as_me:$LINENO: result: enabling large file support" >&5
2885 echo "${ECHO_T}enabling large file support" >&6
2886 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2888 cat >>confdefs.h <<\_ACEOF
2889 #define _LARGE_FILES 1
2890 _ACEOF
2894 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2895 # to the existance of large files..
2896 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2897 # recommendations on large file support, however it makes the
2898 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2899 # recommendation makes the compile fail on gcc2.7. JRA.
2901 *solaris*)
2902 case `uname -r` in
2903 5.0*|5.1*|5.2*|5.3*|5.5*)
2904 echo "$as_me:$LINENO: result: no large file support" >&5
2905 echo "${ECHO_T}no large file support" >&6
2907 5.*)
2908 echo "$as_me:$LINENO: result: enabling large file support" >&5
2909 echo "${ECHO_T}enabling large file support" >&6
2910 if test "$ac_cv_c_compiler_gnu" = yes; then
2911 ${CC-cc} -v >conftest.c 2>&1
2912 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2913 rm -fr conftest.c
2914 case "$ac_cv_gcc_compiler_version_number" in
2915 *"gcc version 2.6"*|*"gcc version 2.7"*)
2916 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2918 cat >>confdefs.h <<\_ACEOF
2919 #define _LARGEFILE64_SOURCE 1
2920 _ACEOF
2924 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2926 cat >>confdefs.h <<\_ACEOF
2927 #define _LARGEFILE64_SOURCE 1
2928 _ACEOF
2931 cat >>confdefs.h <<\_ACEOF
2932 #define _FILE_OFFSET_BITS 64
2933 _ACEOF
2936 esac
2937 else
2938 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2940 cat >>confdefs.h <<\_ACEOF
2941 #define _LARGEFILE64_SOURCE 1
2942 _ACEOF
2945 cat >>confdefs.h <<\_ACEOF
2946 #define _FILE_OFFSET_BITS 64
2947 _ACEOF
2951 esac
2954 # Tests needed for SINIX large file support.
2956 *sysv4*)
2957 if test $host = mips-sni-sysv4 ; then
2958 echo "$as_me:$LINENO: checking for LFS support" >&5
2959 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
2960 old_CPPFLAGS="$CPPFLAGS"
2961 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
2962 if test "$cross_compiling" = yes; then
2963 SINIX_LFS_SUPPORT=cross
2964 else
2965 cat >conftest.$ac_ext <<_ACEOF
2966 #line $LINENO "configure"
2967 #include "confdefs.h"
2969 #include <unistd.h>
2970 main () {
2971 #if _LFS64_LARGEFILE == 1
2972 exit(0);
2973 #else
2974 exit(1);
2975 #endif
2977 _ACEOF
2978 rm -f conftest$ac_exeext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2980 (eval $ac_link) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 (eval $ac_try) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2989 SINIX_LFS_SUPPORT=yes
2990 else
2991 echo "$as_me: program exited with status $ac_status" >&5
2992 echo "$as_me: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2994 ( exit $ac_status )
2995 SINIX_LFS_SUPPORT=no
2997 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2999 CPPFLAGS="$old_CPPFLAGS"
3000 if test x$SINIX_LFS_SUPPORT = xyes ; then
3001 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3003 cat >>confdefs.h <<\_ACEOF
3004 #define _LARGEFILE64_SOURCE 1
3005 _ACEOF
3007 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3008 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3009 LIBS="`getconf LFS64_LIBS` $LIBS"
3011 echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3012 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3016 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3018 *linux*)
3019 echo "$as_me:$LINENO: checking for LFS support" >&5
3020 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3021 old_CPPFLAGS="$CPPFLAGS"
3022 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3023 if test "$cross_compiling" = yes; then
3024 LINUX_LFS_SUPPORT=cross
3025 else
3026 cat >conftest.$ac_ext <<_ACEOF
3027 #line $LINENO "configure"
3028 #include "confdefs.h"
3030 #include <unistd.h>
3031 #include <sys/utsname.h>
3032 main() {
3033 #if _LFS64_LARGEFILE == 1
3034 struct utsname uts;
3035 char *release;
3036 int major, minor;
3038 /* Ensure this is glibc 2.2 or higher */
3039 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3040 int libc_major = __GLIBC__;
3041 int libc_minor = __GLIBC_MINOR__;
3043 if (libc_major < 2)
3044 exit(1);
3045 if (libc_minor < 2)
3046 exit(1);
3047 #endif
3049 /* Ensure this is kernel 2.4 or higher */
3051 uname(&uts);
3052 release = uts.release;
3053 major = atoi(strsep(&release, "."));
3054 minor = atoi(strsep(&release, "."));
3056 if (major > 2 || (major == 2 && minor > 3))
3057 exit(0);
3058 exit(1);
3059 #else
3060 exit(1);
3061 #endif
3064 _ACEOF
3065 rm -f conftest$ac_exeext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3067 (eval $ac_link) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 LINUX_LFS_SUPPORT=yes
3077 else
3078 echo "$as_me: program exited with status $ac_status" >&5
3079 echo "$as_me: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3081 ( exit $ac_status )
3082 LINUX_LFS_SUPPORT=no
3084 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3086 CPPFLAGS="$old_CPPFLAGS"
3087 if test x$LINUX_LFS_SUPPORT = xyes ; then
3088 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3090 cat >>confdefs.h <<\_ACEOF
3091 #define _LARGEFILE64_SOURCE 1
3092 _ACEOF
3095 cat >>confdefs.h <<\_ACEOF
3096 #define _FILE_OFFSET_BITS 64
3097 _ACEOF
3100 cat >>confdefs.h <<\_ACEOF
3101 #define _GNU_SOURCE 1
3102 _ACEOF
3105 echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3106 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3109 *hurd*)
3110 echo "$as_me:$LINENO: checking for LFS support" >&5
3111 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3112 old_CPPFLAGS="$CPPFLAGS"
3113 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3114 if test "$cross_compiling" = yes; then
3115 GLIBC_LFS_SUPPORT=cross
3116 else
3117 cat >conftest.$ac_ext <<_ACEOF
3118 #line $LINENO "configure"
3119 #include "confdefs.h"
3121 #include <unistd.h>
3122 main () {
3123 #if _LFS64_LARGEFILE == 1
3124 exit(0);
3125 #else
3126 exit(1);
3127 #endif
3129 _ACEOF
3130 rm -f conftest$ac_exeext
3131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3132 (eval $ac_link) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 (eval $ac_try) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 GLIBC_LFS_SUPPORT=yes
3142 else
3143 echo "$as_me: program exited with status $ac_status" >&5
3144 echo "$as_me: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3146 ( exit $ac_status )
3147 GLIBC_LFS_SUPPORT=no
3149 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3151 CPPFLAGS="$old_CPPFLAGS"
3152 if test x$GLIBC_LFS_SUPPORT = xyes ; then
3153 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3155 cat >>confdefs.h <<\_ACEOF
3156 #define _LARGEFILE64_SOURCE 1
3157 _ACEOF
3160 cat >>confdefs.h <<\_ACEOF
3161 #define _GNU_SOURCE 1
3162 _ACEOF
3165 echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3166 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3169 esac
3171 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3172 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3173 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 ac_cv_prog_cc_stdc=no
3177 ac_save_CC=$CC
3178 cat >conftest.$ac_ext <<_ACEOF
3179 #line $LINENO "configure"
3180 #include "confdefs.h"
3181 #include <stdarg.h>
3182 #include <stdio.h>
3183 #include <sys/types.h>
3184 #include <sys/stat.h>
3185 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3186 struct buf { int x; };
3187 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3188 static char *e (p, i)
3189 char **p;
3190 int i;
3192 return p[i];
3194 static char *f (char * (*g) (char **, int), char **p, ...)
3196 char *s;
3197 va_list v;
3198 va_start (v,p);
3199 s = g (p, va_arg (v,int));
3200 va_end (v);
3201 return s;
3203 int test (int i, double x);
3204 struct s1 {int (*f) (int a);};
3205 struct s2 {int (*f) (double a);};
3206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207 int argc;
3208 char **argv;
3209 #ifdef F77_DUMMY_MAIN
3210 # ifdef __cplusplus
3211 extern "C"
3212 # endif
3213 int F77_DUMMY_MAIN() { return 1; }
3214 #endif
3216 main ()
3218 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3220 return 0;
3222 _ACEOF
3223 # Don't try gcc -ansi; that turns off useful extensions and
3224 # breaks some systems' header files.
3225 # AIX -qlanglvl=ansi
3226 # Ultrix and OSF/1 -std1
3227 # HP-UX 10.20 and later -Ae
3228 # HP-UX older versions -Aa -D_HPUX_SOURCE
3229 # SVR4 -Xc -D__EXTENSIONS__
3230 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3232 CC="$ac_save_CC $ac_arg"
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try='test -s conftest.$ac_objext'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 (eval $ac_try) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 ac_cv_prog_cc_stdc=$ac_arg
3246 break
3247 else
3248 echo "$as_me: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3251 rm -f conftest.$ac_objext
3252 done
3253 rm -f conftest.$ac_ext conftest.$ac_objext
3254 CC=$ac_save_CC
3258 case "x$ac_cv_prog_cc_stdc" in
3259 x|xno)
3260 echo "$as_me:$LINENO: result: none needed" >&5
3261 echo "${ECHO_T}none needed" >&6 ;;
3263 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3264 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3265 CC="$CC $ac_cv_prog_cc_stdc" ;;
3266 esac
3268 echo "$as_me:$LINENO: checking for inline" >&5
3269 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3270 if test "${ac_cv_c_inline+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273 ac_cv_c_inline=no
3274 for ac_kw in inline __inline__ __inline; do
3275 cat >conftest.$ac_ext <<_ACEOF
3276 #line $LINENO "configure"
3277 #include "confdefs.h"
3278 #ifndef __cplusplus
3279 static $ac_kw int static_foo () {return 0; }
3280 $ac_kw int foo () {return 0; }
3281 #endif
3283 _ACEOF
3284 rm -f conftest.$ac_objext
3285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286 (eval $ac_compile) 2>&5
3287 ac_status=$?
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -s conftest.$ac_objext'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 (eval $ac_try) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3296 ac_cv_c_inline=$ac_kw; break
3297 else
3298 echo "$as_me: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3301 rm -f conftest.$ac_objext conftest.$ac_ext
3302 done
3305 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3306 echo "${ECHO_T}$ac_cv_c_inline" >&6
3307 case $ac_cv_c_inline in
3308 inline | yes) ;;
3310 cat >>confdefs.h <<\_ACEOF
3311 #define inline
3312 _ACEOF
3314 *) cat >>confdefs.h <<_ACEOF
3315 #define inline $ac_cv_c_inline
3316 _ACEOF
3318 esac
3320 ac_ext=c
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3326 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3327 # On Suns, sometimes $CPP names a directory.
3328 if test -n "$CPP" && test -d "$CPP"; then
3329 CPP=
3331 if test -z "$CPP"; then
3332 if test "${ac_cv_prog_CPP+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 # Double quotes because CPP needs to be expanded
3336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3338 ac_preproc_ok=false
3339 for ac_c_preproc_warn_flag in '' yes
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
3345 cat >conftest.$ac_ext <<_ACEOF
3346 #line $LINENO "configure"
3347 #include "confdefs.h"
3348 #include <assert.h>
3349 Syntax error
3350 _ACEOF
3351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3353 ac_status=$?
3354 egrep -v '^ *\+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 else
3362 ac_cpp_err=
3364 else
3365 ac_cpp_err=yes
3367 if test -z "$ac_cpp_err"; then
3369 else
3370 echo "$as_me: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3372 # Broken: fails on valid input.
3373 continue
3375 rm -f conftest.err conftest.$ac_ext
3377 # OK, works on sane cases. Now check whether non-existent headers
3378 # can be detected and how.
3379 cat >conftest.$ac_ext <<_ACEOF
3380 #line $LINENO "configure"
3381 #include "confdefs.h"
3382 #include <ac_nonexistent.h>
3383 _ACEOF
3384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3386 ac_status=$?
3387 egrep -v '^ *\+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null; then
3392 if test -s conftest.err; then
3393 ac_cpp_err=$ac_c_preproc_warn_flag
3394 else
3395 ac_cpp_err=
3397 else
3398 ac_cpp_err=yes
3400 if test -z "$ac_cpp_err"; then
3401 # Broken: success on invalid input.
3402 continue
3403 else
3404 echo "$as_me: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3406 # Passes both tests.
3407 ac_preproc_ok=:
3408 break
3410 rm -f conftest.err conftest.$ac_ext
3412 done
3413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3414 rm -f conftest.err conftest.$ac_ext
3415 if $ac_preproc_ok; then
3416 break
3419 done
3420 ac_cv_prog_CPP=$CPP
3423 CPP=$ac_cv_prog_CPP
3424 else
3425 ac_cv_prog_CPP=$CPP
3427 echo "$as_me:$LINENO: result: $CPP" >&5
3428 echo "${ECHO_T}$CPP" >&6
3429 ac_preproc_ok=false
3430 for ac_c_preproc_warn_flag in '' yes
3432 # Use a header file that comes with gcc, so configuring glibc
3433 # with a fresh cross-compiler works.
3434 # On the NeXT, cc -E runs the code through the compiler's parser,
3435 # not just through cpp. "Syntax error" is here to catch this case.
3436 cat >conftest.$ac_ext <<_ACEOF
3437 #line $LINENO "configure"
3438 #include "confdefs.h"
3439 #include <assert.h>
3440 Syntax error
3441 _ACEOF
3442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3444 ac_status=$?
3445 egrep -v '^ *\+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev/null; then
3450 if test -s conftest.err; then
3451 ac_cpp_err=$ac_c_preproc_warn_flag
3452 else
3453 ac_cpp_err=
3455 else
3456 ac_cpp_err=yes
3458 if test -z "$ac_cpp_err"; then
3460 else
3461 echo "$as_me: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3463 # Broken: fails on valid input.
3464 continue
3466 rm -f conftest.err conftest.$ac_ext
3468 # OK, works on sane cases. Now check whether non-existent headers
3469 # can be detected and how.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 #line $LINENO "configure"
3472 #include "confdefs.h"
3473 #include <ac_nonexistent.h>
3474 _ACEOF
3475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477 ac_status=$?
3478 egrep -v '^ *\+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 else
3486 ac_cpp_err=
3488 else
3489 ac_cpp_err=yes
3491 if test -z "$ac_cpp_err"; then
3492 # Broken: success on invalid input.
3493 continue
3494 else
3495 echo "$as_me: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3497 # Passes both tests.
3498 ac_preproc_ok=:
3499 break
3501 rm -f conftest.err conftest.$ac_ext
3503 done
3504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3505 rm -f conftest.err conftest.$ac_ext
3506 if $ac_preproc_ok; then
3508 else
3509 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3510 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3511 { (exit 1); exit 1; }; }
3514 ac_ext=c
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3522 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3523 if test "${ac_cv_header_stdc+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526 cat >conftest.$ac_ext <<_ACEOF
3527 #line $LINENO "configure"
3528 #include "confdefs.h"
3529 #include <stdlib.h>
3530 #include <stdarg.h>
3531 #include <string.h>
3532 #include <float.h>
3534 _ACEOF
3535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3537 ac_status=$?
3538 egrep -v '^ *\+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } >/dev/null; then
3543 if test -s conftest.err; then
3544 ac_cpp_err=$ac_c_preproc_warn_flag
3545 else
3546 ac_cpp_err=
3548 else
3549 ac_cpp_err=yes
3551 if test -z "$ac_cpp_err"; then
3552 ac_cv_header_stdc=yes
3553 else
3554 echo "$as_me: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3556 ac_cv_header_stdc=no
3558 rm -f conftest.err conftest.$ac_ext
3560 if test $ac_cv_header_stdc = yes; then
3561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3562 cat >conftest.$ac_ext <<_ACEOF
3563 #line $LINENO "configure"
3564 #include "confdefs.h"
3565 #include <string.h>
3567 _ACEOF
3568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3569 egrep "memchr" >/dev/null 2>&1; then
3571 else
3572 ac_cv_header_stdc=no
3574 rm -f conftest*
3578 if test $ac_cv_header_stdc = yes; then
3579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3580 cat >conftest.$ac_ext <<_ACEOF
3581 #line $LINENO "configure"
3582 #include "confdefs.h"
3583 #include <stdlib.h>
3585 _ACEOF
3586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3587 egrep "free" >/dev/null 2>&1; then
3589 else
3590 ac_cv_header_stdc=no
3592 rm -f conftest*
3596 if test $ac_cv_header_stdc = yes; then
3597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3598 if test "$cross_compiling" = yes; then
3600 else
3601 cat >conftest.$ac_ext <<_ACEOF
3602 #line $LINENO "configure"
3603 #include "confdefs.h"
3604 #include <ctype.h>
3605 #if ((' ' & 0x0FF) == 0x020)
3606 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3607 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3608 #else
3609 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3610 || ('j' <= (c) && (c) <= 'r') \
3611 || ('s' <= (c) && (c) <= 'z'))
3612 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3613 #endif
3615 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3617 main ()
3619 int i;
3620 for (i = 0; i < 256; i++)
3621 if (XOR (islower (i), ISLOWER (i))
3622 || toupper (i) != TOUPPER (i))
3623 exit(2);
3624 exit (0);
3626 _ACEOF
3627 rm -f conftest$ac_exeext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3629 (eval $ac_link) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; }; then
3639 else
3640 echo "$as_me: program exited with status $ac_status" >&5
3641 echo "$as_me: failed program was:" >&5
3642 cat conftest.$ac_ext >&5
3643 ( exit $ac_status )
3644 ac_cv_header_stdc=no
3646 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3650 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3651 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3652 if test $ac_cv_header_stdc = yes; then
3654 cat >>confdefs.h <<\_ACEOF
3655 #define STDC_HEADERS 1
3656 _ACEOF
3665 ac_header_dirent=no
3666 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3667 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3668 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3669 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 cat >conftest.$ac_ext <<_ACEOF
3674 #line $LINENO "configure"
3675 #include "confdefs.h"
3676 #include <sys/types.h>
3677 #include <$ac_hdr>
3679 #ifdef F77_DUMMY_MAIN
3680 # ifdef __cplusplus
3681 extern "C"
3682 # endif
3683 int F77_DUMMY_MAIN() { return 1; }
3684 #endif
3686 main ()
3688 if ((DIR *) 0)
3689 return 0;
3691 return 0;
3693 _ACEOF
3694 rm -f conftest.$ac_objext
3695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696 (eval $ac_compile) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } &&
3700 { ac_try='test -s conftest.$ac_objext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 eval "$as_ac_Header=yes"
3707 else
3708 echo "$as_me: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3710 eval "$as_ac_Header=no"
3712 rm -f conftest.$ac_objext conftest.$ac_ext
3714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3717 cat >>confdefs.h <<_ACEOF
3718 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3719 _ACEOF
3721 ac_header_dirent=$ac_hdr; break
3724 done
3725 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3726 if test $ac_header_dirent = dirent.h; then
3727 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3728 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3729 if test "${ac_cv_search_opendir+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732 ac_func_search_save_LIBS=$LIBS
3733 ac_cv_search_opendir=no
3734 cat >conftest.$ac_ext <<_ACEOF
3735 #line $LINENO "configure"
3736 #include "confdefs.h"
3738 /* Override any gcc2 internal prototype to avoid an error. */
3739 #ifdef __cplusplus
3740 extern "C"
3741 #endif
3742 /* We use char because int might match the return type of a gcc2
3743 builtin and then its argument prototype would still apply. */
3744 char opendir ();
3745 #ifdef F77_DUMMY_MAIN
3746 # ifdef __cplusplus
3747 extern "C"
3748 # endif
3749 int F77_DUMMY_MAIN() { return 1; }
3750 #endif
3752 main ()
3754 opendir ();
3756 return 0;
3758 _ACEOF
3759 rm -f conftest.$ac_objext conftest$ac_exeext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761 (eval $ac_link) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } &&
3765 { ac_try='test -s conftest$ac_exeext'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3771 ac_cv_search_opendir="none required"
3772 else
3773 echo "$as_me: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3777 if test "$ac_cv_search_opendir" = no; then
3778 for ac_lib in dir; do
3779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3780 cat >conftest.$ac_ext <<_ACEOF
3781 #line $LINENO "configure"
3782 #include "confdefs.h"
3784 /* Override any gcc2 internal prototype to avoid an error. */
3785 #ifdef __cplusplus
3786 extern "C"
3787 #endif
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3790 char opendir ();
3791 #ifdef F77_DUMMY_MAIN
3792 # ifdef __cplusplus
3793 extern "C"
3794 # endif
3795 int F77_DUMMY_MAIN() { return 1; }
3796 #endif
3798 main ()
3800 opendir ();
3802 return 0;
3804 _ACEOF
3805 rm -f conftest.$ac_objext conftest$ac_exeext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3807 (eval $ac_link) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -s conftest$ac_exeext'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; }; then
3817 ac_cv_search_opendir="-l$ac_lib"
3818 break
3819 else
3820 echo "$as_me: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3824 done
3826 LIBS=$ac_func_search_save_LIBS
3828 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3829 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3830 if test "$ac_cv_search_opendir" != no; then
3831 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3835 else
3836 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3837 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3838 if test "${ac_cv_search_opendir+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 ac_func_search_save_LIBS=$LIBS
3842 ac_cv_search_opendir=no
3843 cat >conftest.$ac_ext <<_ACEOF
3844 #line $LINENO "configure"
3845 #include "confdefs.h"
3847 /* Override any gcc2 internal prototype to avoid an error. */
3848 #ifdef __cplusplus
3849 extern "C"
3850 #endif
3851 /* We use char because int might match the return type of a gcc2
3852 builtin and then its argument prototype would still apply. */
3853 char opendir ();
3854 #ifdef F77_DUMMY_MAIN
3855 # ifdef __cplusplus
3856 extern "C"
3857 # endif
3858 int F77_DUMMY_MAIN() { return 1; }
3859 #endif
3861 main ()
3863 opendir ();
3865 return 0;
3867 _ACEOF
3868 rm -f conftest.$ac_objext conftest$ac_exeext
3869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3870 (eval $ac_link) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } &&
3874 { ac_try='test -s conftest$ac_exeext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_search_opendir="none required"
3881 else
3882 echo "$as_me: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3886 if test "$ac_cv_search_opendir" = no; then
3887 for ac_lib in x; do
3888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3889 cat >conftest.$ac_ext <<_ACEOF
3890 #line $LINENO "configure"
3891 #include "confdefs.h"
3893 /* Override any gcc2 internal prototype to avoid an error. */
3894 #ifdef __cplusplus
3895 extern "C"
3896 #endif
3897 /* We use char because int might match the return type of a gcc2
3898 builtin and then its argument prototype would still apply. */
3899 char opendir ();
3900 #ifdef F77_DUMMY_MAIN
3901 # ifdef __cplusplus
3902 extern "C"
3903 # endif
3904 int F77_DUMMY_MAIN() { return 1; }
3905 #endif
3907 main ()
3909 opendir ();
3911 return 0;
3913 _ACEOF
3914 rm -f conftest.$ac_objext conftest$ac_exeext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916 (eval $ac_link) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -s conftest$ac_exeext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 (eval $ac_try) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 ac_cv_search_opendir="-l$ac_lib"
3927 break
3928 else
3929 echo "$as_me: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3933 done
3935 LIBS=$ac_func_search_save_LIBS
3937 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3938 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3939 if test "$ac_cv_search_opendir" != no; then
3940 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3946 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3947 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3948 if test "${ac_cv_header_time+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951 cat >conftest.$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3953 #include "confdefs.h"
3954 #include <sys/types.h>
3955 #include <sys/time.h>
3956 #include <time.h>
3958 #ifdef F77_DUMMY_MAIN
3959 # ifdef __cplusplus
3960 extern "C"
3961 # endif
3962 int F77_DUMMY_MAIN() { return 1; }
3963 #endif
3965 main ()
3967 if ((struct tm *) 0)
3968 return 0;
3970 return 0;
3972 _ACEOF
3973 rm -f conftest.$ac_objext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3975 (eval $ac_compile) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -s conftest.$ac_objext'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_cv_header_time=yes
3986 else
3987 echo "$as_me: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3989 ac_cv_header_time=no
3991 rm -f conftest.$ac_objext conftest.$ac_ext
3993 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3994 echo "${ECHO_T}$ac_cv_header_time" >&6
3995 if test $ac_cv_header_time = yes; then
3997 cat >>confdefs.h <<\_ACEOF
3998 #define TIME_WITH_SYS_TIME 1
3999 _ACEOF
4003 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4004 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4005 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008 cat >conftest.$ac_ext <<_ACEOF
4009 #line $LINENO "configure"
4010 #include "confdefs.h"
4011 #include <sys/types.h>
4012 #include <sys/wait.h>
4013 #ifndef WEXITSTATUS
4014 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4015 #endif
4016 #ifndef WIFEXITED
4017 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4018 #endif
4020 #ifdef F77_DUMMY_MAIN
4021 # ifdef __cplusplus
4022 extern "C"
4023 # endif
4024 int F77_DUMMY_MAIN() { return 1; }
4025 #endif
4027 main ()
4029 int s;
4030 wait (&s);
4031 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4033 return 0;
4035 _ACEOF
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 ac_cv_header_sys_wait_h=yes
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4052 ac_cv_header_sys_wait_h=no
4054 rm -f conftest.$ac_objext conftest.$ac_ext
4056 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4057 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4058 if test $ac_cv_header_sys_wait_h = yes; then
4060 cat >>confdefs.h <<\_ACEOF
4061 #define HAVE_SYS_WAIT_H 1
4062 _ACEOF
4066 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4076 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4077 inttypes.h stdint.h unistd.h
4079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4080 echo "$as_me:$LINENO: checking for $ac_header" >&5
4081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085 cat >conftest.$ac_ext <<_ACEOF
4086 #line $LINENO "configure"
4087 #include "confdefs.h"
4088 $ac_includes_default
4090 #include <$ac_header>
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 eval "$as_ac_Header=yes"
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 cat conftest.$ac_ext >&5
4108 eval "$as_ac_Header=no"
4110 rm -f conftest.$ac_objext conftest.$ac_ext
4112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4115 cat >>confdefs.h <<_ACEOF
4116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4117 _ACEOF
4121 done
4130 for ac_header in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
4132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4134 echo "$as_me:$LINENO: checking for $ac_header" >&5
4135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4141 else
4142 # Is the header compilable?
4143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4145 cat >conftest.$ac_ext <<_ACEOF
4146 #line $LINENO "configure"
4147 #include "confdefs.h"
4148 $ac_includes_default
4149 #include <$ac_header>
4150 _ACEOF
4151 rm -f conftest.$ac_objext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153 (eval $ac_compile) 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 ac_header_compiler=yes
4164 else
4165 echo "$as_me: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4167 ac_header_compiler=no
4169 rm -f conftest.$ac_objext conftest.$ac_ext
4170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4171 echo "${ECHO_T}$ac_header_compiler" >&6
4173 # Is the header present?
4174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4176 cat >conftest.$ac_ext <<_ACEOF
4177 #line $LINENO "configure"
4178 #include "confdefs.h"
4179 #include <$ac_header>
4180 _ACEOF
4181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4183 ac_status=$?
4184 egrep -v '^ *\+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } >/dev/null; then
4189 if test -s conftest.err; then
4190 ac_cpp_err=$ac_c_preproc_warn_flag
4191 else
4192 ac_cpp_err=
4194 else
4195 ac_cpp_err=yes
4197 if test -z "$ac_cpp_err"; then
4198 ac_header_preproc=yes
4199 else
4200 echo "$as_me: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4202 ac_header_preproc=no
4204 rm -f conftest.err conftest.$ac_ext
4205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4206 echo "${ECHO_T}$ac_header_preproc" >&6
4208 # So? What about this header?
4209 case $ac_header_compiler:$ac_header_preproc in
4210 yes:no )
4211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4215 no:yes )
4216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4222 esac
4223 echo "$as_me:$LINENO: checking for $ac_header" >&5
4224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 eval "$as_ac_Header=$ac_header_preproc"
4230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4235 cat >>confdefs.h <<_ACEOF
4236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4237 _ACEOF
4241 done
4250 for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
4252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4254 echo "$as_me:$LINENO: checking for $ac_header" >&5
4255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4261 else
4262 # Is the header compilable?
4263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4265 cat >conftest.$ac_ext <<_ACEOF
4266 #line $LINENO "configure"
4267 #include "confdefs.h"
4268 $ac_includes_default
4269 #include <$ac_header>
4270 _ACEOF
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_header_compiler=yes
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4287 ac_header_compiler=no
4289 rm -f conftest.$ac_objext conftest.$ac_ext
4290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4291 echo "${ECHO_T}$ac_header_compiler" >&6
4293 # Is the header present?
4294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4296 cat >conftest.$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4298 #include "confdefs.h"
4299 #include <$ac_header>
4300 _ACEOF
4301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4303 ac_status=$?
4304 egrep -v '^ *\+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } >/dev/null; then
4309 if test -s conftest.err; then
4310 ac_cpp_err=$ac_c_preproc_warn_flag
4311 else
4312 ac_cpp_err=
4314 else
4315 ac_cpp_err=yes
4317 if test -z "$ac_cpp_err"; then
4318 ac_header_preproc=yes
4319 else
4320 echo "$as_me: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4322 ac_header_preproc=no
4324 rm -f conftest.err conftest.$ac_ext
4325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4326 echo "${ECHO_T}$ac_header_preproc" >&6
4328 # So? What about this header?
4329 case $ac_header_compiler:$ac_header_preproc in
4330 yes:no )
4331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4335 no:yes )
4336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4342 esac
4343 echo "$as_me:$LINENO: checking for $ac_header" >&5
4344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348 eval "$as_ac_Header=$ac_header_preproc"
4350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4355 cat >>confdefs.h <<_ACEOF
4356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4357 _ACEOF
4361 done
4368 for ac_header in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
4370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4372 echo "$as_me:$LINENO: checking for $ac_header" >&5
4373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4379 else
4380 # Is the header compilable?
4381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4383 cat >conftest.$ac_ext <<_ACEOF
4384 #line $LINENO "configure"
4385 #include "confdefs.h"
4386 $ac_includes_default
4387 #include <$ac_header>
4388 _ACEOF
4389 rm -f conftest.$ac_objext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -s conftest.$ac_objext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 ac_header_compiler=yes
4402 else
4403 echo "$as_me: failed program was:" >&5
4404 cat conftest.$ac_ext >&5
4405 ac_header_compiler=no
4407 rm -f conftest.$ac_objext conftest.$ac_ext
4408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4409 echo "${ECHO_T}$ac_header_compiler" >&6
4411 # Is the header present?
4412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4414 cat >conftest.$ac_ext <<_ACEOF
4415 #line $LINENO "configure"
4416 #include "confdefs.h"
4417 #include <$ac_header>
4418 _ACEOF
4419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4421 ac_status=$?
4422 egrep -v '^ *\+' conftest.er1 >conftest.err
4423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } >/dev/null; then
4427 if test -s conftest.err; then
4428 ac_cpp_err=$ac_c_preproc_warn_flag
4429 else
4430 ac_cpp_err=
4432 else
4433 ac_cpp_err=yes
4435 if test -z "$ac_cpp_err"; then
4436 ac_header_preproc=yes
4437 else
4438 echo "$as_me: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4440 ac_header_preproc=no
4442 rm -f conftest.err conftest.$ac_ext
4443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4444 echo "${ECHO_T}$ac_header_preproc" >&6
4446 # So? What about this header?
4447 case $ac_header_compiler:$ac_header_preproc in
4448 yes:no )
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4453 no:yes )
4454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4460 esac
4461 echo "$as_me:$LINENO: checking for $ac_header" >&5
4462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 eval "$as_ac_Header=$ac_header_preproc"
4468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4473 cat >>confdefs.h <<_ACEOF
4474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475 _ACEOF
4479 done
4488 for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
4490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4492 echo "$as_me:$LINENO: checking for $ac_header" >&5
4493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4499 else
4500 # Is the header compilable?
4501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4503 cat >conftest.$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4505 #include "confdefs.h"
4506 $ac_includes_default
4507 #include <$ac_header>
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_header_compiler=yes
4522 else
4523 echo "$as_me: failed program was:" >&5
4524 cat conftest.$ac_ext >&5
4525 ac_header_compiler=no
4527 rm -f conftest.$ac_objext conftest.$ac_ext
4528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4529 echo "${ECHO_T}$ac_header_compiler" >&6
4531 # Is the header present?
4532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4534 cat >conftest.$ac_ext <<_ACEOF
4535 #line $LINENO "configure"
4536 #include "confdefs.h"
4537 #include <$ac_header>
4538 _ACEOF
4539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4541 ac_status=$?
4542 egrep -v '^ *\+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } >/dev/null; then
4547 if test -s conftest.err; then
4548 ac_cpp_err=$ac_c_preproc_warn_flag
4549 else
4550 ac_cpp_err=
4552 else
4553 ac_cpp_err=yes
4555 if test -z "$ac_cpp_err"; then
4556 ac_header_preproc=yes
4557 else
4558 echo "$as_me: failed program was:" >&5
4559 cat conftest.$ac_ext >&5
4560 ac_header_preproc=no
4562 rm -f conftest.err conftest.$ac_ext
4563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4564 echo "${ECHO_T}$ac_header_preproc" >&6
4566 # So? What about this header?
4567 case $ac_header_compiler:$ac_header_preproc in
4568 yes:no )
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4573 no:yes )
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4580 esac
4581 echo "$as_me:$LINENO: checking for $ac_header" >&5
4582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586 eval "$as_ac_Header=$ac_header_preproc"
4588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4593 cat >>confdefs.h <<_ACEOF
4594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4595 _ACEOF
4599 done
4609 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
4611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4613 echo "$as_me:$LINENO: checking for $ac_header" >&5
4614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4620 else
4621 # Is the header compilable?
4622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4624 cat >conftest.$ac_ext <<_ACEOF
4625 #line $LINENO "configure"
4626 #include "confdefs.h"
4627 $ac_includes_default
4628 #include <$ac_header>
4629 _ACEOF
4630 rm -f conftest.$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -s conftest.$ac_objext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 (eval $ac_try) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4642 ac_header_compiler=yes
4643 else
4644 echo "$as_me: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4646 ac_header_compiler=no
4648 rm -f conftest.$ac_objext conftest.$ac_ext
4649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4650 echo "${ECHO_T}$ac_header_compiler" >&6
4652 # Is the header present?
4653 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4655 cat >conftest.$ac_ext <<_ACEOF
4656 #line $LINENO "configure"
4657 #include "confdefs.h"
4658 #include <$ac_header>
4659 _ACEOF
4660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4662 ac_status=$?
4663 egrep -v '^ *\+' conftest.er1 >conftest.err
4664 rm -f conftest.er1
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } >/dev/null; then
4668 if test -s conftest.err; then
4669 ac_cpp_err=$ac_c_preproc_warn_flag
4670 else
4671 ac_cpp_err=
4673 else
4674 ac_cpp_err=yes
4676 if test -z "$ac_cpp_err"; then
4677 ac_header_preproc=yes
4678 else
4679 echo "$as_me: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4681 ac_header_preproc=no
4683 rm -f conftest.err conftest.$ac_ext
4684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4685 echo "${ECHO_T}$ac_header_preproc" >&6
4687 # So? What about this header?
4688 case $ac_header_compiler:$ac_header_preproc in
4689 yes:no )
4690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4694 no:yes )
4695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4701 esac
4702 echo "$as_me:$LINENO: checking for $ac_header" >&5
4703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707 eval "$as_ac_Header=$ac_header_preproc"
4709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4714 cat >>confdefs.h <<_ACEOF
4715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4716 _ACEOF
4720 done
4728 for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
4730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4732 echo "$as_me:$LINENO: checking for $ac_header" >&5
4733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4739 else
4740 # Is the header compilable?
4741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4743 cat >conftest.$ac_ext <<_ACEOF
4744 #line $LINENO "configure"
4745 #include "confdefs.h"
4746 $ac_includes_default
4747 #include <$ac_header>
4748 _ACEOF
4749 rm -f conftest.$ac_objext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -s conftest.$ac_objext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 (eval $ac_try) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 ac_header_compiler=yes
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 cat conftest.$ac_ext >&5
4765 ac_header_compiler=no
4767 rm -f conftest.$ac_objext conftest.$ac_ext
4768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4769 echo "${ECHO_T}$ac_header_compiler" >&6
4771 # Is the header present?
4772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4774 cat >conftest.$ac_ext <<_ACEOF
4775 #line $LINENO "configure"
4776 #include "confdefs.h"
4777 #include <$ac_header>
4778 _ACEOF
4779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4781 ac_status=$?
4782 egrep -v '^ *\+' conftest.er1 >conftest.err
4783 rm -f conftest.er1
4784 cat conftest.err >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } >/dev/null; then
4787 if test -s conftest.err; then
4788 ac_cpp_err=$ac_c_preproc_warn_flag
4789 else
4790 ac_cpp_err=
4792 else
4793 ac_cpp_err=yes
4795 if test -z "$ac_cpp_err"; then
4796 ac_header_preproc=yes
4797 else
4798 echo "$as_me: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4800 ac_header_preproc=no
4802 rm -f conftest.err conftest.$ac_ext
4803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4804 echo "${ECHO_T}$ac_header_preproc" >&6
4806 # So? What about this header?
4807 case $ac_header_compiler:$ac_header_preproc in
4808 yes:no )
4809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4813 no:yes )
4814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4820 esac
4821 echo "$as_me:$LINENO: checking for $ac_header" >&5
4822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826 eval "$as_ac_Header=$ac_header_preproc"
4828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4833 cat >>confdefs.h <<_ACEOF
4834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4835 _ACEOF
4839 done
4847 for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
4849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4851 echo "$as_me:$LINENO: checking for $ac_header" >&5
4852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4858 else
4859 # Is the header compilable?
4860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4862 cat >conftest.$ac_ext <<_ACEOF
4863 #line $LINENO "configure"
4864 #include "confdefs.h"
4865 $ac_includes_default
4866 #include <$ac_header>
4867 _ACEOF
4868 rm -f conftest.$ac_objext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870 (eval $ac_compile) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -s conftest.$ac_objext'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; }; then
4880 ac_header_compiler=yes
4881 else
4882 echo "$as_me: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4884 ac_header_compiler=no
4886 rm -f conftest.$ac_objext conftest.$ac_ext
4887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4888 echo "${ECHO_T}$ac_header_compiler" >&6
4890 # Is the header present?
4891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4893 cat >conftest.$ac_ext <<_ACEOF
4894 #line $LINENO "configure"
4895 #include "confdefs.h"
4896 #include <$ac_header>
4897 _ACEOF
4898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4900 ac_status=$?
4901 egrep -v '^ *\+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } >/dev/null; then
4906 if test -s conftest.err; then
4907 ac_cpp_err=$ac_c_preproc_warn_flag
4908 else
4909 ac_cpp_err=
4911 else
4912 ac_cpp_err=yes
4914 if test -z "$ac_cpp_err"; then
4915 ac_header_preproc=yes
4916 else
4917 echo "$as_me: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4919 ac_header_preproc=no
4921 rm -f conftest.err conftest.$ac_ext
4922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4923 echo "${ECHO_T}$ac_header_preproc" >&6
4925 # So? What about this header?
4926 case $ac_header_compiler:$ac_header_preproc in
4927 yes:no )
4928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4932 no:yes )
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4939 esac
4940 echo "$as_me:$LINENO: checking for $ac_header" >&5
4941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945 eval "$as_ac_Header=$ac_header_preproc"
4947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4952 cat >>confdefs.h <<_ACEOF
4953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4954 _ACEOF
4958 done
4965 for ac_header in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
4967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4969 echo "$as_me:$LINENO: checking for $ac_header" >&5
4970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4976 else
4977 # Is the header compilable?
4978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4980 cat >conftest.$ac_ext <<_ACEOF
4981 #line $LINENO "configure"
4982 #include "confdefs.h"
4983 $ac_includes_default
4984 #include <$ac_header>
4985 _ACEOF
4986 rm -f conftest.$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988 (eval $ac_compile) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try='test -s conftest.$ac_objext'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 ac_header_compiler=yes
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5002 ac_header_compiler=no
5004 rm -f conftest.$ac_objext conftest.$ac_ext
5005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5006 echo "${ECHO_T}$ac_header_compiler" >&6
5008 # Is the header present?
5009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5011 cat >conftest.$ac_ext <<_ACEOF
5012 #line $LINENO "configure"
5013 #include "confdefs.h"
5014 #include <$ac_header>
5015 _ACEOF
5016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5018 ac_status=$?
5019 egrep -v '^ *\+' conftest.er1 >conftest.err
5020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } >/dev/null; then
5024 if test -s conftest.err; then
5025 ac_cpp_err=$ac_c_preproc_warn_flag
5026 else
5027 ac_cpp_err=
5029 else
5030 ac_cpp_err=yes
5032 if test -z "$ac_cpp_err"; then
5033 ac_header_preproc=yes
5034 else
5035 echo "$as_me: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5037 ac_header_preproc=no
5039 rm -f conftest.err conftest.$ac_ext
5040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5041 echo "${ECHO_T}$ac_header_preproc" >&6
5043 # So? What about this header?
5044 case $ac_header_compiler:$ac_header_preproc in
5045 yes:no )
5046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5050 no:yes )
5051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5057 esac
5058 echo "$as_me:$LINENO: checking for $ac_header" >&5
5059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063 eval "$as_ac_Header=$ac_header_preproc"
5065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5070 cat >>confdefs.h <<_ACEOF
5071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5072 _ACEOF
5076 done
5080 for ac_header in sys/syslog.h syslog.h
5082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5084 echo "$as_me:$LINENO: checking for $ac_header" >&5
5085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5091 else
5092 # Is the header compilable?
5093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5095 cat >conftest.$ac_ext <<_ACEOF
5096 #line $LINENO "configure"
5097 #include "confdefs.h"
5098 $ac_includes_default
5099 #include <$ac_header>
5100 _ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
5107 { ac_try='test -s conftest.$ac_objext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 ac_header_compiler=yes
5114 else
5115 echo "$as_me: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
5117 ac_header_compiler=no
5119 rm -f conftest.$ac_objext conftest.$ac_ext
5120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5121 echo "${ECHO_T}$ac_header_compiler" >&6
5123 # Is the header present?
5124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5126 cat >conftest.$ac_ext <<_ACEOF
5127 #line $LINENO "configure"
5128 #include "confdefs.h"
5129 #include <$ac_header>
5130 _ACEOF
5131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5133 ac_status=$?
5134 egrep -v '^ *\+' conftest.er1 >conftest.err
5135 rm -f conftest.er1
5136 cat conftest.err >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } >/dev/null; then
5139 if test -s conftest.err; then
5140 ac_cpp_err=$ac_c_preproc_warn_flag
5141 else
5142 ac_cpp_err=
5144 else
5145 ac_cpp_err=yes
5147 if test -z "$ac_cpp_err"; then
5148 ac_header_preproc=yes
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5152 ac_header_preproc=no
5154 rm -f conftest.err conftest.$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5156 echo "${ECHO_T}$ac_header_preproc" >&6
5158 # So? What about this header?
5159 case $ac_header_compiler:$ac_header_preproc in
5160 yes:no )
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5165 no:yes )
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5172 esac
5173 echo "$as_me:$LINENO: checking for $ac_header" >&5
5174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 eval "$as_ac_Header=$ac_header_preproc"
5180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5185 cat >>confdefs.h <<_ACEOF
5186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5187 _ACEOF
5191 done
5195 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
5196 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
5198 case "$host_os" in
5199 *hpux*)
5200 cat >conftest.$ac_ext <<_ACEOF
5201 #line $LINENO "configure"
5202 #include "confdefs.h"
5203 #include <shadow.h>
5204 #ifdef F77_DUMMY_MAIN
5205 # ifdef __cplusplus
5206 extern "C"
5207 # endif
5208 int F77_DUMMY_MAIN() { return 1; }
5209 #endif
5211 main ()
5213 struct spwd testme
5215 return 0;
5217 _ACEOF
5218 rm -f conftest.$ac_objext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220 (eval $ac_compile) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -s conftest.$ac_objext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_cv_header_shadow_h=yes
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5234 ac_cv_header_shadow_h=no
5236 rm -f conftest.$ac_objext conftest.$ac_ext
5237 if test x"$ac_cv_header_shadow_h" = x"yes"; then
5239 cat >>confdefs.h <<\_ACEOF
5240 #define HAVE_SHADOW_H 1
5241 _ACEOF
5245 esac
5251 for ac_header in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
5253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5255 echo "$as_me:$LINENO: checking for $ac_header" >&5
5256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5262 else
5263 # Is the header compilable?
5264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5266 cat >conftest.$ac_ext <<_ACEOF
5267 #line $LINENO "configure"
5268 #include "confdefs.h"
5269 $ac_includes_default
5270 #include <$ac_header>
5271 _ACEOF
5272 rm -f conftest.$ac_objext
5273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5274 (eval $ac_compile) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } &&
5278 { ac_try='test -s conftest.$ac_objext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 ac_header_compiler=yes
5285 else
5286 echo "$as_me: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5288 ac_header_compiler=no
5290 rm -f conftest.$ac_objext conftest.$ac_ext
5291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5292 echo "${ECHO_T}$ac_header_compiler" >&6
5294 # Is the header present?
5295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5297 cat >conftest.$ac_ext <<_ACEOF
5298 #line $LINENO "configure"
5299 #include "confdefs.h"
5300 #include <$ac_header>
5301 _ACEOF
5302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5304 ac_status=$?
5305 egrep -v '^ *\+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } >/dev/null; then
5310 if test -s conftest.err; then
5311 ac_cpp_err=$ac_c_preproc_warn_flag
5312 else
5313 ac_cpp_err=
5315 else
5316 ac_cpp_err=yes
5318 if test -z "$ac_cpp_err"; then
5319 ac_header_preproc=yes
5320 else
5321 echo "$as_me: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5323 ac_header_preproc=no
5325 rm -f conftest.err conftest.$ac_ext
5326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5327 echo "${ECHO_T}$ac_header_preproc" >&6
5329 # So? What about this header?
5330 case $ac_header_compiler:$ac_header_preproc in
5331 yes:no )
5332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5336 no:yes )
5337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5343 esac
5344 echo "$as_me:$LINENO: checking for $ac_header" >&5
5345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 eval "$as_ac_Header=$ac_header_preproc"
5351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5356 cat >>confdefs.h <<_ACEOF
5357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5358 _ACEOF
5362 done
5370 for ac_header in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
5372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5374 echo "$as_me:$LINENO: checking for $ac_header" >&5
5375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5381 else
5382 # Is the header compilable?
5383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5385 cat >conftest.$ac_ext <<_ACEOF
5386 #line $LINENO "configure"
5387 #include "confdefs.h"
5388 $ac_includes_default
5389 #include <$ac_header>
5390 _ACEOF
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -s conftest.$ac_objext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 (eval $ac_try) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_header_compiler=yes
5404 else
5405 echo "$as_me: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5407 ac_header_compiler=no
5409 rm -f conftest.$ac_objext conftest.$ac_ext
5410 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5411 echo "${ECHO_T}$ac_header_compiler" >&6
5413 # Is the header present?
5414 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5416 cat >conftest.$ac_ext <<_ACEOF
5417 #line $LINENO "configure"
5418 #include "confdefs.h"
5419 #include <$ac_header>
5420 _ACEOF
5421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5423 ac_status=$?
5424 egrep -v '^ *\+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } >/dev/null; then
5429 if test -s conftest.err; then
5430 ac_cpp_err=$ac_c_preproc_warn_flag
5431 else
5432 ac_cpp_err=
5434 else
5435 ac_cpp_err=yes
5437 if test -z "$ac_cpp_err"; then
5438 ac_header_preproc=yes
5439 else
5440 echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_header_preproc=no
5444 rm -f conftest.err conftest.$ac_ext
5445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5446 echo "${ECHO_T}$ac_header_preproc" >&6
5448 # So? What about this header?
5449 case $ac_header_compiler:$ac_header_preproc in
5450 yes:no )
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5455 no:yes )
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5462 esac
5463 echo "$as_me:$LINENO: checking for $ac_header" >&5
5464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468 eval "$as_ac_Header=$ac_header_preproc"
5470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5475 cat >>confdefs.h <<_ACEOF
5476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5477 _ACEOF
5481 done
5485 for ac_header in stropts.h poll.h
5487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5489 echo "$as_me:$LINENO: checking for $ac_header" >&5
5490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5496 else
5497 # Is the header compilable?
5498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5500 cat >conftest.$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5502 #include "confdefs.h"
5503 $ac_includes_default
5504 #include <$ac_header>
5505 _ACEOF
5506 rm -f conftest.$ac_objext
5507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5508 (eval $ac_compile) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -s conftest.$ac_objext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 (eval $ac_try) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5518 ac_header_compiler=yes
5519 else
5520 echo "$as_me: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5522 ac_header_compiler=no
5524 rm -f conftest.$ac_objext conftest.$ac_ext
5525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5526 echo "${ECHO_T}$ac_header_compiler" >&6
5528 # Is the header present?
5529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5531 cat >conftest.$ac_ext <<_ACEOF
5532 #line $LINENO "configure"
5533 #include "confdefs.h"
5534 #include <$ac_header>
5535 _ACEOF
5536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5538 ac_status=$?
5539 egrep -v '^ *\+' conftest.er1 >conftest.err
5540 rm -f conftest.er1
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } >/dev/null; then
5544 if test -s conftest.err; then
5545 ac_cpp_err=$ac_c_preproc_warn_flag
5546 else
5547 ac_cpp_err=
5549 else
5550 ac_cpp_err=yes
5552 if test -z "$ac_cpp_err"; then
5553 ac_header_preproc=yes
5554 else
5555 echo "$as_me: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5557 ac_header_preproc=no
5559 rm -f conftest.err conftest.$ac_ext
5560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5561 echo "${ECHO_T}$ac_header_preproc" >&6
5563 # So? What about this header?
5564 case $ac_header_compiler:$ac_header_preproc in
5565 yes:no )
5566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5570 no:yes )
5571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5577 esac
5578 echo "$as_me:$LINENO: checking for $ac_header" >&5
5579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583 eval "$as_ac_Header=$ac_header_preproc"
5585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5590 cat >>confdefs.h <<_ACEOF
5591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5592 _ACEOF
5596 done
5601 for ac_header in sys/capability.h syscall.h sys/syscall.h
5603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5605 echo "$as_me:$LINENO: checking for $ac_header" >&5
5606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612 else
5613 # Is the header compilable?
5614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5618 #include "confdefs.h"
5619 $ac_includes_default
5620 #include <$ac_header>
5621 _ACEOF
5622 rm -f conftest.$ac_objext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624 (eval $ac_compile) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try='test -s conftest.$ac_objext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_header_compiler=yes
5635 else
5636 echo "$as_me: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5638 ac_header_compiler=no
5640 rm -f conftest.$ac_objext conftest.$ac_ext
5641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5642 echo "${ECHO_T}$ac_header_compiler" >&6
5644 # Is the header present?
5645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5647 cat >conftest.$ac_ext <<_ACEOF
5648 #line $LINENO "configure"
5649 #include "confdefs.h"
5650 #include <$ac_header>
5651 _ACEOF
5652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5654 ac_status=$?
5655 egrep -v '^ *\+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } >/dev/null; then
5660 if test -s conftest.err; then
5661 ac_cpp_err=$ac_c_preproc_warn_flag
5662 else
5663 ac_cpp_err=
5665 else
5666 ac_cpp_err=yes
5668 if test -z "$ac_cpp_err"; then
5669 ac_header_preproc=yes
5670 else
5671 echo "$as_me: failed program was:" >&5
5672 cat conftest.$ac_ext >&5
5673 ac_header_preproc=no
5675 rm -f conftest.err conftest.$ac_ext
5676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5677 echo "${ECHO_T}$ac_header_preproc" >&6
5679 # So? What about this header?
5680 case $ac_header_compiler:$ac_header_preproc in
5681 yes:no )
5682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5686 no:yes )
5687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5693 esac
5694 echo "$as_me:$LINENO: checking for $ac_header" >&5
5695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699 eval "$as_ac_Header=$ac_header_preproc"
5701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5706 cat >>confdefs.h <<_ACEOF
5707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5708 _ACEOF
5712 done
5717 for ac_header in sys/acl.h sys/cdefs.h glob.h
5719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5721 echo "$as_me:$LINENO: checking for $ac_header" >&5
5722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5728 else
5729 # Is the header compilable?
5730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5732 cat >conftest.$ac_ext <<_ACEOF
5733 #line $LINENO "configure"
5734 #include "confdefs.h"
5735 $ac_includes_default
5736 #include <$ac_header>
5737 _ACEOF
5738 rm -f conftest.$ac_objext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5740 (eval $ac_compile) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_header_compiler=yes
5751 else
5752 echo "$as_me: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5754 ac_header_compiler=no
5756 rm -f conftest.$ac_objext conftest.$ac_ext
5757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5758 echo "${ECHO_T}$ac_header_compiler" >&6
5760 # Is the header present?
5761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5763 cat >conftest.$ac_ext <<_ACEOF
5764 #line $LINENO "configure"
5765 #include "confdefs.h"
5766 #include <$ac_header>
5767 _ACEOF
5768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5770 ac_status=$?
5771 egrep -v '^ *\+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } >/dev/null; then
5776 if test -s conftest.err; then
5777 ac_cpp_err=$ac_c_preproc_warn_flag
5778 else
5779 ac_cpp_err=
5781 else
5782 ac_cpp_err=yes
5784 if test -z "$ac_cpp_err"; then
5785 ac_header_preproc=yes
5786 else
5787 echo "$as_me: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5789 ac_header_preproc=no
5791 rm -f conftest.err conftest.$ac_ext
5792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5793 echo "${ECHO_T}$ac_header_preproc" >&6
5795 # So? What about this header?
5796 case $ac_header_compiler:$ac_header_preproc in
5797 yes:no )
5798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5802 no:yes )
5803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5809 esac
5810 echo "$as_me:$LINENO: checking for $ac_header" >&5
5811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 eval "$as_ac_Header=$ac_header_preproc"
5817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5822 cat >>confdefs.h <<_ACEOF
5823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5824 _ACEOF
5828 done
5831 # For experimental utmp support (lastlog on some BSD-like systems)
5835 for ac_header in utmp.h utmpx.h lastlog.h
5837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5839 echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5846 else
5847 # Is the header compilable?
5848 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5850 cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5852 #include "confdefs.h"
5853 $ac_includes_default
5854 #include <$ac_header>
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_header_compiler=yes
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 ac_header_compiler=no
5874 rm -f conftest.$ac_objext conftest.$ac_ext
5875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5876 echo "${ECHO_T}$ac_header_compiler" >&6
5878 # Is the header present?
5879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5881 cat >conftest.$ac_ext <<_ACEOF
5882 #line $LINENO "configure"
5883 #include "confdefs.h"
5884 #include <$ac_header>
5885 _ACEOF
5886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5888 ac_status=$?
5889 egrep -v '^ *\+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } >/dev/null; then
5894 if test -s conftest.err; then
5895 ac_cpp_err=$ac_c_preproc_warn_flag
5896 else
5897 ac_cpp_err=
5899 else
5900 ac_cpp_err=yes
5902 if test -z "$ac_cpp_err"; then
5903 ac_header_preproc=yes
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
5907 ac_header_preproc=no
5909 rm -f conftest.err conftest.$ac_ext
5910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5911 echo "${ECHO_T}$ac_header_preproc" >&6
5913 # So? What about this header?
5914 case $ac_header_compiler:$ac_header_preproc in
5915 yes:no )
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5920 no:yes )
5921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5927 esac
5928 echo "$as_me:$LINENO: checking for $ac_header" >&5
5929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933 eval "$as_ac_Header=$ac_header_preproc"
5935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5940 cat >>confdefs.h <<_ACEOF
5941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5942 _ACEOF
5946 done
5949 # For quotas on Veritas VxFS filesystems
5951 for ac_header in sys/fs/vx_quota.h
5953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5955 echo "$as_me:$LINENO: checking for $ac_header" >&5
5956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5962 else
5963 # Is the header compilable?
5964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5966 cat >conftest.$ac_ext <<_ACEOF
5967 #line $LINENO "configure"
5968 #include "confdefs.h"
5969 $ac_includes_default
5970 #include <$ac_header>
5971 _ACEOF
5972 rm -f conftest.$ac_objext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974 (eval $ac_compile) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_header_compiler=yes
5985 else
5986 echo "$as_me: failed program was:" >&5
5987 cat conftest.$ac_ext >&5
5988 ac_header_compiler=no
5990 rm -f conftest.$ac_objext conftest.$ac_ext
5991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5992 echo "${ECHO_T}$ac_header_compiler" >&6
5994 # Is the header present?
5995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5997 cat >conftest.$ac_ext <<_ACEOF
5998 #line $LINENO "configure"
5999 #include "confdefs.h"
6000 #include <$ac_header>
6001 _ACEOF
6002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6004 ac_status=$?
6005 egrep -v '^ *\+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } >/dev/null; then
6010 if test -s conftest.err; then
6011 ac_cpp_err=$ac_c_preproc_warn_flag
6012 else
6013 ac_cpp_err=
6015 else
6016 ac_cpp_err=yes
6018 if test -z "$ac_cpp_err"; then
6019 ac_header_preproc=yes
6020 else
6021 echo "$as_me: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6023 ac_header_preproc=no
6025 rm -f conftest.err conftest.$ac_ext
6026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6027 echo "${ECHO_T}$ac_header_preproc" >&6
6029 # So? What about this header?
6030 case $ac_header_compiler:$ac_header_preproc in
6031 yes:no )
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6036 no:yes )
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6043 esac
6044 echo "$as_me:$LINENO: checking for $ac_header" >&5
6045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 eval "$as_ac_Header=$ac_header_preproc"
6051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6056 cat >>confdefs.h <<_ACEOF
6057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6058 _ACEOF
6062 done
6065 # For quotas on Linux XFS filesystems
6067 for ac_header in linux/xqm.h
6069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071 echo "$as_me:$LINENO: checking for $ac_header" >&5
6072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6078 else
6079 # Is the header compilable?
6080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6082 cat >conftest.$ac_ext <<_ACEOF
6083 #line $LINENO "configure"
6084 #include "confdefs.h"
6085 $ac_includes_default
6086 #include <$ac_header>
6087 _ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090 (eval $ac_compile) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } &&
6094 { ac_try='test -s conftest.$ac_objext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 (eval $ac_try) 2>&5
6097 ac_status=$?
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_header_compiler=yes
6101 else
6102 echo "$as_me: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6104 ac_header_compiler=no
6106 rm -f conftest.$ac_objext conftest.$ac_ext
6107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6108 echo "${ECHO_T}$ac_header_compiler" >&6
6110 # Is the header present?
6111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6113 cat >conftest.$ac_ext <<_ACEOF
6114 #line $LINENO "configure"
6115 #include "confdefs.h"
6116 #include <$ac_header>
6117 _ACEOF
6118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6120 ac_status=$?
6121 egrep -v '^ *\+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } >/dev/null; then
6126 if test -s conftest.err; then
6127 ac_cpp_err=$ac_c_preproc_warn_flag
6128 else
6129 ac_cpp_err=
6131 else
6132 ac_cpp_err=yes
6134 if test -z "$ac_cpp_err"; then
6135 ac_header_preproc=yes
6136 else
6137 echo "$as_me: failed program was:" >&5
6138 cat conftest.$ac_ext >&5
6139 ac_header_preproc=no
6141 rm -f conftest.err conftest.$ac_ext
6142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6143 echo "${ECHO_T}$ac_header_preproc" >&6
6145 # So? What about this header?
6146 case $ac_header_compiler:$ac_header_preproc in
6147 yes:no )
6148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6152 no:yes )
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6159 esac
6160 echo "$as_me:$LINENO: checking for $ac_header" >&5
6161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165 eval "$as_ac_Header=$ac_header_preproc"
6167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6172 cat >>confdefs.h <<_ACEOF
6173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6174 _ACEOF
6178 done
6181 for ac_header in xfs/xqm.h
6183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6185 echo "$as_me:$LINENO: checking for $ac_header" >&5
6186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6192 else
6193 # Is the header compilable?
6194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6196 cat >conftest.$ac_ext <<_ACEOF
6197 #line $LINENO "configure"
6198 #include "confdefs.h"
6199 $ac_includes_default
6200 #include <$ac_header>
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } &&
6208 { ac_try='test -s conftest.$ac_objext'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 ac_header_compiler=yes
6215 else
6216 echo "$as_me: failed program was:" >&5
6217 cat conftest.$ac_ext >&5
6218 ac_header_compiler=no
6220 rm -f conftest.$ac_objext conftest.$ac_ext
6221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6222 echo "${ECHO_T}$ac_header_compiler" >&6
6224 # Is the header present?
6225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6227 cat >conftest.$ac_ext <<_ACEOF
6228 #line $LINENO "configure"
6229 #include "confdefs.h"
6230 #include <$ac_header>
6231 _ACEOF
6232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6234 ac_status=$?
6235 egrep -v '^ *\+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } >/dev/null; then
6240 if test -s conftest.err; then
6241 ac_cpp_err=$ac_c_preproc_warn_flag
6242 else
6243 ac_cpp_err=
6245 else
6246 ac_cpp_err=yes
6248 if test -z "$ac_cpp_err"; then
6249 ac_header_preproc=yes
6250 else
6251 echo "$as_me: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6253 ac_header_preproc=no
6255 rm -f conftest.err conftest.$ac_ext
6256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6257 echo "${ECHO_T}$ac_header_preproc" >&6
6259 # So? What about this header?
6260 case $ac_header_compiler:$ac_header_preproc in
6261 yes:no )
6262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6266 no:yes )
6267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6273 esac
6274 echo "$as_me:$LINENO: checking for $ac_header" >&5
6275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279 eval "$as_ac_Header=$ac_header_preproc"
6281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6286 cat >>confdefs.h <<_ACEOF
6287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6288 _ACEOF
6292 done
6295 echo "$as_me:$LINENO: checking for int" >&5
6296 echo $ECHO_N "checking for int... $ECHO_C" >&6
6297 if test "${ac_cv_type_int+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 cat >conftest.$ac_ext <<_ACEOF
6301 #line $LINENO "configure"
6302 #include "confdefs.h"
6303 $ac_includes_default
6304 #ifdef F77_DUMMY_MAIN
6305 # ifdef __cplusplus
6306 extern "C"
6307 # endif
6308 int F77_DUMMY_MAIN() { return 1; }
6309 #endif
6311 main ()
6313 if ((int *) 0)
6314 return 0;
6315 if (sizeof (int))
6316 return 0;
6318 return 0;
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323 (eval $ac_compile) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -s conftest.$ac_objext'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 (eval $ac_try) 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
6333 ac_cv_type_int=yes
6334 else
6335 echo "$as_me: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6337 ac_cv_type_int=no
6339 rm -f conftest.$ac_objext conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6342 echo "${ECHO_T}$ac_cv_type_int" >&6
6344 echo "$as_me:$LINENO: checking size of int" >&5
6345 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6346 if test "${ac_cv_sizeof_int+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349 if test "$ac_cv_type_int" = yes; then
6350 # The cast to unsigned long works around a bug in the HP C Compiler
6351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6353 # This bug is HP SR number 8606223364.
6354 if test "$cross_compiling" = yes; then
6355 # Depending upon the size, compute the lo and hi bounds.
6356 cat >conftest.$ac_ext <<_ACEOF
6357 #line $LINENO "configure"
6358 #include "confdefs.h"
6359 $ac_includes_default
6360 #ifdef F77_DUMMY_MAIN
6361 # ifdef __cplusplus
6362 extern "C"
6363 # endif
6364 int F77_DUMMY_MAIN() { return 1; }
6365 #endif
6367 main ()
6369 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6370 test_array [0] = 0
6373 return 0;
6375 _ACEOF
6376 rm -f conftest.$ac_objext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try='test -s conftest.$ac_objext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 (eval $ac_try) 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6388 ac_lo=0 ac_mid=0
6389 while :; do
6390 cat >conftest.$ac_ext <<_ACEOF
6391 #line $LINENO "configure"
6392 #include "confdefs.h"
6393 $ac_includes_default
6394 #ifdef F77_DUMMY_MAIN
6395 # ifdef __cplusplus
6396 extern "C"
6397 # endif
6398 int F77_DUMMY_MAIN() { return 1; }
6399 #endif
6401 main ()
6403 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6404 test_array [0] = 0
6407 return 0;
6409 _ACEOF
6410 rm -f conftest.$ac_objext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412 (eval $ac_compile) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try='test -s conftest.$ac_objext'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 (eval $ac_try) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6422 ac_hi=$ac_mid; break
6423 else
6424 echo "$as_me: failed program was:" >&5
6425 cat conftest.$ac_ext >&5
6426 ac_lo=`expr $ac_mid + 1`
6427 if test $ac_lo -le $ac_mid; then
6428 ac_lo= ac_hi=
6429 break
6431 ac_mid=`expr 2 '*' $ac_mid + 1`
6433 rm -f conftest.$ac_objext conftest.$ac_ext
6434 done
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 cat conftest.$ac_ext >&5
6438 cat >conftest.$ac_ext <<_ACEOF
6439 #line $LINENO "configure"
6440 #include "confdefs.h"
6441 $ac_includes_default
6442 #ifdef F77_DUMMY_MAIN
6443 # ifdef __cplusplus
6444 extern "C"
6445 # endif
6446 int F77_DUMMY_MAIN() { return 1; }
6447 #endif
6449 main ()
6451 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6452 test_array [0] = 0
6455 return 0;
6457 _ACEOF
6458 rm -f conftest.$ac_objext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460 (eval $ac_compile) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try='test -s conftest.$ac_objext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 (eval $ac_try) 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_hi=-1 ac_mid=-1
6471 while :; do
6472 cat >conftest.$ac_ext <<_ACEOF
6473 #line $LINENO "configure"
6474 #include "confdefs.h"
6475 $ac_includes_default
6476 #ifdef F77_DUMMY_MAIN
6477 # ifdef __cplusplus
6478 extern "C"
6479 # endif
6480 int F77_DUMMY_MAIN() { return 1; }
6481 #endif
6483 main ()
6485 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6486 test_array [0] = 0
6489 return 0;
6491 _ACEOF
6492 rm -f conftest.$ac_objext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6494 (eval $ac_compile) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -s conftest.$ac_objext'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; }; then
6504 ac_lo=$ac_mid; break
6505 else
6506 echo "$as_me: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6508 ac_hi=`expr '(' $ac_mid ')' - 1`
6509 if test $ac_mid -le $ac_hi; then
6510 ac_lo= ac_hi=
6511 break
6513 ac_mid=`expr 2 '*' $ac_mid`
6515 rm -f conftest.$ac_objext conftest.$ac_ext
6516 done
6517 else
6518 echo "$as_me: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6520 ac_lo= ac_hi=
6522 rm -f conftest.$ac_objext conftest.$ac_ext
6524 rm -f conftest.$ac_objext conftest.$ac_ext
6525 # Binary search between lo and hi bounds.
6526 while test "x$ac_lo" != "x$ac_hi"; do
6527 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6528 cat >conftest.$ac_ext <<_ACEOF
6529 #line $LINENO "configure"
6530 #include "confdefs.h"
6531 $ac_includes_default
6532 #ifdef F77_DUMMY_MAIN
6533 # ifdef __cplusplus
6534 extern "C"
6535 # endif
6536 int F77_DUMMY_MAIN() { return 1; }
6537 #endif
6539 main ()
6541 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6542 test_array [0] = 0
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>&5
6551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try='test -s conftest.$ac_objext'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 ac_hi=$ac_mid
6561 else
6562 echo "$as_me: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6564 ac_lo=`expr '(' $ac_mid ')' + 1`
6566 rm -f conftest.$ac_objext conftest.$ac_ext
6567 done
6568 case $ac_lo in
6569 ?*) ac_cv_sizeof_int=$ac_lo;;
6570 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6571 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6572 { (exit 1); exit 1; }; } ;;
6573 esac
6574 else
6575 if test "$cross_compiling" = yes; then
6576 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6577 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6578 { (exit 1); exit 1; }; }
6579 else
6580 cat >conftest.$ac_ext <<_ACEOF
6581 #line $LINENO "configure"
6582 #include "confdefs.h"
6583 $ac_includes_default
6584 long longval () { return (long) (sizeof (int)); }
6585 unsigned long ulongval () { return (long) (sizeof (int)); }
6586 #include <stdio.h>
6587 #include <stdlib.h>
6588 #ifdef F77_DUMMY_MAIN
6589 # ifdef __cplusplus
6590 extern "C"
6591 # endif
6592 int F77_DUMMY_MAIN() { return 1; }
6593 #endif
6595 main ()
6598 FILE *f = fopen ("conftest.val", "w");
6599 if (! f)
6600 exit (1);
6601 if (((long) (sizeof (int))) < 0)
6603 long i = longval ();
6604 if (i != ((long) (sizeof (int))))
6605 exit (1);
6606 fprintf (f, "%ld\n", i);
6608 else
6610 unsigned long i = ulongval ();
6611 if (i != ((long) (sizeof (int))))
6612 exit (1);
6613 fprintf (f, "%lu\n", i);
6615 exit (ferror (f) || fclose (f) != 0);
6618 return 0;
6620 _ACEOF
6621 rm -f conftest$ac_exeext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623 (eval $ac_link) 2>&5
6624 ac_status=$?
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; }; then
6632 ac_cv_sizeof_int=`cat conftest.val`
6633 else
6634 echo "$as_me: program exited with status $ac_status" >&5
6635 echo "$as_me: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6637 ( exit $ac_status )
6638 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6639 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6640 { (exit 1); exit 1; }; }
6642 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6645 rm -f conftest.val
6646 else
6647 ac_cv_sizeof_int=0
6650 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6651 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6652 cat >>confdefs.h <<_ACEOF
6653 #define SIZEOF_INT $ac_cv_sizeof_int
6654 _ACEOF
6657 echo "$as_me:$LINENO: checking for long" >&5
6658 echo $ECHO_N "checking for long... $ECHO_C" >&6
6659 if test "${ac_cv_type_long+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 cat >conftest.$ac_ext <<_ACEOF
6663 #line $LINENO "configure"
6664 #include "confdefs.h"
6665 $ac_includes_default
6666 #ifdef F77_DUMMY_MAIN
6667 # ifdef __cplusplus
6668 extern "C"
6669 # endif
6670 int F77_DUMMY_MAIN() { return 1; }
6671 #endif
6673 main ()
6675 if ((long *) 0)
6676 return 0;
6677 if (sizeof (long))
6678 return 0;
6680 return 0;
6682 _ACEOF
6683 rm -f conftest.$ac_objext
6684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6685 (eval $ac_compile) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try='test -s conftest.$ac_objext'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 (eval $ac_try) 2>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; }; then
6695 ac_cv_type_long=yes
6696 else
6697 echo "$as_me: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6699 ac_cv_type_long=no
6701 rm -f conftest.$ac_objext conftest.$ac_ext
6703 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6704 echo "${ECHO_T}$ac_cv_type_long" >&6
6706 echo "$as_me:$LINENO: checking size of long" >&5
6707 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6708 if test "${ac_cv_sizeof_long+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 if test "$ac_cv_type_long" = yes; then
6712 # The cast to unsigned long works around a bug in the HP C Compiler
6713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6715 # This bug is HP SR number 8606223364.
6716 if test "$cross_compiling" = yes; then
6717 # Depending upon the size, compute the lo and hi bounds.
6718 cat >conftest.$ac_ext <<_ACEOF
6719 #line $LINENO "configure"
6720 #include "confdefs.h"
6721 $ac_includes_default
6722 #ifdef F77_DUMMY_MAIN
6723 # ifdef __cplusplus
6724 extern "C"
6725 # endif
6726 int F77_DUMMY_MAIN() { return 1; }
6727 #endif
6729 main ()
6731 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6732 test_array [0] = 0
6735 return 0;
6737 _ACEOF
6738 rm -f conftest.$ac_objext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6740 (eval $ac_compile) 2>&5
6741 ac_status=$?
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try='test -s conftest.$ac_objext'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6750 ac_lo=0 ac_mid=0
6751 while :; do
6752 cat >conftest.$ac_ext <<_ACEOF
6753 #line $LINENO "configure"
6754 #include "confdefs.h"
6755 $ac_includes_default
6756 #ifdef F77_DUMMY_MAIN
6757 # ifdef __cplusplus
6758 extern "C"
6759 # endif
6760 int F77_DUMMY_MAIN() { return 1; }
6761 #endif
6763 main ()
6765 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6766 test_array [0] = 0
6769 return 0;
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774 (eval $ac_compile) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -s conftest.$ac_objext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 (eval $ac_try) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6784 ac_hi=$ac_mid; break
6785 else
6786 echo "$as_me: failed program was:" >&5
6787 cat conftest.$ac_ext >&5
6788 ac_lo=`expr $ac_mid + 1`
6789 if test $ac_lo -le $ac_mid; then
6790 ac_lo= ac_hi=
6791 break
6793 ac_mid=`expr 2 '*' $ac_mid + 1`
6795 rm -f conftest.$ac_objext conftest.$ac_ext
6796 done
6797 else
6798 echo "$as_me: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6800 cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6802 #include "confdefs.h"
6803 $ac_includes_default
6804 #ifdef F77_DUMMY_MAIN
6805 # ifdef __cplusplus
6806 extern "C"
6807 # endif
6808 int F77_DUMMY_MAIN() { return 1; }
6809 #endif
6811 main ()
6813 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6814 test_array [0] = 0
6817 return 0;
6819 _ACEOF
6820 rm -f conftest.$ac_objext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6822 (eval $ac_compile) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -s conftest.$ac_objext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_hi=-1 ac_mid=-1
6833 while :; do
6834 cat >conftest.$ac_ext <<_ACEOF
6835 #line $LINENO "configure"
6836 #include "confdefs.h"
6837 $ac_includes_default
6838 #ifdef F77_DUMMY_MAIN
6839 # ifdef __cplusplus
6840 extern "C"
6841 # endif
6842 int F77_DUMMY_MAIN() { return 1; }
6843 #endif
6845 main ()
6847 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6848 test_array [0] = 0
6851 return 0;
6853 _ACEOF
6854 rm -f conftest.$ac_objext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6856 (eval $ac_compile) 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -s conftest.$ac_objext'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 (eval $ac_try) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6866 ac_lo=$ac_mid; break
6867 else
6868 echo "$as_me: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6870 ac_hi=`expr '(' $ac_mid ')' - 1`
6871 if test $ac_mid -le $ac_hi; then
6872 ac_lo= ac_hi=
6873 break
6875 ac_mid=`expr 2 '*' $ac_mid`
6877 rm -f conftest.$ac_objext conftest.$ac_ext
6878 done
6879 else
6880 echo "$as_me: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6882 ac_lo= ac_hi=
6884 rm -f conftest.$ac_objext conftest.$ac_ext
6886 rm -f conftest.$ac_objext conftest.$ac_ext
6887 # Binary search between lo and hi bounds.
6888 while test "x$ac_lo" != "x$ac_hi"; do
6889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6890 cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6892 #include "confdefs.h"
6893 $ac_includes_default
6894 #ifdef F77_DUMMY_MAIN
6895 # ifdef __cplusplus
6896 extern "C"
6897 # endif
6898 int F77_DUMMY_MAIN() { return 1; }
6899 #endif
6901 main ()
6903 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6904 test_array [0] = 0
6907 return 0;
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912 (eval $ac_compile) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -s conftest.$ac_objext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_hi=$ac_mid
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 cat conftest.$ac_ext >&5
6926 ac_lo=`expr '(' $ac_mid ')' + 1`
6928 rm -f conftest.$ac_objext conftest.$ac_ext
6929 done
6930 case $ac_lo in
6931 ?*) ac_cv_sizeof_long=$ac_lo;;
6932 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6933 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6934 { (exit 1); exit 1; }; } ;;
6935 esac
6936 else
6937 if test "$cross_compiling" = yes; then
6938 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6939 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6940 { (exit 1); exit 1; }; }
6941 else
6942 cat >conftest.$ac_ext <<_ACEOF
6943 #line $LINENO "configure"
6944 #include "confdefs.h"
6945 $ac_includes_default
6946 long longval () { return (long) (sizeof (long)); }
6947 unsigned long ulongval () { return (long) (sizeof (long)); }
6948 #include <stdio.h>
6949 #include <stdlib.h>
6950 #ifdef F77_DUMMY_MAIN
6951 # ifdef __cplusplus
6952 extern "C"
6953 # endif
6954 int F77_DUMMY_MAIN() { return 1; }
6955 #endif
6957 main ()
6960 FILE *f = fopen ("conftest.val", "w");
6961 if (! f)
6962 exit (1);
6963 if (((long) (sizeof (long))) < 0)
6965 long i = longval ();
6966 if (i != ((long) (sizeof (long))))
6967 exit (1);
6968 fprintf (f, "%ld\n", i);
6970 else
6972 unsigned long i = ulongval ();
6973 if (i != ((long) (sizeof (long))))
6974 exit (1);
6975 fprintf (f, "%lu\n", i);
6977 exit (ferror (f) || fclose (f) != 0);
6980 return 0;
6982 _ACEOF
6983 rm -f conftest$ac_exeext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6985 (eval $ac_link) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 (eval $ac_try) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; }; then
6994 ac_cv_sizeof_long=`cat conftest.val`
6995 else
6996 echo "$as_me: program exited with status $ac_status" >&5
6997 echo "$as_me: failed program was:" >&5
6998 cat conftest.$ac_ext >&5
6999 ( exit $ac_status )
7000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
7001 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
7002 { (exit 1); exit 1; }; }
7004 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7007 rm -f conftest.val
7008 else
7009 ac_cv_sizeof_long=0
7012 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7013 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7014 cat >>confdefs.h <<_ACEOF
7015 #define SIZEOF_LONG $ac_cv_sizeof_long
7016 _ACEOF
7019 echo "$as_me:$LINENO: checking for short" >&5
7020 echo $ECHO_N "checking for short... $ECHO_C" >&6
7021 if test "${ac_cv_type_short+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 cat >conftest.$ac_ext <<_ACEOF
7025 #line $LINENO "configure"
7026 #include "confdefs.h"
7027 $ac_includes_default
7028 #ifdef F77_DUMMY_MAIN
7029 # ifdef __cplusplus
7030 extern "C"
7031 # endif
7032 int F77_DUMMY_MAIN() { return 1; }
7033 #endif
7035 main ()
7037 if ((short *) 0)
7038 return 0;
7039 if (sizeof (short))
7040 return 0;
7042 return 0;
7044 _ACEOF
7045 rm -f conftest.$ac_objext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047 (eval $ac_compile) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -s conftest.$ac_objext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_type_short=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 cat conftest.$ac_ext >&5
7061 ac_cv_type_short=no
7063 rm -f conftest.$ac_objext conftest.$ac_ext
7065 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7066 echo "${ECHO_T}$ac_cv_type_short" >&6
7068 echo "$as_me:$LINENO: checking size of short" >&5
7069 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7070 if test "${ac_cv_sizeof_short+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 if test "$ac_cv_type_short" = yes; then
7074 # The cast to unsigned long works around a bug in the HP C Compiler
7075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7077 # This bug is HP SR number 8606223364.
7078 if test "$cross_compiling" = yes; then
7079 # Depending upon the size, compute the lo and hi bounds.
7080 cat >conftest.$ac_ext <<_ACEOF
7081 #line $LINENO "configure"
7082 #include "confdefs.h"
7083 $ac_includes_default
7084 #ifdef F77_DUMMY_MAIN
7085 # ifdef __cplusplus
7086 extern "C"
7087 # endif
7088 int F77_DUMMY_MAIN() { return 1; }
7089 #endif
7091 main ()
7093 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7094 test_array [0] = 0
7097 return 0;
7099 _ACEOF
7100 rm -f conftest.$ac_objext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7102 (eval $ac_compile) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } &&
7106 { ac_try='test -s conftest.$ac_objext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 ac_lo=0 ac_mid=0
7113 while :; do
7114 cat >conftest.$ac_ext <<_ACEOF
7115 #line $LINENO "configure"
7116 #include "confdefs.h"
7117 $ac_includes_default
7118 #ifdef F77_DUMMY_MAIN
7119 # ifdef __cplusplus
7120 extern "C"
7121 # endif
7122 int F77_DUMMY_MAIN() { return 1; }
7123 #endif
7125 main ()
7127 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7128 test_array [0] = 0
7131 return 0;
7133 _ACEOF
7134 rm -f conftest.$ac_objext
7135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136 (eval $ac_compile) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } &&
7140 { ac_try='test -s conftest.$ac_objext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 ac_hi=$ac_mid; break
7147 else
7148 echo "$as_me: failed program was:" >&5
7149 cat conftest.$ac_ext >&5
7150 ac_lo=`expr $ac_mid + 1`
7151 if test $ac_lo -le $ac_mid; then
7152 ac_lo= ac_hi=
7153 break
7155 ac_mid=`expr 2 '*' $ac_mid + 1`
7157 rm -f conftest.$ac_objext conftest.$ac_ext
7158 done
7159 else
7160 echo "$as_me: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7162 cat >conftest.$ac_ext <<_ACEOF
7163 #line $LINENO "configure"
7164 #include "confdefs.h"
7165 $ac_includes_default
7166 #ifdef F77_DUMMY_MAIN
7167 # ifdef __cplusplus
7168 extern "C"
7169 # endif
7170 int F77_DUMMY_MAIN() { return 1; }
7171 #endif
7173 main ()
7175 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7176 test_array [0] = 0
7179 return 0;
7181 _ACEOF
7182 rm -f conftest.$ac_objext
7183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7184 (eval $ac_compile) 2>&5
7185 ac_status=$?
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } &&
7188 { ac_try='test -s conftest.$ac_objext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 (eval $ac_try) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 ac_hi=-1 ac_mid=-1
7195 while :; do
7196 cat >conftest.$ac_ext <<_ACEOF
7197 #line $LINENO "configure"
7198 #include "confdefs.h"
7199 $ac_includes_default
7200 #ifdef F77_DUMMY_MAIN
7201 # ifdef __cplusplus
7202 extern "C"
7203 # endif
7204 int F77_DUMMY_MAIN() { return 1; }
7205 #endif
7207 main ()
7209 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7210 test_array [0] = 0
7213 return 0;
7215 _ACEOF
7216 rm -f conftest.$ac_objext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -s conftest.$ac_objext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 (eval $ac_try) 2>&5
7225 ac_status=$?
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7228 ac_lo=$ac_mid; break
7229 else
7230 echo "$as_me: failed program was:" >&5
7231 cat conftest.$ac_ext >&5
7232 ac_hi=`expr '(' $ac_mid ')' - 1`
7233 if test $ac_mid -le $ac_hi; then
7234 ac_lo= ac_hi=
7235 break
7237 ac_mid=`expr 2 '*' $ac_mid`
7239 rm -f conftest.$ac_objext conftest.$ac_ext
7240 done
7241 else
7242 echo "$as_me: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7244 ac_lo= ac_hi=
7246 rm -f conftest.$ac_objext conftest.$ac_ext
7248 rm -f conftest.$ac_objext conftest.$ac_ext
7249 # Binary search between lo and hi bounds.
7250 while test "x$ac_lo" != "x$ac_hi"; do
7251 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7252 cat >conftest.$ac_ext <<_ACEOF
7253 #line $LINENO "configure"
7254 #include "confdefs.h"
7255 $ac_includes_default
7256 #ifdef F77_DUMMY_MAIN
7257 # ifdef __cplusplus
7258 extern "C"
7259 # endif
7260 int F77_DUMMY_MAIN() { return 1; }
7261 #endif
7263 main ()
7265 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7266 test_array [0] = 0
7269 return 0;
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try='test -s conftest.$ac_objext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 ac_hi=$ac_mid
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7288 ac_lo=`expr '(' $ac_mid ')' + 1`
7290 rm -f conftest.$ac_objext conftest.$ac_ext
7291 done
7292 case $ac_lo in
7293 ?*) ac_cv_sizeof_short=$ac_lo;;
7294 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7295 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7296 { (exit 1); exit 1; }; } ;;
7297 esac
7298 else
7299 if test "$cross_compiling" = yes; then
7300 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7301 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7302 { (exit 1); exit 1; }; }
7303 else
7304 cat >conftest.$ac_ext <<_ACEOF
7305 #line $LINENO "configure"
7306 #include "confdefs.h"
7307 $ac_includes_default
7308 long longval () { return (long) (sizeof (short)); }
7309 unsigned long ulongval () { return (long) (sizeof (short)); }
7310 #include <stdio.h>
7311 #include <stdlib.h>
7312 #ifdef F77_DUMMY_MAIN
7313 # ifdef __cplusplus
7314 extern "C"
7315 # endif
7316 int F77_DUMMY_MAIN() { return 1; }
7317 #endif
7319 main ()
7322 FILE *f = fopen ("conftest.val", "w");
7323 if (! f)
7324 exit (1);
7325 if (((long) (sizeof (short))) < 0)
7327 long i = longval ();
7328 if (i != ((long) (sizeof (short))))
7329 exit (1);
7330 fprintf (f, "%ld\n", i);
7332 else
7334 unsigned long i = ulongval ();
7335 if (i != ((long) (sizeof (short))))
7336 exit (1);
7337 fprintf (f, "%lu\n", i);
7339 exit (ferror (f) || fclose (f) != 0);
7342 return 0;
7344 _ACEOF
7345 rm -f conftest$ac_exeext
7346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7347 (eval $ac_link) 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 (eval $ac_try) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_sizeof_short=`cat conftest.val`
7357 else
7358 echo "$as_me: program exited with status $ac_status" >&5
7359 echo "$as_me: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7361 ( exit $ac_status )
7362 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7363 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7364 { (exit 1); exit 1; }; }
7366 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7369 rm -f conftest.val
7370 else
7371 ac_cv_sizeof_short=0
7374 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7375 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7376 cat >>confdefs.h <<_ACEOF
7377 #define SIZEOF_SHORT $ac_cv_sizeof_short
7378 _ACEOF
7382 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7383 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7384 if test "${ac_cv_c_const+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387 cat >conftest.$ac_ext <<_ACEOF
7388 #line $LINENO "configure"
7389 #include "confdefs.h"
7391 #ifdef F77_DUMMY_MAIN
7392 # ifdef __cplusplus
7393 extern "C"
7394 # endif
7395 int F77_DUMMY_MAIN() { return 1; }
7396 #endif
7398 main ()
7400 /* FIXME: Include the comments suggested by Paul. */
7401 #ifndef __cplusplus
7402 /* Ultrix mips cc rejects this. */
7403 typedef int charset[2];
7404 const charset x;
7405 /* SunOS 4.1.1 cc rejects this. */
7406 char const *const *ccp;
7407 char **p;
7408 /* NEC SVR4.0.2 mips cc rejects this. */
7409 struct point {int x, y;};
7410 static struct point const zero = {0,0};
7411 /* AIX XL C 1.02.0.0 rejects this.
7412 It does not let you subtract one const X* pointer from another in
7413 an arm of an if-expression whose if-part is not a constant
7414 expression */
7415 const char *g = "string";
7416 ccp = &g + (g ? g-g : 0);
7417 /* HPUX 7.0 cc rejects these. */
7418 ++ccp;
7419 p = (char**) ccp;
7420 ccp = (char const *const *) p;
7421 { /* SCO 3.2v4 cc rejects this. */
7422 char *t;
7423 char const *s = 0 ? (char *) 0 : (char const *) 0;
7425 *t++ = 0;
7427 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7428 int x[] = {25, 17};
7429 const int *foo = &x[0];
7430 ++foo;
7432 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7433 typedef const int *iptr;
7434 iptr p = 0;
7435 ++p;
7437 { /* AIX XL C 1.02.0.0 rejects this saying
7438 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7439 struct s { int j; const int *ap[3]; };
7440 struct s *b; b->j = 5;
7442 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7443 const int foo = 10;
7445 #endif
7448 return 0;
7450 _ACEOF
7451 rm -f conftest.$ac_objext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7453 (eval $ac_compile) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } &&
7457 { ac_try='test -s conftest.$ac_objext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_c_const=yes
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 cat conftest.$ac_ext >&5
7467 ac_cv_c_const=no
7469 rm -f conftest.$ac_objext conftest.$ac_ext
7471 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7472 echo "${ECHO_T}$ac_cv_c_const" >&6
7473 if test $ac_cv_c_const = no; then
7475 cat >>confdefs.h <<\_ACEOF
7476 #define const
7477 _ACEOF
7481 echo "$as_me:$LINENO: checking for inline" >&5
7482 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7483 if test "${ac_cv_c_inline+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486 ac_cv_c_inline=no
7487 for ac_kw in inline __inline__ __inline; do
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line $LINENO "configure"
7490 #include "confdefs.h"
7491 #ifndef __cplusplus
7492 static $ac_kw int static_foo () {return 0; }
7493 $ac_kw int foo () {return 0; }
7494 #endif
7496 _ACEOF
7497 rm -f conftest.$ac_objext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7499 (eval $ac_compile) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } &&
7503 { ac_try='test -s conftest.$ac_objext'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 (eval $ac_try) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; }; then
7509 ac_cv_c_inline=$ac_kw; break
7510 else
7511 echo "$as_me: failed program was:" >&5
7512 cat conftest.$ac_ext >&5
7514 rm -f conftest.$ac_objext conftest.$ac_ext
7515 done
7518 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7519 echo "${ECHO_T}$ac_cv_c_inline" >&6
7520 case $ac_cv_c_inline in
7521 inline | yes) ;;
7523 cat >>confdefs.h <<\_ACEOF
7524 #define inline
7525 _ACEOF
7527 *) cat >>confdefs.h <<_ACEOF
7528 #define inline $ac_cv_c_inline
7529 _ACEOF
7531 esac
7533 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7534 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7535 if test "${ac_cv_c_bigendian+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538 # See if sys/param.h defines the BYTE_ORDER macro.
7539 cat >conftest.$ac_ext <<_ACEOF
7540 #line $LINENO "configure"
7541 #include "confdefs.h"
7542 #include <sys/types.h>
7543 #include <sys/param.h>
7545 #ifdef F77_DUMMY_MAIN
7546 # ifdef __cplusplus
7547 extern "C"
7548 # endif
7549 int F77_DUMMY_MAIN() { return 1; }
7550 #endif
7552 main ()
7554 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7555 bogus endian macros
7556 #endif
7559 return 0;
7561 _ACEOF
7562 rm -f conftest.$ac_objext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564 (eval $ac_compile) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } &&
7568 { ac_try='test -s conftest.$ac_objext'
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 (eval $ac_try) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; }; then
7574 # It does; now see whether it defined to BIG_ENDIAN or not.
7575 cat >conftest.$ac_ext <<_ACEOF
7576 #line $LINENO "configure"
7577 #include "confdefs.h"
7578 #include <sys/types.h>
7579 #include <sys/param.h>
7581 #ifdef F77_DUMMY_MAIN
7582 # ifdef __cplusplus
7583 extern "C"
7584 # endif
7585 int F77_DUMMY_MAIN() { return 1; }
7586 #endif
7588 main ()
7590 #if BYTE_ORDER != BIG_ENDIAN
7591 not big endian
7592 #endif
7595 return 0;
7597 _ACEOF
7598 rm -f conftest.$ac_objext
7599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7600 (eval $ac_compile) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } &&
7604 { ac_try='test -s conftest.$ac_objext'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 (eval $ac_try) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 ac_cv_c_bigendian=yes
7611 else
7612 echo "$as_me: failed program was:" >&5
7613 cat conftest.$ac_ext >&5
7614 ac_cv_c_bigendian=no
7616 rm -f conftest.$ac_objext conftest.$ac_ext
7617 else
7618 echo "$as_me: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7620 # It does not; compile a test program.
7621 if test "$cross_compiling" = yes; then
7622 # try to guess the endianess by grep'ing values into an object file
7623 ac_cv_c_bigendian=unknown
7624 cat >conftest.$ac_ext <<_ACEOF
7625 #line $LINENO "configure"
7626 #include "confdefs.h"
7627 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7628 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7629 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7630 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7631 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7632 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7633 #ifdef F77_DUMMY_MAIN
7634 # ifdef __cplusplus
7635 extern "C"
7636 # endif
7637 int F77_DUMMY_MAIN() { return 1; }
7638 #endif
7640 main ()
7642 _ascii (); _ebcdic ();
7644 return 0;
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7660 ac_cv_c_bigendian=yes
7662 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7663 if test "$ac_cv_c_bigendian" = unknown; then
7664 ac_cv_c_bigendian=no
7665 else
7666 # finding both strings is unlikely to happen, but who knows?
7667 ac_cv_c_bigendian=unknown
7670 else
7671 echo "$as_me: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7674 rm -f conftest.$ac_objext conftest.$ac_ext
7675 else
7676 cat >conftest.$ac_ext <<_ACEOF
7677 #line $LINENO "configure"
7678 #include "confdefs.h"
7680 main ()
7682 /* Are we little or big endian? From Harbison&Steele. */
7683 union
7685 long l;
7686 char c[sizeof (long)];
7687 } u;
7688 u.l = 1;
7689 exit (u.c[sizeof (long) - 1] == 1);
7691 _ACEOF
7692 rm -f conftest$ac_exeext
7693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7694 (eval $ac_link) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_c_bigendian=no
7704 else
7705 echo "$as_me: program exited with status $ac_status" >&5
7706 echo "$as_me: failed program was:" >&5
7707 cat conftest.$ac_ext >&5
7708 ( exit $ac_status )
7709 ac_cv_c_bigendian=yes
7711 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7714 rm -f conftest.$ac_objext conftest.$ac_ext
7716 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7717 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7718 case $ac_cv_c_bigendian in
7719 yes)
7721 cat >>confdefs.h <<\_ACEOF
7722 #define WORDS_BIGENDIAN 1
7723 _ACEOF
7728 { { echo "$as_me:$LINENO: error: unknown endianess
7729 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7730 echo "$as_me: error: unknown endianess
7731 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7732 { (exit 1); exit 1; }; } ;;
7733 esac
7736 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7737 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7738 if test "${ac_cv_c_char_unsigned+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 else
7741 cat >conftest.$ac_ext <<_ACEOF
7742 #line $LINENO "configure"
7743 #include "confdefs.h"
7744 $ac_includes_default
7745 #ifdef F77_DUMMY_MAIN
7746 # ifdef __cplusplus
7747 extern "C"
7748 # endif
7749 int F77_DUMMY_MAIN() { return 1; }
7750 #endif
7752 main ()
7754 static int test_array [1 - 2 * !(((char) -1) < 0)];
7755 test_array [0] = 0
7758 return 0;
7760 _ACEOF
7761 rm -f conftest.$ac_objext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763 (eval $ac_compile) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try='test -s conftest.$ac_objext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_cv_c_char_unsigned=no
7774 else
7775 echo "$as_me: failed program was:" >&5
7776 cat conftest.$ac_ext >&5
7777 ac_cv_c_char_unsigned=yes
7779 rm -f conftest.$ac_objext conftest.$ac_ext
7781 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7782 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7783 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7784 cat >>confdefs.h <<\_ACEOF
7785 #define __CHAR_UNSIGNED__ 1
7786 _ACEOF
7791 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7792 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7793 if test "${ac_cv_type_signal+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796 cat >conftest.$ac_ext <<_ACEOF
7797 #line $LINENO "configure"
7798 #include "confdefs.h"
7799 #include <sys/types.h>
7800 #include <signal.h>
7801 #ifdef signal
7802 # undef signal
7803 #endif
7804 #ifdef __cplusplus
7805 extern "C" void (*signal (int, void (*)(int)))(int);
7806 #else
7807 void (*signal ()) ();
7808 #endif
7810 #ifdef F77_DUMMY_MAIN
7811 # ifdef __cplusplus
7812 extern "C"
7813 # endif
7814 int F77_DUMMY_MAIN() { return 1; }
7815 #endif
7817 main ()
7819 int i;
7821 return 0;
7823 _ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826 (eval $ac_compile) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try='test -s conftest.$ac_objext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_cv_type_signal=void
7837 else
7838 echo "$as_me: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7840 ac_cv_type_signal=int
7842 rm -f conftest.$ac_objext conftest.$ac_ext
7844 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7845 echo "${ECHO_T}$ac_cv_type_signal" >&6
7847 cat >>confdefs.h <<_ACEOF
7848 #define RETSIGTYPE $ac_cv_type_signal
7849 _ACEOF
7852 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7853 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7854 if test "${ac_cv_type_uid_t+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857 cat >conftest.$ac_ext <<_ACEOF
7858 #line $LINENO "configure"
7859 #include "confdefs.h"
7860 #include <sys/types.h>
7862 _ACEOF
7863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7864 egrep "uid_t" >/dev/null 2>&1; then
7865 ac_cv_type_uid_t=yes
7866 else
7867 ac_cv_type_uid_t=no
7869 rm -f conftest*
7872 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7873 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7874 if test $ac_cv_type_uid_t = no; then
7876 cat >>confdefs.h <<\_ACEOF
7877 #define uid_t int
7878 _ACEOF
7881 cat >>confdefs.h <<\_ACEOF
7882 #define gid_t int
7883 _ACEOF
7887 echo "$as_me:$LINENO: checking for mode_t" >&5
7888 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7889 if test "${ac_cv_type_mode_t+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892 cat >conftest.$ac_ext <<_ACEOF
7893 #line $LINENO "configure"
7894 #include "confdefs.h"
7895 $ac_includes_default
7896 #ifdef F77_DUMMY_MAIN
7897 # ifdef __cplusplus
7898 extern "C"
7899 # endif
7900 int F77_DUMMY_MAIN() { return 1; }
7901 #endif
7903 main ()
7905 if ((mode_t *) 0)
7906 return 0;
7907 if (sizeof (mode_t))
7908 return 0;
7910 return 0;
7912 _ACEOF
7913 rm -f conftest.$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
7919 { ac_try='test -s conftest.$ac_objext'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 (eval $ac_try) 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 ac_cv_type_mode_t=yes
7926 else
7927 echo "$as_me: failed program was:" >&5
7928 cat conftest.$ac_ext >&5
7929 ac_cv_type_mode_t=no
7931 rm -f conftest.$ac_objext conftest.$ac_ext
7933 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7934 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7935 if test $ac_cv_type_mode_t = yes; then
7937 else
7939 cat >>confdefs.h <<_ACEOF
7940 #define mode_t int
7941 _ACEOF
7945 echo "$as_me:$LINENO: checking for off_t" >&5
7946 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7947 if test "${ac_cv_type_off_t+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 cat >conftest.$ac_ext <<_ACEOF
7951 #line $LINENO "configure"
7952 #include "confdefs.h"
7953 $ac_includes_default
7954 #ifdef F77_DUMMY_MAIN
7955 # ifdef __cplusplus
7956 extern "C"
7957 # endif
7958 int F77_DUMMY_MAIN() { return 1; }
7959 #endif
7961 main ()
7963 if ((off_t *) 0)
7964 return 0;
7965 if (sizeof (off_t))
7966 return 0;
7968 return 0;
7970 _ACEOF
7971 rm -f conftest.$ac_objext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973 (eval $ac_compile) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } &&
7977 { ac_try='test -s conftest.$ac_objext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7983 ac_cv_type_off_t=yes
7984 else
7985 echo "$as_me: failed program was:" >&5
7986 cat conftest.$ac_ext >&5
7987 ac_cv_type_off_t=no
7989 rm -f conftest.$ac_objext conftest.$ac_ext
7991 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7992 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7993 if test $ac_cv_type_off_t = yes; then
7995 else
7997 cat >>confdefs.h <<_ACEOF
7998 #define off_t long
7999 _ACEOF
8003 echo "$as_me:$LINENO: checking for size_t" >&5
8004 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8005 if test "${ac_cv_type_size_t+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8010 #include "confdefs.h"
8011 $ac_includes_default
8012 #ifdef F77_DUMMY_MAIN
8013 # ifdef __cplusplus
8014 extern "C"
8015 # endif
8016 int F77_DUMMY_MAIN() { return 1; }
8017 #endif
8019 main ()
8021 if ((size_t *) 0)
8022 return 0;
8023 if (sizeof (size_t))
8024 return 0;
8026 return 0;
8028 _ACEOF
8029 rm -f conftest.$ac_objext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8031 (eval $ac_compile) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -s conftest.$ac_objext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 ac_cv_type_size_t=yes
8042 else
8043 echo "$as_me: failed program was:" >&5
8044 cat conftest.$ac_ext >&5
8045 ac_cv_type_size_t=no
8047 rm -f conftest.$ac_objext conftest.$ac_ext
8049 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8050 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8051 if test $ac_cv_type_size_t = yes; then
8053 else
8055 cat >>confdefs.h <<_ACEOF
8056 #define size_t unsigned
8057 _ACEOF
8061 echo "$as_me:$LINENO: checking for pid_t" >&5
8062 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8063 if test "${ac_cv_type_pid_t+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066 cat >conftest.$ac_ext <<_ACEOF
8067 #line $LINENO "configure"
8068 #include "confdefs.h"
8069 $ac_includes_default
8070 #ifdef F77_DUMMY_MAIN
8071 # ifdef __cplusplus
8072 extern "C"
8073 # endif
8074 int F77_DUMMY_MAIN() { return 1; }
8075 #endif
8077 main ()
8079 if ((pid_t *) 0)
8080 return 0;
8081 if (sizeof (pid_t))
8082 return 0;
8084 return 0;
8086 _ACEOF
8087 rm -f conftest.$ac_objext
8088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8089 (eval $ac_compile) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -s conftest.$ac_objext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 ac_cv_type_pid_t=yes
8100 else
8101 echo "$as_me: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8103 ac_cv_type_pid_t=no
8105 rm -f conftest.$ac_objext conftest.$ac_ext
8107 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8108 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8109 if test $ac_cv_type_pid_t = yes; then
8111 else
8113 cat >>confdefs.h <<_ACEOF
8114 #define pid_t int
8115 _ACEOF
8120 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
8121 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
8122 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125 cat >conftest.$ac_ext <<_ACEOF
8126 #line $LINENO "configure"
8127 #include "confdefs.h"
8128 $ac_includes_default
8129 #ifdef F77_DUMMY_MAIN
8130 # ifdef __cplusplus
8131 extern "C"
8132 # endif
8133 int F77_DUMMY_MAIN() { return 1; }
8134 #endif
8136 main ()
8138 static struct stat ac_aggr;
8139 if (ac_aggr.st_rdev)
8140 return 0;
8142 return 0;
8144 _ACEOF
8145 rm -f conftest.$ac_objext
8146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8147 (eval $ac_compile) 2>&5
8148 ac_status=$?
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } &&
8151 { ac_try='test -s conftest.$ac_objext'
8152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 (eval $ac_try) 2>&5
8154 ac_status=$?
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; }; then
8157 ac_cv_member_struct_stat_st_rdev=yes
8158 else
8159 echo "$as_me: failed program was:" >&5
8160 cat conftest.$ac_ext >&5
8161 ac_cv_member_struct_stat_st_rdev=no
8163 rm -f conftest.$ac_objext conftest.$ac_ext
8165 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
8166 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
8167 if test $ac_cv_member_struct_stat_st_rdev = yes; then
8169 cat >>confdefs.h <<_ACEOF
8170 #define HAVE_STRUCT_STAT_ST_RDEV 1
8171 _ACEOF
8174 cat >>confdefs.h <<\_ACEOF
8175 #define HAVE_ST_RDEV 1
8176 _ACEOF
8181 echo "$as_me:$LINENO: checking for d_off in dirent" >&5
8182 echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
8183 if test "${ac_cv_dirent_d_off+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186 cat >conftest.$ac_ext <<_ACEOF
8187 #line $LINENO "configure"
8188 #include "confdefs.h"
8190 #include <unistd.h>
8191 #include <sys/types.h>
8192 #include <dirent.h>
8193 #ifdef F77_DUMMY_MAIN
8194 # ifdef __cplusplus
8195 extern "C"
8196 # endif
8197 int F77_DUMMY_MAIN() { return 1; }
8198 #endif
8200 main ()
8202 struct dirent d; d.d_off;
8204 return 0;
8206 _ACEOF
8207 rm -f conftest.$ac_objext
8208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209 (eval $ac_compile) 2>&5
8210 ac_status=$?
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -s conftest.$ac_objext'
8214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 (eval $ac_try) 2>&5
8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; }; then
8219 ac_cv_dirent_d_off=yes
8220 else
8221 echo "$as_me: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8223 ac_cv_dirent_d_off=no
8225 rm -f conftest.$ac_objext conftest.$ac_ext
8227 echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
8228 echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
8229 if test $ac_cv_dirent_d_off = yes; then
8231 cat >>confdefs.h <<\_ACEOF
8232 #define HAVE_DIRENT_D_OFF 1
8233 _ACEOF
8237 echo "$as_me:$LINENO: checking for ino_t" >&5
8238 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
8239 if test "${ac_cv_type_ino_t+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242 cat >conftest.$ac_ext <<_ACEOF
8243 #line $LINENO "configure"
8244 #include "confdefs.h"
8245 $ac_includes_default
8246 #ifdef F77_DUMMY_MAIN
8247 # ifdef __cplusplus
8248 extern "C"
8249 # endif
8250 int F77_DUMMY_MAIN() { return 1; }
8251 #endif
8253 main ()
8255 if ((ino_t *) 0)
8256 return 0;
8257 if (sizeof (ino_t))
8258 return 0;
8260 return 0;
8262 _ACEOF
8263 rm -f conftest.$ac_objext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8265 (eval $ac_compile) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try='test -s conftest.$ac_objext'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 (eval $ac_try) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 ac_cv_type_ino_t=yes
8276 else
8277 echo "$as_me: failed program was:" >&5
8278 cat conftest.$ac_ext >&5
8279 ac_cv_type_ino_t=no
8281 rm -f conftest.$ac_objext conftest.$ac_ext
8283 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8284 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
8285 if test $ac_cv_type_ino_t = yes; then
8287 else
8289 cat >>confdefs.h <<_ACEOF
8290 #define ino_t unsigned
8291 _ACEOF
8295 echo "$as_me:$LINENO: checking for loff_t" >&5
8296 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
8297 if test "${ac_cv_type_loff_t+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300 cat >conftest.$ac_ext <<_ACEOF
8301 #line $LINENO "configure"
8302 #include "confdefs.h"
8303 $ac_includes_default
8304 #ifdef F77_DUMMY_MAIN
8305 # ifdef __cplusplus
8306 extern "C"
8307 # endif
8308 int F77_DUMMY_MAIN() { return 1; }
8309 #endif
8311 main ()
8313 if ((loff_t *) 0)
8314 return 0;
8315 if (sizeof (loff_t))
8316 return 0;
8318 return 0;
8320 _ACEOF
8321 rm -f conftest.$ac_objext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8323 (eval $ac_compile) 2>&5
8324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -s conftest.$ac_objext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8333 ac_cv_type_loff_t=yes
8334 else
8335 echo "$as_me: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8337 ac_cv_type_loff_t=no
8339 rm -f conftest.$ac_objext conftest.$ac_ext
8341 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
8342 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
8343 if test $ac_cv_type_loff_t = yes; then
8345 else
8347 cat >>confdefs.h <<_ACEOF
8348 #define loff_t off_t
8349 _ACEOF
8353 echo "$as_me:$LINENO: checking for offset_t" >&5
8354 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
8355 if test "${ac_cv_type_offset_t+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 cat >conftest.$ac_ext <<_ACEOF
8359 #line $LINENO "configure"
8360 #include "confdefs.h"
8361 $ac_includes_default
8362 #ifdef F77_DUMMY_MAIN
8363 # ifdef __cplusplus
8364 extern "C"
8365 # endif
8366 int F77_DUMMY_MAIN() { return 1; }
8367 #endif
8369 main ()
8371 if ((offset_t *) 0)
8372 return 0;
8373 if (sizeof (offset_t))
8374 return 0;
8376 return 0;
8378 _ACEOF
8379 rm -f conftest.$ac_objext
8380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8381 (eval $ac_compile) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -s conftest.$ac_objext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 ac_cv_type_offset_t=yes
8392 else
8393 echo "$as_me: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8395 ac_cv_type_offset_t=no
8397 rm -f conftest.$ac_objext conftest.$ac_ext
8399 echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
8400 echo "${ECHO_T}$ac_cv_type_offset_t" >&6
8401 if test $ac_cv_type_offset_t = yes; then
8403 else
8405 cat >>confdefs.h <<_ACEOF
8406 #define offset_t loff_t
8407 _ACEOF
8411 echo "$as_me:$LINENO: checking for ssize_t" >&5
8412 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8413 if test "${ac_cv_type_ssize_t+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416 cat >conftest.$ac_ext <<_ACEOF
8417 #line $LINENO "configure"
8418 #include "confdefs.h"
8419 $ac_includes_default
8420 #ifdef F77_DUMMY_MAIN
8421 # ifdef __cplusplus
8422 extern "C"
8423 # endif
8424 int F77_DUMMY_MAIN() { return 1; }
8425 #endif
8427 main ()
8429 if ((ssize_t *) 0)
8430 return 0;
8431 if (sizeof (ssize_t))
8432 return 0;
8434 return 0;
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439 (eval $ac_compile) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try='test -s conftest.$ac_objext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_cv_type_ssize_t=yes
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 cat conftest.$ac_ext >&5
8453 ac_cv_type_ssize_t=no
8455 rm -f conftest.$ac_objext conftest.$ac_ext
8457 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8458 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8459 if test $ac_cv_type_ssize_t = yes; then
8461 else
8463 cat >>confdefs.h <<_ACEOF
8464 #define ssize_t int
8465 _ACEOF
8469 echo "$as_me:$LINENO: checking for wchar_t" >&5
8470 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8471 if test "${ac_cv_type_wchar_t+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474 cat >conftest.$ac_ext <<_ACEOF
8475 #line $LINENO "configure"
8476 #include "confdefs.h"
8477 $ac_includes_default
8478 #ifdef F77_DUMMY_MAIN
8479 # ifdef __cplusplus
8480 extern "C"
8481 # endif
8482 int F77_DUMMY_MAIN() { return 1; }
8483 #endif
8485 main ()
8487 if ((wchar_t *) 0)
8488 return 0;
8489 if (sizeof (wchar_t))
8490 return 0;
8492 return 0;
8494 _ACEOF
8495 rm -f conftest.$ac_objext
8496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497 (eval $ac_compile) 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -s conftest.$ac_objext'
8502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 (eval $ac_try) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; }; then
8507 ac_cv_type_wchar_t=yes
8508 else
8509 echo "$as_me: failed program was:" >&5
8510 cat conftest.$ac_ext >&5
8511 ac_cv_type_wchar_t=no
8513 rm -f conftest.$ac_objext conftest.$ac_ext
8515 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
8516 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
8517 if test $ac_cv_type_wchar_t = yes; then
8519 else
8521 cat >>confdefs.h <<_ACEOF
8522 #define wchar_t unsigned short
8523 _ACEOF
8528 ############################################
8529 # for cups support we need libcups, and a handful of header files
8531 # Check whether --enable-cups or --disable-cups was given.
8532 if test "${enable_cups+set}" = set; then
8533 enableval="$enable_cups"
8537 if test x$enable_cups != xno; then
8538 # Extract the first word of "cups-config", so it can be a program name with args.
8539 set dummy cups-config; ac_word=$2
8540 echo "$as_me:$LINENO: checking for $ac_word" >&5
8541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8542 if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545 case $CUPS_CONFIG in
8546 [\\/]* | ?:[\\/]*)
8547 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 for as_dir in $PATH
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557 ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8561 done
8562 done
8565 esac
8567 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
8569 if test -n "$CUPS_CONFIG"; then
8570 echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
8571 echo "${ECHO_T}$CUPS_CONFIG" >&6
8572 else
8573 echo "$as_me:$LINENO: result: no" >&5
8574 echo "${ECHO_T}no" >&6
8578 if test "x$CUPS_CONFIG" != x; then
8580 cat >>confdefs.h <<\_ACEOF
8581 #define HAVE_CUPS 1
8582 _ACEOF
8584 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
8585 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
8586 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
8590 ############################################
8591 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
8593 for ac_func in dlopen
8595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8596 echo "$as_me:$LINENO: checking for $ac_func" >&5
8597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8598 if eval "test \"\${$as_ac_var+set}\" = set"; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601 cat >conftest.$ac_ext <<_ACEOF
8602 #line $LINENO "configure"
8603 #include "confdefs.h"
8604 /* System header to define __stub macros and hopefully few prototypes,
8605 which can conflict with char $ac_func (); below. */
8606 #include <assert.h>
8607 /* Override any gcc2 internal prototype to avoid an error. */
8608 #ifdef __cplusplus
8609 extern "C"
8610 #endif
8611 /* We use char because int might match the return type of a gcc2
8612 builtin and then its argument prototype would still apply. */
8613 char $ac_func ();
8614 char (*f) ();
8616 #ifdef F77_DUMMY_MAIN
8617 # ifdef __cplusplus
8618 extern "C"
8619 # endif
8620 int F77_DUMMY_MAIN() { return 1; }
8621 #endif
8623 main ()
8625 /* The GNU C library defines this for functions which it implements
8626 to always fail with ENOSYS. Some functions are actually named
8627 something starting with __ and the normal name is an alias. */
8628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8629 choke me
8630 #else
8631 f = $ac_func;
8632 #endif
8635 return 0;
8637 _ACEOF
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try='test -s conftest$ac_exeext'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 (eval $ac_try) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 eval "$as_ac_var=yes"
8651 else
8652 echo "$as_me: failed program was:" >&5
8653 cat conftest.$ac_ext >&5
8654 eval "$as_ac_var=no"
8656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8660 if test `eval echo '${'$as_ac_var'}'` = yes; then
8661 cat >>confdefs.h <<_ACEOF
8662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8663 _ACEOF
8666 done
8668 if test x"$ac_cv_func_dlopen" = x"no"; then
8669 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8670 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674 ac_check_lib_save_LIBS=$LIBS
8675 LIBS="-ldl $LIBS"
8676 cat >conftest.$ac_ext <<_ACEOF
8677 #line $LINENO "configure"
8678 #include "confdefs.h"
8680 /* Override any gcc2 internal prototype to avoid an error. */
8681 #ifdef __cplusplus
8682 extern "C"
8683 #endif
8684 /* We use char because int might match the return type of a gcc2
8685 builtin and then its argument prototype would still apply. */
8686 char dlopen ();
8687 #ifdef F77_DUMMY_MAIN
8688 # ifdef __cplusplus
8689 extern "C"
8690 # endif
8691 int F77_DUMMY_MAIN() { return 1; }
8692 #endif
8694 main ()
8696 dlopen ();
8698 return 0;
8700 _ACEOF
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -s conftest$ac_exeext'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 (eval $ac_try) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 ac_cv_lib_dl_dlopen=yes
8714 else
8715 echo "$as_me: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
8717 ac_cv_lib_dl_dlopen=no
8719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8722 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8723 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8724 if test $ac_cv_lib_dl_dlopen = yes; then
8725 LIBS="$LIBS -ldl";
8727 cat >>confdefs.h <<\_ACEOF
8728 #define HAVE_DLOPEN 1
8729 _ACEOF
8734 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
8736 ############################################
8737 # check if the compiler can do immediate structures
8738 echo "$as_me:$LINENO: checking for immediate structures" >&5
8739 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
8740 if test "${samba_cv_immediate_structures+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8744 cat >conftest.$ac_ext <<_ACEOF
8745 #line $LINENO "configure"
8746 #include "confdefs.h"
8748 #include <stdio.h>
8749 #ifdef F77_DUMMY_MAIN
8750 # ifdef __cplusplus
8751 extern "C"
8752 # endif
8753 int F77_DUMMY_MAIN() { return 1; }
8754 #endif
8756 main ()
8759 typedef struct {unsigned x;} FOOBAR;
8760 #define X_FOOBAR(x) ((FOOBAR) { x })
8761 #define FOO_ONE X_FOOBAR(1)
8762 FOOBAR f = FOO_ONE;
8763 static struct {
8764 FOOBAR y;
8765 } f2[] = {
8766 {FOO_ONE}
8770 return 0;
8772 _ACEOF
8773 rm -f conftest.$ac_objext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8775 (eval $ac_compile) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } &&
8779 { ac_try='test -s conftest.$ac_objext'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 (eval $ac_try) 2>&5
8782 ac_status=$?
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
8785 samba_cv_immediate_structures=yes
8786 else
8787 echo "$as_me: failed program was:" >&5
8788 cat conftest.$ac_ext >&5
8789 samba_cv_immediate_structures=no
8791 rm -f conftest.$ac_objext conftest.$ac_ext
8793 echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
8794 echo "${ECHO_T}$samba_cv_immediate_structures" >&6
8795 if test x"$samba_cv_immediate_structures" = x"yes"; then
8797 cat >>confdefs.h <<\_ACEOF
8798 #define HAVE_IMMEDIATE_STRUCTURES 1
8799 _ACEOF
8803 ############################################
8804 # check for unix domain sockets
8805 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8806 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
8807 if test "${samba_cv_unixsocket+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8811 cat >conftest.$ac_ext <<_ACEOF
8812 #line $LINENO "configure"
8813 #include "confdefs.h"
8815 #include <sys/types.h>
8816 #include <stdlib.h>
8817 #include <stddef.h>
8818 #include <sys/socket.h>
8819 #include <sys/un.h>
8820 #ifdef F77_DUMMY_MAIN
8821 # ifdef __cplusplus
8822 extern "C"
8823 # endif
8824 int F77_DUMMY_MAIN() { return 1; }
8825 #endif
8827 main ()
8830 struct sockaddr_un sunaddr;
8831 sunaddr.sun_family = AF_UNIX;
8834 return 0;
8836 _ACEOF
8837 rm -f conftest.$ac_objext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8839 (eval $ac_compile) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } &&
8843 { ac_try='test -s conftest.$ac_objext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 (eval $ac_try) 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 samba_cv_unixsocket=yes
8850 else
8851 echo "$as_me: failed program was:" >&5
8852 cat conftest.$ac_ext >&5
8853 samba_cv_unixsocket=no
8855 rm -f conftest.$ac_objext conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
8858 echo "${ECHO_T}$samba_cv_unixsocket" >&6
8859 if test x"$samba_cv_unixsocket" = x"yes"; then
8861 cat >>confdefs.h <<\_ACEOF
8862 #define HAVE_UNIXSOCKET 1
8863 _ACEOF
8868 echo "$as_me:$LINENO: checking for socklen_t type" >&5
8869 echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
8870 if test "${samba_cv_socklen_t+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8874 cat >conftest.$ac_ext <<_ACEOF
8875 #line $LINENO "configure"
8876 #include "confdefs.h"
8878 #include <sys/types.h>
8879 #if STDC_HEADERS
8880 #include <stdlib.h>
8881 #include <stddef.h>
8882 #endif
8883 #include <sys/socket.h>
8884 #ifdef F77_DUMMY_MAIN
8885 # ifdef __cplusplus
8886 extern "C"
8887 # endif
8888 int F77_DUMMY_MAIN() { return 1; }
8889 #endif
8891 main ()
8893 socklen_t i = 0
8895 return 0;
8897 _ACEOF
8898 rm -f conftest.$ac_objext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try='test -s conftest.$ac_objext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 (eval $ac_try) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910 samba_cv_socklen_t=yes
8911 else
8912 echo "$as_me: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8914 samba_cv_socklen_t=no
8916 rm -f conftest.$ac_objext conftest.$ac_ext
8918 echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
8919 echo "${ECHO_T}$samba_cv_socklen_t" >&6
8920 if test x"$samba_cv_socklen_t" = x"yes"; then
8922 cat >>confdefs.h <<\_ACEOF
8923 #define HAVE_SOCKLEN_T_TYPE 1
8924 _ACEOF
8928 echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
8929 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
8930 if test "${samba_cv_sig_atomic_t+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8934 cat >conftest.$ac_ext <<_ACEOF
8935 #line $LINENO "configure"
8936 #include "confdefs.h"
8938 #include <sys/types.h>
8939 #if STDC_HEADERS
8940 #include <stdlib.h>
8941 #include <stddef.h>
8942 #endif
8943 #include <signal.h>
8944 #ifdef F77_DUMMY_MAIN
8945 # ifdef __cplusplus
8946 extern "C"
8947 # endif
8948 int F77_DUMMY_MAIN() { return 1; }
8949 #endif
8951 main ()
8953 sig_atomic_t i = 0
8955 return 0;
8957 _ACEOF
8958 rm -f conftest.$ac_objext
8959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8960 (eval $ac_compile) 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } &&
8964 { ac_try='test -s conftest.$ac_objext'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 (eval $ac_try) 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
8970 samba_cv_sig_atomic_t=yes
8971 else
8972 echo "$as_me: failed program was:" >&5
8973 cat conftest.$ac_ext >&5
8974 samba_cv_sig_atomic_t=no
8976 rm -f conftest.$ac_objext conftest.$ac_ext
8978 echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
8979 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
8980 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
8982 cat >>confdefs.h <<\_ACEOF
8983 #define HAVE_SIG_ATOMIC_T_TYPE 1
8984 _ACEOF
8988 # stupid headers have the functions but no declaration. grrrr.
8990 echo "$as_me:$LINENO: checking for errno declaration" >&5
8991 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
8992 if test "${ac_cv_have_errno_decl+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8996 cat >conftest.$ac_ext <<_ACEOF
8997 #line $LINENO "configure"
8998 #include "confdefs.h"
8999 #include <errno.h>
9000 #ifdef F77_DUMMY_MAIN
9001 # ifdef __cplusplus
9002 extern "C"
9003 # endif
9004 int F77_DUMMY_MAIN() { return 1; }
9005 #endif
9007 main ()
9009 int i = (int)errno
9011 return 0;
9013 _ACEOF
9014 rm -f conftest.$ac_objext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016 (eval $ac_compile) 2>&5
9017 ac_status=$?
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -s conftest.$ac_objext'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 (eval $ac_try) 2>&5
9023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9026 ac_cv_have_errno_decl=yes
9027 else
9028 echo "$as_me: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9030 ac_cv_have_errno_decl=no
9032 rm -f conftest.$ac_objext conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
9035 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
9036 if test x"$ac_cv_have_errno_decl" = x"yes"; then
9038 cat >>confdefs.h <<\_ACEOF
9039 #define HAVE_ERRNO_DECL 1
9040 _ACEOF
9045 echo "$as_me:$LINENO: checking for setresuid declaration" >&5
9046 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
9047 if test "${ac_cv_have_setresuid_decl+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9051 cat >conftest.$ac_ext <<_ACEOF
9052 #line $LINENO "configure"
9053 #include "confdefs.h"
9054 #include <unistd.h>
9055 #ifdef F77_DUMMY_MAIN
9056 # ifdef __cplusplus
9057 extern "C"
9058 # endif
9059 int F77_DUMMY_MAIN() { return 1; }
9060 #endif
9062 main ()
9064 int i = (int)setresuid
9066 return 0;
9068 _ACEOF
9069 rm -f conftest.$ac_objext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9071 (eval $ac_compile) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
9075 { ac_try='test -s conftest.$ac_objext'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 (eval $ac_try) 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_cv_have_setresuid_decl=yes
9082 else
9083 echo "$as_me: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9085 ac_cv_have_setresuid_decl=no
9087 rm -f conftest.$ac_objext conftest.$ac_ext
9089 echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
9090 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
9091 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
9093 cat >>confdefs.h <<\_ACEOF
9094 #define HAVE_SETRESUID_DECL 1
9095 _ACEOF
9100 echo "$as_me:$LINENO: checking for setresgid declaration" >&5
9101 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
9102 if test "${ac_cv_have_setresgid_decl+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9106 cat >conftest.$ac_ext <<_ACEOF
9107 #line $LINENO "configure"
9108 #include "confdefs.h"
9109 #include <unistd.h>
9110 #ifdef F77_DUMMY_MAIN
9111 # ifdef __cplusplus
9112 extern "C"
9113 # endif
9114 int F77_DUMMY_MAIN() { return 1; }
9115 #endif
9117 main ()
9119 int i = (int)setresgid
9121 return 0;
9123 _ACEOF
9124 rm -f conftest.$ac_objext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9126 (eval $ac_compile) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -s conftest.$ac_objext'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_have_setresgid_decl=yes
9137 else
9138 echo "$as_me: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9140 ac_cv_have_setresgid_decl=no
9142 rm -f conftest.$ac_objext conftest.$ac_ext
9144 echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
9145 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
9146 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
9148 cat >>confdefs.h <<\_ACEOF
9149 #define HAVE_SETRESGID_DECL 1
9150 _ACEOF
9155 echo "$as_me:$LINENO: checking for asprintf declaration" >&5
9156 echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
9157 if test "${ac_cv_have_asprintf_decl+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9161 cat >conftest.$ac_ext <<_ACEOF
9162 #line $LINENO "configure"
9163 #include "confdefs.h"
9164 #include <stdio.h>
9165 #ifdef F77_DUMMY_MAIN
9166 # ifdef __cplusplus
9167 extern "C"
9168 # endif
9169 int F77_DUMMY_MAIN() { return 1; }
9170 #endif
9172 main ()
9174 int i = (int)asprintf
9176 return 0;
9178 _ACEOF
9179 rm -f conftest.$ac_objext
9180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9181 (eval $ac_compile) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try='test -s conftest.$ac_objext'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 (eval $ac_try) 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 ac_cv_have_asprintf_decl=yes
9192 else
9193 echo "$as_me: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9195 ac_cv_have_asprintf_decl=no
9197 rm -f conftest.$ac_objext conftest.$ac_ext
9199 echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
9200 echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
9201 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
9203 cat >>confdefs.h <<\_ACEOF
9204 #define HAVE_ASPRINTF_DECL 1
9205 _ACEOF
9210 echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
9211 echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
9212 if test "${ac_cv_have_vasprintf_decl+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9216 cat >conftest.$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9218 #include "confdefs.h"
9219 #include <stdio.h>
9220 #ifdef F77_DUMMY_MAIN
9221 # ifdef __cplusplus
9222 extern "C"
9223 # endif
9224 int F77_DUMMY_MAIN() { return 1; }
9225 #endif
9227 main ()
9229 int i = (int)vasprintf
9231 return 0;
9233 _ACEOF
9234 rm -f conftest.$ac_objext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9236 (eval $ac_compile) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -s conftest.$ac_objext'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 (eval $ac_try) 2>&5
9243 ac_status=$?
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 ac_cv_have_vasprintf_decl=yes
9247 else
9248 echo "$as_me: failed program was:" >&5
9249 cat conftest.$ac_ext >&5
9250 ac_cv_have_vasprintf_decl=no
9252 rm -f conftest.$ac_objext conftest.$ac_ext
9254 echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
9255 echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
9256 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
9258 cat >>confdefs.h <<\_ACEOF
9259 #define HAVE_VASPRINTF_DECL 1
9260 _ACEOF
9265 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
9266 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
9267 if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9271 cat >conftest.$ac_ext <<_ACEOF
9272 #line $LINENO "configure"
9273 #include "confdefs.h"
9274 #include <stdio.h>
9275 #ifdef F77_DUMMY_MAIN
9276 # ifdef __cplusplus
9277 extern "C"
9278 # endif
9279 int F77_DUMMY_MAIN() { return 1; }
9280 #endif
9282 main ()
9284 int i = (int)vsnprintf
9286 return 0;
9288 _ACEOF
9289 rm -f conftest.$ac_objext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9291 (eval $ac_compile) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } &&
9295 { ac_try='test -s conftest.$ac_objext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 ac_cv_have_vsnprintf_decl=yes
9302 else
9303 echo "$as_me: failed program was:" >&5
9304 cat conftest.$ac_ext >&5
9305 ac_cv_have_vsnprintf_decl=no
9307 rm -f conftest.$ac_objext conftest.$ac_ext
9309 echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
9310 echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
9311 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
9313 cat >>confdefs.h <<\_ACEOF
9314 #define HAVE_VSNPRINTF_DECL 1
9315 _ACEOF
9320 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
9321 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
9322 if test "${ac_cv_have_snprintf_decl+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9326 cat >conftest.$ac_ext <<_ACEOF
9327 #line $LINENO "configure"
9328 #include "confdefs.h"
9329 #include <stdio.h>
9330 #ifdef F77_DUMMY_MAIN
9331 # ifdef __cplusplus
9332 extern "C"
9333 # endif
9334 int F77_DUMMY_MAIN() { return 1; }
9335 #endif
9337 main ()
9339 int i = (int)snprintf
9341 return 0;
9343 _ACEOF
9344 rm -f conftest.$ac_objext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346 (eval $ac_compile) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -s conftest.$ac_objext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 (eval $ac_try) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 ac_cv_have_snprintf_decl=yes
9357 else
9358 echo "$as_me: failed program was:" >&5
9359 cat conftest.$ac_ext >&5
9360 ac_cv_have_snprintf_decl=no
9362 rm -f conftest.$ac_objext conftest.$ac_ext
9364 echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
9365 echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
9366 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
9368 cat >>confdefs.h <<\_ACEOF
9369 #define HAVE_SNPRINTF_DECL 1
9370 _ACEOF
9375 # and glibc has setresuid under linux but the function does
9376 # nothing until kernel 2.1.44! very dumb.
9377 echo "$as_me:$LINENO: checking for real setresuid" >&5
9378 echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
9379 if test "${samba_cv_have_setresuid+set}" = set; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9383 if test "$cross_compiling" = yes; then
9384 samba_cv_have_setresuid=cross
9385 else
9386 cat >conftest.$ac_ext <<_ACEOF
9387 #line $LINENO "configure"
9388 #include "confdefs.h"
9389 #include <errno.h>
9390 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
9391 _ACEOF
9392 rm -f conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 samba_cv_have_setresuid=yes
9404 else
9405 echo "$as_me: program exited with status $ac_status" >&5
9406 echo "$as_me: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9408 ( exit $ac_status )
9409 samba_cv_have_setresuid=no
9411 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9414 echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
9415 echo "${ECHO_T}$samba_cv_have_setresuid" >&6
9416 if test x"$samba_cv_have_setresuid" = x"yes"; then
9418 cat >>confdefs.h <<\_ACEOF
9419 #define HAVE_SETRESUID 1
9420 _ACEOF
9424 # Do the same check for setresguid...
9426 echo "$as_me:$LINENO: checking for real setresgid" >&5
9427 echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
9428 if test "${samba_cv_have_setresgid+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9432 if test "$cross_compiling" = yes; then
9433 samba_cv_have_setresgid=cross
9434 else
9435 cat >conftest.$ac_ext <<_ACEOF
9436 #line $LINENO "configure"
9437 #include "confdefs.h"
9438 #include <unistd.h>
9439 #include <errno.h>
9440 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
9441 _ACEOF
9442 rm -f conftest$ac_exeext
9443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9444 (eval $ac_link) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 samba_cv_have_setresgid=yes
9454 else
9455 echo "$as_me: program exited with status $ac_status" >&5
9456 echo "$as_me: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9458 ( exit $ac_status )
9459 samba_cv_have_setresgid=no
9461 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
9465 echo "${ECHO_T}$samba_cv_have_setresgid" >&6
9466 if test x"$samba_cv_have_setresgid" = x"yes"; then
9468 cat >>confdefs.h <<\_ACEOF
9469 #define HAVE_SETRESGID 1
9470 _ACEOF
9474 echo "$as_me:$LINENO: checking for working memcmp" >&5
9475 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9476 if test "${ac_cv_func_memcmp_working+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479 if test "$cross_compiling" = yes; then
9480 ac_cv_func_memcmp_working=no
9481 else
9482 cat >conftest.$ac_ext <<_ACEOF
9483 #line $LINENO "configure"
9484 #include "confdefs.h"
9486 #ifdef F77_DUMMY_MAIN
9487 # ifdef __cplusplus
9488 extern "C"
9489 # endif
9490 int F77_DUMMY_MAIN() { return 1; }
9491 #endif
9493 main ()
9496 /* Some versions of memcmp are not 8-bit clean. */
9497 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9498 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9499 exit (1);
9501 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9502 or more and with at least one buffer not starting on a 4-byte boundary.
9503 William Lewis provided this test program. */
9505 char foo[21];
9506 char bar[21];
9507 int i;
9508 for (i = 0; i < 4; i++)
9510 char *a = foo + i;
9511 char *b = bar + i;
9512 strcpy (a, "--------01111111");
9513 strcpy (b, "--------10000000");
9514 if (memcmp (a, b, 16) >= 0)
9515 exit (1);
9517 exit (0);
9521 return 0;
9523 _ACEOF
9524 rm -f conftest$ac_exeext
9525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9526 (eval $ac_link) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 (eval $ac_try) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_cv_func_memcmp_working=yes
9536 else
9537 echo "$as_me: program exited with status $ac_status" >&5
9538 echo "$as_me: failed program was:" >&5
9539 cat conftest.$ac_ext >&5
9540 ( exit $ac_status )
9541 ac_cv_func_memcmp_working=no
9543 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9546 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9547 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9548 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9551 ###############################################
9552 # test for where we get crypt() from
9554 for ac_func in crypt
9556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9557 echo "$as_me:$LINENO: checking for $ac_func" >&5
9558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9559 if eval "test \"\${$as_ac_var+set}\" = set"; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562 cat >conftest.$ac_ext <<_ACEOF
9563 #line $LINENO "configure"
9564 #include "confdefs.h"
9565 /* System header to define __stub macros and hopefully few prototypes,
9566 which can conflict with char $ac_func (); below. */
9567 #include <assert.h>
9568 /* Override any gcc2 internal prototype to avoid an error. */
9569 #ifdef __cplusplus
9570 extern "C"
9571 #endif
9572 /* We use char because int might match the return type of a gcc2
9573 builtin and then its argument prototype would still apply. */
9574 char $ac_func ();
9575 char (*f) ();
9577 #ifdef F77_DUMMY_MAIN
9578 # ifdef __cplusplus
9579 extern "C"
9580 # endif
9581 int F77_DUMMY_MAIN() { return 1; }
9582 #endif
9584 main ()
9586 /* The GNU C library defines this for functions which it implements
9587 to always fail with ENOSYS. Some functions are actually named
9588 something starting with __ and the normal name is an alias. */
9589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9590 choke me
9591 #else
9592 f = $ac_func;
9593 #endif
9596 return 0;
9598 _ACEOF
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try='test -s conftest$ac_exeext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 (eval $ac_try) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 eval "$as_ac_var=yes"
9612 else
9613 echo "$as_me: failed program was:" >&5
9614 cat conftest.$ac_ext >&5
9615 eval "$as_ac_var=no"
9617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9621 if test `eval echo '${'$as_ac_var'}'` = yes; then
9622 cat >>confdefs.h <<_ACEOF
9623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9624 _ACEOF
9627 done
9629 if test x"$ac_cv_func_crypt" = x"no"; then
9630 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9631 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9632 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 else
9635 ac_check_lib_save_LIBS=$LIBS
9636 LIBS="-lcrypt $LIBS"
9637 cat >conftest.$ac_ext <<_ACEOF
9638 #line $LINENO "configure"
9639 #include "confdefs.h"
9641 /* Override any gcc2 internal prototype to avoid an error. */
9642 #ifdef __cplusplus
9643 extern "C"
9644 #endif
9645 /* We use char because int might match the return type of a gcc2
9646 builtin and then its argument prototype would still apply. */
9647 char crypt ();
9648 #ifdef F77_DUMMY_MAIN
9649 # ifdef __cplusplus
9650 extern "C"
9651 # endif
9652 int F77_DUMMY_MAIN() { return 1; }
9653 #endif
9655 main ()
9657 crypt ();
9659 return 0;
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_cv_lib_crypt_crypt=yes
9675 else
9676 echo "$as_me: failed program was:" >&5
9677 cat conftest.$ac_ext >&5
9678 ac_cv_lib_crypt_crypt=no
9680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9681 LIBS=$ac_check_lib_save_LIBS
9683 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9684 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9685 if test $ac_cv_lib_crypt_crypt = yes; then
9686 AUTHLIBS="$AUTHLIBS -lcrypt";
9688 cat >>confdefs.h <<\_ACEOF
9689 #define HAVE_CRYPT 1
9690 _ACEOF
9697 ###############################################
9698 # Readline included by default unless explicitly asked not to
9699 test "${with_readline+set}" != "set" && with_readline=yes
9701 # test for where we get readline() from
9702 echo "$as_me:$LINENO: checking whether to use readline" >&5
9703 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
9705 # Check whether --with-readline or --without-readline was given.
9706 if test "${with_readline+set}" = set; then
9707 withval="$with_readline"
9708 case "$with_readline" in
9709 yes)
9710 echo "$as_me:$LINENO: result: yes" >&5
9711 echo "${ECHO_T}yes" >&6
9716 for ac_header in readline.h history.h readline/readline.h
9718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9720 echo "$as_me:$LINENO: checking for $ac_header" >&5
9721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9727 else
9728 # Is the header compilable?
9729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9731 cat >conftest.$ac_ext <<_ACEOF
9732 #line $LINENO "configure"
9733 #include "confdefs.h"
9734 $ac_includes_default
9735 #include <$ac_header>
9736 _ACEOF
9737 rm -f conftest.$ac_objext
9738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9739 (eval $ac_compile) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -s conftest.$ac_objext'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; }; then
9749 ac_header_compiler=yes
9750 else
9751 echo "$as_me: failed program was:" >&5
9752 cat conftest.$ac_ext >&5
9753 ac_header_compiler=no
9755 rm -f conftest.$ac_objext conftest.$ac_ext
9756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9757 echo "${ECHO_T}$ac_header_compiler" >&6
9759 # Is the header present?
9760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9762 cat >conftest.$ac_ext <<_ACEOF
9763 #line $LINENO "configure"
9764 #include "confdefs.h"
9765 #include <$ac_header>
9766 _ACEOF
9767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9769 ac_status=$?
9770 egrep -v '^ *\+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } >/dev/null; then
9775 if test -s conftest.err; then
9776 ac_cpp_err=$ac_c_preproc_warn_flag
9777 else
9778 ac_cpp_err=
9780 else
9781 ac_cpp_err=yes
9783 if test -z "$ac_cpp_err"; then
9784 ac_header_preproc=yes
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9788 ac_header_preproc=no
9790 rm -f conftest.err conftest.$ac_ext
9791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9792 echo "${ECHO_T}$ac_header_preproc" >&6
9794 # So? What about this header?
9795 case $ac_header_compiler:$ac_header_preproc in
9796 yes:no )
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9801 no:yes )
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9808 esac
9809 echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814 eval "$as_ac_Header=$ac_header_preproc"
9816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9821 cat >>confdefs.h <<_ACEOF
9822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9823 _ACEOF
9827 done
9830 for ac_header in readline/history.h
9832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834 echo "$as_me:$LINENO: checking for $ac_header" >&5
9835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9841 else
9842 # Is the header compilable?
9843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9845 cat >conftest.$ac_ext <<_ACEOF
9846 #line $LINENO "configure"
9847 #include "confdefs.h"
9848 $ac_includes_default
9849 #include <$ac_header>
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try='test -s conftest.$ac_objext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_header_compiler=yes
9864 else
9865 echo "$as_me: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9867 ac_header_compiler=no
9869 rm -f conftest.$ac_objext conftest.$ac_ext
9870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9871 echo "${ECHO_T}$ac_header_compiler" >&6
9873 # Is the header present?
9874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9876 cat >conftest.$ac_ext <<_ACEOF
9877 #line $LINENO "configure"
9878 #include "confdefs.h"
9879 #include <$ac_header>
9880 _ACEOF
9881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9883 ac_status=$?
9884 egrep -v '^ *\+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } >/dev/null; then
9889 if test -s conftest.err; then
9890 ac_cpp_err=$ac_c_preproc_warn_flag
9891 else
9892 ac_cpp_err=
9894 else
9895 ac_cpp_err=yes
9897 if test -z "$ac_cpp_err"; then
9898 ac_header_preproc=yes
9899 else
9900 echo "$as_me: failed program was:" >&5
9901 cat conftest.$ac_ext >&5
9902 ac_header_preproc=no
9904 rm -f conftest.err conftest.$ac_ext
9905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9906 echo "${ECHO_T}$ac_header_preproc" >&6
9908 # So? What about this header?
9909 case $ac_header_compiler:$ac_header_preproc in
9910 yes:no )
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9915 no:yes )
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9922 esac
9923 echo "$as_me:$LINENO: checking for $ac_header" >&5
9924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928 eval "$as_ac_Header=$ac_header_preproc"
9930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9935 cat >>confdefs.h <<_ACEOF
9936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9937 _ACEOF
9941 done
9946 for ac_header in readline.h readline/readline.h
9948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950 echo "$as_me:$LINENO: checking for $ac_header" >&5
9951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9957 else
9958 # Is the header compilable?
9959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9961 cat >conftest.$ac_ext <<_ACEOF
9962 #line $LINENO "configure"
9963 #include "confdefs.h"
9964 $ac_includes_default
9965 #include <$ac_header>
9966 _ACEOF
9967 rm -f conftest.$ac_objext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9969 (eval $ac_compile) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -s conftest.$ac_objext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_header_compiler=yes
9980 else
9981 echo "$as_me: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 ac_header_compiler=no
9985 rm -f conftest.$ac_objext conftest.$ac_ext
9986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9987 echo "${ECHO_T}$ac_header_compiler" >&6
9989 # Is the header present?
9990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9992 cat >conftest.$ac_ext <<_ACEOF
9993 #line $LINENO "configure"
9994 #include "confdefs.h"
9995 #include <$ac_header>
9996 _ACEOF
9997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9999 ac_status=$?
10000 egrep -v '^ *\+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } >/dev/null; then
10005 if test -s conftest.err; then
10006 ac_cpp_err=$ac_c_preproc_warn_flag
10007 else
10008 ac_cpp_err=
10010 else
10011 ac_cpp_err=yes
10013 if test -z "$ac_cpp_err"; then
10014 ac_header_preproc=yes
10015 else
10016 echo "$as_me: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10018 ac_header_preproc=no
10020 rm -f conftest.err conftest.$ac_ext
10021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10022 echo "${ECHO_T}$ac_header_preproc" >&6
10024 # So? What about this header?
10025 case $ac_header_compiler:$ac_header_preproc in
10026 yes:no )
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10031 no:yes )
10032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10038 esac
10039 echo "$as_me:$LINENO: checking for $ac_header" >&5
10040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044 eval "$as_ac_Header=$ac_header_preproc"
10046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10051 cat >>confdefs.h <<_ACEOF
10052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10053 _ACEOF
10055 for termlib in ncurses curses termcap terminfo termlib; do
10056 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10057 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10058 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10059 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062 ac_check_lib_save_LIBS=$LIBS
10063 LIBS="-l${termlib} $LIBS"
10064 cat >conftest.$ac_ext <<_ACEOF
10065 #line $LINENO "configure"
10066 #include "confdefs.h"
10068 /* Override any gcc2 internal prototype to avoid an error. */
10069 #ifdef __cplusplus
10070 extern "C"
10071 #endif
10072 /* We use char because int might match the return type of a gcc2
10073 builtin and then its argument prototype would still apply. */
10074 char tgetent ();
10075 #ifdef F77_DUMMY_MAIN
10076 # ifdef __cplusplus
10077 extern "C"
10078 # endif
10079 int F77_DUMMY_MAIN() { return 1; }
10080 #endif
10082 main ()
10084 tgetent ();
10086 return 0;
10088 _ACEOF
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091 (eval $ac_link) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 eval "$as_ac_Lib=yes"
10102 else
10103 echo "$as_me: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10105 eval "$as_ac_Lib=no"
10107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10108 LIBS=$ac_check_lib_save_LIBS
10110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10111 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10112 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10113 TERMLIBS="-l${termlib}"; break
10116 done
10117 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10118 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10119 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122 ac_check_lib_save_LIBS=$LIBS
10123 LIBS="-lreadline $TERMLIBS $LIBS"
10124 cat >conftest.$ac_ext <<_ACEOF
10125 #line $LINENO "configure"
10126 #include "confdefs.h"
10128 /* Override any gcc2 internal prototype to avoid an error. */
10129 #ifdef __cplusplus
10130 extern "C"
10131 #endif
10132 /* We use char because int might match the return type of a gcc2
10133 builtin and then its argument prototype would still apply. */
10134 char rl_callback_handler_install ();
10135 #ifdef F77_DUMMY_MAIN
10136 # ifdef __cplusplus
10137 extern "C"
10138 # endif
10139 int F77_DUMMY_MAIN() { return 1; }
10140 #endif
10142 main ()
10144 rl_callback_handler_install ();
10146 return 0;
10148 _ACEOF
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10151 (eval $ac_link) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -s conftest$ac_exeext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_lib_readline_rl_callback_handler_install=yes
10162 else
10163 echo "$as_me: failed program was:" >&5
10164 cat conftest.$ac_ext >&5
10165 ac_cv_lib_readline_rl_callback_handler_install=no
10167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10168 LIBS=$ac_check_lib_save_LIBS
10170 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10171 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10172 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10173 TERMLIBS="-lreadline $TERMLIBS"
10175 cat >>confdefs.h <<\_ACEOF
10176 #define HAVE_LIBREADLINE 1
10177 _ACEOF
10179 break
10180 else
10181 TERMLIBS=
10186 done
10190 echo "$as_me:$LINENO: result: no" >&5
10191 echo "${ECHO_T}no" >&6
10194 echo "$as_me:$LINENO: result: yes" >&5
10195 echo "${ECHO_T}yes" >&6
10197 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
10198 # alternate readline path
10199 _ldflags=${LDFLAGS}
10200 _cppflags=${CPPFLAGS}
10202 # Add additional search path
10203 LDFLAGS="-L$with_readline/lib $LDFLAGS"
10204 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10209 for ac_header in readline.h history.h readline/readline.h
10211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10213 echo "$as_me:$LINENO: checking for $ac_header" >&5
10214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10220 else
10221 # Is the header compilable?
10222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10224 cat >conftest.$ac_ext <<_ACEOF
10225 #line $LINENO "configure"
10226 #include "confdefs.h"
10227 $ac_includes_default
10228 #include <$ac_header>
10229 _ACEOF
10230 rm -f conftest.$ac_objext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 (eval $ac_compile) 2>&5
10233 ac_status=$?
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -s conftest.$ac_objext'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 ac_header_compiler=yes
10243 else
10244 echo "$as_me: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10246 ac_header_compiler=no
10248 rm -f conftest.$ac_objext conftest.$ac_ext
10249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10250 echo "${ECHO_T}$ac_header_compiler" >&6
10252 # Is the header present?
10253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10255 cat >conftest.$ac_ext <<_ACEOF
10256 #line $LINENO "configure"
10257 #include "confdefs.h"
10258 #include <$ac_header>
10259 _ACEOF
10260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10262 ac_status=$?
10263 egrep -v '^ *\+' conftest.er1 >conftest.err
10264 rm -f conftest.er1
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } >/dev/null; then
10268 if test -s conftest.err; then
10269 ac_cpp_err=$ac_c_preproc_warn_flag
10270 else
10271 ac_cpp_err=
10273 else
10274 ac_cpp_err=yes
10276 if test -z "$ac_cpp_err"; then
10277 ac_header_preproc=yes
10278 else
10279 echo "$as_me: failed program was:" >&5
10280 cat conftest.$ac_ext >&5
10281 ac_header_preproc=no
10283 rm -f conftest.err conftest.$ac_ext
10284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10285 echo "${ECHO_T}$ac_header_preproc" >&6
10287 # So? What about this header?
10288 case $ac_header_compiler:$ac_header_preproc in
10289 yes:no )
10290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10294 no:yes )
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10301 esac
10302 echo "$as_me:$LINENO: checking for $ac_header" >&5
10303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307 eval "$as_ac_Header=$ac_header_preproc"
10309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10314 cat >>confdefs.h <<_ACEOF
10315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10316 _ACEOF
10320 done
10323 for ac_header in readline/history.h
10325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10327 echo "$as_me:$LINENO: checking for $ac_header" >&5
10328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10334 else
10335 # Is the header compilable?
10336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10338 cat >conftest.$ac_ext <<_ACEOF
10339 #line $LINENO "configure"
10340 #include "confdefs.h"
10341 $ac_includes_default
10342 #include <$ac_header>
10343 _ACEOF
10344 rm -f conftest.$ac_objext
10345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10346 (eval $ac_compile) 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -s conftest.$ac_objext'
10351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352 (eval $ac_try) 2>&5
10353 ac_status=$?
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; }; then
10356 ac_header_compiler=yes
10357 else
10358 echo "$as_me: failed program was:" >&5
10359 cat conftest.$ac_ext >&5
10360 ac_header_compiler=no
10362 rm -f conftest.$ac_objext conftest.$ac_ext
10363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10364 echo "${ECHO_T}$ac_header_compiler" >&6
10366 # Is the header present?
10367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10369 cat >conftest.$ac_ext <<_ACEOF
10370 #line $LINENO "configure"
10371 #include "confdefs.h"
10372 #include <$ac_header>
10373 _ACEOF
10374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10376 ac_status=$?
10377 egrep -v '^ *\+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } >/dev/null; then
10382 if test -s conftest.err; then
10383 ac_cpp_err=$ac_c_preproc_warn_flag
10384 else
10385 ac_cpp_err=
10387 else
10388 ac_cpp_err=yes
10390 if test -z "$ac_cpp_err"; then
10391 ac_header_preproc=yes
10392 else
10393 echo "$as_me: failed program was:" >&5
10394 cat conftest.$ac_ext >&5
10395 ac_header_preproc=no
10397 rm -f conftest.err conftest.$ac_ext
10398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10399 echo "${ECHO_T}$ac_header_preproc" >&6
10401 # So? What about this header?
10402 case $ac_header_compiler:$ac_header_preproc in
10403 yes:no )
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10408 no:yes )
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10415 esac
10416 echo "$as_me:$LINENO: checking for $ac_header" >&5
10417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421 eval "$as_ac_Header=$ac_header_preproc"
10423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10428 cat >>confdefs.h <<_ACEOF
10429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10430 _ACEOF
10434 done
10439 for ac_header in readline.h readline/readline.h
10441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10443 echo "$as_me:$LINENO: checking for $ac_header" >&5
10444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10450 else
10451 # Is the header compilable?
10452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10454 cat >conftest.$ac_ext <<_ACEOF
10455 #line $LINENO "configure"
10456 #include "confdefs.h"
10457 $ac_includes_default
10458 #include <$ac_header>
10459 _ACEOF
10460 rm -f conftest.$ac_objext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462 (eval $ac_compile) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } &&
10466 { ac_try='test -s conftest.$ac_objext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_header_compiler=yes
10473 else
10474 echo "$as_me: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10476 ac_header_compiler=no
10478 rm -f conftest.$ac_objext conftest.$ac_ext
10479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10480 echo "${ECHO_T}$ac_header_compiler" >&6
10482 # Is the header present?
10483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10485 cat >conftest.$ac_ext <<_ACEOF
10486 #line $LINENO "configure"
10487 #include "confdefs.h"
10488 #include <$ac_header>
10489 _ACEOF
10490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10492 ac_status=$?
10493 egrep -v '^ *\+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } >/dev/null; then
10498 if test -s conftest.err; then
10499 ac_cpp_err=$ac_c_preproc_warn_flag
10500 else
10501 ac_cpp_err=
10503 else
10504 ac_cpp_err=yes
10506 if test -z "$ac_cpp_err"; then
10507 ac_header_preproc=yes
10508 else
10509 echo "$as_me: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10511 ac_header_preproc=no
10513 rm -f conftest.err conftest.$ac_ext
10514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10515 echo "${ECHO_T}$ac_header_preproc" >&6
10517 # So? What about this header?
10518 case $ac_header_compiler:$ac_header_preproc in
10519 yes:no )
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10524 no:yes )
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10531 esac
10532 echo "$as_me:$LINENO: checking for $ac_header" >&5
10533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537 eval "$as_ac_Header=$ac_header_preproc"
10539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10544 cat >>confdefs.h <<_ACEOF
10545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10546 _ACEOF
10548 for termlib in ncurses curses termcap terminfo termlib; do
10549 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10550 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10551 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10552 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555 ac_check_lib_save_LIBS=$LIBS
10556 LIBS="-l${termlib} $LIBS"
10557 cat >conftest.$ac_ext <<_ACEOF
10558 #line $LINENO "configure"
10559 #include "confdefs.h"
10561 /* Override any gcc2 internal prototype to avoid an error. */
10562 #ifdef __cplusplus
10563 extern "C"
10564 #endif
10565 /* We use char because int might match the return type of a gcc2
10566 builtin and then its argument prototype would still apply. */
10567 char tgetent ();
10568 #ifdef F77_DUMMY_MAIN
10569 # ifdef __cplusplus
10570 extern "C"
10571 # endif
10572 int F77_DUMMY_MAIN() { return 1; }
10573 #endif
10575 main ()
10577 tgetent ();
10579 return 0;
10581 _ACEOF
10582 rm -f conftest.$ac_objext conftest$ac_exeext
10583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10584 (eval $ac_link) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try='test -s conftest$ac_exeext'
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; }; then
10594 eval "$as_ac_Lib=yes"
10595 else
10596 echo "$as_me: failed program was:" >&5
10597 cat conftest.$ac_ext >&5
10598 eval "$as_ac_Lib=no"
10600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10604 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10605 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10606 TERMLIBS="-l${termlib}"; break
10609 done
10610 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10611 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10612 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615 ac_check_lib_save_LIBS=$LIBS
10616 LIBS="-lreadline $TERMLIBS $LIBS"
10617 cat >conftest.$ac_ext <<_ACEOF
10618 #line $LINENO "configure"
10619 #include "confdefs.h"
10621 /* Override any gcc2 internal prototype to avoid an error. */
10622 #ifdef __cplusplus
10623 extern "C"
10624 #endif
10625 /* We use char because int might match the return type of a gcc2
10626 builtin and then its argument prototype would still apply. */
10627 char rl_callback_handler_install ();
10628 #ifdef F77_DUMMY_MAIN
10629 # ifdef __cplusplus
10630 extern "C"
10631 # endif
10632 int F77_DUMMY_MAIN() { return 1; }
10633 #endif
10635 main ()
10637 rl_callback_handler_install ();
10639 return 0;
10641 _ACEOF
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644 (eval $ac_link) 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -s conftest$ac_exeext'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 ac_cv_lib_readline_rl_callback_handler_install=yes
10655 else
10656 echo "$as_me: failed program was:" >&5
10657 cat conftest.$ac_ext >&5
10658 ac_cv_lib_readline_rl_callback_handler_install=no
10660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10661 LIBS=$ac_check_lib_save_LIBS
10663 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10664 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10665 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10666 TERMLDFLAGS="-L$with_readline/lib"
10667 TERMCPPFLAGS="-I$with_readline/include"
10668 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10669 TERMLIBS="-lreadline $TERMLIBS"
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_LIBREADLINE 1
10673 _ACEOF
10675 break
10676 else
10677 TERMLIBS= CPPFLAGS=$_cppflags
10682 done
10685 LDFLAGS=$_ldflags
10687 esac
10688 else
10689 echo "$as_me:$LINENO: result: no" >&5
10690 echo "${ECHO_T}no" >&6
10696 # The readline API changed slightly from readline3 to readline4, so
10697 # code will generate warnings on one of them unless we have a few
10698 # special cases.
10699 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10700 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10701 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10704 ac_check_lib_save_LIBS=$LIBS
10705 LIBS="-lreadline $TERMLIBS $LIBS"
10706 cat >conftest.$ac_ext <<_ACEOF
10707 #line $LINENO "configure"
10708 #include "confdefs.h"
10710 /* Override any gcc2 internal prototype to avoid an error. */
10711 #ifdef __cplusplus
10712 extern "C"
10713 #endif
10714 /* We use char because int might match the return type of a gcc2
10715 builtin and then its argument prototype would still apply. */
10716 char rl_completion_matches ();
10717 #ifdef F77_DUMMY_MAIN
10718 # ifdef __cplusplus
10719 extern "C"
10720 # endif
10721 int F77_DUMMY_MAIN() { return 1; }
10722 #endif
10724 main ()
10726 rl_completion_matches ();
10728 return 0;
10730 _ACEOF
10731 rm -f conftest.$ac_objext conftest$ac_exeext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10733 (eval $ac_link) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } &&
10737 { ac_try='test -s conftest$ac_exeext'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ac_cv_lib_readline_rl_completion_matches=yes
10744 else
10745 echo "$as_me: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10747 ac_cv_lib_readline_rl_completion_matches=no
10749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10750 LIBS=$ac_check_lib_save_LIBS
10752 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10753 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10754 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10756 cat >>confdefs.h <<\_ACEOF
10757 #define HAVE_NEW_LIBREADLINE 1
10758 _ACEOF
10763 # The following test taken from the cvs sources
10764 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
10765 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
10766 # libsocket.so which has a bad implementation of gethostbyname (it
10767 # only looks in /etc/hosts), so we only look for -lsocket if we need
10768 # it.
10770 for ac_func in connect
10772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10773 echo "$as_me:$LINENO: checking for $ac_func" >&5
10774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10775 if eval "test \"\${$as_ac_var+set}\" = set"; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778 cat >conftest.$ac_ext <<_ACEOF
10779 #line $LINENO "configure"
10780 #include "confdefs.h"
10781 /* System header to define __stub macros and hopefully few prototypes,
10782 which can conflict with char $ac_func (); below. */
10783 #include <assert.h>
10784 /* Override any gcc2 internal prototype to avoid an error. */
10785 #ifdef __cplusplus
10786 extern "C"
10787 #endif
10788 /* We use char because int might match the return type of a gcc2
10789 builtin and then its argument prototype would still apply. */
10790 char $ac_func ();
10791 char (*f) ();
10793 #ifdef F77_DUMMY_MAIN
10794 # ifdef __cplusplus
10795 extern "C"
10796 # endif
10797 int F77_DUMMY_MAIN() { return 1; }
10798 #endif
10800 main ()
10802 /* The GNU C library defines this for functions which it implements
10803 to always fail with ENOSYS. Some functions are actually named
10804 something starting with __ and the normal name is an alias. */
10805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10806 choke me
10807 #else
10808 f = $ac_func;
10809 #endif
10812 return 0;
10814 _ACEOF
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10817 (eval $ac_link) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 eval "$as_ac_var=yes"
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 cat conftest.$ac_ext >&5
10831 eval "$as_ac_var=no"
10833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10837 if test `eval echo '${'$as_ac_var'}'` = yes; then
10838 cat >>confdefs.h <<_ACEOF
10839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10840 _ACEOF
10843 done
10845 if test x"$ac_cv_func_connect" = x"no"; then
10846 case "$LIBS" in
10847 *-lnsl*) ;;
10849 echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
10850 echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
10851 if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-lnsl_s $LIBS"
10856 cat >conftest.$ac_ext <<_ACEOF
10857 #line $LINENO "configure"
10858 #include "confdefs.h"
10860 /* Override any gcc2 internal prototype to avoid an error. */
10861 #ifdef __cplusplus
10862 extern "C"
10863 #endif
10864 /* We use char because int might match the return type of a gcc2
10865 builtin and then its argument prototype would still apply. */
10866 char printf ();
10867 #ifdef F77_DUMMY_MAIN
10868 # ifdef __cplusplus
10869 extern "C"
10870 # endif
10871 int F77_DUMMY_MAIN() { return 1; }
10872 #endif
10874 main ()
10876 printf ();
10878 return 0;
10880 _ACEOF
10881 rm -f conftest.$ac_objext conftest$ac_exeext
10882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10883 (eval $ac_link) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try='test -s conftest$ac_exeext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 ac_cv_lib_nsl_s_printf=yes
10894 else
10895 echo "$as_me: failed program was:" >&5
10896 cat conftest.$ac_ext >&5
10897 ac_cv_lib_nsl_s_printf=no
10899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10900 LIBS=$ac_check_lib_save_LIBS
10902 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
10903 echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
10904 if test $ac_cv_lib_nsl_s_printf = yes; then
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_LIBNSL_S 1
10907 _ACEOF
10909 LIBS="-lnsl_s $LIBS"
10913 esac
10914 case "$LIBS" in
10915 *-lnsl*) ;;
10917 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
10918 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
10919 if test "${ac_cv_lib_nsl_printf+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 else
10922 ac_check_lib_save_LIBS=$LIBS
10923 LIBS="-lnsl $LIBS"
10924 cat >conftest.$ac_ext <<_ACEOF
10925 #line $LINENO "configure"
10926 #include "confdefs.h"
10928 /* Override any gcc2 internal prototype to avoid an error. */
10929 #ifdef __cplusplus
10930 extern "C"
10931 #endif
10932 /* We use char because int might match the return type of a gcc2
10933 builtin and then its argument prototype would still apply. */
10934 char printf ();
10935 #ifdef F77_DUMMY_MAIN
10936 # ifdef __cplusplus
10937 extern "C"
10938 # endif
10939 int F77_DUMMY_MAIN() { return 1; }
10940 #endif
10942 main ()
10944 printf ();
10946 return 0;
10948 _ACEOF
10949 rm -f conftest.$ac_objext conftest$ac_exeext
10950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10951 (eval $ac_link) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } &&
10955 { ac_try='test -s conftest$ac_exeext'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_cv_lib_nsl_printf=yes
10962 else
10963 echo "$as_me: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10965 ac_cv_lib_nsl_printf=no
10967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10968 LIBS=$ac_check_lib_save_LIBS
10970 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
10971 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
10972 if test $ac_cv_lib_nsl_printf = yes; then
10973 cat >>confdefs.h <<_ACEOF
10974 #define HAVE_LIBNSL 1
10975 _ACEOF
10977 LIBS="-lnsl $LIBS"
10981 esac
10982 case "$LIBS" in
10983 *-lsocket*) ;;
10985 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10986 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10987 if test "${ac_cv_lib_socket_connect+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990 ac_check_lib_save_LIBS=$LIBS
10991 LIBS="-lsocket $LIBS"
10992 cat >conftest.$ac_ext <<_ACEOF
10993 #line $LINENO "configure"
10994 #include "confdefs.h"
10996 /* Override any gcc2 internal prototype to avoid an error. */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 /* We use char because int might match the return type of a gcc2
11001 builtin and then its argument prototype would still apply. */
11002 char connect ();
11003 #ifdef F77_DUMMY_MAIN
11004 # ifdef __cplusplus
11005 extern "C"
11006 # endif
11007 int F77_DUMMY_MAIN() { return 1; }
11008 #endif
11010 main ()
11012 connect ();
11014 return 0;
11016 _ACEOF
11017 rm -f conftest.$ac_objext conftest$ac_exeext
11018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11019 (eval $ac_link) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_lib_socket_connect=yes
11030 else
11031 echo "$as_me: failed program was:" >&5
11032 cat conftest.$ac_ext >&5
11033 ac_cv_lib_socket_connect=no
11035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11036 LIBS=$ac_check_lib_save_LIBS
11038 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
11039 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
11040 if test $ac_cv_lib_socket_connect = yes; then
11041 cat >>confdefs.h <<_ACEOF
11042 #define HAVE_LIBSOCKET 1
11043 _ACEOF
11045 LIBS="-lsocket $LIBS"
11049 esac
11050 case "$LIBS" in
11051 *-linet*) ;;
11053 echo "$as_me:$LINENO: checking for connect in -linet" >&5
11054 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
11055 if test "${ac_cv_lib_inet_connect+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058 ac_check_lib_save_LIBS=$LIBS
11059 LIBS="-linet $LIBS"
11060 cat >conftest.$ac_ext <<_ACEOF
11061 #line $LINENO "configure"
11062 #include "confdefs.h"
11064 /* Override any gcc2 internal prototype to avoid an error. */
11065 #ifdef __cplusplus
11066 extern "C"
11067 #endif
11068 /* We use char because int might match the return type of a gcc2
11069 builtin and then its argument prototype would still apply. */
11070 char connect ();
11071 #ifdef F77_DUMMY_MAIN
11072 # ifdef __cplusplus
11073 extern "C"
11074 # endif
11075 int F77_DUMMY_MAIN() { return 1; }
11076 #endif
11078 main ()
11080 connect ();
11082 return 0;
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11087 (eval $ac_link) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
11091 { ac_try='test -s conftest$ac_exeext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_cv_lib_inet_connect=yes
11098 else
11099 echo "$as_me: failed program was:" >&5
11100 cat conftest.$ac_ext >&5
11101 ac_cv_lib_inet_connect=no
11103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_check_lib_save_LIBS
11106 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
11107 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
11108 if test $ac_cv_lib_inet_connect = yes; then
11109 cat >>confdefs.h <<_ACEOF
11110 #define HAVE_LIBINET 1
11111 _ACEOF
11113 LIBS="-linet $LIBS"
11117 esac
11118 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
11119 test x"$ac_cv_lib_inet_connect" = x"yes"; then
11120 # ac_cv_func_connect=yes
11121 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
11123 cat >>confdefs.h <<\_ACEOF
11124 #define HAVE_CONNECT 1
11125 _ACEOF
11130 ###############################################
11131 # test for where we get get_yp_default_domain() from
11133 for ac_func in yp_get_default_domain
11135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11136 echo "$as_me:$LINENO: checking for $ac_func" >&5
11137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11138 if eval "test \"\${$as_ac_var+set}\" = set"; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141 cat >conftest.$ac_ext <<_ACEOF
11142 #line $LINENO "configure"
11143 #include "confdefs.h"
11144 /* System header to define __stub macros and hopefully few prototypes,
11145 which can conflict with char $ac_func (); below. */
11146 #include <assert.h>
11147 /* Override any gcc2 internal prototype to avoid an error. */
11148 #ifdef __cplusplus
11149 extern "C"
11150 #endif
11151 /* We use char because int might match the return type of a gcc2
11152 builtin and then its argument prototype would still apply. */
11153 char $ac_func ();
11154 char (*f) ();
11156 #ifdef F77_DUMMY_MAIN
11157 # ifdef __cplusplus
11158 extern "C"
11159 # endif
11160 int F77_DUMMY_MAIN() { return 1; }
11161 #endif
11163 main ()
11165 /* The GNU C library defines this for functions which it implements
11166 to always fail with ENOSYS. Some functions are actually named
11167 something starting with __ and the normal name is an alias. */
11168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11169 choke me
11170 #else
11171 f = $ac_func;
11172 #endif
11175 return 0;
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180 (eval $ac_link) 2>&5
11181 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } &&
11184 { ac_try='test -s conftest$ac_exeext'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 eval "$as_ac_var=yes"
11191 else
11192 echo "$as_me: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11194 eval "$as_ac_var=no"
11196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11200 if test `eval echo '${'$as_ac_var'}'` = yes; then
11201 cat >>confdefs.h <<_ACEOF
11202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11203 _ACEOF
11206 done
11208 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
11209 echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
11210 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
11211 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214 ac_check_lib_save_LIBS=$LIBS
11215 LIBS="-lnsl $LIBS"
11216 cat >conftest.$ac_ext <<_ACEOF
11217 #line $LINENO "configure"
11218 #include "confdefs.h"
11220 /* Override any gcc2 internal prototype to avoid an error. */
11221 #ifdef __cplusplus
11222 extern "C"
11223 #endif
11224 /* We use char because int might match the return type of a gcc2
11225 builtin and then its argument prototype would still apply. */
11226 char yp_get_default_domain ();
11227 #ifdef F77_DUMMY_MAIN
11228 # ifdef __cplusplus
11229 extern "C"
11230 # endif
11231 int F77_DUMMY_MAIN() { return 1; }
11232 #endif
11234 main ()
11236 yp_get_default_domain ();
11238 return 0;
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_cv_lib_nsl_yp_get_default_domain=yes
11254 else
11255 echo "$as_me: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11257 ac_cv_lib_nsl_yp_get_default_domain=no
11259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11260 LIBS=$ac_check_lib_save_LIBS
11262 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
11263 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
11264 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
11265 LIBS="$LIBS -lnsl";
11267 cat >>confdefs.h <<\_ACEOF
11268 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
11269 _ACEOF
11275 # Check if we have execl, if not we need to compile smbrun.
11277 for ac_func in execl
11279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11280 echo "$as_me:$LINENO: checking for $ac_func" >&5
11281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11282 if eval "test \"\${$as_ac_var+set}\" = set"; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 cat >conftest.$ac_ext <<_ACEOF
11286 #line $LINENO "configure"
11287 #include "confdefs.h"
11288 /* System header to define __stub macros and hopefully few prototypes,
11289 which can conflict with char $ac_func (); below. */
11290 #include <assert.h>
11291 /* Override any gcc2 internal prototype to avoid an error. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 /* We use char because int might match the return type of a gcc2
11296 builtin and then its argument prototype would still apply. */
11297 char $ac_func ();
11298 char (*f) ();
11300 #ifdef F77_DUMMY_MAIN
11301 # ifdef __cplusplus
11302 extern "C"
11303 # endif
11304 int F77_DUMMY_MAIN() { return 1; }
11305 #endif
11307 main ()
11309 /* The GNU C library defines this for functions which it implements
11310 to always fail with ENOSYS. Some functions are actually named
11311 something starting with __ and the normal name is an alias. */
11312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11313 choke me
11314 #else
11315 f = $ac_func;
11316 #endif
11319 return 0;
11321 _ACEOF
11322 rm -f conftest.$ac_objext conftest$ac_exeext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11324 (eval $ac_link) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
11328 { ac_try='test -s conftest$ac_exeext'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
11334 eval "$as_ac_var=yes"
11335 else
11336 echo "$as_me: failed program was:" >&5
11337 cat conftest.$ac_ext >&5
11338 eval "$as_ac_var=no"
11340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11344 if test `eval echo '${'$as_ac_var'}'` = yes; then
11345 cat >>confdefs.h <<_ACEOF
11346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11347 _ACEOF
11350 done
11352 if test x"$ac_cv_func_execl" = x"no"; then
11353 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
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
11382 else
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. */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 /* We use char because int might match the return type of a gcc2
11394 builtin and then its argument prototype would still apply. */
11395 char $ac_func ();
11396 char (*f) ();
11398 #ifdef F77_DUMMY_MAIN
11399 # ifdef __cplusplus
11400 extern "C"
11401 # endif
11402 int F77_DUMMY_MAIN() { return 1; }
11403 #endif
11405 main ()
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)
11411 choke me
11412 #else
11413 f = $ac_func;
11414 #endif
11417 return 0;
11419 _ACEOF
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
11423 ac_status=$?
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
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 eval "$as_ac_var=yes"
11433 else
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
11445 _ACEOF
11448 done
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
11468 else
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. */
11476 #ifdef __cplusplus
11477 extern "C"
11478 #endif
11479 /* We use char because int might match the return type of a gcc2
11480 builtin and then its argument prototype would still apply. */
11481 char $ac_func ();
11482 char (*f) ();
11484 #ifdef F77_DUMMY_MAIN
11485 # ifdef __cplusplus
11486 extern "C"
11487 # endif
11488 int F77_DUMMY_MAIN() { return 1; }
11489 #endif
11491 main ()
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)
11497 choke me
11498 #else
11499 f = $ac_func;
11500 #endif
11503 return 0;
11505 _ACEOF
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
11509 ac_status=$?
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
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 eval "$as_ac_var=yes"
11519 else
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
11531 _ACEOF
11534 done
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
11554 else
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. */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 /* We use char because int might match the return type of a gcc2
11566 builtin and then its argument prototype would still apply. */
11567 char $ac_func ();
11568 char (*f) ();
11570 #ifdef F77_DUMMY_MAIN
11571 # ifdef __cplusplus
11572 extern "C"
11573 # endif
11574 int F77_DUMMY_MAIN() { return 1; }
11575 #endif
11577 main ()
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)
11583 choke me
11584 #else
11585 f = $ac_func;
11586 #endif
11589 return 0;
11591 _ACEOF
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
11595 ac_status=$?
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
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 eval "$as_ac_var=yes"
11605 else
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
11617 _ACEOF
11620 done
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
11638 else
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. */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 /* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */
11651 char $ac_func ();
11652 char (*f) ();
11654 #ifdef F77_DUMMY_MAIN
11655 # ifdef __cplusplus
11656 extern "C"
11657 # endif
11658 int F77_DUMMY_MAIN() { return 1; }
11659 #endif
11661 main ()
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)
11667 choke me
11668 #else
11669 f = $ac_func;
11670 #endif
11673 return 0;
11675 _ACEOF
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
11679 ac_status=$?
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
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 eval "$as_ac_var=yes"
11689 else
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
11701 _ACEOF
11704 done
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
11721 else
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. */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 /* We use char because int might match the return type of a gcc2
11733 builtin and then its argument prototype would still apply. */
11734 char $ac_func ();
11735 char (*f) ();
11737 #ifdef F77_DUMMY_MAIN
11738 # ifdef __cplusplus
11739 extern "C"
11740 # endif
11741 int F77_DUMMY_MAIN() { return 1; }
11742 #endif
11744 main ()
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)
11750 choke me
11751 #else
11752 f = $ac_func;
11753 #endif
11756 return 0;
11758 _ACEOF
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
11762 ac_status=$?
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
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 eval "$as_ac_var=yes"
11772 else
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
11784 _ACEOF
11787 done
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
11806 else
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. */
11814 #ifdef __cplusplus
11815 extern "C"
11816 #endif
11817 /* We use char because int might match the return type of a gcc2
11818 builtin and then its argument prototype would still apply. */
11819 char $ac_func ();
11820 char (*f) ();
11822 #ifdef F77_DUMMY_MAIN
11823 # ifdef __cplusplus
11824 extern "C"
11825 # endif
11826 int F77_DUMMY_MAIN() { return 1; }
11827 #endif
11829 main ()
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)
11835 choke me
11836 #else
11837 f = $ac_func;
11838 #endif
11841 return 0;
11843 _ACEOF
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
11847 ac_status=$?
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
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; }; then
11856 eval "$as_ac_var=yes"
11857 else
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
11869 _ACEOF
11872 done
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
11889 else
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. */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 /* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11902 char $ac_func ();
11903 char (*f) ();
11905 #ifdef F77_DUMMY_MAIN
11906 # ifdef __cplusplus
11907 extern "C"
11908 # endif
11909 int F77_DUMMY_MAIN() { return 1; }
11910 #endif
11912 main ()
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)
11918 choke me
11919 #else
11920 f = $ac_func;
11921 #endif
11924 return 0;
11926 _ACEOF
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
11930 ac_status=$?
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
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 eval "$as_ac_var=yes"
11940 else
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
11952 _ACEOF
11955 done
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
11971 else
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. */
11979 #ifdef __cplusplus
11980 extern "C"
11981 #endif
11982 /* We use char because int might match the return type of a gcc2
11983 builtin and then its argument prototype would still apply. */
11984 char $ac_func ();
11985 char (*f) ();
11987 #ifdef F77_DUMMY_MAIN
11988 # ifdef __cplusplus
11989 extern "C"
11990 # endif
11991 int F77_DUMMY_MAIN() { return 1; }
11992 #endif
11994 main ()
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)
12000 choke me
12001 #else
12002 f = $ac_func;
12003 #endif
12006 return 0;
12008 _ACEOF
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
12012 ac_status=$?
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
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 eval "$as_ac_var=yes"
12022 else
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
12034 _ACEOF
12037 done
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
12057 else
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. */
12065 #ifdef __cplusplus
12066 extern "C"
12067 #endif
12068 /* We use char because int might match the return type of a gcc2
12069 builtin and then its argument prototype would still apply. */
12070 char $ac_func ();
12071 char (*f) ();
12073 #ifdef F77_DUMMY_MAIN
12074 # ifdef __cplusplus
12075 extern "C"
12076 # endif
12077 int F77_DUMMY_MAIN() { return 1; }
12078 #endif
12080 main ()
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)
12086 choke me
12087 #else
12088 f = $ac_func;
12089 #endif
12092 return 0;
12094 _ACEOF
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
12098 ac_status=$?
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
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 eval "$as_ac_var=yes"
12108 else
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
12120 _ACEOF
12123 done
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
12136 else
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. */
12144 #ifdef __cplusplus
12145 extern "C"
12146 #endif
12147 /* We use char because int might match the return type of a gcc2
12148 builtin and then its argument prototype would still apply. */
12149 char $ac_func ();
12150 char (*f) ();
12152 #ifdef F77_DUMMY_MAIN
12153 # ifdef __cplusplus
12154 extern "C"
12155 # endif
12156 int F77_DUMMY_MAIN() { return 1; }
12157 #endif
12159 main ()
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)
12165 choke me
12166 #else
12167 f = $ac_func;
12168 #endif
12171 return 0;
12173 _ACEOF
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
12177 ac_status=$?
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
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; }; then
12186 eval "$as_ac_var=yes"
12187 else
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
12199 _ACEOF
12202 done
12204 # setbuffer, shmget, shm_open are needed for smbtorture
12208 for ac_func in setbuffer shmget shm_open
12210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12211 echo "$as_me:$LINENO: checking for $ac_func" >&5
12212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12213 if eval "test \"\${$as_ac_var+set}\" = set"; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 else
12216 cat >conftest.$ac_ext <<_ACEOF
12217 #line $LINENO "configure"
12218 #include "confdefs.h"
12219 /* System header to define __stub macros and hopefully few prototypes,
12220 which can conflict with char $ac_func (); below. */
12221 #include <assert.h>
12222 /* Override any gcc2 internal prototype to avoid an error. */
12223 #ifdef __cplusplus
12224 extern "C"
12225 #endif
12226 /* We use char because int might match the return type of a gcc2
12227 builtin and then its argument prototype would still apply. */
12228 char $ac_func ();
12229 char (*f) ();
12231 #ifdef F77_DUMMY_MAIN
12232 # ifdef __cplusplus
12233 extern "C"
12234 # endif
12235 int F77_DUMMY_MAIN() { return 1; }
12236 #endif
12238 main ()
12240 /* The GNU C library defines this for functions which it implements
12241 to always fail with ENOSYS. Some functions are actually named
12242 something starting with __ and the normal name is an alias. */
12243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12244 choke me
12245 #else
12246 f = $ac_func;
12247 #endif
12250 return 0;
12252 _ACEOF
12253 rm -f conftest.$ac_objext conftest$ac_exeext
12254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12255 (eval $ac_link) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } &&
12259 { ac_try='test -s conftest$ac_exeext'
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
12265 eval "$as_ac_var=yes"
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 cat conftest.$ac_ext >&5
12269 eval "$as_ac_var=no"
12271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12275 if test `eval echo '${'$as_ac_var'}'` = yes; then
12276 cat >>confdefs.h <<_ACEOF
12277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12278 _ACEOF
12281 done
12284 # syscall() is needed for smbwrapper.
12286 for ac_func in syscall
12288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12289 echo "$as_me:$LINENO: checking for $ac_func" >&5
12290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12291 if eval "test \"\${$as_ac_var+set}\" = set"; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294 cat >conftest.$ac_ext <<_ACEOF
12295 #line $LINENO "configure"
12296 #include "confdefs.h"
12297 /* System header to define __stub macros and hopefully few prototypes,
12298 which can conflict with char $ac_func (); below. */
12299 #include <assert.h>
12300 /* Override any gcc2 internal prototype to avoid an error. */
12301 #ifdef __cplusplus
12302 extern "C"
12303 #endif
12304 /* We use char because int might match the return type of a gcc2
12305 builtin and then its argument prototype would still apply. */
12306 char $ac_func ();
12307 char (*f) ();
12309 #ifdef F77_DUMMY_MAIN
12310 # ifdef __cplusplus
12311 extern "C"
12312 # endif
12313 int F77_DUMMY_MAIN() { return 1; }
12314 #endif
12316 main ()
12318 /* The GNU C library defines this for functions which it implements
12319 to always fail with ENOSYS. Some functions are actually named
12320 something starting with __ and the normal name is an alias. */
12321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12322 choke me
12323 #else
12324 f = $ac_func;
12325 #endif
12328 return 0;
12330 _ACEOF
12331 rm -f conftest.$ac_objext conftest$ac_exeext
12332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12333 (eval $ac_link) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -s conftest$ac_exeext'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 eval "$as_ac_var=yes"
12344 else
12345 echo "$as_me: failed program was:" >&5
12346 cat conftest.$ac_ext >&5
12347 eval "$as_ac_var=no"
12349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12353 if test `eval echo '${'$as_ac_var'}'` = yes; then
12354 cat >>confdefs.h <<_ACEOF
12355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12356 _ACEOF
12359 done
12369 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
12371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12372 echo "$as_me:$LINENO: checking for $ac_func" >&5
12373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12374 if eval "test \"\${$as_ac_var+set}\" = set"; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377 cat >conftest.$ac_ext <<_ACEOF
12378 #line $LINENO "configure"
12379 #include "confdefs.h"
12380 /* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char $ac_func (); below. */
12382 #include <assert.h>
12383 /* Override any gcc2 internal prototype to avoid an error. */
12384 #ifdef __cplusplus
12385 extern "C"
12386 #endif
12387 /* We use char because int might match the return type of a gcc2
12388 builtin and then its argument prototype would still apply. */
12389 char $ac_func ();
12390 char (*f) ();
12392 #ifdef F77_DUMMY_MAIN
12393 # ifdef __cplusplus
12394 extern "C"
12395 # endif
12396 int F77_DUMMY_MAIN() { return 1; }
12397 #endif
12399 main ()
12401 /* The GNU C library defines this for functions which it implements
12402 to always fail with ENOSYS. Some functions are actually named
12403 something starting with __ and the normal name is an alias. */
12404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12405 choke me
12406 #else
12407 f = $ac_func;
12408 #endif
12411 return 0;
12413 _ACEOF
12414 rm -f conftest.$ac_objext conftest$ac_exeext
12415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12416 (eval $ac_link) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
12420 { ac_try='test -s conftest$ac_exeext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 eval "$as_ac_var=yes"
12427 else
12428 echo "$as_me: failed program was:" >&5
12429 cat conftest.$ac_ext >&5
12430 eval "$as_ac_var=no"
12432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12436 if test `eval echo '${'$as_ac_var'}'` = yes; then
12437 cat >>confdefs.h <<_ACEOF
12438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12439 _ACEOF
12442 done
12451 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
12453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12454 echo "$as_me:$LINENO: checking for $ac_func" >&5
12455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12456 if eval "test \"\${$as_ac_var+set}\" = set"; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459 cat >conftest.$ac_ext <<_ACEOF
12460 #line $LINENO "configure"
12461 #include "confdefs.h"
12462 /* System header to define __stub macros and hopefully few prototypes,
12463 which can conflict with char $ac_func (); below. */
12464 #include <assert.h>
12465 /* Override any gcc2 internal prototype to avoid an error. */
12466 #ifdef __cplusplus
12467 extern "C"
12468 #endif
12469 /* We use char because int might match the return type of a gcc2
12470 builtin and then its argument prototype would still apply. */
12471 char $ac_func ();
12472 char (*f) ();
12474 #ifdef F77_DUMMY_MAIN
12475 # ifdef __cplusplus
12476 extern "C"
12477 # endif
12478 int F77_DUMMY_MAIN() { return 1; }
12479 #endif
12481 main ()
12483 /* The GNU C library defines this for functions which it implements
12484 to always fail with ENOSYS. Some functions are actually named
12485 something starting with __ and the normal name is an alias. */
12486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12487 choke me
12488 #else
12489 f = $ac_func;
12490 #endif
12493 return 0;
12495 _ACEOF
12496 rm -f conftest.$ac_objext conftest$ac_exeext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12498 (eval $ac_link) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -s conftest$ac_exeext'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; }; then
12508 eval "$as_ac_var=yes"
12509 else
12510 echo "$as_me: failed program was:" >&5
12511 cat conftest.$ac_ext >&5
12512 eval "$as_ac_var=no"
12514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12518 if test `eval echo '${'$as_ac_var'}'` = yes; then
12519 cat >>confdefs.h <<_ACEOF
12520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12521 _ACEOF
12524 done
12528 for ac_func in __getcwd _getcwd
12530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12531 echo "$as_me:$LINENO: checking for $ac_func" >&5
12532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12533 if eval "test \"\${$as_ac_var+set}\" = set"; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536 cat >conftest.$ac_ext <<_ACEOF
12537 #line $LINENO "configure"
12538 #include "confdefs.h"
12539 /* System header to define __stub macros and hopefully few prototypes,
12540 which can conflict with char $ac_func (); below. */
12541 #include <assert.h>
12542 /* Override any gcc2 internal prototype to avoid an error. */
12543 #ifdef __cplusplus
12544 extern "C"
12545 #endif
12546 /* We use char because int might match the return type of a gcc2
12547 builtin and then its argument prototype would still apply. */
12548 char $ac_func ();
12549 char (*f) ();
12551 #ifdef F77_DUMMY_MAIN
12552 # ifdef __cplusplus
12553 extern "C"
12554 # endif
12555 int F77_DUMMY_MAIN() { return 1; }
12556 #endif
12558 main ()
12560 /* The GNU C library defines this for functions which it implements
12561 to always fail with ENOSYS. Some functions are actually named
12562 something starting with __ and the normal name is an alias. */
12563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12564 choke me
12565 #else
12566 f = $ac_func;
12567 #endif
12570 return 0;
12572 _ACEOF
12573 rm -f conftest.$ac_objext conftest$ac_exeext
12574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12575 (eval $ac_link) 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } &&
12579 { ac_try='test -s conftest$ac_exeext'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 eval "$as_ac_var=yes"
12586 else
12587 echo "$as_me: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12589 eval "$as_ac_var=no"
12591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12595 if test `eval echo '${'$as_ac_var'}'` = yes; then
12596 cat >>confdefs.h <<_ACEOF
12597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12598 _ACEOF
12601 done
12606 for ac_func in __xstat __fxstat __lxstat
12608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12609 echo "$as_me:$LINENO: checking for $ac_func" >&5
12610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12611 if eval "test \"\${$as_ac_var+set}\" = set"; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614 cat >conftest.$ac_ext <<_ACEOF
12615 #line $LINENO "configure"
12616 #include "confdefs.h"
12617 /* System header to define __stub macros and hopefully few prototypes,
12618 which can conflict with char $ac_func (); below. */
12619 #include <assert.h>
12620 /* Override any gcc2 internal prototype to avoid an error. */
12621 #ifdef __cplusplus
12622 extern "C"
12623 #endif
12624 /* We use char because int might match the return type of a gcc2
12625 builtin and then its argument prototype would still apply. */
12626 char $ac_func ();
12627 char (*f) ();
12629 #ifdef F77_DUMMY_MAIN
12630 # ifdef __cplusplus
12631 extern "C"
12632 # endif
12633 int F77_DUMMY_MAIN() { return 1; }
12634 #endif
12636 main ()
12638 /* The GNU C library defines this for functions which it implements
12639 to always fail with ENOSYS. Some functions are actually named
12640 something starting with __ and the normal name is an alias. */
12641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12642 choke me
12643 #else
12644 f = $ac_func;
12645 #endif
12648 return 0;
12650 _ACEOF
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653 (eval $ac_link) 2>&5
12654 ac_status=$?
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } &&
12657 { ac_try='test -s conftest$ac_exeext'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; }; then
12663 eval "$as_ac_var=yes"
12664 else
12665 echo "$as_me: failed program was:" >&5
12666 cat conftest.$ac_ext >&5
12667 eval "$as_ac_var=no"
12669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12673 if test `eval echo '${'$as_ac_var'}'` = yes; then
12674 cat >>confdefs.h <<_ACEOF
12675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12676 _ACEOF
12679 done
12687 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
12689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12690 echo "$as_me:$LINENO: checking for $ac_func" >&5
12691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12692 if eval "test \"\${$as_ac_var+set}\" = set"; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695 cat >conftest.$ac_ext <<_ACEOF
12696 #line $LINENO "configure"
12697 #include "confdefs.h"
12698 /* System header to define __stub macros and hopefully few prototypes,
12699 which can conflict with char $ac_func (); below. */
12700 #include <assert.h>
12701 /* Override any gcc2 internal prototype to avoid an error. */
12702 #ifdef __cplusplus
12703 extern "C"
12704 #endif
12705 /* We use char because int might match the return type of a gcc2
12706 builtin and then its argument prototype would still apply. */
12707 char $ac_func ();
12708 char (*f) ();
12710 #ifdef F77_DUMMY_MAIN
12711 # ifdef __cplusplus
12712 extern "C"
12713 # endif
12714 int F77_DUMMY_MAIN() { return 1; }
12715 #endif
12717 main ()
12719 /* The GNU C library defines this for functions which it implements
12720 to always fail with ENOSYS. Some functions are actually named
12721 something starting with __ and the normal name is an alias. */
12722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12723 choke me
12724 #else
12725 f = $ac_func;
12726 #endif
12729 return 0;
12731 _ACEOF
12732 rm -f conftest.$ac_objext conftest$ac_exeext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12734 (eval $ac_link) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
12738 { ac_try='test -s conftest$ac_exeext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 eval "$as_ac_var=yes"
12745 else
12746 echo "$as_me: failed program was:" >&5
12747 cat conftest.$ac_ext >&5
12748 eval "$as_ac_var=no"
12750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12754 if test `eval echo '${'$as_ac_var'}'` = yes; then
12755 cat >>confdefs.h <<_ACEOF
12756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12757 _ACEOF
12760 done
12770 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
12772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12773 echo "$as_me:$LINENO: checking for $ac_func" >&5
12774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12775 if eval "test \"\${$as_ac_var+set}\" = set"; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 else
12778 cat >conftest.$ac_ext <<_ACEOF
12779 #line $LINENO "configure"
12780 #include "confdefs.h"
12781 /* System header to define __stub macros and hopefully few prototypes,
12782 which can conflict with char $ac_func (); below. */
12783 #include <assert.h>
12784 /* Override any gcc2 internal prototype to avoid an error. */
12785 #ifdef __cplusplus
12786 extern "C"
12787 #endif
12788 /* We use char because int might match the return type of a gcc2
12789 builtin and then its argument prototype would still apply. */
12790 char $ac_func ();
12791 char (*f) ();
12793 #ifdef F77_DUMMY_MAIN
12794 # ifdef __cplusplus
12795 extern "C"
12796 # endif
12797 int F77_DUMMY_MAIN() { return 1; }
12798 #endif
12800 main ()
12802 /* The GNU C library defines this for functions which it implements
12803 to always fail with ENOSYS. Some functions are actually named
12804 something starting with __ and the normal name is an alias. */
12805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12806 choke me
12807 #else
12808 f = $ac_func;
12809 #endif
12812 return 0;
12814 _ACEOF
12815 rm -f conftest.$ac_objext conftest$ac_exeext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12817 (eval $ac_link) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } &&
12821 { ac_try='test -s conftest$ac_exeext'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; }; then
12827 eval "$as_ac_var=yes"
12828 else
12829 echo "$as_me: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12831 eval "$as_ac_var=no"
12833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12837 if test `eval echo '${'$as_ac_var'}'` = yes; then
12838 cat >>confdefs.h <<_ACEOF
12839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12840 _ACEOF
12843 done
12851 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
12853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12854 echo "$as_me:$LINENO: checking for $ac_func" >&5
12855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12856 if eval "test \"\${$as_ac_var+set}\" = set"; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859 cat >conftest.$ac_ext <<_ACEOF
12860 #line $LINENO "configure"
12861 #include "confdefs.h"
12862 /* System header to define __stub macros and hopefully few prototypes,
12863 which can conflict with char $ac_func (); below. */
12864 #include <assert.h>
12865 /* Override any gcc2 internal prototype to avoid an error. */
12866 #ifdef __cplusplus
12867 extern "C"
12868 #endif
12869 /* We use char because int might match the return type of a gcc2
12870 builtin and then its argument prototype would still apply. */
12871 char $ac_func ();
12872 char (*f) ();
12874 #ifdef F77_DUMMY_MAIN
12875 # ifdef __cplusplus
12876 extern "C"
12877 # endif
12878 int F77_DUMMY_MAIN() { return 1; }
12879 #endif
12881 main ()
12883 /* The GNU C library defines this for functions which it implements
12884 to always fail with ENOSYS. Some functions are actually named
12885 something starting with __ and the normal name is an alias. */
12886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12887 choke me
12888 #else
12889 f = $ac_func;
12890 #endif
12893 return 0;
12895 _ACEOF
12896 rm -f conftest.$ac_objext conftest$ac_exeext
12897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12898 (eval $ac_link) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
12902 { ac_try='test -s conftest$ac_exeext'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; }; then
12908 eval "$as_ac_var=yes"
12909 else
12910 echo "$as_me: failed program was:" >&5
12911 cat conftest.$ac_ext >&5
12912 eval "$as_ac_var=no"
12914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12918 if test `eval echo '${'$as_ac_var'}'` = yes; then
12919 cat >>confdefs.h <<_ACEOF
12920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12921 _ACEOF
12924 done
12933 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
12935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12936 echo "$as_me:$LINENO: checking for $ac_func" >&5
12937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12938 if eval "test \"\${$as_ac_var+set}\" = set"; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 else
12941 cat >conftest.$ac_ext <<_ACEOF
12942 #line $LINENO "configure"
12943 #include "confdefs.h"
12944 /* System header to define __stub macros and hopefully few prototypes,
12945 which can conflict with char $ac_func (); below. */
12946 #include <assert.h>
12947 /* Override any gcc2 internal prototype to avoid an error. */
12948 #ifdef __cplusplus
12949 extern "C"
12950 #endif
12951 /* We use char because int might match the return type of a gcc2
12952 builtin and then its argument prototype would still apply. */
12953 char $ac_func ();
12954 char (*f) ();
12956 #ifdef F77_DUMMY_MAIN
12957 # ifdef __cplusplus
12958 extern "C"
12959 # endif
12960 int F77_DUMMY_MAIN() { return 1; }
12961 #endif
12963 main ()
12965 /* The GNU C library defines this for functions which it implements
12966 to always fail with ENOSYS. Some functions are actually named
12967 something starting with __ and the normal name is an alias. */
12968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12969 choke me
12970 #else
12971 f = $ac_func;
12972 #endif
12975 return 0;
12977 _ACEOF
12978 rm -f conftest.$ac_objext conftest$ac_exeext
12979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12980 (eval $ac_link) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -s conftest$ac_exeext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 eval "$as_ac_var=yes"
12991 else
12992 echo "$as_me: failed program was:" >&5
12993 cat conftest.$ac_ext >&5
12994 eval "$as_ac_var=no"
12996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13000 if test `eval echo '${'$as_ac_var'}'` = yes; then
13001 cat >>confdefs.h <<_ACEOF
13002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13003 _ACEOF
13006 done
13012 for ac_func in _write __write _fork __fork
13014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13015 echo "$as_me:$LINENO: checking for $ac_func" >&5
13016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13017 if eval "test \"\${$as_ac_var+set}\" = set"; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020 cat >conftest.$ac_ext <<_ACEOF
13021 #line $LINENO "configure"
13022 #include "confdefs.h"
13023 /* System header to define __stub macros and hopefully few prototypes,
13024 which can conflict with char $ac_func (); below. */
13025 #include <assert.h>
13026 /* Override any gcc2 internal prototype to avoid an error. */
13027 #ifdef __cplusplus
13028 extern "C"
13029 #endif
13030 /* We use char because int might match the return type of a gcc2
13031 builtin and then its argument prototype would still apply. */
13032 char $ac_func ();
13033 char (*f) ();
13035 #ifdef F77_DUMMY_MAIN
13036 # ifdef __cplusplus
13037 extern "C"
13038 # endif
13039 int F77_DUMMY_MAIN() { return 1; }
13040 #endif
13042 main ()
13044 /* The GNU C library defines this for functions which it implements
13045 to always fail with ENOSYS. Some functions are actually named
13046 something starting with __ and the normal name is an alias. */
13047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13048 choke me
13049 #else
13050 f = $ac_func;
13051 #endif
13054 return 0;
13056 _ACEOF
13057 rm -f conftest.$ac_objext conftest$ac_exeext
13058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13059 (eval $ac_link) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -s conftest$ac_exeext'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 eval "$as_ac_var=yes"
13070 else
13071 echo "$as_me: failed program was:" >&5
13072 cat conftest.$ac_ext >&5
13073 eval "$as_ac_var=no"
13075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13079 if test `eval echo '${'$as_ac_var'}'` = yes; then
13080 cat >>confdefs.h <<_ACEOF
13081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13082 _ACEOF
13085 done
13093 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
13095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13096 echo "$as_me:$LINENO: checking for $ac_func" >&5
13097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13098 if eval "test \"\${$as_ac_var+set}\" = set"; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 else
13101 cat >conftest.$ac_ext <<_ACEOF
13102 #line $LINENO "configure"
13103 #include "confdefs.h"
13104 /* System header to define __stub macros and hopefully few prototypes,
13105 which can conflict with char $ac_func (); below. */
13106 #include <assert.h>
13107 /* Override any gcc2 internal prototype to avoid an error. */
13108 #ifdef __cplusplus
13109 extern "C"
13110 #endif
13111 /* We use char because int might match the return type of a gcc2
13112 builtin and then its argument prototype would still apply. */
13113 char $ac_func ();
13114 char (*f) ();
13116 #ifdef F77_DUMMY_MAIN
13117 # ifdef __cplusplus
13118 extern "C"
13119 # endif
13120 int F77_DUMMY_MAIN() { return 1; }
13121 #endif
13123 main ()
13125 /* The GNU C library defines this for functions which it implements
13126 to always fail with ENOSYS. Some functions are actually named
13127 something starting with __ and the normal name is an alias. */
13128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13129 choke me
13130 #else
13131 f = $ac_func;
13132 #endif
13135 return 0;
13137 _ACEOF
13138 rm -f conftest.$ac_objext conftest$ac_exeext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13140 (eval $ac_link) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
13144 { ac_try='test -s conftest$ac_exeext'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150 eval "$as_ac_var=yes"
13151 else
13152 echo "$as_me: failed program was:" >&5
13153 cat conftest.$ac_ext >&5
13154 eval "$as_ac_var=no"
13156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13160 if test `eval echo '${'$as_ac_var'}'` = yes; then
13161 cat >>confdefs.h <<_ACEOF
13162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13163 _ACEOF
13166 done
13175 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
13177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13178 echo "$as_me:$LINENO: checking for $ac_func" >&5
13179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13180 if eval "test \"\${$as_ac_var+set}\" = set"; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183 cat >conftest.$ac_ext <<_ACEOF
13184 #line $LINENO "configure"
13185 #include "confdefs.h"
13186 /* System header to define __stub macros and hopefully few prototypes,
13187 which can conflict with char $ac_func (); below. */
13188 #include <assert.h>
13189 /* Override any gcc2 internal prototype to avoid an error. */
13190 #ifdef __cplusplus
13191 extern "C"
13192 #endif
13193 /* We use char because int might match the return type of a gcc2
13194 builtin and then its argument prototype would still apply. */
13195 char $ac_func ();
13196 char (*f) ();
13198 #ifdef F77_DUMMY_MAIN
13199 # ifdef __cplusplus
13200 extern "C"
13201 # endif
13202 int F77_DUMMY_MAIN() { return 1; }
13203 #endif
13205 main ()
13207 /* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13211 choke me
13212 #else
13213 f = $ac_func;
13214 #endif
13217 return 0;
13219 _ACEOF
13220 rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13222 (eval $ac_link) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } &&
13226 { ac_try='test -s conftest$ac_exeext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 eval "$as_ac_var=yes"
13233 else
13234 echo "$as_me: failed program was:" >&5
13235 cat conftest.$ac_ext >&5
13236 eval "$as_ac_var=no"
13238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13242 if test `eval echo '${'$as_ac_var'}'` = yes; then
13243 cat >>confdefs.h <<_ACEOF
13244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13245 _ACEOF
13248 done
13256 for ac_func in pread _pread __pread pread64 _pread64 __pread64
13258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13259 echo "$as_me:$LINENO: checking for $ac_func" >&5
13260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13261 if eval "test \"\${$as_ac_var+set}\" = set"; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 else
13264 cat >conftest.$ac_ext <<_ACEOF
13265 #line $LINENO "configure"
13266 #include "confdefs.h"
13267 /* System header to define __stub macros and hopefully few prototypes,
13268 which can conflict with char $ac_func (); below. */
13269 #include <assert.h>
13270 /* Override any gcc2 internal prototype to avoid an error. */
13271 #ifdef __cplusplus
13272 extern "C"
13273 #endif
13274 /* We use char because int might match the return type of a gcc2
13275 builtin and then its argument prototype would still apply. */
13276 char $ac_func ();
13277 char (*f) ();
13279 #ifdef F77_DUMMY_MAIN
13280 # ifdef __cplusplus
13281 extern "C"
13282 # endif
13283 int F77_DUMMY_MAIN() { return 1; }
13284 #endif
13286 main ()
13288 /* The GNU C library defines this for functions which it implements
13289 to always fail with ENOSYS. Some functions are actually named
13290 something starting with __ and the normal name is an alias. */
13291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13292 choke me
13293 #else
13294 f = $ac_func;
13295 #endif
13298 return 0;
13300 _ACEOF
13301 rm -f conftest.$ac_objext conftest$ac_exeext
13302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13303 (eval $ac_link) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
13307 { ac_try='test -s conftest$ac_exeext'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; }; then
13313 eval "$as_ac_var=yes"
13314 else
13315 echo "$as_me: failed program was:" >&5
13316 cat conftest.$ac_ext >&5
13317 eval "$as_ac_var=no"
13319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13323 if test `eval echo '${'$as_ac_var'}'` = yes; then
13324 cat >>confdefs.h <<_ACEOF
13325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13326 _ACEOF
13329 done
13337 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
13339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13340 echo "$as_me:$LINENO: checking for $ac_func" >&5
13341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13342 if eval "test \"\${$as_ac_var+set}\" = set"; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345 cat >conftest.$ac_ext <<_ACEOF
13346 #line $LINENO "configure"
13347 #include "confdefs.h"
13348 /* System header to define __stub macros and hopefully few prototypes,
13349 which can conflict with char $ac_func (); below. */
13350 #include <assert.h>
13351 /* Override any gcc2 internal prototype to avoid an error. */
13352 #ifdef __cplusplus
13353 extern "C"
13354 #endif
13355 /* We use char because int might match the return type of a gcc2
13356 builtin and then its argument prototype would still apply. */
13357 char $ac_func ();
13358 char (*f) ();
13360 #ifdef F77_DUMMY_MAIN
13361 # ifdef __cplusplus
13362 extern "C"
13363 # endif
13364 int F77_DUMMY_MAIN() { return 1; }
13365 #endif
13367 main ()
13369 /* The GNU C library defines this for functions which it implements
13370 to always fail with ENOSYS. Some functions are actually named
13371 something starting with __ and the normal name is an alias. */
13372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13373 choke me
13374 #else
13375 f = $ac_func;
13376 #endif
13379 return 0;
13381 _ACEOF
13382 rm -f conftest.$ac_objext conftest$ac_exeext
13383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13384 (eval $ac_link) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -s conftest$ac_exeext'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13391 ac_status=$?
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; }; then
13394 eval "$as_ac_var=yes"
13395 else
13396 echo "$as_me: failed program was:" >&5
13397 cat conftest.$ac_ext >&5
13398 eval "$as_ac_var=no"
13400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13404 if test `eval echo '${'$as_ac_var'}'` = yes; then
13405 cat >>confdefs.h <<_ACEOF
13406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13407 _ACEOF
13410 done
13416 for ac_func in open64 _open64 __open64 creat64
13418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13419 echo "$as_me:$LINENO: checking for $ac_func" >&5
13420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13421 if eval "test \"\${$as_ac_var+set}\" = set"; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 else
13424 cat >conftest.$ac_ext <<_ACEOF
13425 #line $LINENO "configure"
13426 #include "confdefs.h"
13427 /* System header to define __stub macros and hopefully few prototypes,
13428 which can conflict with char $ac_func (); below. */
13429 #include <assert.h>
13430 /* Override any gcc2 internal prototype to avoid an error. */
13431 #ifdef __cplusplus
13432 extern "C"
13433 #endif
13434 /* We use char because int might match the return type of a gcc2
13435 builtin and then its argument prototype would still apply. */
13436 char $ac_func ();
13437 char (*f) ();
13439 #ifdef F77_DUMMY_MAIN
13440 # ifdef __cplusplus
13441 extern "C"
13442 # endif
13443 int F77_DUMMY_MAIN() { return 1; }
13444 #endif
13446 main ()
13448 /* The GNU C library defines this for functions which it implements
13449 to always fail with ENOSYS. Some functions are actually named
13450 something starting with __ and the normal name is an alias. */
13451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13452 choke me
13453 #else
13454 f = $ac_func;
13455 #endif
13458 return 0;
13460 _ACEOF
13461 rm -f conftest.$ac_objext conftest$ac_exeext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463 (eval $ac_link) 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -s conftest$ac_exeext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 eval "$as_ac_var=yes"
13474 else
13475 echo "$as_me: failed program was:" >&5
13476 cat conftest.$ac_ext >&5
13477 eval "$as_ac_var=no"
13479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13483 if test `eval echo '${'$as_ac_var'}'` = yes; then
13484 cat >>confdefs.h <<_ACEOF
13485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13486 _ACEOF
13489 done
13493 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
13496 if test x$ac_cv_func_stat64 = xno ; then
13497 echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
13498 echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
13499 cat >conftest.$ac_ext <<_ACEOF
13500 #line $LINENO "configure"
13501 #include "confdefs.h"
13503 #if defined(HAVE_UNISTD_H)
13504 #include <unistd.h>
13505 #endif
13506 #include <sys/stat.h>
13508 #ifdef F77_DUMMY_MAIN
13509 # ifdef __cplusplus
13510 extern "C"
13511 # endif
13512 int F77_DUMMY_MAIN() { return 1; }
13513 #endif
13515 main ()
13517 struct stat64 st64; exit(stat64(".",&st64));
13519 return 0;
13521 _ACEOF
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13524 (eval $ac_link) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -s conftest$ac_exeext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 ac_cv_func_stat64=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 cat conftest.$ac_ext >&5
13539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13540 echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
13541 echo "${ECHO_T}$ac_cv_func_stat64" >&6
13542 if test x$ac_cv_func_stat64 = xyes ; then
13544 cat >>confdefs.h <<\_ACEOF
13545 #define HAVE_STAT64 1
13546 _ACEOF
13551 if test x$ac_cv_func_lstat64 = xno ; then
13552 echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
13553 echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6
13554 cat >conftest.$ac_ext <<_ACEOF
13555 #line $LINENO "configure"
13556 #include "confdefs.h"
13558 #if defined(HAVE_UNISTD_H)
13559 #include <unistd.h>
13560 #endif
13561 #include <sys/stat.h>
13563 #ifdef F77_DUMMY_MAIN
13564 # ifdef __cplusplus
13565 extern "C"
13566 # endif
13567 int F77_DUMMY_MAIN() { return 1; }
13568 #endif
13570 main ()
13572 struct stat64 st64; exit(lstat64(".",&st64));
13574 return 0;
13576 _ACEOF
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13579 (eval $ac_link) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
13583 { ac_try='test -s conftest$ac_exeext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_func_lstat64=yes
13590 else
13591 echo "$as_me: failed program was:" >&5
13592 cat conftest.$ac_ext >&5
13594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13595 echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
13596 echo "${ECHO_T}$ac_cv_func_lstat64" >&6
13597 if test x$ac_cv_func_lstat64 = xyes ; then
13598 cat >>confdefs.h <<\_ACEOF
13599 #define HAVE_LSTAT64 Whether lstat64() is available
13600 _ACEOF
13605 if test x$ac_cv_func_fstat64 = xno ; then
13606 echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
13607 echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
13608 cat >conftest.$ac_ext <<_ACEOF
13609 #line $LINENO "configure"
13610 #include "confdefs.h"
13612 #if defined(HAVE_UNISTD_H)
13613 #include <unistd.h>
13614 #endif
13615 #include <sys/stat.h>
13617 #ifdef F77_DUMMY_MAIN
13618 # ifdef __cplusplus
13619 extern "C"
13620 # endif
13621 int F77_DUMMY_MAIN() { return 1; }
13622 #endif
13624 main ()
13626 struct stat64 st64; exit(fstat64(0,&st64));
13628 return 0;
13630 _ACEOF
13631 rm -f conftest.$ac_objext conftest$ac_exeext
13632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13633 (eval $ac_link) 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try='test -s conftest$ac_exeext'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; }; then
13643 ac_cv_func_fstat64=yes
13644 else
13645 echo "$as_me: failed program was:" >&5
13646 cat conftest.$ac_ext >&5
13648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13649 echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
13650 echo "${ECHO_T}$ac_cv_func_fstat64" >&6
13651 if test x$ac_cv_func_fstat64 = xyes ; then
13653 cat >>confdefs.h <<\_ACEOF
13654 #define HAVE_FSTAT64 1
13655 _ACEOF
13660 #####################################
13661 # we might need the resolv library on some systems
13663 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
13664 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
13665 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668 ac_check_lib_save_LIBS=$LIBS
13669 LIBS="-lresolv $LIBS"
13670 cat >conftest.$ac_ext <<_ACEOF
13671 #line $LINENO "configure"
13672 #include "confdefs.h"
13674 /* Override any gcc2 internal prototype to avoid an error. */
13675 #ifdef __cplusplus
13676 extern "C"
13677 #endif
13678 /* We use char because int might match the return type of a gcc2
13679 builtin and then its argument prototype would still apply. */
13680 char dn_expand ();
13681 #ifdef F77_DUMMY_MAIN
13682 # ifdef __cplusplus
13683 extern "C"
13684 # endif
13685 int F77_DUMMY_MAIN() { return 1; }
13686 #endif
13688 main ()
13690 dn_expand ();
13692 return 0;
13694 _ACEOF
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13697 (eval $ac_link) 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -s conftest$ac_exeext'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_cv_lib_resolv_dn_expand=yes
13708 else
13709 echo "$as_me: failed program was:" >&5
13710 cat conftest.$ac_ext >&5
13711 ac_cv_lib_resolv_dn_expand=no
13713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13714 LIBS=$ac_check_lib_save_LIBS
13716 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
13717 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
13718 if test $ac_cv_lib_resolv_dn_expand = yes; then
13719 cat >>confdefs.h <<_ACEOF
13720 #define HAVE_LIBRESOLV 1
13721 _ACEOF
13723 LIBS="-lresolv $LIBS"
13729 # Check for the functions putprpwnam, set_auth_parameters,
13730 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
13731 # Needed for OSF1 and HPUX.
13734 case "$LIBS" in
13735 *-lsecurity*)
13736 for ac_func in putprpwnam
13738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13739 echo "$as_me:$LINENO: checking for $ac_func" >&5
13740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13741 if eval "test \"\${$as_ac_var+set}\" = set"; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 else
13744 cat >conftest.$ac_ext <<_ACEOF
13745 #line $LINENO "configure"
13746 #include "confdefs.h"
13747 /* System header to define __stub macros and hopefully few prototypes,
13748 which can conflict with char $ac_func (); below. */
13749 #include <assert.h>
13750 /* Override any gcc2 internal prototype to avoid an error. */
13751 #ifdef __cplusplus
13752 extern "C"
13753 #endif
13754 /* We use char because int might match the return type of a gcc2
13755 builtin and then its argument prototype would still apply. */
13756 char $ac_func ();
13757 char (*f) ();
13759 #ifdef F77_DUMMY_MAIN
13760 # ifdef __cplusplus
13761 extern "C"
13762 # endif
13763 int F77_DUMMY_MAIN() { return 1; }
13764 #endif
13766 main ()
13768 /* The GNU C library defines this for functions which it implements
13769 to always fail with ENOSYS. Some functions are actually named
13770 something starting with __ and the normal name is an alias. */
13771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13772 choke me
13773 #else
13774 f = $ac_func;
13775 #endif
13778 return 0;
13780 _ACEOF
13781 rm -f conftest.$ac_objext conftest$ac_exeext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13783 (eval $ac_link) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
13787 { ac_try='test -s conftest$ac_exeext'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
13793 eval "$as_ac_var=yes"
13794 else
13795 echo "$as_me: failed program was:" >&5
13796 cat conftest.$ac_ext >&5
13797 eval "$as_ac_var=no"
13799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13803 if test `eval echo '${'$as_ac_var'}'` = yes; then
13804 cat >>confdefs.h <<_ACEOF
13805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13806 _ACEOF
13809 done
13812 echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
13813 echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
13814 if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817 ac_check_lib_save_LIBS=$LIBS
13818 LIBS="-lsecurity $LIBS"
13819 cat >conftest.$ac_ext <<_ACEOF
13820 #line $LINENO "configure"
13821 #include "confdefs.h"
13823 /* Override any gcc2 internal prototype to avoid an error. */
13824 #ifdef __cplusplus
13825 extern "C"
13826 #endif
13827 /* We use char because int might match the return type of a gcc2
13828 builtin and then its argument prototype would still apply. */
13829 char putprpwnam ();
13830 #ifdef F77_DUMMY_MAIN
13831 # ifdef __cplusplus
13832 extern "C"
13833 # endif
13834 int F77_DUMMY_MAIN() { return 1; }
13835 #endif
13837 main ()
13839 putprpwnam ();
13841 return 0;
13843 _ACEOF
13844 rm -f conftest.$ac_objext conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } &&
13850 { ac_try='test -s conftest$ac_exeext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 ac_cv_lib_security_putprpwnam=yes
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 cat conftest.$ac_ext >&5
13860 ac_cv_lib_security_putprpwnam=no
13862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13863 LIBS=$ac_check_lib_save_LIBS
13865 echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
13866 echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
13867 if test $ac_cv_lib_security_putprpwnam = yes; then
13868 cat >>confdefs.h <<_ACEOF
13869 #define HAVE_LIBSECURITY 1
13870 _ACEOF
13872 LIBS="-lsecurity $LIBS"
13877 for ac_func in putprpwnam
13879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13880 echo "$as_me:$LINENO: checking for $ac_func" >&5
13881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13882 if eval "test \"\${$as_ac_var+set}\" = set"; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 else
13885 cat >conftest.$ac_ext <<_ACEOF
13886 #line $LINENO "configure"
13887 #include "confdefs.h"
13888 /* System header to define __stub macros and hopefully few prototypes,
13889 which can conflict with char $ac_func (); below. */
13890 #include <assert.h>
13891 /* Override any gcc2 internal prototype to avoid an error. */
13892 #ifdef __cplusplus
13893 extern "C"
13894 #endif
13895 /* We use char because int might match the return type of a gcc2
13896 builtin and then its argument prototype would still apply. */
13897 char $ac_func ();
13898 char (*f) ();
13900 #ifdef F77_DUMMY_MAIN
13901 # ifdef __cplusplus
13902 extern "C"
13903 # endif
13904 int F77_DUMMY_MAIN() { return 1; }
13905 #endif
13907 main ()
13909 /* The GNU C library defines this for functions which it implements
13910 to always fail with ENOSYS. Some functions are actually named
13911 something starting with __ and the normal name is an alias. */
13912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13913 choke me
13914 #else
13915 f = $ac_func;
13916 #endif
13919 return 0;
13921 _ACEOF
13922 rm -f conftest.$ac_objext conftest$ac_exeext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13924 (eval $ac_link) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -s conftest$ac_exeext'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 eval "$as_ac_var=yes"
13935 else
13936 echo "$as_me: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13938 eval "$as_ac_var=no"
13940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13944 if test `eval echo '${'$as_ac_var'}'` = yes; then
13945 cat >>confdefs.h <<_ACEOF
13946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13947 _ACEOF
13950 done
13953 esac
13955 case "$LIBS" in
13956 *-lsec*)
13957 for ac_func in putprpwnam
13959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13960 echo "$as_me:$LINENO: checking for $ac_func" >&5
13961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13962 if eval "test \"\${$as_ac_var+set}\" = set"; then
13963 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 else
13965 cat >conftest.$ac_ext <<_ACEOF
13966 #line $LINENO "configure"
13967 #include "confdefs.h"
13968 /* System header to define __stub macros and hopefully few prototypes,
13969 which can conflict with char $ac_func (); below. */
13970 #include <assert.h>
13971 /* Override any gcc2 internal prototype to avoid an error. */
13972 #ifdef __cplusplus
13973 extern "C"
13974 #endif
13975 /* We use char because int might match the return type of a gcc2
13976 builtin and then its argument prototype would still apply. */
13977 char $ac_func ();
13978 char (*f) ();
13980 #ifdef F77_DUMMY_MAIN
13981 # ifdef __cplusplus
13982 extern "C"
13983 # endif
13984 int F77_DUMMY_MAIN() { return 1; }
13985 #endif
13987 main ()
13989 /* The GNU C library defines this for functions which it implements
13990 to always fail with ENOSYS. Some functions are actually named
13991 something starting with __ and the normal name is an alias. */
13992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13993 choke me
13994 #else
13995 f = $ac_func;
13996 #endif
13999 return 0;
14001 _ACEOF
14002 rm -f conftest.$ac_objext conftest$ac_exeext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14004 (eval $ac_link) 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
14008 { ac_try='test -s conftest$ac_exeext'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 eval "$as_ac_var=yes"
14015 else
14016 echo "$as_me: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14018 eval "$as_ac_var=no"
14020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14024 if test `eval echo '${'$as_ac_var'}'` = yes; then
14025 cat >>confdefs.h <<_ACEOF
14026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14027 _ACEOF
14030 done
14033 echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
14034 echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
14035 if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 else
14038 ac_check_lib_save_LIBS=$LIBS
14039 LIBS="-lsec $LIBS"
14040 cat >conftest.$ac_ext <<_ACEOF
14041 #line $LINENO "configure"
14042 #include "confdefs.h"
14044 /* Override any gcc2 internal prototype to avoid an error. */
14045 #ifdef __cplusplus
14046 extern "C"
14047 #endif
14048 /* We use char because int might match the return type of a gcc2
14049 builtin and then its argument prototype would still apply. */
14050 char putprpwnam ();
14051 #ifdef F77_DUMMY_MAIN
14052 # ifdef __cplusplus
14053 extern "C"
14054 # endif
14055 int F77_DUMMY_MAIN() { return 1; }
14056 #endif
14058 main ()
14060 putprpwnam ();
14062 return 0;
14064 _ACEOF
14065 rm -f conftest.$ac_objext conftest$ac_exeext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14067 (eval $ac_link) 2>&5
14068 ac_status=$?
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } &&
14071 { ac_try='test -s conftest$ac_exeext'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14077 ac_cv_lib_sec_putprpwnam=yes
14078 else
14079 echo "$as_me: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14081 ac_cv_lib_sec_putprpwnam=no
14083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14084 LIBS=$ac_check_lib_save_LIBS
14086 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
14087 echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
14088 if test $ac_cv_lib_sec_putprpwnam = yes; then
14089 cat >>confdefs.h <<_ACEOF
14090 #define HAVE_LIBSEC 1
14091 _ACEOF
14093 LIBS="-lsec $LIBS"
14098 for ac_func in putprpwnam
14100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14101 echo "$as_me:$LINENO: checking for $ac_func" >&5
14102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14103 if eval "test \"\${$as_ac_var+set}\" = set"; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 else
14106 cat >conftest.$ac_ext <<_ACEOF
14107 #line $LINENO "configure"
14108 #include "confdefs.h"
14109 /* System header to define __stub macros and hopefully few prototypes,
14110 which can conflict with char $ac_func (); below. */
14111 #include <assert.h>
14112 /* Override any gcc2 internal prototype to avoid an error. */
14113 #ifdef __cplusplus
14114 extern "C"
14115 #endif
14116 /* We use char because int might match the return type of a gcc2
14117 builtin and then its argument prototype would still apply. */
14118 char $ac_func ();
14119 char (*f) ();
14121 #ifdef F77_DUMMY_MAIN
14122 # ifdef __cplusplus
14123 extern "C"
14124 # endif
14125 int F77_DUMMY_MAIN() { return 1; }
14126 #endif
14128 main ()
14130 /* The GNU C library defines this for functions which it implements
14131 to always fail with ENOSYS. Some functions are actually named
14132 something starting with __ and the normal name is an alias. */
14133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14134 choke me
14135 #else
14136 f = $ac_func;
14137 #endif
14140 return 0;
14142 _ACEOF
14143 rm -f conftest.$ac_objext conftest$ac_exeext
14144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14145 (eval $ac_link) 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
14149 { ac_try='test -s conftest$ac_exeext'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14155 eval "$as_ac_var=yes"
14156 else
14157 echo "$as_me: failed program was:" >&5
14158 cat conftest.$ac_ext >&5
14159 eval "$as_ac_var=no"
14161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14165 if test `eval echo '${'$as_ac_var'}'` = yes; then
14166 cat >>confdefs.h <<_ACEOF
14167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14168 _ACEOF
14171 done
14174 esac
14177 case "$LIBS" in
14178 *-lsecurity*)
14179 for ac_func in set_auth_parameters
14181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14182 echo "$as_me:$LINENO: checking for $ac_func" >&5
14183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14184 if eval "test \"\${$as_ac_var+set}\" = set"; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187 cat >conftest.$ac_ext <<_ACEOF
14188 #line $LINENO "configure"
14189 #include "confdefs.h"
14190 /* System header to define __stub macros and hopefully few prototypes,
14191 which can conflict with char $ac_func (); below. */
14192 #include <assert.h>
14193 /* Override any gcc2 internal prototype to avoid an error. */
14194 #ifdef __cplusplus
14195 extern "C"
14196 #endif
14197 /* We use char because int might match the return type of a gcc2
14198 builtin and then its argument prototype would still apply. */
14199 char $ac_func ();
14200 char (*f) ();
14202 #ifdef F77_DUMMY_MAIN
14203 # ifdef __cplusplus
14204 extern "C"
14205 # endif
14206 int F77_DUMMY_MAIN() { return 1; }
14207 #endif
14209 main ()
14211 /* The GNU C library defines this for functions which it implements
14212 to always fail with ENOSYS. Some functions are actually named
14213 something starting with __ and the normal name is an alias. */
14214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14215 choke me
14216 #else
14217 f = $ac_func;
14218 #endif
14221 return 0;
14223 _ACEOF
14224 rm -f conftest.$ac_objext conftest$ac_exeext
14225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14226 (eval $ac_link) 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; }; then
14236 eval "$as_ac_var=yes"
14237 else
14238 echo "$as_me: failed program was:" >&5
14239 cat conftest.$ac_ext >&5
14240 eval "$as_ac_var=no"
14242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14246 if test `eval echo '${'$as_ac_var'}'` = yes; then
14247 cat >>confdefs.h <<_ACEOF
14248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14249 _ACEOF
14252 done
14255 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
14256 echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
14257 if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260 ac_check_lib_save_LIBS=$LIBS
14261 LIBS="-lsecurity $LIBS"
14262 cat >conftest.$ac_ext <<_ACEOF
14263 #line $LINENO "configure"
14264 #include "confdefs.h"
14266 /* Override any gcc2 internal prototype to avoid an error. */
14267 #ifdef __cplusplus
14268 extern "C"
14269 #endif
14270 /* We use char because int might match the return type of a gcc2
14271 builtin and then its argument prototype would still apply. */
14272 char set_auth_parameters ();
14273 #ifdef F77_DUMMY_MAIN
14274 # ifdef __cplusplus
14275 extern "C"
14276 # endif
14277 int F77_DUMMY_MAIN() { return 1; }
14278 #endif
14280 main ()
14282 set_auth_parameters ();
14284 return 0;
14286 _ACEOF
14287 rm -f conftest.$ac_objext conftest$ac_exeext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14289 (eval $ac_link) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -s conftest$ac_exeext'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 ac_cv_lib_security_set_auth_parameters=yes
14300 else
14301 echo "$as_me: failed program was:" >&5
14302 cat conftest.$ac_ext >&5
14303 ac_cv_lib_security_set_auth_parameters=no
14305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14306 LIBS=$ac_check_lib_save_LIBS
14308 echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
14309 echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
14310 if test $ac_cv_lib_security_set_auth_parameters = yes; then
14311 cat >>confdefs.h <<_ACEOF
14312 #define HAVE_LIBSECURITY 1
14313 _ACEOF
14315 LIBS="-lsecurity $LIBS"
14320 for ac_func in set_auth_parameters
14322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14323 echo "$as_me:$LINENO: checking for $ac_func" >&5
14324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14325 if eval "test \"\${$as_ac_var+set}\" = set"; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14328 cat >conftest.$ac_ext <<_ACEOF
14329 #line $LINENO "configure"
14330 #include "confdefs.h"
14331 /* System header to define __stub macros and hopefully few prototypes,
14332 which can conflict with char $ac_func (); below. */
14333 #include <assert.h>
14334 /* Override any gcc2 internal prototype to avoid an error. */
14335 #ifdef __cplusplus
14336 extern "C"
14337 #endif
14338 /* We use char because int might match the return type of a gcc2
14339 builtin and then its argument prototype would still apply. */
14340 char $ac_func ();
14341 char (*f) ();
14343 #ifdef F77_DUMMY_MAIN
14344 # ifdef __cplusplus
14345 extern "C"
14346 # endif
14347 int F77_DUMMY_MAIN() { return 1; }
14348 #endif
14350 main ()
14352 /* The GNU C library defines this for functions which it implements
14353 to always fail with ENOSYS. Some functions are actually named
14354 something starting with __ and the normal name is an alias. */
14355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14356 choke me
14357 #else
14358 f = $ac_func;
14359 #endif
14362 return 0;
14364 _ACEOF
14365 rm -f conftest.$ac_objext conftest$ac_exeext
14366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14367 (eval $ac_link) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
14371 { ac_try='test -s conftest$ac_exeext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 eval "$as_ac_var=yes"
14378 else
14379 echo "$as_me: failed program was:" >&5
14380 cat conftest.$ac_ext >&5
14381 eval "$as_ac_var=no"
14383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14387 if test `eval echo '${'$as_ac_var'}'` = yes; then
14388 cat >>confdefs.h <<_ACEOF
14389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14390 _ACEOF
14393 done
14396 esac
14398 case "$LIBS" in
14399 *-lsec*)
14400 for ac_func in set_auth_parameters
14402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14403 echo "$as_me:$LINENO: checking for $ac_func" >&5
14404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14405 if eval "test \"\${$as_ac_var+set}\" = set"; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 else
14408 cat >conftest.$ac_ext <<_ACEOF
14409 #line $LINENO "configure"
14410 #include "confdefs.h"
14411 /* System header to define __stub macros and hopefully few prototypes,
14412 which can conflict with char $ac_func (); below. */
14413 #include <assert.h>
14414 /* Override any gcc2 internal prototype to avoid an error. */
14415 #ifdef __cplusplus
14416 extern "C"
14417 #endif
14418 /* We use char because int might match the return type of a gcc2
14419 builtin and then its argument prototype would still apply. */
14420 char $ac_func ();
14421 char (*f) ();
14423 #ifdef F77_DUMMY_MAIN
14424 # ifdef __cplusplus
14425 extern "C"
14426 # endif
14427 int F77_DUMMY_MAIN() { return 1; }
14428 #endif
14430 main ()
14432 /* The GNU C library defines this for functions which it implements
14433 to always fail with ENOSYS. Some functions are actually named
14434 something starting with __ and the normal name is an alias. */
14435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14436 choke me
14437 #else
14438 f = $ac_func;
14439 #endif
14442 return 0;
14444 _ACEOF
14445 rm -f conftest.$ac_objext conftest$ac_exeext
14446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14447 (eval $ac_link) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -s conftest$ac_exeext'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14454 ac_status=$?
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }; then
14457 eval "$as_ac_var=yes"
14458 else
14459 echo "$as_me: failed program was:" >&5
14460 cat conftest.$ac_ext >&5
14461 eval "$as_ac_var=no"
14463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14467 if test `eval echo '${'$as_ac_var'}'` = yes; then
14468 cat >>confdefs.h <<_ACEOF
14469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14470 _ACEOF
14473 done
14476 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
14477 echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
14478 if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481 ac_check_lib_save_LIBS=$LIBS
14482 LIBS="-lsec $LIBS"
14483 cat >conftest.$ac_ext <<_ACEOF
14484 #line $LINENO "configure"
14485 #include "confdefs.h"
14487 /* Override any gcc2 internal prototype to avoid an error. */
14488 #ifdef __cplusplus
14489 extern "C"
14490 #endif
14491 /* We use char because int might match the return type of a gcc2
14492 builtin and then its argument prototype would still apply. */
14493 char set_auth_parameters ();
14494 #ifdef F77_DUMMY_MAIN
14495 # ifdef __cplusplus
14496 extern "C"
14497 # endif
14498 int F77_DUMMY_MAIN() { return 1; }
14499 #endif
14501 main ()
14503 set_auth_parameters ();
14505 return 0;
14507 _ACEOF
14508 rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14510 (eval $ac_link) 2>&5
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -s conftest$ac_exeext'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14520 ac_cv_lib_sec_set_auth_parameters=yes
14521 else
14522 echo "$as_me: failed program was:" >&5
14523 cat conftest.$ac_ext >&5
14524 ac_cv_lib_sec_set_auth_parameters=no
14526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14527 LIBS=$ac_check_lib_save_LIBS
14529 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
14530 echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
14531 if test $ac_cv_lib_sec_set_auth_parameters = yes; then
14532 cat >>confdefs.h <<_ACEOF
14533 #define HAVE_LIBSEC 1
14534 _ACEOF
14536 LIBS="-lsec $LIBS"
14541 for ac_func in set_auth_parameters
14543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14544 echo "$as_me:$LINENO: checking for $ac_func" >&5
14545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14546 if eval "test \"\${$as_ac_var+set}\" = set"; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 else
14549 cat >conftest.$ac_ext <<_ACEOF
14550 #line $LINENO "configure"
14551 #include "confdefs.h"
14552 /* System header to define __stub macros and hopefully few prototypes,
14553 which can conflict with char $ac_func (); below. */
14554 #include <assert.h>
14555 /* Override any gcc2 internal prototype to avoid an error. */
14556 #ifdef __cplusplus
14557 extern "C"
14558 #endif
14559 /* We use char because int might match the return type of a gcc2
14560 builtin and then its argument prototype would still apply. */
14561 char $ac_func ();
14562 char (*f) ();
14564 #ifdef F77_DUMMY_MAIN
14565 # ifdef __cplusplus
14566 extern "C"
14567 # endif
14568 int F77_DUMMY_MAIN() { return 1; }
14569 #endif
14571 main ()
14573 /* The GNU C library defines this for functions which it implements
14574 to always fail with ENOSYS. Some functions are actually named
14575 something starting with __ and the normal name is an alias. */
14576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14577 choke me
14578 #else
14579 f = $ac_func;
14580 #endif
14583 return 0;
14585 _ACEOF
14586 rm -f conftest.$ac_objext conftest$ac_exeext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14588 (eval $ac_link) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -s conftest$ac_exeext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 eval "$as_ac_var=yes"
14599 else
14600 echo "$as_me: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14602 eval "$as_ac_var=no"
14604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14608 if test `eval echo '${'$as_ac_var'}'` = yes; then
14609 cat >>confdefs.h <<_ACEOF
14610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14611 _ACEOF
14614 done
14617 esac
14620 # UnixWare 7.x has its getspnam in -lgen
14621 case "$LIBS" in
14622 *-lgen*)
14623 for ac_func in getspnam
14625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14626 echo "$as_me:$LINENO: checking for $ac_func" >&5
14627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14628 if eval "test \"\${$as_ac_var+set}\" = set"; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 else
14631 cat >conftest.$ac_ext <<_ACEOF
14632 #line $LINENO "configure"
14633 #include "confdefs.h"
14634 /* System header to define __stub macros and hopefully few prototypes,
14635 which can conflict with char $ac_func (); below. */
14636 #include <assert.h>
14637 /* Override any gcc2 internal prototype to avoid an error. */
14638 #ifdef __cplusplus
14639 extern "C"
14640 #endif
14641 /* We use char because int might match the return type of a gcc2
14642 builtin and then its argument prototype would still apply. */
14643 char $ac_func ();
14644 char (*f) ();
14646 #ifdef F77_DUMMY_MAIN
14647 # ifdef __cplusplus
14648 extern "C"
14649 # endif
14650 int F77_DUMMY_MAIN() { return 1; }
14651 #endif
14653 main ()
14655 /* The GNU C library defines this for functions which it implements
14656 to always fail with ENOSYS. Some functions are actually named
14657 something starting with __ and the normal name is an alias. */
14658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14659 choke me
14660 #else
14661 f = $ac_func;
14662 #endif
14665 return 0;
14667 _ACEOF
14668 rm -f conftest.$ac_objext conftest$ac_exeext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14670 (eval $ac_link) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -s conftest$ac_exeext'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 eval "$as_ac_var=yes"
14681 else
14682 echo "$as_me: failed program was:" >&5
14683 cat conftest.$ac_ext >&5
14684 eval "$as_ac_var=no"
14686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14690 if test `eval echo '${'$as_ac_var'}'` = yes; then
14691 cat >>confdefs.h <<_ACEOF
14692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14693 _ACEOF
14696 done
14699 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14700 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
14701 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 else
14704 ac_check_lib_save_LIBS=$LIBS
14705 LIBS="-lgen $LIBS"
14706 cat >conftest.$ac_ext <<_ACEOF
14707 #line $LINENO "configure"
14708 #include "confdefs.h"
14710 /* Override any gcc2 internal prototype to avoid an error. */
14711 #ifdef __cplusplus
14712 extern "C"
14713 #endif
14714 /* We use char because int might match the return type of a gcc2
14715 builtin and then its argument prototype would still apply. */
14716 char getspnam ();
14717 #ifdef F77_DUMMY_MAIN
14718 # ifdef __cplusplus
14719 extern "C"
14720 # endif
14721 int F77_DUMMY_MAIN() { return 1; }
14722 #endif
14724 main ()
14726 getspnam ();
14728 return 0;
14730 _ACEOF
14731 rm -f conftest.$ac_objext conftest$ac_exeext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14733 (eval $ac_link) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
14737 { ac_try='test -s conftest$ac_exeext'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 ac_cv_lib_gen_getspnam=yes
14744 else
14745 echo "$as_me: failed program was:" >&5
14746 cat conftest.$ac_ext >&5
14747 ac_cv_lib_gen_getspnam=no
14749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14750 LIBS=$ac_check_lib_save_LIBS
14752 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14753 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
14754 if test $ac_cv_lib_gen_getspnam = yes; then
14755 cat >>confdefs.h <<_ACEOF
14756 #define HAVE_LIBGEN 1
14757 _ACEOF
14759 LIBS="-lgen $LIBS"
14764 for ac_func in getspnam
14766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14767 echo "$as_me:$LINENO: checking for $ac_func" >&5
14768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14769 if eval "test \"\${$as_ac_var+set}\" = set"; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 else
14772 cat >conftest.$ac_ext <<_ACEOF
14773 #line $LINENO "configure"
14774 #include "confdefs.h"
14775 /* System header to define __stub macros and hopefully few prototypes,
14776 which can conflict with char $ac_func (); below. */
14777 #include <assert.h>
14778 /* Override any gcc2 internal prototype to avoid an error. */
14779 #ifdef __cplusplus
14780 extern "C"
14781 #endif
14782 /* We use char because int might match the return type of a gcc2
14783 builtin and then its argument prototype would still apply. */
14784 char $ac_func ();
14785 char (*f) ();
14787 #ifdef F77_DUMMY_MAIN
14788 # ifdef __cplusplus
14789 extern "C"
14790 # endif
14791 int F77_DUMMY_MAIN() { return 1; }
14792 #endif
14794 main ()
14796 /* The GNU C library defines this for functions which it implements
14797 to always fail with ENOSYS. Some functions are actually named
14798 something starting with __ and the normal name is an alias. */
14799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14800 choke me
14801 #else
14802 f = $ac_func;
14803 #endif
14806 return 0;
14808 _ACEOF
14809 rm -f conftest.$ac_objext conftest$ac_exeext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14811 (eval $ac_link) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
14815 { ac_try='test -s conftest$ac_exeext'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 eval "$as_ac_var=yes"
14822 else
14823 echo "$as_me: failed program was:" >&5
14824 cat conftest.$ac_ext >&5
14825 eval "$as_ac_var=no"
14827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14831 if test `eval echo '${'$as_ac_var'}'` = yes; then
14832 cat >>confdefs.h <<_ACEOF
14833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14834 _ACEOF
14837 done
14840 esac
14843 case "$LIBS" in
14844 *-lsecurity*)
14845 for ac_func in getspnam
14847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14848 echo "$as_me:$LINENO: checking for $ac_func" >&5
14849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14850 if eval "test \"\${$as_ac_var+set}\" = set"; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853 cat >conftest.$ac_ext <<_ACEOF
14854 #line $LINENO "configure"
14855 #include "confdefs.h"
14856 /* System header to define __stub macros and hopefully few prototypes,
14857 which can conflict with char $ac_func (); below. */
14858 #include <assert.h>
14859 /* Override any gcc2 internal prototype to avoid an error. */
14860 #ifdef __cplusplus
14861 extern "C"
14862 #endif
14863 /* We use char because int might match the return type of a gcc2
14864 builtin and then its argument prototype would still apply. */
14865 char $ac_func ();
14866 char (*f) ();
14868 #ifdef F77_DUMMY_MAIN
14869 # ifdef __cplusplus
14870 extern "C"
14871 # endif
14872 int F77_DUMMY_MAIN() { return 1; }
14873 #endif
14875 main ()
14877 /* The GNU C library defines this for functions which it implements
14878 to always fail with ENOSYS. Some functions are actually named
14879 something starting with __ and the normal name is an alias. */
14880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14881 choke me
14882 #else
14883 f = $ac_func;
14884 #endif
14887 return 0;
14889 _ACEOF
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14892 (eval $ac_link) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -s conftest$ac_exeext'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14902 eval "$as_ac_var=yes"
14903 else
14904 echo "$as_me: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14906 eval "$as_ac_var=no"
14908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14912 if test `eval echo '${'$as_ac_var'}'` = yes; then
14913 cat >>confdefs.h <<_ACEOF
14914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14915 _ACEOF
14918 done
14921 echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
14922 echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
14923 if test "${ac_cv_lib_security_getspnam+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926 ac_check_lib_save_LIBS=$LIBS
14927 LIBS="-lsecurity $LIBS"
14928 cat >conftest.$ac_ext <<_ACEOF
14929 #line $LINENO "configure"
14930 #include "confdefs.h"
14932 /* Override any gcc2 internal prototype to avoid an error. */
14933 #ifdef __cplusplus
14934 extern "C"
14935 #endif
14936 /* We use char because int might match the return type of a gcc2
14937 builtin and then its argument prototype would still apply. */
14938 char getspnam ();
14939 #ifdef F77_DUMMY_MAIN
14940 # ifdef __cplusplus
14941 extern "C"
14942 # endif
14943 int F77_DUMMY_MAIN() { return 1; }
14944 #endif
14946 main ()
14948 getspnam ();
14950 return 0;
14952 _ACEOF
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14955 (eval $ac_link) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -s conftest$ac_exeext'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_cv_lib_security_getspnam=yes
14966 else
14967 echo "$as_me: failed program was:" >&5
14968 cat conftest.$ac_ext >&5
14969 ac_cv_lib_security_getspnam=no
14971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14972 LIBS=$ac_check_lib_save_LIBS
14974 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
14975 echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
14976 if test $ac_cv_lib_security_getspnam = yes; then
14977 cat >>confdefs.h <<_ACEOF
14978 #define HAVE_LIBSECURITY 1
14979 _ACEOF
14981 LIBS="-lsecurity $LIBS"
14986 for ac_func in getspnam
14988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14989 echo "$as_me:$LINENO: checking for $ac_func" >&5
14990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14991 if eval "test \"\${$as_ac_var+set}\" = set"; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994 cat >conftest.$ac_ext <<_ACEOF
14995 #line $LINENO "configure"
14996 #include "confdefs.h"
14997 /* System header to define __stub macros and hopefully few prototypes,
14998 which can conflict with char $ac_func (); below. */
14999 #include <assert.h>
15000 /* Override any gcc2 internal prototype to avoid an error. */
15001 #ifdef __cplusplus
15002 extern "C"
15003 #endif
15004 /* We use char because int might match the return type of a gcc2
15005 builtin and then its argument prototype would still apply. */
15006 char $ac_func ();
15007 char (*f) ();
15009 #ifdef F77_DUMMY_MAIN
15010 # ifdef __cplusplus
15011 extern "C"
15012 # endif
15013 int F77_DUMMY_MAIN() { return 1; }
15014 #endif
15016 main ()
15018 /* The GNU C library defines this for functions which it implements
15019 to always fail with ENOSYS. Some functions are actually named
15020 something starting with __ and the normal name is an alias. */
15021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15022 choke me
15023 #else
15024 f = $ac_func;
15025 #endif
15028 return 0;
15030 _ACEOF
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033 (eval $ac_link) 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try='test -s conftest$ac_exeext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 eval "$as_ac_var=yes"
15044 else
15045 echo "$as_me: failed program was:" >&5
15046 cat conftest.$ac_ext >&5
15047 eval "$as_ac_var=no"
15049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15053 if test `eval echo '${'$as_ac_var'}'` = yes; then
15054 cat >>confdefs.h <<_ACEOF
15055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15056 _ACEOF
15059 done
15062 esac
15064 case "$LIBS" in
15065 *-lsec*)
15066 for ac_func in getspnam
15068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15069 echo "$as_me:$LINENO: checking for $ac_func" >&5
15070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15071 if eval "test \"\${$as_ac_var+set}\" = set"; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074 cat >conftest.$ac_ext <<_ACEOF
15075 #line $LINENO "configure"
15076 #include "confdefs.h"
15077 /* System header to define __stub macros and hopefully few prototypes,
15078 which can conflict with char $ac_func (); below. */
15079 #include <assert.h>
15080 /* Override any gcc2 internal prototype to avoid an error. */
15081 #ifdef __cplusplus
15082 extern "C"
15083 #endif
15084 /* We use char because int might match the return type of a gcc2
15085 builtin and then its argument prototype would still apply. */
15086 char $ac_func ();
15087 char (*f) ();
15089 #ifdef F77_DUMMY_MAIN
15090 # ifdef __cplusplus
15091 extern "C"
15092 # endif
15093 int F77_DUMMY_MAIN() { return 1; }
15094 #endif
15096 main ()
15098 /* The GNU C library defines this for functions which it implements
15099 to always fail with ENOSYS. Some functions are actually named
15100 something starting with __ and the normal name is an alias. */
15101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15102 choke me
15103 #else
15104 f = $ac_func;
15105 #endif
15108 return 0;
15110 _ACEOF
15111 rm -f conftest.$ac_objext conftest$ac_exeext
15112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15113 (eval $ac_link) 2>&5
15114 ac_status=$?
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -s conftest$ac_exeext'
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; }; then
15123 eval "$as_ac_var=yes"
15124 else
15125 echo "$as_me: failed program was:" >&5
15126 cat conftest.$ac_ext >&5
15127 eval "$as_ac_var=no"
15129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15133 if test `eval echo '${'$as_ac_var'}'` = yes; then
15134 cat >>confdefs.h <<_ACEOF
15135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15136 _ACEOF
15139 done
15142 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
15143 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
15144 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147 ac_check_lib_save_LIBS=$LIBS
15148 LIBS="-lsec $LIBS"
15149 cat >conftest.$ac_ext <<_ACEOF
15150 #line $LINENO "configure"
15151 #include "confdefs.h"
15153 /* Override any gcc2 internal prototype to avoid an error. */
15154 #ifdef __cplusplus
15155 extern "C"
15156 #endif
15157 /* We use char because int might match the return type of a gcc2
15158 builtin and then its argument prototype would still apply. */
15159 char getspnam ();
15160 #ifdef F77_DUMMY_MAIN
15161 # ifdef __cplusplus
15162 extern "C"
15163 # endif
15164 int F77_DUMMY_MAIN() { return 1; }
15165 #endif
15167 main ()
15169 getspnam ();
15171 return 0;
15173 _ACEOF
15174 rm -f conftest.$ac_objext conftest$ac_exeext
15175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15176 (eval $ac_link) 2>&5
15177 ac_status=$?
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
15180 { ac_try='test -s conftest$ac_exeext'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15186 ac_cv_lib_sec_getspnam=yes
15187 else
15188 echo "$as_me: failed program was:" >&5
15189 cat conftest.$ac_ext >&5
15190 ac_cv_lib_sec_getspnam=no
15192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15193 LIBS=$ac_check_lib_save_LIBS
15195 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
15196 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
15197 if test $ac_cv_lib_sec_getspnam = yes; then
15198 cat >>confdefs.h <<_ACEOF
15199 #define HAVE_LIBSEC 1
15200 _ACEOF
15202 LIBS="-lsec $LIBS"
15207 for ac_func in getspnam
15209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15210 echo "$as_me:$LINENO: checking for $ac_func" >&5
15211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15212 if eval "test \"\${$as_ac_var+set}\" = set"; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 else
15215 cat >conftest.$ac_ext <<_ACEOF
15216 #line $LINENO "configure"
15217 #include "confdefs.h"
15218 /* System header to define __stub macros and hopefully few prototypes,
15219 which can conflict with char $ac_func (); below. */
15220 #include <assert.h>
15221 /* Override any gcc2 internal prototype to avoid an error. */
15222 #ifdef __cplusplus
15223 extern "C"
15224 #endif
15225 /* We use char because int might match the return type of a gcc2
15226 builtin and then its argument prototype would still apply. */
15227 char $ac_func ();
15228 char (*f) ();
15230 #ifdef F77_DUMMY_MAIN
15231 # ifdef __cplusplus
15232 extern "C"
15233 # endif
15234 int F77_DUMMY_MAIN() { return 1; }
15235 #endif
15237 main ()
15239 /* The GNU C library defines this for functions which it implements
15240 to always fail with ENOSYS. Some functions are actually named
15241 something starting with __ and the normal name is an alias. */
15242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15243 choke me
15244 #else
15245 f = $ac_func;
15246 #endif
15249 return 0;
15251 _ACEOF
15252 rm -f conftest.$ac_objext conftest$ac_exeext
15253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15254 (eval $ac_link) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } &&
15258 { ac_try='test -s conftest$ac_exeext'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 eval "$as_ac_var=yes"
15265 else
15266 echo "$as_me: failed program was:" >&5
15267 cat conftest.$ac_ext >&5
15268 eval "$as_ac_var=no"
15270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15274 if test `eval echo '${'$as_ac_var'}'` = yes; then
15275 cat >>confdefs.h <<_ACEOF
15276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15277 _ACEOF
15280 done
15283 esac
15286 case "$LIBS" in
15287 *-lsecurity*)
15288 for ac_func in bigcrypt
15290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15291 echo "$as_me:$LINENO: checking for $ac_func" >&5
15292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15293 if eval "test \"\${$as_ac_var+set}\" = set"; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 else
15296 cat >conftest.$ac_ext <<_ACEOF
15297 #line $LINENO "configure"
15298 #include "confdefs.h"
15299 /* System header to define __stub macros and hopefully few prototypes,
15300 which can conflict with char $ac_func (); below. */
15301 #include <assert.h>
15302 /* Override any gcc2 internal prototype to avoid an error. */
15303 #ifdef __cplusplus
15304 extern "C"
15305 #endif
15306 /* We use char because int might match the return type of a gcc2
15307 builtin and then its argument prototype would still apply. */
15308 char $ac_func ();
15309 char (*f) ();
15311 #ifdef F77_DUMMY_MAIN
15312 # ifdef __cplusplus
15313 extern "C"
15314 # endif
15315 int F77_DUMMY_MAIN() { return 1; }
15316 #endif
15318 main ()
15320 /* The GNU C library defines this for functions which it implements
15321 to always fail with ENOSYS. Some functions are actually named
15322 something starting with __ and the normal name is an alias. */
15323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15324 choke me
15325 #else
15326 f = $ac_func;
15327 #endif
15330 return 0;
15332 _ACEOF
15333 rm -f conftest.$ac_objext conftest$ac_exeext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15335 (eval $ac_link) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -s conftest$ac_exeext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 eval "$as_ac_var=yes"
15346 else
15347 echo "$as_me: failed program was:" >&5
15348 cat conftest.$ac_ext >&5
15349 eval "$as_ac_var=no"
15351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15355 if test `eval echo '${'$as_ac_var'}'` = yes; then
15356 cat >>confdefs.h <<_ACEOF
15357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15358 _ACEOF
15361 done
15364 echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
15365 echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
15366 if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
15369 ac_check_lib_save_LIBS=$LIBS
15370 LIBS="-lsecurity $LIBS"
15371 cat >conftest.$ac_ext <<_ACEOF
15372 #line $LINENO "configure"
15373 #include "confdefs.h"
15375 /* Override any gcc2 internal prototype to avoid an error. */
15376 #ifdef __cplusplus
15377 extern "C"
15378 #endif
15379 /* We use char because int might match the return type of a gcc2
15380 builtin and then its argument prototype would still apply. */
15381 char bigcrypt ();
15382 #ifdef F77_DUMMY_MAIN
15383 # ifdef __cplusplus
15384 extern "C"
15385 # endif
15386 int F77_DUMMY_MAIN() { return 1; }
15387 #endif
15389 main ()
15391 bigcrypt ();
15393 return 0;
15395 _ACEOF
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15398 (eval $ac_link) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
15402 { ac_try='test -s conftest$ac_exeext'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_cv_lib_security_bigcrypt=yes
15409 else
15410 echo "$as_me: failed program was:" >&5
15411 cat conftest.$ac_ext >&5
15412 ac_cv_lib_security_bigcrypt=no
15414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15415 LIBS=$ac_check_lib_save_LIBS
15417 echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
15418 echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
15419 if test $ac_cv_lib_security_bigcrypt = yes; then
15420 cat >>confdefs.h <<_ACEOF
15421 #define HAVE_LIBSECURITY 1
15422 _ACEOF
15424 LIBS="-lsecurity $LIBS"
15429 for ac_func in bigcrypt
15431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15432 echo "$as_me:$LINENO: checking for $ac_func" >&5
15433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15434 if eval "test \"\${$as_ac_var+set}\" = set"; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 else
15437 cat >conftest.$ac_ext <<_ACEOF
15438 #line $LINENO "configure"
15439 #include "confdefs.h"
15440 /* System header to define __stub macros and hopefully few prototypes,
15441 which can conflict with char $ac_func (); below. */
15442 #include <assert.h>
15443 /* Override any gcc2 internal prototype to avoid an error. */
15444 #ifdef __cplusplus
15445 extern "C"
15446 #endif
15447 /* We use char because int might match the return type of a gcc2
15448 builtin and then its argument prototype would still apply. */
15449 char $ac_func ();
15450 char (*f) ();
15452 #ifdef F77_DUMMY_MAIN
15453 # ifdef __cplusplus
15454 extern "C"
15455 # endif
15456 int F77_DUMMY_MAIN() { return 1; }
15457 #endif
15459 main ()
15461 /* The GNU C library defines this for functions which it implements
15462 to always fail with ENOSYS. Some functions are actually named
15463 something starting with __ and the normal name is an alias. */
15464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15465 choke me
15466 #else
15467 f = $ac_func;
15468 #endif
15471 return 0;
15473 _ACEOF
15474 rm -f conftest.$ac_objext conftest$ac_exeext
15475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15476 (eval $ac_link) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -s conftest$ac_exeext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 eval "$as_ac_var=yes"
15487 else
15488 echo "$as_me: failed program was:" >&5
15489 cat conftest.$ac_ext >&5
15490 eval "$as_ac_var=no"
15492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15496 if test `eval echo '${'$as_ac_var'}'` = yes; then
15497 cat >>confdefs.h <<_ACEOF
15498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15499 _ACEOF
15502 done
15505 esac
15507 case "$LIBS" in
15508 *-lsec*)
15509 for ac_func in bigcrypt
15511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15512 echo "$as_me:$LINENO: checking for $ac_func" >&5
15513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15514 if eval "test \"\${$as_ac_var+set}\" = set"; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517 cat >conftest.$ac_ext <<_ACEOF
15518 #line $LINENO "configure"
15519 #include "confdefs.h"
15520 /* System header to define __stub macros and hopefully few prototypes,
15521 which can conflict with char $ac_func (); below. */
15522 #include <assert.h>
15523 /* Override any gcc2 internal prototype to avoid an error. */
15524 #ifdef __cplusplus
15525 extern "C"
15526 #endif
15527 /* We use char because int might match the return type of a gcc2
15528 builtin and then its argument prototype would still apply. */
15529 char $ac_func ();
15530 char (*f) ();
15532 #ifdef F77_DUMMY_MAIN
15533 # ifdef __cplusplus
15534 extern "C"
15535 # endif
15536 int F77_DUMMY_MAIN() { return 1; }
15537 #endif
15539 main ()
15541 /* The GNU C library defines this for functions which it implements
15542 to always fail with ENOSYS. Some functions are actually named
15543 something starting with __ and the normal name is an alias. */
15544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15545 choke me
15546 #else
15547 f = $ac_func;
15548 #endif
15551 return 0;
15553 _ACEOF
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15556 (eval $ac_link) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
15560 { ac_try='test -s conftest$ac_exeext'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15566 eval "$as_ac_var=yes"
15567 else
15568 echo "$as_me: failed program was:" >&5
15569 cat conftest.$ac_ext >&5
15570 eval "$as_ac_var=no"
15572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15576 if test `eval echo '${'$as_ac_var'}'` = yes; then
15577 cat >>confdefs.h <<_ACEOF
15578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15579 _ACEOF
15582 done
15585 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
15586 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
15587 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 else
15590 ac_check_lib_save_LIBS=$LIBS
15591 LIBS="-lsec $LIBS"
15592 cat >conftest.$ac_ext <<_ACEOF
15593 #line $LINENO "configure"
15594 #include "confdefs.h"
15596 /* Override any gcc2 internal prototype to avoid an error. */
15597 #ifdef __cplusplus
15598 extern "C"
15599 #endif
15600 /* We use char because int might match the return type of a gcc2
15601 builtin and then its argument prototype would still apply. */
15602 char bigcrypt ();
15603 #ifdef F77_DUMMY_MAIN
15604 # ifdef __cplusplus
15605 extern "C"
15606 # endif
15607 int F77_DUMMY_MAIN() { return 1; }
15608 #endif
15610 main ()
15612 bigcrypt ();
15614 return 0;
15616 _ACEOF
15617 rm -f conftest.$ac_objext conftest$ac_exeext
15618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15619 (eval $ac_link) 2>&5
15620 ac_status=$?
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try='test -s conftest$ac_exeext'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_cv_lib_sec_bigcrypt=yes
15630 else
15631 echo "$as_me: failed program was:" >&5
15632 cat conftest.$ac_ext >&5
15633 ac_cv_lib_sec_bigcrypt=no
15635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15636 LIBS=$ac_check_lib_save_LIBS
15638 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
15639 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
15640 if test $ac_cv_lib_sec_bigcrypt = yes; then
15641 cat >>confdefs.h <<_ACEOF
15642 #define HAVE_LIBSEC 1
15643 _ACEOF
15645 LIBS="-lsec $LIBS"
15650 for ac_func in bigcrypt
15652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15653 echo "$as_me:$LINENO: checking for $ac_func" >&5
15654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15655 if eval "test \"\${$as_ac_var+set}\" = set"; then
15656 echo $ECHO_N "(cached) $ECHO_C" >&6
15657 else
15658 cat >conftest.$ac_ext <<_ACEOF
15659 #line $LINENO "configure"
15660 #include "confdefs.h"
15661 /* System header to define __stub macros and hopefully few prototypes,
15662 which can conflict with char $ac_func (); below. */
15663 #include <assert.h>
15664 /* Override any gcc2 internal prototype to avoid an error. */
15665 #ifdef __cplusplus
15666 extern "C"
15667 #endif
15668 /* We use char because int might match the return type of a gcc2
15669 builtin and then its argument prototype would still apply. */
15670 char $ac_func ();
15671 char (*f) ();
15673 #ifdef F77_DUMMY_MAIN
15674 # ifdef __cplusplus
15675 extern "C"
15676 # endif
15677 int F77_DUMMY_MAIN() { return 1; }
15678 #endif
15680 main ()
15682 /* The GNU C library defines this for functions which it implements
15683 to always fail with ENOSYS. Some functions are actually named
15684 something starting with __ and the normal name is an alias. */
15685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15686 choke me
15687 #else
15688 f = $ac_func;
15689 #endif
15692 return 0;
15694 _ACEOF
15695 rm -f conftest.$ac_objext conftest$ac_exeext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15697 (eval $ac_link) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -s conftest$ac_exeext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 eval "$as_ac_var=yes"
15708 else
15709 echo "$as_me: failed program was:" >&5
15710 cat conftest.$ac_ext >&5
15711 eval "$as_ac_var=no"
15713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15716 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15717 if test `eval echo '${'$as_ac_var'}'` = yes; then
15718 cat >>confdefs.h <<_ACEOF
15719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15720 _ACEOF
15723 done
15726 esac
15729 case "$LIBS" in
15730 *-lsecurity*)
15731 for ac_func in getprpwnam
15733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15734 echo "$as_me:$LINENO: checking for $ac_func" >&5
15735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15736 if eval "test \"\${$as_ac_var+set}\" = set"; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 else
15739 cat >conftest.$ac_ext <<_ACEOF
15740 #line $LINENO "configure"
15741 #include "confdefs.h"
15742 /* System header to define __stub macros and hopefully few prototypes,
15743 which can conflict with char $ac_func (); below. */
15744 #include <assert.h>
15745 /* Override any gcc2 internal prototype to avoid an error. */
15746 #ifdef __cplusplus
15747 extern "C"
15748 #endif
15749 /* We use char because int might match the return type of a gcc2
15750 builtin and then its argument prototype would still apply. */
15751 char $ac_func ();
15752 char (*f) ();
15754 #ifdef F77_DUMMY_MAIN
15755 # ifdef __cplusplus
15756 extern "C"
15757 # endif
15758 int F77_DUMMY_MAIN() { return 1; }
15759 #endif
15761 main ()
15763 /* The GNU C library defines this for functions which it implements
15764 to always fail with ENOSYS. Some functions are actually named
15765 something starting with __ and the normal name is an alias. */
15766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15767 choke me
15768 #else
15769 f = $ac_func;
15770 #endif
15773 return 0;
15775 _ACEOF
15776 rm -f conftest.$ac_objext conftest$ac_exeext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15778 (eval $ac_link) 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } &&
15782 { ac_try='test -s conftest$ac_exeext'
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 eval "$as_ac_var=yes"
15789 else
15790 echo "$as_me: failed program was:" >&5
15791 cat conftest.$ac_ext >&5
15792 eval "$as_ac_var=no"
15794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15798 if test `eval echo '${'$as_ac_var'}'` = yes; then
15799 cat >>confdefs.h <<_ACEOF
15800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15801 _ACEOF
15804 done
15807 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
15808 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
15809 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 else
15812 ac_check_lib_save_LIBS=$LIBS
15813 LIBS="-lsecurity $LIBS"
15814 cat >conftest.$ac_ext <<_ACEOF
15815 #line $LINENO "configure"
15816 #include "confdefs.h"
15818 /* Override any gcc2 internal prototype to avoid an error. */
15819 #ifdef __cplusplus
15820 extern "C"
15821 #endif
15822 /* We use char because int might match the return type of a gcc2
15823 builtin and then its argument prototype would still apply. */
15824 char getprpwnam ();
15825 #ifdef F77_DUMMY_MAIN
15826 # ifdef __cplusplus
15827 extern "C"
15828 # endif
15829 int F77_DUMMY_MAIN() { return 1; }
15830 #endif
15832 main ()
15834 getprpwnam ();
15836 return 0;
15838 _ACEOF
15839 rm -f conftest.$ac_objext conftest$ac_exeext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15841 (eval $ac_link) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -s conftest$ac_exeext'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15851 ac_cv_lib_security_getprpwnam=yes
15852 else
15853 echo "$as_me: failed program was:" >&5
15854 cat conftest.$ac_ext >&5
15855 ac_cv_lib_security_getprpwnam=no
15857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15858 LIBS=$ac_check_lib_save_LIBS
15860 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
15861 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
15862 if test $ac_cv_lib_security_getprpwnam = yes; then
15863 cat >>confdefs.h <<_ACEOF
15864 #define HAVE_LIBSECURITY 1
15865 _ACEOF
15867 LIBS="-lsecurity $LIBS"
15872 for ac_func in getprpwnam
15874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15875 echo "$as_me:$LINENO: checking for $ac_func" >&5
15876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15877 if eval "test \"\${$as_ac_var+set}\" = set"; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 else
15880 cat >conftest.$ac_ext <<_ACEOF
15881 #line $LINENO "configure"
15882 #include "confdefs.h"
15883 /* System header to define __stub macros and hopefully few prototypes,
15884 which can conflict with char $ac_func (); below. */
15885 #include <assert.h>
15886 /* Override any gcc2 internal prototype to avoid an error. */
15887 #ifdef __cplusplus
15888 extern "C"
15889 #endif
15890 /* We use char because int might match the return type of a gcc2
15891 builtin and then its argument prototype would still apply. */
15892 char $ac_func ();
15893 char (*f) ();
15895 #ifdef F77_DUMMY_MAIN
15896 # ifdef __cplusplus
15897 extern "C"
15898 # endif
15899 int F77_DUMMY_MAIN() { return 1; }
15900 #endif
15902 main ()
15904 /* The GNU C library defines this for functions which it implements
15905 to always fail with ENOSYS. Some functions are actually named
15906 something starting with __ and the normal name is an alias. */
15907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15908 choke me
15909 #else
15910 f = $ac_func;
15911 #endif
15914 return 0;
15916 _ACEOF
15917 rm -f conftest.$ac_objext conftest$ac_exeext
15918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15919 (eval $ac_link) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -s conftest$ac_exeext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
15929 eval "$as_ac_var=yes"
15930 else
15931 echo "$as_me: failed program was:" >&5
15932 cat conftest.$ac_ext >&5
15933 eval "$as_ac_var=no"
15935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15939 if test `eval echo '${'$as_ac_var'}'` = yes; then
15940 cat >>confdefs.h <<_ACEOF
15941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15942 _ACEOF
15945 done
15948 esac
15950 case "$LIBS" in
15951 *-lsec*)
15952 for ac_func in getprpwnam
15954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15955 echo "$as_me:$LINENO: checking for $ac_func" >&5
15956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15957 if eval "test \"\${$as_ac_var+set}\" = set"; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 else
15960 cat >conftest.$ac_ext <<_ACEOF
15961 #line $LINENO "configure"
15962 #include "confdefs.h"
15963 /* System header to define __stub macros and hopefully few prototypes,
15964 which can conflict with char $ac_func (); below. */
15965 #include <assert.h>
15966 /* Override any gcc2 internal prototype to avoid an error. */
15967 #ifdef __cplusplus
15968 extern "C"
15969 #endif
15970 /* We use char because int might match the return type of a gcc2
15971 builtin and then its argument prototype would still apply. */
15972 char $ac_func ();
15973 char (*f) ();
15975 #ifdef F77_DUMMY_MAIN
15976 # ifdef __cplusplus
15977 extern "C"
15978 # endif
15979 int F77_DUMMY_MAIN() { return 1; }
15980 #endif
15982 main ()
15984 /* The GNU C library defines this for functions which it implements
15985 to always fail with ENOSYS. Some functions are actually named
15986 something starting with __ and the normal name is an alias. */
15987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15988 choke me
15989 #else
15990 f = $ac_func;
15991 #endif
15994 return 0;
15996 _ACEOF
15997 rm -f conftest.$ac_objext conftest$ac_exeext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15999 (eval $ac_link) 2>&5
16000 ac_status=$?
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } &&
16003 { ac_try='test -s conftest$ac_exeext'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 eval "$as_ac_var=yes"
16010 else
16011 echo "$as_me: failed program was:" >&5
16012 cat conftest.$ac_ext >&5
16013 eval "$as_ac_var=no"
16015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16019 if test `eval echo '${'$as_ac_var'}'` = yes; then
16020 cat >>confdefs.h <<_ACEOF
16021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16022 _ACEOF
16025 done
16028 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
16029 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
16030 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033 ac_check_lib_save_LIBS=$LIBS
16034 LIBS="-lsec $LIBS"
16035 cat >conftest.$ac_ext <<_ACEOF
16036 #line $LINENO "configure"
16037 #include "confdefs.h"
16039 /* Override any gcc2 internal prototype to avoid an error. */
16040 #ifdef __cplusplus
16041 extern "C"
16042 #endif
16043 /* We use char because int might match the return type of a gcc2
16044 builtin and then its argument prototype would still apply. */
16045 char getprpwnam ();
16046 #ifdef F77_DUMMY_MAIN
16047 # ifdef __cplusplus
16048 extern "C"
16049 # endif
16050 int F77_DUMMY_MAIN() { return 1; }
16051 #endif
16053 main ()
16055 getprpwnam ();
16057 return 0;
16059 _ACEOF
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16062 (eval $ac_link) 2>&5
16063 ac_status=$?
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
16066 { ac_try='test -s conftest$ac_exeext'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16072 ac_cv_lib_sec_getprpwnam=yes
16073 else
16074 echo "$as_me: failed program was:" >&5
16075 cat conftest.$ac_ext >&5
16076 ac_cv_lib_sec_getprpwnam=no
16078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16079 LIBS=$ac_check_lib_save_LIBS
16081 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
16082 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
16083 if test $ac_cv_lib_sec_getprpwnam = yes; then
16084 cat >>confdefs.h <<_ACEOF
16085 #define HAVE_LIBSEC 1
16086 _ACEOF
16088 LIBS="-lsec $LIBS"
16093 for ac_func in getprpwnam
16095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16096 echo "$as_me:$LINENO: checking for $ac_func" >&5
16097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16098 if eval "test \"\${$as_ac_var+set}\" = set"; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101 cat >conftest.$ac_ext <<_ACEOF
16102 #line $LINENO "configure"
16103 #include "confdefs.h"
16104 /* System header to define __stub macros and hopefully few prototypes,
16105 which can conflict with char $ac_func (); below. */
16106 #include <assert.h>
16107 /* Override any gcc2 internal prototype to avoid an error. */
16108 #ifdef __cplusplus
16109 extern "C"
16110 #endif
16111 /* We use char because int might match the return type of a gcc2
16112 builtin and then its argument prototype would still apply. */
16113 char $ac_func ();
16114 char (*f) ();
16116 #ifdef F77_DUMMY_MAIN
16117 # ifdef __cplusplus
16118 extern "C"
16119 # endif
16120 int F77_DUMMY_MAIN() { return 1; }
16121 #endif
16123 main ()
16125 /* The GNU C library defines this for functions which it implements
16126 to always fail with ENOSYS. Some functions are actually named
16127 something starting with __ and the normal name is an alias. */
16128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16129 choke me
16130 #else
16131 f = $ac_func;
16132 #endif
16135 return 0;
16137 _ACEOF
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16140 (eval $ac_link) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
16144 { ac_try='test -s conftest$ac_exeext'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16150 eval "$as_ac_var=yes"
16151 else
16152 echo "$as_me: failed program was:" >&5
16153 cat conftest.$ac_ext >&5
16154 eval "$as_ac_var=no"
16156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16160 if test `eval echo '${'$as_ac_var'}'` = yes; then
16161 cat >>confdefs.h <<_ACEOF
16162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16163 _ACEOF
16166 done
16169 esac
16172 # this bit needs to be modified for each OS that is suported by
16173 # smbwrapper. You need to specify how to created a shared library and
16174 # how to compile C code to produce PIC object files
16176 # these are the defaults, good for lots of systems
16177 HOST_OS="$host_os"
16178 LDSHFLAGS="-shared"
16179 SONAMEFLAG="#"
16180 SHLD="\${CC}"
16181 PICFLAG=""
16182 PICSUFFIX="po"
16183 POBAD_CC="#"
16184 SHLIBEXT="so"
16185 # Assume non-shared by default and override below
16186 BLDSHARED="false"
16187 echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
16188 echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
16190 # and these are for particular systems
16191 case "$host_os" in
16192 *linux*)
16193 cat >>confdefs.h <<\_ACEOF
16194 #define LINUX 1
16195 _ACEOF
16197 BLDSHARED="true"
16198 LDSHFLAGS="-shared"
16199 DYNEXP="-Wl,--export-dynamic"
16200 PICFLAG="-fPIC"
16201 SONAMEFLAG="-Wl,-soname="
16202 cat >>confdefs.h <<\_ACEOF
16203 #define STAT_ST_BLOCKSIZE 512
16204 _ACEOF
16207 *solaris*)
16208 cat >>confdefs.h <<\_ACEOF
16209 #define SUNOS5 1
16210 _ACEOF
16212 BLDSHARED="true"
16213 LDSHFLAGS="-G"
16214 SONAMEFLAG="-h "
16215 if test "${GCC}" = "yes"; then
16216 PICFLAG="-fPIC"
16217 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
16218 DYNEXP="-Wl,-E"
16220 else
16221 PICFLAG="-KPIC"
16222 ## ${CFLAGS} added for building 64-bit shared
16223 ## libs using Sun's Compiler
16224 LDSHFLAGS="-G \${CFLAGS}"
16225 POBAD_CC=""
16226 PICSUFFIX="po.o"
16229 cat >>confdefs.h <<\_ACEOF
16230 #define STAT_ST_BLOCKSIZE 512
16231 _ACEOF
16234 *sunos*)
16235 cat >>confdefs.h <<\_ACEOF
16236 #define SUNOS4 1
16237 _ACEOF
16239 BLDSHARED="true"
16240 LDSHFLAGS="-G"
16241 SONAMEFLAG="-Wl,-h,"
16242 PICFLAG="-KPIC" # Is this correct for SunOS
16243 cat >>confdefs.h <<\_ACEOF
16244 #define STAT_ST_BLOCKSIZE 512
16245 _ACEOF
16248 *freebsd*) BLDSHARED="true"
16249 LDSHFLAGS="-shared"
16250 DYNEXP="-Wl,--export-dynamic"
16251 SONAMEFLAG="-Wl,-soname,"
16252 PICFLAG="-fPIC -DPIC"
16254 cat >>confdefs.h <<\_ACEOF
16255 #define STAT_ST_BLOCKSIZE 512
16256 _ACEOF
16259 *openbsd*) BLDSHARED="true"
16260 LDSHFLAGS="-shared"
16261 DYNEXP="-Wl,-Bdynamic"
16262 SONAMEFLAG="-Wl,-soname,"
16263 PICFLAG="-fPIC"
16265 cat >>confdefs.h <<\_ACEOF
16266 #define STAT_ST_BLOCKSIZE 512
16267 _ACEOF
16270 *irix*)
16271 cat >>confdefs.h <<\_ACEOF
16272 #define IRIX 1
16273 _ACEOF
16275 case "$host_os" in
16276 *irix6*)
16277 cat >>confdefs.h <<\_ACEOF
16278 #define IRIX6 1
16279 _ACEOF
16282 esac
16283 ATTEMPT_WRAP32_BUILD=yes
16284 BLDSHARED="true"
16285 LDSHFLAGS="-set_version sgi1.0 -shared"
16286 SONAMEFLAG="-soname "
16287 SHLD="\${LD}"
16288 if test "${GCC}" = "yes"; then
16289 PICFLAG="-fPIC"
16290 else
16291 PICFLAG="-KPIC"
16294 cat >>confdefs.h <<\_ACEOF
16295 #define STAT_ST_BLOCKSIZE 512
16296 _ACEOF
16299 *aix*)
16300 cat >>confdefs.h <<\_ACEOF
16301 #define AIX 1
16302 _ACEOF
16304 BLDSHARED="true"
16305 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
16306 DYNEXP="-Wl,-brtl,-bexpall"
16307 PICFLAG="-O2"
16308 if test "${GCC}" != "yes"; then
16309 ## for funky AIX compiler using strncpy()
16310 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
16314 cat >>confdefs.h <<\_ACEOF
16315 #define STAT_ST_BLOCKSIZE DEV_BSIZE
16316 _ACEOF
16319 *hpux*)
16320 cat >>confdefs.h <<\_ACEOF
16321 #define HPUX 1
16322 _ACEOF
16324 SHLIBEXT="sl"
16325 # Use special PIC flags for the native HP-UX compiler.
16326 if test $ac_cv_prog_cc_Ae = yes; then
16327 BLDSHARED="true"
16328 SHLD="/usr/bin/ld"
16329 LDSHFLAGS="-B symbolic -b -z"
16330 SONAMEFLAG="+h "
16331 PICFLAG="+z"
16333 DYNEXP="-Wl,-E"
16335 cat >>confdefs.h <<\_ACEOF
16336 #define STAT_ST_BLOCKSIZE 8192
16337 _ACEOF
16340 *qnx*)
16341 cat >>confdefs.h <<\_ACEOF
16342 #define QNX 1
16343 _ACEOF
16345 cat >>confdefs.h <<\_ACEOF
16346 #define STAT_ST_BLOCKSIZE 512
16347 _ACEOF
16350 *osf*)
16351 cat >>confdefs.h <<\_ACEOF
16352 #define OSF1 1
16353 _ACEOF
16355 BLDSHARED="true"
16356 LDSHFLAGS="-shared"
16357 SONAMEFLAG="-Wl,-soname,"
16358 PICFLAG="-fPIC"
16359 cat >>confdefs.h <<\_ACEOF
16360 #define STAT_ST_BLOCKSIZE 512
16361 _ACEOF
16364 *sco*)
16365 cat >>confdefs.h <<\_ACEOF
16366 #define SCO 1
16367 _ACEOF
16369 cat >>confdefs.h <<\_ACEOF
16370 #define STAT_ST_BLOCKSIZE 512
16371 _ACEOF
16374 *unixware*)
16375 cat >>confdefs.h <<\_ACEOF
16376 #define UNIXWARE 1
16377 _ACEOF
16379 BLDSHARED="true"
16380 LDSHFLAGS="-shared"
16381 SONAMEFLAG="-Wl,-soname,"
16382 PICFLAG="-KPIC"
16383 cat >>confdefs.h <<\_ACEOF
16384 #define STAT_ST_BLOCKSIZE 512
16385 _ACEOF
16388 *next2*)
16389 cat >>confdefs.h <<\_ACEOF
16390 #define NEXT2 1
16391 _ACEOF
16393 cat >>confdefs.h <<\_ACEOF
16394 #define STAT_ST_BLOCKSIZE 512
16395 _ACEOF
16398 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
16399 set dummy groff; ac_word=$2
16400 echo "$as_me:$LINENO: checking for $ac_word" >&5
16401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16402 if test "${ac_cv_prog_ROFF+set}" = set; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 else
16405 if test -n "$ROFF"; then
16406 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
16407 else
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16411 IFS=$as_save_IFS
16412 test -z "$as_dir" && as_dir=.
16413 for ac_exec_ext in '' $ac_executable_extensions; do
16414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16415 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
16416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16417 break 2
16419 done
16420 done
16424 ROFF=$ac_cv_prog_ROFF
16425 if test -n "$ROFF"; then
16426 echo "$as_me:$LINENO: result: $ROFF" >&5
16427 echo "${ECHO_T}$ROFF" >&6
16428 else
16429 echo "$as_me:$LINENO: result: no" >&5
16430 echo "${ECHO_T}no" >&6
16433 cat >>confdefs.h <<\_ACEOF
16434 #define STAT_ST_BLOCKSIZE 512
16435 _ACEOF
16438 *sysv4*)
16439 cat >>confdefs.h <<\_ACEOF
16440 #define SYSV 1
16441 _ACEOF
16443 case "$host" in
16444 *-univel-*) if test "$GCC" != yes ; then
16446 cat >>confdefs.h <<\_ACEOF
16447 #define HAVE_MEMSET 1
16448 _ACEOF
16451 LDSHFLAGS="-G"
16452 DYNEXP="-Bexport"
16454 *mips-sni-sysv4*)
16455 cat >>confdefs.h <<\_ACEOF
16456 #define RELIANTUNIX 1
16457 _ACEOF
16459 esac
16460 cat >>confdefs.h <<\_ACEOF
16461 #define STAT_ST_BLOCKSIZE 512
16462 _ACEOF
16466 *sysv5*)
16467 cat >>confdefs.h <<\_ACEOF
16468 #define SYSV 1
16469 _ACEOF
16471 if test "$GCC" != yes ; then
16473 cat >>confdefs.h <<\_ACEOF
16474 #define HAVE_MEMSET 1
16475 _ACEOF
16478 LDSHFLAGS="-G"
16479 cat >>confdefs.h <<\_ACEOF
16480 #define STAT_ST_BLOCKSIZE 512
16481 _ACEOF
16485 cat >>confdefs.h <<\_ACEOF
16486 #define STAT_ST_BLOCKSIZE 512
16487 _ACEOF
16490 esac
16492 echo "$as_me:$LINENO: result: $BLDSHARED" >&5
16493 echo "${ECHO_T}$BLDSHARED" >&6
16494 echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
16495 echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
16496 echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
16497 echo "${ECHO_T}$LDSHFLAGS" >&6
16498 echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
16499 echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
16500 echo "$as_me:$LINENO: result: $PICFLAGS" >&5
16501 echo "${ECHO_T}$PICFLAGS" >&6
16503 #######################################################
16504 # test whether building a shared library actually works
16505 if test $BLDSHARED = true; then
16506 echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
16507 echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
16508 if test "${ac_cv_shlib_works+set}" = set; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16512 ac_cv_shlib_works=no
16513 # try building a trivial shared library
16514 if test "$PICSUFFIX" = "po"; then
16515 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
16516 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16517 ac_cv_shlib_works=yes
16518 else
16519 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
16520 mv shlib.$PICSUFFIX shlib.po &&
16521 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16522 ac_cv_shlib_works=yes
16524 rm -f shlib.so shlib.po
16527 echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
16528 echo "${ECHO_T}$ac_cv_shlib_works" >&6
16529 if test $ac_cv_shlib_works = no; then
16530 BLDSHARED=false
16535 # this updates our target list if we can build shared libs
16536 if test $BLDSHARED = true; then
16537 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
16538 else
16539 LIBSMBCLIENT_SHARED=
16542 ################
16544 echo "$as_me:$LINENO: checking for long long" >&5
16545 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16546 if test "${samba_cv_have_longlong+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 else
16550 if test "$cross_compiling" = yes; then
16551 samba_cv_have_longlong=cross
16552 else
16553 cat >conftest.$ac_ext <<_ACEOF
16554 #line $LINENO "configure"
16555 #include "confdefs.h"
16556 #include <stdio.h>
16557 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
16558 _ACEOF
16559 rm -f conftest$ac_exeext
16560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16561 (eval $ac_link) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16567 ac_status=$?
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 samba_cv_have_longlong=yes
16571 else
16572 echo "$as_me: program exited with status $ac_status" >&5
16573 echo "$as_me: failed program was:" >&5
16574 cat conftest.$ac_ext >&5
16575 ( exit $ac_status )
16576 samba_cv_have_longlong=no
16578 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16581 echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
16582 echo "${ECHO_T}$samba_cv_have_longlong" >&6
16583 if test x"$samba_cv_have_longlong" = x"yes"; then
16585 cat >>confdefs.h <<\_ACEOF
16586 #define HAVE_LONGLONG 1
16587 _ACEOF
16592 # Check if the compiler supports the LL prefix on long long integers.
16593 # AIX needs this.
16595 echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
16596 echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
16597 if test "${samba_cv_compiler_supports_ll+set}" = set; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16599 else
16601 cat >conftest.$ac_ext <<_ACEOF
16602 #line $LINENO "configure"
16603 #include "confdefs.h"
16604 #include <stdio.h>
16605 #ifdef F77_DUMMY_MAIN
16606 # ifdef __cplusplus
16607 extern "C"
16608 # endif
16609 int F77_DUMMY_MAIN() { return 1; }
16610 #endif
16612 main ()
16614 long long i = 0x8000000000LL
16616 return 0;
16618 _ACEOF
16619 rm -f conftest.$ac_objext
16620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16621 (eval $ac_compile) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } &&
16625 { ac_try='test -s conftest.$ac_objext'
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 samba_cv_compiler_supports_ll=yes
16632 else
16633 echo "$as_me: failed program was:" >&5
16634 cat conftest.$ac_ext >&5
16635 samba_cv_compiler_supports_ll=no
16637 rm -f conftest.$ac_objext conftest.$ac_ext
16639 echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
16640 echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
16641 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
16643 cat >>confdefs.h <<\_ACEOF
16644 #define COMPILER_SUPPORTS_LL 1
16645 _ACEOF
16650 echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
16651 echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
16652 if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 else
16656 if test "$cross_compiling" = yes; then
16657 samba_cv_SIZEOF_OFF_T=cross
16658 else
16659 cat >conftest.$ac_ext <<_ACEOF
16660 #line $LINENO "configure"
16661 #include "confdefs.h"
16662 #include <stdio.h>
16663 #include <sys/stat.h>
16664 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
16665 _ACEOF
16666 rm -f conftest$ac_exeext
16667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16668 (eval $ac_link) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16674 ac_status=$?
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16677 samba_cv_SIZEOF_OFF_T=yes
16678 else
16679 echo "$as_me: program exited with status $ac_status" >&5
16680 echo "$as_me: failed program was:" >&5
16681 cat conftest.$ac_ext >&5
16682 ( exit $ac_status )
16683 samba_cv_SIZEOF_OFF_T=no
16685 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16688 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
16689 echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
16690 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
16692 cat >>confdefs.h <<\_ACEOF
16693 #define SIZEOF_OFF_T 8
16694 _ACEOF
16698 echo "$as_me:$LINENO: checking for off64_t" >&5
16699 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
16700 if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 else
16704 if test "$cross_compiling" = yes; then
16705 samba_cv_HAVE_OFF64_T=cross
16706 else
16707 cat >conftest.$ac_ext <<_ACEOF
16708 #line $LINENO "configure"
16709 #include "confdefs.h"
16711 #if defined(HAVE_UNISTD_H)
16712 #include <unistd.h>
16713 #endif
16714 #include <stdio.h>
16715 #include <sys/stat.h>
16716 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16717 _ACEOF
16718 rm -f conftest$ac_exeext
16719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16720 (eval $ac_link) 2>&5
16721 ac_status=$?
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
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 samba_cv_HAVE_OFF64_T=yes
16730 else
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_HAVE_OFF64_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_HAVE_OFF64_T" >&5
16741 echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
16742 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
16744 cat >>confdefs.h <<\_ACEOF
16745 #define HAVE_OFF64_T 1
16746 _ACEOF
16750 echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
16751 echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
16752 if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16756 if test "$cross_compiling" = yes; then
16757 samba_cv_SIZEOF_INO_T=cross
16758 else
16759 cat >conftest.$ac_ext <<_ACEOF
16760 #line $LINENO "configure"
16761 #include "confdefs.h"
16762 #include <stdio.h>
16763 #include <sys/stat.h>
16764 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
16765 _ACEOF
16766 rm -f conftest$ac_exeext
16767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16768 (eval $ac_link) 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 samba_cv_SIZEOF_INO_T=yes
16778 else
16779 echo "$as_me: program exited with status $ac_status" >&5
16780 echo "$as_me: failed program was:" >&5
16781 cat conftest.$ac_ext >&5
16782 ( exit $ac_status )
16783 samba_cv_SIZEOF_INO_T=no
16785 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16788 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
16789 echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
16790 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
16792 cat >>confdefs.h <<\_ACEOF
16793 #define SIZEOF_INO_T 8
16794 _ACEOF
16798 echo "$as_me:$LINENO: checking for ino64_t" >&5
16799 echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
16800 if test "${samba_cv_HAVE_INO64_T+set}" = set; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 else
16804 if test "$cross_compiling" = yes; then
16805 samba_cv_HAVE_INO64_T=cross
16806 else
16807 cat >conftest.$ac_ext <<_ACEOF
16808 #line $LINENO "configure"
16809 #include "confdefs.h"
16811 #if defined(HAVE_UNISTD_H)
16812 #include <unistd.h>
16813 #endif
16814 #include <stdio.h>
16815 #include <sys/stat.h>
16816 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16817 _ACEOF
16818 rm -f conftest$ac_exeext
16819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16820 (eval $ac_link) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 samba_cv_HAVE_INO64_T=yes
16830 else
16831 echo "$as_me: program exited with status $ac_status" >&5
16832 echo "$as_me: failed program was:" >&5
16833 cat conftest.$ac_ext >&5
16834 ( exit $ac_status )
16835 samba_cv_HAVE_INO64_T=no
16837 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16840 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
16841 echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
16842 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
16844 cat >>confdefs.h <<\_ACEOF
16845 #define HAVE_INO64_T 1
16846 _ACEOF
16850 echo "$as_me:$LINENO: checking for dev64_t" >&5
16851 echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
16852 if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 else
16856 if test "$cross_compiling" = yes; then
16857 samba_cv_HAVE_DEV64_T=cross
16858 else
16859 cat >conftest.$ac_ext <<_ACEOF
16860 #line $LINENO "configure"
16861 #include "confdefs.h"
16863 #if defined(HAVE_UNISTD_H)
16864 #include <unistd.h>
16865 #endif
16866 #include <stdio.h>
16867 #include <sys/stat.h>
16868 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16869 _ACEOF
16870 rm -f conftest$ac_exeext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16872 (eval $ac_link) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; }; then
16881 samba_cv_HAVE_DEV64_T=yes
16882 else
16883 echo "$as_me: program exited with status $ac_status" >&5
16884 echo "$as_me: failed program was:" >&5
16885 cat conftest.$ac_ext >&5
16886 ( exit $ac_status )
16887 samba_cv_HAVE_DEV64_T=no
16889 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16892 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
16893 echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
16894 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
16896 cat >>confdefs.h <<\_ACEOF
16897 #define HAVE_DEV64_T 1
16898 _ACEOF
16902 echo "$as_me:$LINENO: checking for struct dirent64" >&5
16903 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
16904 if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16908 cat >conftest.$ac_ext <<_ACEOF
16909 #line $LINENO "configure"
16910 #include "confdefs.h"
16912 #if defined(HAVE_UNISTD_H)
16913 #include <unistd.h>
16914 #endif
16915 #include <sys/types.h>
16916 #include <dirent.h>
16917 #ifdef F77_DUMMY_MAIN
16918 # ifdef __cplusplus
16919 extern "C"
16920 # endif
16921 int F77_DUMMY_MAIN() { return 1; }
16922 #endif
16924 main ()
16926 struct dirent64 de;
16928 return 0;
16930 _ACEOF
16931 rm -f conftest.$ac_objext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933 (eval $ac_compile) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 samba_cv_HAVE_STRUCT_DIRENT64=yes
16944 else
16945 echo "$as_me: failed program was:" >&5
16946 cat conftest.$ac_ext >&5
16947 samba_cv_HAVE_STRUCT_DIRENT64=no
16949 rm -f conftest.$ac_objext conftest.$ac_ext
16951 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
16952 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
16953 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
16955 cat >>confdefs.h <<\_ACEOF
16956 #define HAVE_STRUCT_DIRENT64 1
16957 _ACEOF
16961 echo "$as_me:$LINENO: checking for major macro" >&5
16962 echo $ECHO_N "checking for major macro... $ECHO_C" >&6
16963 if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16967 if test "$cross_compiling" = yes; then
16968 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
16969 else
16970 cat >conftest.$ac_ext <<_ACEOF
16971 #line $LINENO "configure"
16972 #include "confdefs.h"
16974 #if defined(HAVE_UNISTD_H)
16975 #include <unistd.h>
16976 #endif
16977 #include <sys/types.h>
16978 main() { dev_t dev; int i = major(dev); return 0; }
16979 _ACEOF
16980 rm -f conftest$ac_exeext
16981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16982 (eval $ac_link) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
16992 else
16993 echo "$as_me: program exited with status $ac_status" >&5
16994 echo "$as_me: failed program was:" >&5
16995 cat conftest.$ac_ext >&5
16996 ( exit $ac_status )
16997 samba_cv_HAVE_DEVICE_MAJOR_FN=no
16999 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17002 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
17003 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
17004 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
17006 cat >>confdefs.h <<\_ACEOF
17007 #define HAVE_DEVICE_MAJOR_FN 1
17008 _ACEOF
17012 echo "$as_me:$LINENO: checking for minor macro" >&5
17013 echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
17014 if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17018 if test "$cross_compiling" = yes; then
17019 samba_cv_HAVE_DEVICE_MINOR_FN=cross
17020 else
17021 cat >conftest.$ac_ext <<_ACEOF
17022 #line $LINENO "configure"
17023 #include "confdefs.h"
17025 #if defined(HAVE_UNISTD_H)
17026 #include <unistd.h>
17027 #endif
17028 #include <sys/types.h>
17029 main() { dev_t dev; int i = minor(dev); return 0; }
17030 _ACEOF
17031 rm -f conftest$ac_exeext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17033 (eval $ac_link) 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 samba_cv_HAVE_DEVICE_MINOR_FN=yes
17043 else
17044 echo "$as_me: program exited with status $ac_status" >&5
17045 echo "$as_me: failed program was:" >&5
17046 cat conftest.$ac_ext >&5
17047 ( exit $ac_status )
17048 samba_cv_HAVE_DEVICE_MINOR_FN=no
17050 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17053 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
17054 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
17055 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
17057 cat >>confdefs.h <<\_ACEOF
17058 #define HAVE_DEVICE_MINOR_FN 1
17059 _ACEOF
17063 echo "$as_me:$LINENO: checking for unsigned char" >&5
17064 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
17065 if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17069 if test "$cross_compiling" = yes; then
17070 samba_cv_HAVE_UNSIGNED_CHAR=cross
17071 else
17072 cat >conftest.$ac_ext <<_ACEOF
17073 #line $LINENO "configure"
17074 #include "confdefs.h"
17075 #include <stdio.h>
17076 main() { char c; c=250; exit((c > 0)?0:1); }
17077 _ACEOF
17078 rm -f conftest$ac_exeext
17079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17080 (eval $ac_link) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
17089 samba_cv_HAVE_UNSIGNED_CHAR=yes
17090 else
17091 echo "$as_me: program exited with status $ac_status" >&5
17092 echo "$as_me: failed program was:" >&5
17093 cat conftest.$ac_ext >&5
17094 ( exit $ac_status )
17095 samba_cv_HAVE_UNSIGNED_CHAR=no
17097 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17100 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
17101 echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
17102 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
17104 cat >>confdefs.h <<\_ACEOF
17105 #define HAVE_UNSIGNED_CHAR 1
17106 _ACEOF
17110 echo "$as_me:$LINENO: checking for sin_len in sock" >&5
17111 echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
17112 if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 else
17116 cat >conftest.$ac_ext <<_ACEOF
17117 #line $LINENO "configure"
17118 #include "confdefs.h"
17119 #include <sys/types.h>
17120 #include <sys/socket.h>
17121 #include <netinet/in.h>
17122 #ifdef F77_DUMMY_MAIN
17123 # ifdef __cplusplus
17124 extern "C"
17125 # endif
17126 int F77_DUMMY_MAIN() { return 1; }
17127 #endif
17129 main ()
17131 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
17133 return 0;
17135 _ACEOF
17136 rm -f conftest.$ac_objext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17138 (eval $ac_compile) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } &&
17142 { ac_try='test -s conftest.$ac_objext'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; }; then
17148 samba_cv_HAVE_SOCK_SIN_LEN=yes
17149 else
17150 echo "$as_me: failed program was:" >&5
17151 cat conftest.$ac_ext >&5
17152 samba_cv_HAVE_SOCK_SIN_LEN=no
17154 rm -f conftest.$ac_objext conftest.$ac_ext
17156 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
17157 echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
17158 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
17160 cat >>confdefs.h <<\_ACEOF
17161 #define HAVE_SOCK_SIN_LEN 1
17162 _ACEOF
17166 echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
17167 echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
17168 if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17172 cat >conftest.$ac_ext <<_ACEOF
17173 #line $LINENO "configure"
17174 #include "confdefs.h"
17175 #include <sys/types.h>
17176 #include <dirent.h>
17177 void seekdir(DIR *d, long loc) { return; }
17178 #ifdef F77_DUMMY_MAIN
17179 # ifdef __cplusplus
17180 extern "C"
17181 # endif
17182 int F77_DUMMY_MAIN() { return 1; }
17183 #endif
17185 main ()
17187 return 0;
17189 return 0;
17191 _ACEOF
17192 rm -f conftest.$ac_objext
17193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17194 (eval $ac_compile) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } &&
17198 { ac_try='test -s conftest.$ac_objext'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204 samba_cv_SEEKDIR_RETURNS_VOID=yes
17205 else
17206 echo "$as_me: failed program was:" >&5
17207 cat conftest.$ac_ext >&5
17208 samba_cv_SEEKDIR_RETURNS_VOID=no
17210 rm -f conftest.$ac_objext conftest.$ac_ext
17212 echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
17213 echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
17214 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
17216 cat >>confdefs.h <<\_ACEOF
17217 #define SEEKDIR_RETURNS_VOID 1
17218 _ACEOF
17222 echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
17223 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
17224 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17228 cat >conftest.$ac_ext <<_ACEOF
17229 #line $LINENO "configure"
17230 #include "confdefs.h"
17231 #include <stdio.h>
17232 #ifdef F77_DUMMY_MAIN
17233 # ifdef __cplusplus
17234 extern "C"
17235 # endif
17236 int F77_DUMMY_MAIN() { return 1; }
17237 #endif
17239 main ()
17241 printf("%s\n", __FUNCTION__);
17243 return 0;
17245 _ACEOF
17246 rm -f conftest.$ac_objext
17247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17248 (eval $ac_compile) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
17252 { ac_try='test -s conftest.$ac_objext'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 samba_cv_HAVE_FUNCTION_MACRO=yes
17259 else
17260 echo "$as_me: failed program was:" >&5
17261 cat conftest.$ac_ext >&5
17262 samba_cv_HAVE_FUNCTION_MACRO=no
17264 rm -f conftest.$ac_objext conftest.$ac_ext
17266 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
17267 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
17268 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
17270 cat >>confdefs.h <<\_ACEOF
17271 #define HAVE_FUNCTION_MACRO 1
17272 _ACEOF
17276 echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
17277 echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
17278 if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
17279 echo $ECHO_N "(cached) $ECHO_C" >&6
17280 else
17282 if test "$cross_compiling" = yes; then
17283 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
17284 else
17285 cat >conftest.$ac_ext <<_ACEOF
17286 #line $LINENO "configure"
17287 #include "confdefs.h"
17289 #include <sys/time.h>
17290 #include <unistd.h>
17291 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
17292 _ACEOF
17293 rm -f conftest$ac_exeext
17294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17295 (eval $ac_link) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
17305 else
17306 echo "$as_me: program exited with status $ac_status" >&5
17307 echo "$as_me: failed program was:" >&5
17308 cat conftest.$ac_ext >&5
17309 ( exit $ac_status )
17310 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
17312 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17315 echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
17316 echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
17317 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
17319 cat >>confdefs.h <<\_ACEOF
17320 #define HAVE_GETTIMEOFDAY_TZ 1
17321 _ACEOF
17325 echo "$as_me:$LINENO: checking for __va_copy" >&5
17326 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17327 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 else
17331 cat >conftest.$ac_ext <<_ACEOF
17332 #line $LINENO "configure"
17333 #include "confdefs.h"
17334 #include <stdarg.h>
17335 va_list ap1,ap2;
17336 #ifdef F77_DUMMY_MAIN
17337 # ifdef __cplusplus
17338 extern "C"
17339 # endif
17340 int F77_DUMMY_MAIN() { return 1; }
17341 #endif
17343 main ()
17345 __va_copy(ap1,ap2);
17347 return 0;
17349 _ACEOF
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17352 (eval $ac_link) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
17356 { ac_try='test -s conftest$ac_exeext'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17362 samba_cv_HAVE_VA_COPY=yes
17363 else
17364 echo "$as_me: failed program was:" >&5
17365 cat conftest.$ac_ext >&5
17366 samba_cv_HAVE_VA_COPY=no
17368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17370 echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
17371 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
17372 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
17374 cat >>confdefs.h <<\_ACEOF
17375 #define HAVE_VA_COPY 1
17376 _ACEOF
17380 echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
17381 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
17382 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17386 if test "$cross_compiling" = yes; then
17387 samba_cv_HAVE_C99_VSNPRINTF=cross
17388 else
17389 cat >conftest.$ac_ext <<_ACEOF
17390 #line $LINENO "configure"
17391 #include "confdefs.h"
17393 #include <sys/types.h>
17394 #include <stdarg.h>
17395 void foo(const char *format, ...) {
17396 va_list ap;
17397 int len;
17398 char buf[5];
17400 va_start(ap, format);
17401 len = vsnprintf(buf, 0, format, ap);
17402 va_end(ap);
17403 if (len != 5) exit(1);
17405 va_start(ap, format);
17406 len = vsnprintf(0, 0, format, ap);
17407 va_end(ap);
17408 if (len != 5) exit(1);
17410 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
17412 exit(0);
17414 main() { foo("hello"); }
17416 _ACEOF
17417 rm -f conftest$ac_exeext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419 (eval $ac_link) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 samba_cv_HAVE_C99_VSNPRINTF=yes
17429 else
17430 echo "$as_me: program exited with status $ac_status" >&5
17431 echo "$as_me: failed program was:" >&5
17432 cat conftest.$ac_ext >&5
17433 ( exit $ac_status )
17434 samba_cv_HAVE_C99_VSNPRINTF=no
17436 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17439 echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
17440 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
17441 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
17443 cat >>confdefs.h <<\_ACEOF
17444 #define HAVE_C99_VSNPRINTF 1
17445 _ACEOF
17449 echo "$as_me:$LINENO: checking for broken readdir" >&5
17450 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
17451 if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17455 if test "$cross_compiling" = yes; then
17456 samba_cv_HAVE_BROKEN_READDIR=cross
17457 else
17458 cat >conftest.$ac_ext <<_ACEOF
17459 #line $LINENO "configure"
17460 #include "confdefs.h"
17461 #include <sys/types.h>
17462 #include <dirent.h>
17463 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
17464 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
17465 di->d_name[0] == 0) exit(0); exit(1);}
17466 _ACEOF
17467 rm -f conftest$ac_exeext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17469 (eval $ac_link) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474 (eval $ac_try) 2>&5
17475 ac_status=$?
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; }; then
17478 samba_cv_HAVE_BROKEN_READDIR=yes
17479 else
17480 echo "$as_me: program exited with status $ac_status" >&5
17481 echo "$as_me: failed program was:" >&5
17482 cat conftest.$ac_ext >&5
17483 ( exit $ac_status )
17484 samba_cv_HAVE_BROKEN_READDIR=no
17486 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17489 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
17490 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
17491 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
17493 cat >>confdefs.h <<\_ACEOF
17494 #define HAVE_BROKEN_READDIR 1
17495 _ACEOF
17499 echo "$as_me:$LINENO: checking for utimbuf" >&5
17500 echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
17501 if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 else
17505 cat >conftest.$ac_ext <<_ACEOF
17506 #line $LINENO "configure"
17507 #include "confdefs.h"
17508 #include <sys/types.h>
17509 #include <utime.h>
17510 #ifdef F77_DUMMY_MAIN
17511 # ifdef __cplusplus
17512 extern "C"
17513 # endif
17514 int F77_DUMMY_MAIN() { return 1; }
17515 #endif
17517 main ()
17519 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
17521 return 0;
17523 _ACEOF
17524 rm -f conftest.$ac_objext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17526 (eval $ac_compile) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } &&
17530 { ac_try='test -s conftest.$ac_objext'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; }; then
17536 samba_cv_HAVE_UTIMBUF=yes
17537 else
17538 echo "$as_me: failed program was:" >&5
17539 cat conftest.$ac_ext >&5
17540 samba_cv_HAVE_UTIMBUF=no
17542 rm -f conftest.$ac_objext conftest.$ac_ext
17544 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
17545 echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
17546 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
17548 cat >>confdefs.h <<\_ACEOF
17549 #define HAVE_UTIMBUF 1
17550 _ACEOF
17560 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
17562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17563 echo "$as_me:$LINENO: checking for $ac_func" >&5
17564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17565 if eval "test \"\${$as_ac_var+set}\" = set"; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568 cat >conftest.$ac_ext <<_ACEOF
17569 #line $LINENO "configure"
17570 #include "confdefs.h"
17571 /* System header to define __stub macros and hopefully few prototypes,
17572 which can conflict with char $ac_func (); below. */
17573 #include <assert.h>
17574 /* Override any gcc2 internal prototype to avoid an error. */
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 /* We use char because int might match the return type of a gcc2
17579 builtin and then its argument prototype would still apply. */
17580 char $ac_func ();
17581 char (*f) ();
17583 #ifdef F77_DUMMY_MAIN
17584 # ifdef __cplusplus
17585 extern "C"
17586 # endif
17587 int F77_DUMMY_MAIN() { return 1; }
17588 #endif
17590 main ()
17592 /* The GNU C library defines this for functions which it implements
17593 to always fail with ENOSYS. Some functions are actually named
17594 something starting with __ and the normal name is an alias. */
17595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17596 choke me
17597 #else
17598 f = $ac_func;
17599 #endif
17602 return 0;
17604 _ACEOF
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17607 (eval $ac_link) 2>&5
17608 ac_status=$?
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -s conftest$ac_exeext'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 eval "$as_ac_var=yes"
17618 else
17619 echo "$as_me: failed program was:" >&5
17620 cat conftest.$ac_ext >&5
17621 eval "$as_ac_var=no"
17623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17627 if test `eval echo '${'$as_ac_var'}'` = yes; then
17628 cat >>confdefs.h <<_ACEOF
17629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17630 _ACEOF
17633 done
17636 echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
17637 echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
17638 if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
17639 echo $ECHO_N "(cached) $ECHO_C" >&6
17640 else
17642 cat >conftest.$ac_ext <<_ACEOF
17643 #line $LINENO "configure"
17644 #include "confdefs.h"
17645 #include <sys/types.h>
17646 #include <utmp.h>
17647 #ifdef F77_DUMMY_MAIN
17648 # ifdef __cplusplus
17649 extern "C"
17650 # endif
17651 int F77_DUMMY_MAIN() { return 1; }
17652 #endif
17654 main ()
17656 struct utmp ut; ut.ut_name[0] = 'a';
17658 return 0;
17660 _ACEOF
17661 rm -f conftest.$ac_objext
17662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17663 (eval $ac_compile) 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } &&
17667 { ac_try='test -s conftest.$ac_objext'
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; }; then
17673 samba_cv_HAVE_UT_UT_NAME=yes
17674 else
17675 echo "$as_me: failed program was:" >&5
17676 cat conftest.$ac_ext >&5
17677 samba_cv_HAVE_UT_UT_NAME=no
17679 rm -f conftest.$ac_objext conftest.$ac_ext
17681 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
17682 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
17683 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
17685 cat >>confdefs.h <<\_ACEOF
17686 #define HAVE_UT_UT_NAME 1
17687 _ACEOF
17691 echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
17692 echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
17693 if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
17694 echo $ECHO_N "(cached) $ECHO_C" >&6
17695 else
17697 cat >conftest.$ac_ext <<_ACEOF
17698 #line $LINENO "configure"
17699 #include "confdefs.h"
17700 #include <sys/types.h>
17701 #include <utmp.h>
17702 #ifdef F77_DUMMY_MAIN
17703 # ifdef __cplusplus
17704 extern "C"
17705 # endif
17706 int F77_DUMMY_MAIN() { return 1; }
17707 #endif
17709 main ()
17711 struct utmp ut; ut.ut_user[0] = 'a';
17713 return 0;
17715 _ACEOF
17716 rm -f conftest.$ac_objext
17717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17718 (eval $ac_compile) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -s conftest.$ac_objext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 samba_cv_HAVE_UT_UT_USER=yes
17729 else
17730 echo "$as_me: failed program was:" >&5
17731 cat conftest.$ac_ext >&5
17732 samba_cv_HAVE_UT_UT_USER=no
17734 rm -f conftest.$ac_objext conftest.$ac_ext
17736 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
17737 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
17738 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
17740 cat >>confdefs.h <<\_ACEOF
17741 #define HAVE_UT_UT_USER 1
17742 _ACEOF
17746 echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
17747 echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
17748 if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 else
17752 cat >conftest.$ac_ext <<_ACEOF
17753 #line $LINENO "configure"
17754 #include "confdefs.h"
17755 #include <sys/types.h>
17756 #include <utmp.h>
17757 #ifdef F77_DUMMY_MAIN
17758 # ifdef __cplusplus
17759 extern "C"
17760 # endif
17761 int F77_DUMMY_MAIN() { return 1; }
17762 #endif
17764 main ()
17766 struct utmp ut; ut.ut_id[0] = 'a';
17768 return 0;
17770 _ACEOF
17771 rm -f conftest.$ac_objext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17773 (eval $ac_compile) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } &&
17777 { ac_try='test -s conftest.$ac_objext'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 samba_cv_HAVE_UT_UT_ID=yes
17784 else
17785 echo "$as_me: failed program was:" >&5
17786 cat conftest.$ac_ext >&5
17787 samba_cv_HAVE_UT_UT_ID=no
17789 rm -f conftest.$ac_objext conftest.$ac_ext
17791 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
17792 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
17793 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
17795 cat >>confdefs.h <<\_ACEOF
17796 #define HAVE_UT_UT_ID 1
17797 _ACEOF
17801 echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
17802 echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
17803 if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
17804 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 else
17807 cat >conftest.$ac_ext <<_ACEOF
17808 #line $LINENO "configure"
17809 #include "confdefs.h"
17810 #include <sys/types.h>
17811 #include <utmp.h>
17812 #ifdef F77_DUMMY_MAIN
17813 # ifdef __cplusplus
17814 extern "C"
17815 # endif
17816 int F77_DUMMY_MAIN() { return 1; }
17817 #endif
17819 main ()
17821 struct utmp ut; ut.ut_host[0] = 'a';
17823 return 0;
17825 _ACEOF
17826 rm -f conftest.$ac_objext
17827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17828 (eval $ac_compile) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 samba_cv_HAVE_UT_UT_HOST=yes
17839 else
17840 echo "$as_me: failed program was:" >&5
17841 cat conftest.$ac_ext >&5
17842 samba_cv_HAVE_UT_UT_HOST=no
17844 rm -f conftest.$ac_objext conftest.$ac_ext
17846 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
17847 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
17848 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
17850 cat >>confdefs.h <<\_ACEOF
17851 #define HAVE_UT_UT_HOST 1
17852 _ACEOF
17856 echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
17857 echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
17858 if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17860 else
17862 cat >conftest.$ac_ext <<_ACEOF
17863 #line $LINENO "configure"
17864 #include "confdefs.h"
17865 #include <sys/types.h>
17866 #include <utmp.h>
17867 #ifdef F77_DUMMY_MAIN
17868 # ifdef __cplusplus
17869 extern "C"
17870 # endif
17871 int F77_DUMMY_MAIN() { return 1; }
17872 #endif
17874 main ()
17876 struct utmp ut; time_t t; ut.ut_time = t;
17878 return 0;
17880 _ACEOF
17881 rm -f conftest.$ac_objext
17882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17883 (eval $ac_compile) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try='test -s conftest.$ac_objext'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 samba_cv_HAVE_UT_UT_TIME=yes
17894 else
17895 echo "$as_me: failed program was:" >&5
17896 cat conftest.$ac_ext >&5
17897 samba_cv_HAVE_UT_UT_TIME=no
17899 rm -f conftest.$ac_objext conftest.$ac_ext
17901 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
17902 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
17903 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
17905 cat >>confdefs.h <<\_ACEOF
17906 #define HAVE_UT_UT_TIME 1
17907 _ACEOF
17911 echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
17912 echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
17913 if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 else
17917 cat >conftest.$ac_ext <<_ACEOF
17918 #line $LINENO "configure"
17919 #include "confdefs.h"
17920 #include <sys/types.h>
17921 #include <utmp.h>
17922 #ifdef F77_DUMMY_MAIN
17923 # ifdef __cplusplus
17924 extern "C"
17925 # endif
17926 int F77_DUMMY_MAIN() { return 1; }
17927 #endif
17929 main ()
17931 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
17933 return 0;
17935 _ACEOF
17936 rm -f conftest.$ac_objext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17938 (eval $ac_compile) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -s conftest.$ac_objext'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 samba_cv_HAVE_UT_UT_TV=yes
17949 else
17950 echo "$as_me: failed program was:" >&5
17951 cat conftest.$ac_ext >&5
17952 samba_cv_HAVE_UT_UT_TV=no
17954 rm -f conftest.$ac_objext conftest.$ac_ext
17956 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
17957 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
17958 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
17960 cat >>confdefs.h <<\_ACEOF
17961 #define HAVE_UT_UT_TV 1
17962 _ACEOF
17966 echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
17967 echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
17968 if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 else
17972 cat >conftest.$ac_ext <<_ACEOF
17973 #line $LINENO "configure"
17974 #include "confdefs.h"
17975 #include <sys/types.h>
17976 #include <utmp.h>
17977 #ifdef F77_DUMMY_MAIN
17978 # ifdef __cplusplus
17979 extern "C"
17980 # endif
17981 int F77_DUMMY_MAIN() { return 1; }
17982 #endif
17984 main ()
17986 struct utmp ut; ut.ut_type = 0;
17988 return 0;
17990 _ACEOF
17991 rm -f conftest.$ac_objext
17992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17993 (eval $ac_compile) 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -s conftest.$ac_objext'
17998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999 (eval $ac_try) 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; }; then
18003 samba_cv_HAVE_UT_UT_TYPE=yes
18004 else
18005 echo "$as_me: failed program was:" >&5
18006 cat conftest.$ac_ext >&5
18007 samba_cv_HAVE_UT_UT_TYPE=no
18009 rm -f conftest.$ac_objext conftest.$ac_ext
18011 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
18012 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
18013 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
18015 cat >>confdefs.h <<\_ACEOF
18016 #define HAVE_UT_UT_TYPE 1
18017 _ACEOF
18021 echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
18022 echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
18023 if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 else
18027 cat >conftest.$ac_ext <<_ACEOF
18028 #line $LINENO "configure"
18029 #include "confdefs.h"
18030 #include <sys/types.h>
18031 #include <utmp.h>
18032 #ifdef F77_DUMMY_MAIN
18033 # ifdef __cplusplus
18034 extern "C"
18035 # endif
18036 int F77_DUMMY_MAIN() { return 1; }
18037 #endif
18039 main ()
18041 struct utmp ut; ut.ut_pid = 0;
18043 return 0;
18045 _ACEOF
18046 rm -f conftest.$ac_objext
18047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18048 (eval $ac_compile) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
18052 { ac_try='test -s conftest.$ac_objext'
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; }; then
18058 samba_cv_HAVE_UT_UT_PID=yes
18059 else
18060 echo "$as_me: failed program was:" >&5
18061 cat conftest.$ac_ext >&5
18062 samba_cv_HAVE_UT_UT_PID=no
18064 rm -f conftest.$ac_objext conftest.$ac_ext
18066 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
18067 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
18068 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
18070 cat >>confdefs.h <<\_ACEOF
18071 #define HAVE_UT_UT_PID 1
18072 _ACEOF
18076 echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
18077 echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
18078 if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 else
18082 cat >conftest.$ac_ext <<_ACEOF
18083 #line $LINENO "configure"
18084 #include "confdefs.h"
18085 #include <sys/types.h>
18086 #include <utmp.h>
18087 #ifdef F77_DUMMY_MAIN
18088 # ifdef __cplusplus
18089 extern "C"
18090 # endif
18091 int F77_DUMMY_MAIN() { return 1; }
18092 #endif
18094 main ()
18096 struct utmp ut; ut.ut_exit.e_exit = 0;
18098 return 0;
18100 _ACEOF
18101 rm -f conftest.$ac_objext
18102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18103 (eval $ac_compile) 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } &&
18107 { ac_try='test -s conftest.$ac_objext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 samba_cv_HAVE_UT_UT_EXIT=yes
18114 else
18115 echo "$as_me: failed program was:" >&5
18116 cat conftest.$ac_ext >&5
18117 samba_cv_HAVE_UT_UT_EXIT=no
18119 rm -f conftest.$ac_objext conftest.$ac_ext
18121 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
18122 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
18123 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
18125 cat >>confdefs.h <<\_ACEOF
18126 #define HAVE_UT_UT_EXIT 1
18127 _ACEOF
18131 echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
18132 echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
18133 if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
18135 else
18137 cat >conftest.$ac_ext <<_ACEOF
18138 #line $LINENO "configure"
18139 #include "confdefs.h"
18140 #include <sys/types.h>
18141 #include <utmp.h>
18142 #ifdef F77_DUMMY_MAIN
18143 # ifdef __cplusplus
18144 extern "C"
18145 # endif
18146 int F77_DUMMY_MAIN() { return 1; }
18147 #endif
18149 main ()
18151 struct utmp ut; ut.ut_addr = 0;
18153 return 0;
18155 _ACEOF
18156 rm -f conftest.$ac_objext
18157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18158 (eval $ac_compile) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
18162 { ac_try='test -s conftest.$ac_objext'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 samba_cv_HAVE_UT_UT_ADDR=yes
18169 else
18170 echo "$as_me: failed program was:" >&5
18171 cat conftest.$ac_ext >&5
18172 samba_cv_HAVE_UT_UT_ADDR=no
18174 rm -f conftest.$ac_objext conftest.$ac_ext
18176 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
18177 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
18178 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
18180 cat >>confdefs.h <<\_ACEOF
18181 #define HAVE_UT_UT_ADDR 1
18182 _ACEOF
18186 if test x$ac_cv_func_pututline = xyes ; then
18187 echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
18188 echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
18189 if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 else
18193 cat >conftest.$ac_ext <<_ACEOF
18194 #line $LINENO "configure"
18195 #include "confdefs.h"
18196 #include <sys/types.h>
18197 #include <utmp.h>
18198 #ifdef F77_DUMMY_MAIN
18199 # ifdef __cplusplus
18200 extern "C"
18201 # endif
18202 int F77_DUMMY_MAIN() { return 1; }
18203 #endif
18205 main ()
18207 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
18209 return 0;
18211 _ACEOF
18212 rm -f conftest.$ac_objext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214 (eval $ac_compile) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -s conftest.$ac_objext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
18225 else
18226 echo "$as_me: failed program was:" >&5
18227 cat conftest.$ac_ext >&5
18228 samba_cv_PUTUTLINE_RETURNS_UTMP=no
18230 rm -f conftest.$ac_objext conftest.$ac_ext
18232 echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
18233 echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
18234 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
18236 cat >>confdefs.h <<\_ACEOF
18237 #define PUTUTLINE_RETURNS_UTMP 1
18238 _ACEOF
18243 echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
18244 echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
18245 if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18249 cat >conftest.$ac_ext <<_ACEOF
18250 #line $LINENO "configure"
18251 #include "confdefs.h"
18252 #include <sys/types.h>
18253 #include <utmpx.h>
18254 #ifdef F77_DUMMY_MAIN
18255 # ifdef __cplusplus
18256 extern "C"
18257 # endif
18258 int F77_DUMMY_MAIN() { return 1; }
18259 #endif
18261 main ()
18263 struct utmpx ux; ux.ut_syslen = 0;
18265 return 0;
18267 _ACEOF
18268 rm -f conftest.$ac_objext
18269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18270 (eval $ac_compile) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
18274 { ac_try='test -s conftest.$ac_objext'
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; }; then
18280 samba_cv_HAVE_UX_UT_SYSLEN=yes
18281 else
18282 echo "$as_me: failed program was:" >&5
18283 cat conftest.$ac_ext >&5
18284 samba_cv_HAVE_UX_UT_SYSLEN=no
18286 rm -f conftest.$ac_objext conftest.$ac_ext
18288 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
18289 echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
18290 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
18292 cat >>confdefs.h <<\_ACEOF
18293 #define HAVE_UX_UT_SYSLEN 1
18294 _ACEOF
18299 #################################################
18300 # check for libiconv support
18301 echo "$as_me:$LINENO: checking whether to use libiconv" >&5
18302 echo $ECHO_N "checking whether to use libiconv... $ECHO_C" >&6
18304 # Check whether --with-libiconv or --without-libiconv was given.
18305 if test "${with_libiconv+set}" = set; then
18306 withval="$with_libiconv"
18307 case "$withval" in
18309 echo "$as_me:$LINENO: result: no" >&5
18310 echo "${ECHO_T}no" >&6
18313 echo "$as_me:$LINENO: result: yes" >&5
18314 echo "${ECHO_T}yes" >&6
18315 CFLAGS="$CFLAGS -I$withval/include"
18316 LDFLAGS="$LDFLAGS -L$withval/lib"
18318 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
18319 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
18320 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 else
18323 ac_check_lib_save_LIBS=$LIBS
18324 LIBS="-liconv $LIBS"
18325 cat >conftest.$ac_ext <<_ACEOF
18326 #line $LINENO "configure"
18327 #include "confdefs.h"
18329 /* Override any gcc2 internal prototype to avoid an error. */
18330 #ifdef __cplusplus
18331 extern "C"
18332 #endif
18333 /* We use char because int might match the return type of a gcc2
18334 builtin and then its argument prototype would still apply. */
18335 char iconv_open ();
18336 #ifdef F77_DUMMY_MAIN
18337 # ifdef __cplusplus
18338 extern "C"
18339 # endif
18340 int F77_DUMMY_MAIN() { return 1; }
18341 #endif
18343 main ()
18345 iconv_open ();
18347 return 0;
18349 _ACEOF
18350 rm -f conftest.$ac_objext conftest$ac_exeext
18351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18352 (eval $ac_link) 2>&5
18353 ac_status=$?
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } &&
18356 { ac_try='test -s conftest$ac_exeext'
18357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358 (eval $ac_try) 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 ac_cv_lib_iconv_iconv_open=yes
18363 else
18364 echo "$as_me: failed program was:" >&5
18365 cat conftest.$ac_ext >&5
18366 ac_cv_lib_iconv_iconv_open=no
18368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18369 LIBS=$ac_check_lib_save_LIBS
18371 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
18372 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
18373 if test $ac_cv_lib_iconv_iconv_open = yes; then
18374 cat >>confdefs.h <<_ACEOF
18375 #define HAVE_LIBICONV 1
18376 _ACEOF
18378 LIBS="-liconv $LIBS"
18383 cat >>confdefs.h <<_ACEOF
18384 #define WITH_LIBICONV "${withval}"
18385 _ACEOF
18388 esac
18389 else
18390 echo "$as_me:$LINENO: result: no" >&5
18391 echo "${ECHO_T}no" >&6
18396 ############
18397 # check for iconv in libc
18398 echo "$as_me:$LINENO: checking for working iconv" >&5
18399 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6
18400 if test "${samba_cv_HAVE_NATIVE_ICONV+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18402 else
18404 if test "$cross_compiling" = yes; then
18405 samba_cv_HAVE_NATIVE_ICONV=cross
18406 else
18407 cat >conftest.$ac_ext <<_ACEOF
18408 #line $LINENO "configure"
18409 #include "confdefs.h"
18411 #include <iconv.h>
18412 main() {
18413 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
18414 if (cd == 0 || cd == (iconv_t)-1) return -1;
18415 return 0;
18418 _ACEOF
18419 rm -f conftest$ac_exeext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421 (eval $ac_link) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 samba_cv_HAVE_NATIVE_ICONV=yes
18431 else
18432 echo "$as_me: program exited with status $ac_status" >&5
18433 echo "$as_me: failed program was:" >&5
18434 cat conftest.$ac_ext >&5
18435 ( exit $ac_status )
18436 samba_cv_HAVE_NATIVE_ICONV=no
18438 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18441 echo "$as_me:$LINENO: result: $samba_cv_HAVE_NATIVE_ICONV" >&5
18442 echo "${ECHO_T}$samba_cv_HAVE_NATIVE_ICONV" >&6
18443 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
18445 cat >>confdefs.h <<\_ACEOF
18446 #define HAVE_NATIVE_ICONV 1
18447 _ACEOF
18452 echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
18453 echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
18454 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
18456 else
18458 if test "$cross_compiling" = yes; then
18459 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
18460 else
18461 cat >conftest.$ac_ext <<_ACEOF
18462 #line $LINENO "configure"
18463 #include "confdefs.h"
18465 #include <sys/types.h>
18466 #include <fcntl.h>
18467 #ifndef F_GETLEASE
18468 #define F_GETLEASE 1025
18469 #endif
18470 main() {
18471 int fd = open("/dev/null", O_RDONLY);
18472 return fcntl(fd, F_GETLEASE, 0) == -1;
18475 _ACEOF
18476 rm -f conftest$ac_exeext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18478 (eval $ac_link) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
18488 else
18489 echo "$as_me: program exited with status $ac_status" >&5
18490 echo "$as_me: failed program was:" >&5
18491 cat conftest.$ac_ext >&5
18492 ( exit $ac_status )
18493 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
18495 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18498 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
18499 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
18500 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
18502 cat >>confdefs.h <<\_ACEOF
18503 #define HAVE_KERNEL_OPLOCKS_LINUX 1
18504 _ACEOF
18508 echo "$as_me:$LINENO: checking for kernel change notify support" >&5
18509 echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
18510 if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18514 if test "$cross_compiling" = yes; then
18515 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
18516 else
18517 cat >conftest.$ac_ext <<_ACEOF
18518 #line $LINENO "configure"
18519 #include "confdefs.h"
18521 #include <sys/types.h>
18522 #include <fcntl.h>
18523 #include <signal.h>
18524 #ifndef F_NOTIFY
18525 #define F_NOTIFY 1026
18526 #endif
18527 main() {
18528 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
18531 _ACEOF
18532 rm -f conftest$ac_exeext
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534 (eval $ac_link) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
18544 else
18545 echo "$as_me: program exited with status $ac_status" >&5
18546 echo "$as_me: failed program was:" >&5
18547 cat conftest.$ac_ext >&5
18548 ( exit $ac_status )
18549 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
18551 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18554 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
18555 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
18556 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
18558 cat >>confdefs.h <<\_ACEOF
18559 #define HAVE_KERNEL_CHANGE_NOTIFY 1
18560 _ACEOF
18564 echo "$as_me:$LINENO: checking for kernel share modes" >&5
18565 echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
18566 if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18570 if test "$cross_compiling" = yes; then
18571 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
18572 else
18573 cat >conftest.$ac_ext <<_ACEOF
18574 #line $LINENO "configure"
18575 #include "confdefs.h"
18577 #include <sys/types.h>
18578 #include <fcntl.h>
18579 #include <signal.h>
18580 #include <sys/file.h>
18581 #ifndef LOCK_MAND
18582 #define LOCK_MAND 32
18583 #define LOCK_READ 64
18584 #endif
18585 main() {
18586 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
18589 _ACEOF
18590 rm -f conftest$ac_exeext
18591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18592 (eval $ac_link) 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
18602 else
18603 echo "$as_me: program exited with status $ac_status" >&5
18604 echo "$as_me: failed program was:" >&5
18605 cat conftest.$ac_ext >&5
18606 ( exit $ac_status )
18607 samba_cv_HAVE_KERNEL_SHARE_MODES=no
18609 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18612 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
18613 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
18614 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
18616 cat >>confdefs.h <<\_ACEOF
18617 #define HAVE_KERNEL_SHARE_MODES 1
18618 _ACEOF
18625 echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
18626 echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
18627 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 else
18631 cat >conftest.$ac_ext <<_ACEOF
18632 #line $LINENO "configure"
18633 #include "confdefs.h"
18634 #include <sys/types.h>
18635 #include <fcntl.h>
18636 #ifdef F77_DUMMY_MAIN
18637 # ifdef __cplusplus
18638 extern "C"
18639 # endif
18640 int F77_DUMMY_MAIN() { return 1; }
18641 #endif
18643 main ()
18645 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
18647 return 0;
18649 _ACEOF
18650 rm -f conftest.$ac_objext
18651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18652 (eval $ac_compile) 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } &&
18656 { ac_try='test -s conftest.$ac_objext'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; }; then
18662 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
18663 else
18664 echo "$as_me: failed program was:" >&5
18665 cat conftest.$ac_ext >&5
18666 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
18668 rm -f conftest.$ac_objext conftest.$ac_ext
18670 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
18671 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
18672 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
18674 cat >>confdefs.h <<\_ACEOF
18675 #define HAVE_KERNEL_OPLOCKS_IRIX 1
18676 _ACEOF
18680 echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
18681 echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
18682 if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
18683 echo $ECHO_N "(cached) $ECHO_C" >&6
18684 else
18686 if test "$cross_compiling" = yes; then
18687 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
18688 else
18689 cat >conftest.$ac_ext <<_ACEOF
18690 #line $LINENO "configure"
18691 #include "confdefs.h"
18692 #include <sys/types.h>
18693 #include <sys/capability.h>
18694 main() {
18695 cap_t cap;
18696 if ((cap = cap_get_proc()) == NULL)
18697 exit(1);
18698 cap->cap_effective |= CAP_NETWORK_MGT;
18699 cap->cap_inheritable |= CAP_NETWORK_MGT;
18700 cap_set_proc(cap);
18701 exit(0);
18704 _ACEOF
18705 rm -f conftest$ac_exeext
18706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18707 (eval $ac_link) 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
18717 else
18718 echo "$as_me: program exited with status $ac_status" >&5
18719 echo "$as_me: failed program was:" >&5
18720 cat conftest.$ac_ext >&5
18721 ( exit $ac_status )
18722 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
18724 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18727 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
18728 echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
18729 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
18731 cat >>confdefs.h <<\_ACEOF
18732 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
18733 _ACEOF
18738 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
18739 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
18742 echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
18743 echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18744 if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18748 cat >conftest.$ac_ext <<_ACEOF
18749 #line $LINENO "configure"
18750 #include "confdefs.h"
18751 #include <sys/types.h>
18752 #if defined(HAVE_RPC_RPC_H)
18753 #include <rpc/rpc.h>
18754 #endif
18755 #ifdef F77_DUMMY_MAIN
18756 # ifdef __cplusplus
18757 extern "C"
18758 # endif
18759 int F77_DUMMY_MAIN() { return 1; }
18760 #endif
18762 main ()
18764 int16 testvar;
18766 return 0;
18768 _ACEOF
18769 rm -f conftest.$ac_objext
18770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18771 (eval $ac_compile) 2>&5
18772 ac_status=$?
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } &&
18775 { ac_try='test -s conftest.$ac_objext'
18776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777 (eval $ac_try) 2>&5
18778 ac_status=$?
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; }; then
18781 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
18782 else
18783 echo "$as_me: failed program was:" >&5
18784 cat conftest.$ac_ext >&5
18785 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
18787 rm -f conftest.$ac_objext conftest.$ac_ext
18789 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
18790 echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
18791 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
18793 cat >>confdefs.h <<\_ACEOF
18794 #define HAVE_INT16_FROM_RPC_RPC_H 1
18795 _ACEOF
18799 echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
18800 echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18801 if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18805 cat >conftest.$ac_ext <<_ACEOF
18806 #line $LINENO "configure"
18807 #include "confdefs.h"
18808 #include <sys/types.h>
18809 #if defined(HAVE_RPC_RPC_H)
18810 #include <rpc/rpc.h>
18811 #endif
18812 #ifdef F77_DUMMY_MAIN
18813 # ifdef __cplusplus
18814 extern "C"
18815 # endif
18816 int F77_DUMMY_MAIN() { return 1; }
18817 #endif
18819 main ()
18821 uint16 testvar;
18823 return 0;
18825 _ACEOF
18826 rm -f conftest.$ac_objext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18828 (eval $ac_compile) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } &&
18832 { ac_try='test -s conftest.$ac_objext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
18839 else
18840 echo "$as_me: failed program was:" >&5
18841 cat conftest.$ac_ext >&5
18842 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
18844 rm -f conftest.$ac_objext conftest.$ac_ext
18846 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
18847 echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
18848 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
18850 cat >>confdefs.h <<\_ACEOF
18851 #define HAVE_UINT16_FROM_RPC_RPC_H 1
18852 _ACEOF
18856 echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
18857 echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18858 if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 else
18862 cat >conftest.$ac_ext <<_ACEOF
18863 #line $LINENO "configure"
18864 #include "confdefs.h"
18865 #include <sys/types.h>
18866 #if defined(HAVE_RPC_RPC_H)
18867 #include <rpc/rpc.h>
18868 #endif
18869 #ifdef F77_DUMMY_MAIN
18870 # ifdef __cplusplus
18871 extern "C"
18872 # endif
18873 int F77_DUMMY_MAIN() { return 1; }
18874 #endif
18876 main ()
18878 int32 testvar;
18880 return 0;
18882 _ACEOF
18883 rm -f conftest.$ac_objext
18884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18885 (eval $ac_compile) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try='test -s conftest.$ac_objext'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; }; then
18895 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
18896 else
18897 echo "$as_me: failed program was:" >&5
18898 cat conftest.$ac_ext >&5
18899 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
18901 rm -f conftest.$ac_objext conftest.$ac_ext
18903 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
18904 echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
18905 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
18907 cat >>confdefs.h <<\_ACEOF
18908 #define HAVE_INT32_FROM_RPC_RPC_H 1
18909 _ACEOF
18913 echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
18914 echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18915 if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 else
18919 cat >conftest.$ac_ext <<_ACEOF
18920 #line $LINENO "configure"
18921 #include "confdefs.h"
18922 #include <sys/types.h>
18923 #if defined(HAVE_RPC_RPC_H)
18924 #include <rpc/rpc.h>
18925 #endif
18926 #ifdef F77_DUMMY_MAIN
18927 # ifdef __cplusplus
18928 extern "C"
18929 # endif
18930 int F77_DUMMY_MAIN() { return 1; }
18931 #endif
18933 main ()
18935 uint32 testvar;
18937 return 0;
18939 _ACEOF
18940 rm -f conftest.$ac_objext
18941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18942 (eval $ac_compile) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } &&
18946 { ac_try='test -s conftest.$ac_objext'
18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948 (eval $ac_try) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; }; then
18952 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
18953 else
18954 echo "$as_me: failed program was:" >&5
18955 cat conftest.$ac_ext >&5
18956 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
18958 rm -f conftest.$ac_objext conftest.$ac_ext
18960 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
18961 echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
18962 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
18964 cat >>confdefs.h <<\_ACEOF
18965 #define HAVE_UINT32_FROM_RPC_RPC_H 1
18966 _ACEOF
18971 echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
18972 echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
18973 if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18975 else
18977 cat >conftest.$ac_ext <<_ACEOF
18978 #line $LINENO "configure"
18979 #include "confdefs.h"
18980 #include <sys/types.h>
18981 #ifdef HAVE_SYS_SECURITY_H
18982 #include <sys/security.h>
18983 #include <prot.h>
18984 #endif /* HAVE_SYS_SECURITY_H */
18985 #if defined(HAVE_RPC_RPC_H)
18986 #include <rpc/rpc.h>
18987 #endif
18988 #ifdef F77_DUMMY_MAIN
18989 # ifdef __cplusplus
18990 extern "C"
18991 # endif
18992 int F77_DUMMY_MAIN() { return 1; }
18993 #endif
18995 main ()
18997 int testvar;
18999 return 0;
19001 _ACEOF
19002 rm -f conftest.$ac_objext
19003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19004 (eval $ac_compile) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try='test -s conftest.$ac_objext'
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
19014 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
19015 else
19016 echo "$as_me: failed program was:" >&5
19017 cat conftest.$ac_ext >&5
19018 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
19020 rm -f conftest.$ac_objext conftest.$ac_ext
19022 echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
19023 echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
19024 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
19026 cat >>confdefs.h <<\_ACEOF
19027 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
19028 _ACEOF
19032 echo "$as_me:$LINENO: checking for test routines" >&5
19033 echo $ECHO_N "checking for test routines... $ECHO_C" >&6
19034 if test "$cross_compiling" = yes; then
19035 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
19036 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
19037 else
19038 cat >conftest.$ac_ext <<_ACEOF
19039 #line $LINENO "configure"
19040 #include "confdefs.h"
19041 #include "${srcdir-.}/tests/trivial.c"
19042 _ACEOF
19043 rm -f conftest$ac_exeext
19044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045 (eval $ac_link) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 echo "$as_me:$LINENO: result: yes" >&5
19055 echo "${ECHO_T}yes" >&6
19056 else
19057 echo "$as_me: program exited with status $ac_status" >&5
19058 echo "$as_me: failed program was:" >&5
19059 cat conftest.$ac_ext >&5
19060 ( exit $ac_status )
19061 { { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
19062 echo "$as_me: error: cant find test code. Aborting config" >&2;}
19063 { (exit 1); exit 1; }; }
19065 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19068 echo "$as_me:$LINENO: checking for ftruncate extend" >&5
19069 echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
19070 if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19074 if test "$cross_compiling" = yes; then
19075 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
19076 else
19077 cat >conftest.$ac_ext <<_ACEOF
19078 #line $LINENO "configure"
19079 #include "confdefs.h"
19080 #include "${srcdir-.}/tests/ftruncate.c"
19081 _ACEOF
19082 rm -f conftest$ac_exeext
19083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19084 (eval $ac_link) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
19093 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
19094 else
19095 echo "$as_me: program exited with status $ac_status" >&5
19096 echo "$as_me: failed program was:" >&5
19097 cat conftest.$ac_ext >&5
19098 ( exit $ac_status )
19099 samba_cv_HAVE_FTRUNCATE_EXTEND=no
19101 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19104 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
19105 echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
19106 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
19108 cat >>confdefs.h <<\_ACEOF
19109 #define HAVE_FTRUNCATE_EXTEND 1
19110 _ACEOF
19114 echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
19115 echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
19116 if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
19117 echo $ECHO_N "(cached) $ECHO_C" >&6
19118 else
19120 if test "$cross_compiling" = yes; then
19121 samba_cv_HAVE_WORKING_AF_LOCAL=cross
19122 else
19123 cat >conftest.$ac_ext <<_ACEOF
19124 #line $LINENO "configure"
19125 #include "confdefs.h"
19126 #include "${srcdir-.}/tests/unixsock.c"
19127 _ACEOF
19128 rm -f conftest$ac_exeext
19129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19130 (eval $ac_link) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; }; then
19139 samba_cv_HAVE_WORKING_AF_LOCAL=yes
19140 else
19141 echo "$as_me: program exited with status $ac_status" >&5
19142 echo "$as_me: failed program was:" >&5
19143 cat conftest.$ac_ext >&5
19144 ( exit $ac_status )
19145 samba_cv_HAVE_WORKING_AF_LOCAL=no
19147 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19150 echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
19151 echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
19152 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
19153 then
19155 cat >>confdefs.h <<\_ACEOF
19156 #define HAVE_WORKING_AF_LOCAL 1
19157 _ACEOF
19161 echo "$as_me:$LINENO: checking for broken getgroups" >&5
19162 echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
19163 if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
19164 echo $ECHO_N "(cached) $ECHO_C" >&6
19165 else
19167 if test "$cross_compiling" = yes; then
19168 samba_cv_HAVE_BROKEN_GETGROUPS=cross
19169 else
19170 cat >conftest.$ac_ext <<_ACEOF
19171 #line $LINENO "configure"
19172 #include "confdefs.h"
19173 #include "${srcdir-.}/tests/getgroups.c"
19174 _ACEOF
19175 rm -f conftest$ac_exeext
19176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19177 (eval $ac_link) 2>&5
19178 ac_status=$?
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; }; then
19186 samba_cv_HAVE_BROKEN_GETGROUPS=yes
19187 else
19188 echo "$as_me: program exited with status $ac_status" >&5
19189 echo "$as_me: failed program was:" >&5
19190 cat conftest.$ac_ext >&5
19191 ( exit $ac_status )
19192 samba_cv_HAVE_BROKEN_GETGROUPS=no
19194 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19197 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
19198 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
19199 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
19201 cat >>confdefs.h <<\_ACEOF
19202 #define HAVE_BROKEN_GETGROUPS 1
19203 _ACEOF
19207 echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
19208 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
19209 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 else
19213 SAVE_CPPFLAGS="$CPPFLAGS"
19214 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
19215 cat >conftest.$ac_ext <<_ACEOF
19216 #line $LINENO "configure"
19217 #include "confdefs.h"
19219 #define REPLACE_GETPASS 1
19220 #define NO_CONFIG_H 1
19221 #define main dont_declare_main
19222 #include "${srcdir-.}/lib/getsmbpass.c"
19223 #undef main
19225 #ifdef F77_DUMMY_MAIN
19226 # ifdef __cplusplus
19227 extern "C"
19228 # endif
19229 int F77_DUMMY_MAIN() { return 1; }
19230 #endif
19232 main ()
19236 return 0;
19238 _ACEOF
19239 rm -f conftest.$ac_objext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241 (eval $ac_compile) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -s conftest.$ac_objext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 samba_cv_REPLACE_GETPASS=yes
19252 else
19253 echo "$as_me: failed program was:" >&5
19254 cat conftest.$ac_ext >&5
19255 samba_cv_REPLACE_GETPASS=no
19257 rm -f conftest.$ac_objext conftest.$ac_ext
19258 CPPFLAGS="$SAVE_CPPFLAGS"
19261 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
19262 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
19263 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
19265 cat >>confdefs.h <<\_ACEOF
19266 #define REPLACE_GETPASS 1
19267 _ACEOF
19271 echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
19272 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
19273 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19275 else
19277 if test "$cross_compiling" = yes; then
19278 samba_cv_REPLACE_INET_NTOA=cross
19279 else
19280 cat >conftest.$ac_ext <<_ACEOF
19281 #line $LINENO "configure"
19282 #include "confdefs.h"
19284 #include <stdio.h>
19285 #include <sys/types.h>
19286 #include <netinet/in.h>
19287 #ifdef HAVE_ARPA_INET_H
19288 #include <arpa/inet.h>
19289 #endif
19290 main() { struct in_addr ip; ip.s_addr = 0x12345678;
19291 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
19292 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
19293 exit(1);}
19294 _ACEOF
19295 rm -f conftest$ac_exeext
19296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19297 (eval $ac_link) 2>&5
19298 ac_status=$?
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 samba_cv_REPLACE_INET_NTOA=yes
19307 else
19308 echo "$as_me: program exited with status $ac_status" >&5
19309 echo "$as_me: failed program was:" >&5
19310 cat conftest.$ac_ext >&5
19311 ( exit $ac_status )
19312 samba_cv_REPLACE_INET_NTOA=no
19314 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19317 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
19318 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
19319 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
19321 cat >>confdefs.h <<\_ACEOF
19322 #define REPLACE_INET_NTOA 1
19323 _ACEOF
19327 echo "$as_me:$LINENO: checking for secure mkstemp" >&5
19328 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
19329 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19333 if test "$cross_compiling" = yes; then
19334 samba_cv_HAVE_SECURE_MKSTEMP=cross
19335 else
19336 cat >conftest.$ac_ext <<_ACEOF
19337 #line $LINENO "configure"
19338 #include "confdefs.h"
19339 #include <stdlib.h>
19340 #include <sys/types.h>
19341 #include <sys/stat.h>
19342 #include <unistd.h>
19343 main() {
19344 struct stat st;
19345 char tpl[20]="/tmp/test.XXXXXX";
19346 int fd = mkstemp(tpl);
19347 if (fd == -1) exit(1);
19348 unlink(tpl);
19349 if (fstat(fd, &st) != 0) exit(1);
19350 if ((st.st_mode & 0777) != 0600) exit(1);
19351 exit(0);
19353 _ACEOF
19354 rm -f conftest$ac_exeext
19355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19356 (eval $ac_link) 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 samba_cv_HAVE_SECURE_MKSTEMP=yes
19366 else
19367 echo "$as_me: program exited with status $ac_status" >&5
19368 echo "$as_me: failed program was:" >&5
19369 cat conftest.$ac_ext >&5
19370 ( exit $ac_status )
19371 samba_cv_HAVE_SECURE_MKSTEMP=no
19373 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19376 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
19377 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
19378 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
19380 cat >>confdefs.h <<\_ACEOF
19381 #define HAVE_SECURE_MKSTEMP 1
19382 _ACEOF
19386 echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
19387 echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
19388 if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19392 if test "$cross_compiling" = yes; then
19393 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
19394 else
19395 cat >conftest.$ac_ext <<_ACEOF
19396 #line $LINENO "configure"
19397 #include "confdefs.h"
19398 #include <unistd.h>
19399 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
19400 _ACEOF
19401 rm -f conftest$ac_exeext
19402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19403 (eval $ac_link) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
19413 else
19414 echo "$as_me: program exited with status $ac_status" >&5
19415 echo "$as_me: failed program was:" >&5
19416 cat conftest.$ac_ext >&5
19417 ( exit $ac_status )
19418 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
19420 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19423 echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
19424 echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
19425 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
19427 cat >>confdefs.h <<\_ACEOF
19428 #define SYSCONF_SC_NGROUPS_MAX 1
19429 _ACEOF
19433 echo "$as_me:$LINENO: checking for root" >&5
19434 echo $ECHO_N "checking for root... $ECHO_C" >&6
19435 if test "${samba_cv_HAVE_ROOT+set}" = set; then
19436 echo $ECHO_N "(cached) $ECHO_C" >&6
19437 else
19439 if test "$cross_compiling" = yes; then
19440 samba_cv_HAVE_ROOT=cross
19441 else
19442 cat >conftest.$ac_ext <<_ACEOF
19443 #line $LINENO "configure"
19444 #include "confdefs.h"
19445 main() { exit(getuid() != 0); }
19446 _ACEOF
19447 rm -f conftest$ac_exeext
19448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19449 (eval $ac_link) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 samba_cv_HAVE_ROOT=yes
19459 else
19460 echo "$as_me: program exited with status $ac_status" >&5
19461 echo "$as_me: failed program was:" >&5
19462 cat conftest.$ac_ext >&5
19463 ( exit $ac_status )
19464 samba_cv_HAVE_ROOT=no
19466 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19469 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
19470 echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
19471 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE_ROOT 1
19475 _ACEOF
19477 else
19478 { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
19479 echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
19482 ##################
19483 # look for a method of finding the list of network interfaces
19484 iface=no;
19485 echo "$as_me:$LINENO: checking for iface AIX" >&5
19486 echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
19487 if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19491 if test "$cross_compiling" = yes; then
19492 samba_cv_HAVE_IFACE_AIX=cross
19493 else
19494 cat >conftest.$ac_ext <<_ACEOF
19495 #line $LINENO "configure"
19496 #include "confdefs.h"
19498 #define HAVE_IFACE_AIX 1
19499 #define AUTOCONF_TEST 1
19500 #include "confdefs.h"
19501 #include "${srcdir-.}/lib/interfaces.c"
19502 _ACEOF
19503 rm -f conftest$ac_exeext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19505 (eval $ac_link) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510 (eval $ac_try) 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; }; then
19514 samba_cv_HAVE_IFACE_AIX=yes
19515 else
19516 echo "$as_me: program exited with status $ac_status" >&5
19517 echo "$as_me: failed program was:" >&5
19518 cat conftest.$ac_ext >&5
19519 ( exit $ac_status )
19520 samba_cv_HAVE_IFACE_AIX=no
19522 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19525 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
19526 echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
19527 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
19528 iface=yes;
19529 cat >>confdefs.h <<\_ACEOF
19530 #define HAVE_IFACE_AIX 1
19531 _ACEOF
19535 if test $iface = no; then
19536 echo "$as_me:$LINENO: checking for iface ifconf" >&5
19537 echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
19538 if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19542 if test "$cross_compiling" = yes; then
19543 samba_cv_HAVE_IFACE_IFCONF=cross
19544 else
19545 cat >conftest.$ac_ext <<_ACEOF
19546 #line $LINENO "configure"
19547 #include "confdefs.h"
19549 #define HAVE_IFACE_IFCONF 1
19550 #define AUTOCONF_TEST 1
19551 #include "confdefs.h"
19552 #include "${srcdir-.}/lib/interfaces.c"
19553 _ACEOF
19554 rm -f conftest$ac_exeext
19555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19556 (eval $ac_link) 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565 samba_cv_HAVE_IFACE_IFCONF=yes
19566 else
19567 echo "$as_me: program exited with status $ac_status" >&5
19568 echo "$as_me: failed program was:" >&5
19569 cat conftest.$ac_ext >&5
19570 ( exit $ac_status )
19571 samba_cv_HAVE_IFACE_IFCONF=no
19573 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19576 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
19577 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
19578 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
19579 iface=yes;
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE_IFACE_IFCONF 1
19582 _ACEOF
19587 if test $iface = no; then
19588 echo "$as_me:$LINENO: checking for iface ifreq" >&5
19589 echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
19590 if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19594 if test "$cross_compiling" = yes; then
19595 samba_cv_HAVE_IFACE_IFREQ=cross
19596 else
19597 cat >conftest.$ac_ext <<_ACEOF
19598 #line $LINENO "configure"
19599 #include "confdefs.h"
19601 #define HAVE_IFACE_IFREQ 1
19602 #define AUTOCONF_TEST 1
19603 #include "confdefs.h"
19604 #include "${srcdir-.}/lib/interfaces.c"
19605 _ACEOF
19606 rm -f conftest$ac_exeext
19607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19608 (eval $ac_link) 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 samba_cv_HAVE_IFACE_IFREQ=yes
19618 else
19619 echo "$as_me: program exited with status $ac_status" >&5
19620 echo "$as_me: failed program was:" >&5
19621 cat conftest.$ac_ext >&5
19622 ( exit $ac_status )
19623 samba_cv_HAVE_IFACE_IFREQ=no
19625 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19628 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
19629 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
19630 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
19631 iface=yes;
19632 cat >>confdefs.h <<\_ACEOF
19633 #define HAVE_IFACE_IFREQ 1
19634 _ACEOF
19640 ################################################
19641 # look for a method of setting the effective uid
19642 seteuid=no;
19643 if test $seteuid = no; then
19644 echo "$as_me:$LINENO: checking for setresuid" >&5
19645 echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
19646 if test "${samba_cv_USE_SETRESUID+set}" = set; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19648 else
19650 if test "$cross_compiling" = yes; then
19651 samba_cv_USE_SETRESUID=cross
19652 else
19653 cat >conftest.$ac_ext <<_ACEOF
19654 #line $LINENO "configure"
19655 #include "confdefs.h"
19657 #define AUTOCONF_TEST 1
19658 #define USE_SETRESUID 1
19659 #include "confdefs.h"
19660 #include "${srcdir-.}/lib/util_sec.c"
19661 _ACEOF
19662 rm -f conftest$ac_exeext
19663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19664 (eval $ac_link) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19673 samba_cv_USE_SETRESUID=yes
19674 else
19675 echo "$as_me: program exited with status $ac_status" >&5
19676 echo "$as_me: failed program was:" >&5
19677 cat conftest.$ac_ext >&5
19678 ( exit $ac_status )
19679 samba_cv_USE_SETRESUID=no
19681 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19684 echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
19685 echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
19686 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
19687 seteuid=yes;
19688 cat >>confdefs.h <<\_ACEOF
19689 #define USE_SETRESUID 1
19690 _ACEOF
19696 if test $seteuid = no; then
19697 echo "$as_me:$LINENO: checking for setreuid" >&5
19698 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
19699 if test "${samba_cv_USE_SETREUID+set}" = set; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 else
19703 if test "$cross_compiling" = yes; then
19704 samba_cv_USE_SETREUID=cross
19705 else
19706 cat >conftest.$ac_ext <<_ACEOF
19707 #line $LINENO "configure"
19708 #include "confdefs.h"
19710 #define AUTOCONF_TEST 1
19711 #define USE_SETREUID 1
19712 #include "confdefs.h"
19713 #include "${srcdir-.}/lib/util_sec.c"
19714 _ACEOF
19715 rm -f conftest$ac_exeext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19717 (eval $ac_link) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 samba_cv_USE_SETREUID=yes
19727 else
19728 echo "$as_me: program exited with status $ac_status" >&5
19729 echo "$as_me: failed program was:" >&5
19730 cat conftest.$ac_ext >&5
19731 ( exit $ac_status )
19732 samba_cv_USE_SETREUID=no
19734 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19737 echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
19738 echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
19739 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
19740 seteuid=yes;
19741 cat >>confdefs.h <<\_ACEOF
19742 #define USE_SETREUID 1
19743 _ACEOF
19748 if test $seteuid = no; then
19749 echo "$as_me:$LINENO: checking for seteuid" >&5
19750 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
19751 if test "${samba_cv_USE_SETEUID+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 else
19755 if test "$cross_compiling" = yes; then
19756 samba_cv_USE_SETEUID=cross
19757 else
19758 cat >conftest.$ac_ext <<_ACEOF
19759 #line $LINENO "configure"
19760 #include "confdefs.h"
19762 #define AUTOCONF_TEST 1
19763 #define USE_SETEUID 1
19764 #include "confdefs.h"
19765 #include "${srcdir-.}/lib/util_sec.c"
19766 _ACEOF
19767 rm -f conftest$ac_exeext
19768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19769 (eval $ac_link) 2>&5
19770 ac_status=$?
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; }; then
19778 samba_cv_USE_SETEUID=yes
19779 else
19780 echo "$as_me: program exited with status $ac_status" >&5
19781 echo "$as_me: failed program was:" >&5
19782 cat conftest.$ac_ext >&5
19783 ( exit $ac_status )
19784 samba_cv_USE_SETEUID=no
19786 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19789 echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
19790 echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
19791 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
19792 seteuid=yes;
19793 cat >>confdefs.h <<\_ACEOF
19794 #define USE_SETEUID 1
19795 _ACEOF
19800 if test $seteuid = no; then
19801 echo "$as_me:$LINENO: checking for setuidx" >&5
19802 echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
19803 if test "${samba_cv_USE_SETUIDX+set}" = set; then
19804 echo $ECHO_N "(cached) $ECHO_C" >&6
19805 else
19807 if test "$cross_compiling" = yes; then
19808 samba_cv_USE_SETUIDX=cross
19809 else
19810 cat >conftest.$ac_ext <<_ACEOF
19811 #line $LINENO "configure"
19812 #include "confdefs.h"
19814 #define AUTOCONF_TEST 1
19815 #define USE_SETUIDX 1
19816 #include "confdefs.h"
19817 #include "${srcdir-.}/lib/util_sec.c"
19818 _ACEOF
19819 rm -f conftest$ac_exeext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19821 (eval $ac_link) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 samba_cv_USE_SETUIDX=yes
19831 else
19832 echo "$as_me: program exited with status $ac_status" >&5
19833 echo "$as_me: failed program was:" >&5
19834 cat conftest.$ac_ext >&5
19835 ( exit $ac_status )
19836 samba_cv_USE_SETUIDX=no
19838 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19841 echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
19842 echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
19843 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
19844 seteuid=yes;
19845 cat >>confdefs.h <<\_ACEOF
19846 #define USE_SETUIDX 1
19847 _ACEOF
19853 echo "$as_me:$LINENO: checking for working mmap" >&5
19854 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19855 if test "${samba_cv_HAVE_MMAP+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19859 if test "$cross_compiling" = yes; then
19860 samba_cv_HAVE_MMAP=cross
19861 else
19862 cat >conftest.$ac_ext <<_ACEOF
19863 #line $LINENO "configure"
19864 #include "confdefs.h"
19865 #include "${srcdir-.}/tests/shared_mmap.c"
19866 _ACEOF
19867 rm -f conftest$ac_exeext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19869 (eval $ac_link) 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19878 samba_cv_HAVE_MMAP=yes
19879 else
19880 echo "$as_me: program exited with status $ac_status" >&5
19881 echo "$as_me: failed program was:" >&5
19882 cat conftest.$ac_ext >&5
19883 ( exit $ac_status )
19884 samba_cv_HAVE_MMAP=no
19886 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19889 echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
19890 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
19891 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
19893 cat >>confdefs.h <<\_ACEOF
19894 #define HAVE_MMAP 1
19895 _ACEOF
19899 echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
19900 echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
19901 if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19905 if test "$cross_compiling" = yes; then
19906 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
19907 else
19908 cat >conftest.$ac_ext <<_ACEOF
19909 #line $LINENO "configure"
19910 #include "confdefs.h"
19911 #include "${srcdir-.}/tests/ftruncroot.c"
19912 _ACEOF
19913 rm -f conftest$ac_exeext
19914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19915 (eval $ac_link) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; }; then
19924 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
19925 else
19926 echo "$as_me: program exited with status $ac_status" >&5
19927 echo "$as_me: failed program was:" >&5
19928 cat conftest.$ac_ext >&5
19929 ( exit $ac_status )
19930 samba_cv_FTRUNCATE_NEEDS_ROOT=no
19932 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19935 echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
19936 echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
19937 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
19939 cat >>confdefs.h <<\_ACEOF
19940 #define FTRUNCATE_NEEDS_ROOT 1
19941 _ACEOF
19945 echo "$as_me:$LINENO: checking for fcntl locking" >&5
19946 echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
19947 if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
19949 else
19951 if test "$cross_compiling" = yes; then
19952 samba_cv_HAVE_FCNTL_LOCK=cross
19953 else
19954 cat >conftest.$ac_ext <<_ACEOF
19955 #line $LINENO "configure"
19956 #include "confdefs.h"
19957 #include "${srcdir-.}/tests/fcntl_lock.c"
19958 _ACEOF
19959 rm -f conftest$ac_exeext
19960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19961 (eval $ac_link) 2>&5
19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966 (eval $ac_try) 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
19970 samba_cv_HAVE_FCNTL_LOCK=yes
19971 else
19972 echo "$as_me: program exited with status $ac_status" >&5
19973 echo "$as_me: failed program was:" >&5
19974 cat conftest.$ac_ext >&5
19975 ( exit $ac_status )
19976 samba_cv_HAVE_FCNTL_LOCK=no
19978 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19981 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
19982 echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
19983 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
19985 cat >>confdefs.h <<\_ACEOF
19986 #define HAVE_FCNTL_LOCK 1
19987 _ACEOF
19991 echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
19992 echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
19993 if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
19994 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 else
19997 if test "$cross_compiling" = yes; then
19998 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
19999 else
20000 cat >conftest.$ac_ext <<_ACEOF
20001 #line $LINENO "configure"
20002 #include "confdefs.h"
20003 #include "${srcdir-.}/tests/fcntl_lock64.c"
20004 _ACEOF
20005 rm -f conftest$ac_exeext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20007 (eval $ac_link) 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20016 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
20017 else
20018 echo "$as_me: program exited with status $ac_status" >&5
20019 echo "$as_me: failed program was:" >&5
20020 cat conftest.$ac_ext >&5
20021 ( exit $ac_status )
20022 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
20024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20027 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
20028 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
20029 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
20031 cat >>confdefs.h <<\_ACEOF
20032 #define HAVE_BROKEN_FCNTL64_LOCKS 1
20033 _ACEOF
20036 else
20039 echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
20040 echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
20041 if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 else
20045 if test "$cross_compiling" = yes; then
20046 samba_cv_HAVE_STRUCT_FLOCK64=cross
20047 else
20048 cat >conftest.$ac_ext <<_ACEOF
20049 #line $LINENO "configure"
20050 #include "confdefs.h"
20052 #if defined(HAVE_UNISTD_H)
20053 #include <unistd.h>
20054 #endif
20055 #include <stdio.h>
20056 #include <stdlib.h>
20058 #ifdef HAVE_FCNTL_H
20059 #include <fcntl.h>
20060 #endif
20062 #ifdef HAVE_SYS_FCNTL_H
20063 #include <sys/fcntl.h>
20064 #endif
20065 main() { struct flock64 fl64;
20066 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
20067 exit(0);
20068 #else
20069 exit(1);
20070 #endif
20072 _ACEOF
20073 rm -f conftest$ac_exeext
20074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20075 (eval $ac_link) 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 samba_cv_HAVE_STRUCT_FLOCK64=yes
20085 else
20086 echo "$as_me: program exited with status $ac_status" >&5
20087 echo "$as_me: failed program was:" >&5
20088 cat conftest.$ac_ext >&5
20089 ( exit $ac_status )
20090 samba_cv_HAVE_STRUCT_FLOCK64=no
20092 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20095 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
20096 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
20098 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
20100 cat >>confdefs.h <<\_ACEOF
20101 #define HAVE_STRUCT_FLOCK64 1
20102 _ACEOF
20107 echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
20108 echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
20109 if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20113 cat >conftest.$ac_ext <<_ACEOF
20114 #line $LINENO "configure"
20115 #include "confdefs.h"
20116 #include <sys/types.h>
20117 #include <sys/stat.h>
20118 #include <unistd.h>
20119 #ifdef F77_DUMMY_MAIN
20120 # ifdef __cplusplus
20121 extern "C"
20122 # endif
20123 int F77_DUMMY_MAIN() { return 1; }
20124 #endif
20126 main ()
20128 struct stat st; st.st_blocks = 0;
20130 return 0;
20132 _ACEOF
20133 rm -f conftest.$ac_objext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20135 (eval $ac_compile) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } &&
20139 { ac_try='test -s conftest.$ac_objext'
20140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141 (eval $ac_try) 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }; then
20145 samba_cv_HAVE_STAT_ST_BLOCKS=yes
20146 else
20147 echo "$as_me: failed program was:" >&5
20148 cat conftest.$ac_ext >&5
20149 samba_cv_HAVE_STAT_ST_BLOCKS=no
20151 rm -f conftest.$ac_objext conftest.$ac_ext
20153 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
20154 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
20155 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
20157 cat >>confdefs.h <<\_ACEOF
20158 #define HAVE_STAT_ST_BLOCKS 1
20159 _ACEOF
20163 echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
20164 echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
20165 if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20167 else
20169 cat >conftest.$ac_ext <<_ACEOF
20170 #line $LINENO "configure"
20171 #include "confdefs.h"
20172 #include <sys/types.h>
20173 #include <sys/stat.h>
20174 #include <unistd.h>
20175 #ifdef F77_DUMMY_MAIN
20176 # ifdef __cplusplus
20177 extern "C"
20178 # endif
20179 int F77_DUMMY_MAIN() { return 1; }
20180 #endif
20182 main ()
20184 struct stat st; st.st_blksize = 0;
20186 return 0;
20188 _ACEOF
20189 rm -f conftest.$ac_objext
20190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20191 (eval $ac_compile) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } &&
20195 { ac_try='test -s conftest.$ac_objext'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
20201 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
20202 else
20203 echo "$as_me: failed program was:" >&5
20204 cat conftest.$ac_ext >&5
20205 samba_cv_HAVE_STAT_ST_BLKSIZE=no
20207 rm -f conftest.$ac_objext conftest.$ac_ext
20209 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
20210 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
20211 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
20213 cat >>confdefs.h <<\_ACEOF
20214 #define HAVE_STAT_ST_BLKSIZE 1
20215 _ACEOF
20219 case "$host_os" in
20220 *linux*)
20221 echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
20222 echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
20223 if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20227 cat >conftest.$ac_ext <<_ACEOF
20228 #line $LINENO "configure"
20229 #include "confdefs.h"
20231 #ifdef HAVE_SYS_VFS_H
20232 #include <sys/vfs.h>
20233 #endif
20234 #ifdef HAVE_SYS_CAPABILITY_H
20235 #include <sys/capability.h>
20236 #endif
20238 #ifdef F77_DUMMY_MAIN
20239 # ifdef __cplusplus
20240 extern "C"
20241 # endif
20242 int F77_DUMMY_MAIN() { return 1; }
20243 #endif
20245 main ()
20247 int i;
20249 return 0;
20251 _ACEOF
20252 rm -f conftest.$ac_objext
20253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20254 (eval $ac_compile) 2>&5
20255 ac_status=$?
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } &&
20258 { ac_try='test -s conftest.$ac_objext'
20259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260 (eval $ac_try) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); }; }; then
20264 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
20265 else
20266 echo "$as_me: failed program was:" >&5
20267 cat conftest.$ac_ext >&5
20268 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
20270 rm -f conftest.$ac_objext conftest.$ac_ext
20272 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
20273 echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
20274 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
20276 cat >>confdefs.h <<\_ACEOF
20277 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
20278 _ACEOF
20282 esac
20284 echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
20285 echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
20286 if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20290 cat >conftest.$ac_ext <<_ACEOF
20291 #line $LINENO "configure"
20292 #include "confdefs.h"
20293 #include <sys/acl.h>
20294 #if defined(HAVE_RPCSVC_NIS_H)
20295 #include <rpcsvc/nis.h>
20296 #endif
20297 #ifdef F77_DUMMY_MAIN
20298 # ifdef __cplusplus
20299 extern "C"
20300 # endif
20301 int F77_DUMMY_MAIN() { return 1; }
20302 #endif
20304 main ()
20306 int i;
20308 return 0;
20310 _ACEOF
20311 rm -f conftest.$ac_objext
20312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20313 (eval $ac_compile) 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
20317 { ac_try='test -s conftest.$ac_objext'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
20324 else
20325 echo "$as_me: failed program was:" >&5
20326 cat conftest.$ac_ext >&5
20327 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
20329 rm -f conftest.$ac_objext conftest.$ac_ext
20331 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
20332 echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
20333 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
20335 cat >>confdefs.h <<\_ACEOF
20336 #define BROKEN_NISPLUS_INCLUDE_FILES 1
20337 _ACEOF
20342 #################################################
20343 # check for smbwrapper support
20344 echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
20345 echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
20347 # Check whether --with-smbwrapper or --without-smbwrapper was given.
20348 if test "${with_smbwrapper+set}" = set; then
20349 withval="$with_smbwrapper"
20350 case "$withval" in
20351 yes)
20352 echo "$as_me:$LINENO: result: yes" >&5
20353 echo "${ECHO_T}yes" >&6
20355 cat >>confdefs.h <<\_ACEOF
20356 #define WITH_SMBWRAPPER 1
20357 _ACEOF
20359 WRAPPROG="bin/smbsh\$(EXEEXT)"
20360 WRAP="bin/smbwrapper.$SHLIBEXT"
20362 if test x$ATTEMPT_WRAP32_BUILD = x; then
20363 WRAP32=""
20364 else
20365 WRAP32=bin/smbwrapper.32.$SHLIBEXT
20368 # Conditions under which smbwrapper should not be built.
20370 if test x$PICFLAG = x; then
20371 echo No support for PIC code - disabling smbwrapper and smbsh
20372 WRAPPROG=""
20373 WRAP=""
20374 WRAP32=""
20375 elif test x$ac_cv_func_syscall = xno; then
20376 echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
20377 echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
20378 WRAPPROG=""
20379 WRAP=""
20380 WRAP32=""
20382 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
20383 SMBWRAPPER="$WRAPPROG $WRAP $WRAP32"
20386 echo "$as_me:$LINENO: result: no" >&5
20387 echo "${ECHO_T}no" >&6
20389 esac
20390 else
20391 echo "$as_me:$LINENO: result: no" >&5
20392 echo "${ECHO_T}no" >&6
20396 #################################################
20397 # check for AFS clear-text auth support
20398 echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
20399 echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
20401 # Check whether --with-afs or --without-afs was given.
20402 if test "${with_afs+set}" = set; then
20403 withval="$with_afs"
20404 case "$withval" in
20405 yes)
20406 echo "$as_me:$LINENO: result: yes" >&5
20407 echo "${ECHO_T}yes" >&6
20409 cat >>confdefs.h <<\_ACEOF
20410 #define WITH_AFS 1
20411 _ACEOF
20415 echo "$as_me:$LINENO: result: no" >&5
20416 echo "${ECHO_T}no" >&6
20418 esac
20419 else
20420 echo "$as_me:$LINENO: result: no" >&5
20421 echo "${ECHO_T}no" >&6
20426 #################################################
20427 # check for the DFS clear-text auth system
20428 echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
20429 echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
20431 # Check whether --with-dfs or --without-dfs was given.
20432 if test "${with_dfs+set}" = set; then
20433 withval="$with_dfs"
20434 case "$withval" in
20435 yes)
20436 echo "$as_me:$LINENO: result: yes" >&5
20437 echo "${ECHO_T}yes" >&6
20439 cat >>confdefs.h <<\_ACEOF
20440 #define WITH_DFS 1
20441 _ACEOF
20445 echo "$as_me:$LINENO: result: no" >&5
20446 echo "${ECHO_T}no" >&6
20448 esac
20449 else
20450 echo "$as_me:$LINENO: result: no" >&5
20451 echo "${ECHO_T}no" >&6
20455 #################################################
20456 # active directory support
20458 with_ads_support=yes
20459 echo "$as_me:$LINENO: checking whether to use Active Directory" >&5
20460 echo $ECHO_N "checking whether to use Active Directory... $ECHO_C" >&6
20463 # Check whether --with-ads or --without-ads was given.
20464 if test "${with_ads+set}" = set; then
20465 withval="$with_ads"
20466 case "$withval" in
20468 with_ads_support=no
20470 esac
20473 if test x"$with_ads_support" = x"yes"; then
20475 cat >>confdefs.h <<\_ACEOF
20476 #define WITH_ADS 1
20477 _ACEOF
20481 echo "$as_me:$LINENO: result: $with_ads_support" >&5
20482 echo "${ECHO_T}$with_ads_support" >&6
20484 FOUND_KRB5=no
20485 if test x"$with_ads_support" = x"yes"; then
20487 #################################################
20488 # check for location of Kerberos 5 install
20489 echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
20490 echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
20492 # Check whether --with-krb5 or --without-krb5 was given.
20493 if test "${with_krb5+set}" = set; then
20494 withval="$with_krb5"
20495 case "$withval" in
20497 echo "$as_me:$LINENO: result: no" >&5
20498 echo "${ECHO_T}no" >&6
20501 echo "$as_me:$LINENO: result: yes" >&5
20502 echo "${ECHO_T}yes" >&6
20503 LIBS="$LIBS -lkrb5"
20504 CFLAGS="$CFLAGS -I$withval/include"
20505 CPPFLAGS="$CPPFLAGS -I$withval/include"
20506 LDFLAGS="$LDFLAGS -L$withval/lib"
20507 FOUND_KRB5=yes
20509 esac
20510 else
20511 echo "$as_me:$LINENO: result: no" >&5
20512 echo "${ECHO_T}no" >&6
20517 if test x$FOUND_KRB5 = x"no"; then
20518 #################################################
20519 # see if this box has the SuSE location for the heimdal kerberos implementation
20520 echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
20521 echo $ECHO_N "checking for /usr/include/heimdal... $ECHO_C" >&6
20522 if test -d /usr/include/heimdal; then
20523 CFLAGS="$CFLAGS -I/usr/include/heimdal"
20524 CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
20525 echo "$as_me:$LINENO: result: yes" >&5
20526 echo "${ECHO_T}yes" >&6
20527 else
20528 echo "$as_me:$LINENO: result: no" >&5
20529 echo "${ECHO_T}no" >&6
20534 if test x$FOUND_KRB5 = x"no"; then
20535 #################################################
20536 # see if this box has the RedHat location for kerberos
20537 echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
20538 echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
20539 if test -d /usr/kerberos; then
20540 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
20541 CFLAGS="$CFLAGS -I/usr/kerberos/include"
20542 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
20543 echo "$as_me:$LINENO: result: yes" >&5
20544 echo "${ECHO_T}yes" >&6
20545 else
20546 echo "$as_me:$LINENO: result: no" >&5
20547 echo "${ECHO_T}no" >&6
20552 # now check for krb5.h. Some systems have the libraries without the headers!
20553 # note that this check is done here to allow for different kerberos
20554 # include paths
20556 for ac_header in krb5.h
20558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20560 echo "$as_me:$LINENO: checking for $ac_header" >&5
20561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20567 else
20568 # Is the header compilable?
20569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20571 cat >conftest.$ac_ext <<_ACEOF
20572 #line $LINENO "configure"
20573 #include "confdefs.h"
20574 $ac_includes_default
20575 #include <$ac_header>
20576 _ACEOF
20577 rm -f conftest.$ac_objext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20579 (eval $ac_compile) 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } &&
20583 { ac_try='test -s conftest.$ac_objext'
20584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20585 (eval $ac_try) 2>&5
20586 ac_status=$?
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; }; then
20589 ac_header_compiler=yes
20590 else
20591 echo "$as_me: failed program was:" >&5
20592 cat conftest.$ac_ext >&5
20593 ac_header_compiler=no
20595 rm -f conftest.$ac_objext conftest.$ac_ext
20596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20597 echo "${ECHO_T}$ac_header_compiler" >&6
20599 # Is the header present?
20600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20602 cat >conftest.$ac_ext <<_ACEOF
20603 #line $LINENO "configure"
20604 #include "confdefs.h"
20605 #include <$ac_header>
20606 _ACEOF
20607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20609 ac_status=$?
20610 egrep -v '^ *\+' conftest.er1 >conftest.err
20611 rm -f conftest.er1
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } >/dev/null; then
20615 if test -s conftest.err; then
20616 ac_cpp_err=$ac_c_preproc_warn_flag
20617 else
20618 ac_cpp_err=
20620 else
20621 ac_cpp_err=yes
20623 if test -z "$ac_cpp_err"; then
20624 ac_header_preproc=yes
20625 else
20626 echo "$as_me: failed program was:" >&5
20627 cat conftest.$ac_ext >&5
20628 ac_header_preproc=no
20630 rm -f conftest.err conftest.$ac_ext
20631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20632 echo "${ECHO_T}$ac_header_preproc" >&6
20634 # So? What about this header?
20635 case $ac_header_compiler:$ac_header_preproc in
20636 yes:no )
20637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20641 no:yes )
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20648 esac
20649 echo "$as_me:$LINENO: checking for $ac_header" >&5
20650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654 eval "$as_ac_Header=$ac_header_preproc"
20656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20661 cat >>confdefs.h <<_ACEOF
20662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20663 _ACEOF
20667 done
20670 # now check for gssapi headers. This is also done here to allow for
20671 # different kerberos include paths
20674 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi.h
20676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20678 echo "$as_me:$LINENO: checking for $ac_header" >&5
20679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20685 else
20686 # Is the header compilable?
20687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20689 cat >conftest.$ac_ext <<_ACEOF
20690 #line $LINENO "configure"
20691 #include "confdefs.h"
20692 $ac_includes_default
20693 #include <$ac_header>
20694 _ACEOF
20695 rm -f conftest.$ac_objext
20696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20697 (eval $ac_compile) 2>&5
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } &&
20701 { ac_try='test -s conftest.$ac_objext'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20704 ac_status=$?
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; }; then
20707 ac_header_compiler=yes
20708 else
20709 echo "$as_me: failed program was:" >&5
20710 cat conftest.$ac_ext >&5
20711 ac_header_compiler=no
20713 rm -f conftest.$ac_objext conftest.$ac_ext
20714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20715 echo "${ECHO_T}$ac_header_compiler" >&6
20717 # Is the header present?
20718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20720 cat >conftest.$ac_ext <<_ACEOF
20721 #line $LINENO "configure"
20722 #include "confdefs.h"
20723 #include <$ac_header>
20724 _ACEOF
20725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20727 ac_status=$?
20728 egrep -v '^ *\+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } >/dev/null; then
20733 if test -s conftest.err; then
20734 ac_cpp_err=$ac_c_preproc_warn_flag
20735 else
20736 ac_cpp_err=
20738 else
20739 ac_cpp_err=yes
20741 if test -z "$ac_cpp_err"; then
20742 ac_header_preproc=yes
20743 else
20744 echo "$as_me: failed program was:" >&5
20745 cat conftest.$ac_ext >&5
20746 ac_header_preproc=no
20748 rm -f conftest.err conftest.$ac_ext
20749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20750 echo "${ECHO_T}$ac_header_preproc" >&6
20752 # So? What about this header?
20753 case $ac_header_compiler:$ac_header_preproc in
20754 yes:no )
20755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20759 no:yes )
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20766 esac
20767 echo "$as_me:$LINENO: checking for $ac_header" >&5
20768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20771 else
20772 eval "$as_ac_Header=$ac_header_preproc"
20774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20779 cat >>confdefs.h <<_ACEOF
20780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20781 _ACEOF
20785 done
20788 ##################################################################
20789 # we might need the k5crypto and com_err libraries on some systems
20790 echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
20791 echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
20792 if test "${ac_cv_lib_com_err__et_list+set}" = set; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795 ac_check_lib_save_LIBS=$LIBS
20796 LIBS="-lcom_err $LIBS"
20797 cat >conftest.$ac_ext <<_ACEOF
20798 #line $LINENO "configure"
20799 #include "confdefs.h"
20801 /* Override any gcc2 internal prototype to avoid an error. */
20802 #ifdef __cplusplus
20803 extern "C"
20804 #endif
20805 /* We use char because int might match the return type of a gcc2
20806 builtin and then its argument prototype would still apply. */
20807 char _et_list ();
20808 #ifdef F77_DUMMY_MAIN
20809 # ifdef __cplusplus
20810 extern "C"
20811 # endif
20812 int F77_DUMMY_MAIN() { return 1; }
20813 #endif
20815 main ()
20817 _et_list ();
20819 return 0;
20821 _ACEOF
20822 rm -f conftest.$ac_objext conftest$ac_exeext
20823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20824 (eval $ac_link) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
20828 { ac_try='test -s conftest$ac_exeext'
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
20834 ac_cv_lib_com_err__et_list=yes
20835 else
20836 echo "$as_me: failed program was:" >&5
20837 cat conftest.$ac_ext >&5
20838 ac_cv_lib_com_err__et_list=no
20840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20841 LIBS=$ac_check_lib_save_LIBS
20843 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err__et_list" >&5
20844 echo "${ECHO_T}$ac_cv_lib_com_err__et_list" >&6
20845 if test $ac_cv_lib_com_err__et_list = yes; then
20846 LIBS="$LIBS -lcom_err"
20849 echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
20850 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
20851 if test "${ac_cv_lib_k5crypto_krb5_encrypt_data+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 else
20854 ac_check_lib_save_LIBS=$LIBS
20855 LIBS="-lk5crypto $LIBS"
20856 cat >conftest.$ac_ext <<_ACEOF
20857 #line $LINENO "configure"
20858 #include "confdefs.h"
20860 /* Override any gcc2 internal prototype to avoid an error. */
20861 #ifdef __cplusplus
20862 extern "C"
20863 #endif
20864 /* We use char because int might match the return type of a gcc2
20865 builtin and then its argument prototype would still apply. */
20866 char krb5_encrypt_data ();
20867 #ifdef F77_DUMMY_MAIN
20868 # ifdef __cplusplus
20869 extern "C"
20870 # endif
20871 int F77_DUMMY_MAIN() { return 1; }
20872 #endif
20874 main ()
20876 krb5_encrypt_data ();
20878 return 0;
20880 _ACEOF
20881 rm -f conftest.$ac_objext conftest$ac_exeext
20882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20883 (eval $ac_link) 2>&5
20884 ac_status=$?
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
20887 { ac_try='test -s conftest$ac_exeext'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; }; then
20893 ac_cv_lib_k5crypto_krb5_encrypt_data=yes
20894 else
20895 echo "$as_me: failed program was:" >&5
20896 cat conftest.$ac_ext >&5
20897 ac_cv_lib_k5crypto_krb5_encrypt_data=no
20899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20900 LIBS=$ac_check_lib_save_LIBS
20902 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_encrypt_data" >&5
20903 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_encrypt_data" >&6
20904 if test $ac_cv_lib_k5crypto_krb5_encrypt_data = yes; then
20905 LIBS="$LIBS -lk5crypto"
20909 ########################################################
20910 # now see if we can find the krb5 libs in standard paths
20911 # or as specified above
20912 echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
20913 echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
20914 if test "${ac_cv_lib_krb5_krb5_mk_req_extended+set}" = set; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 else
20917 ac_check_lib_save_LIBS=$LIBS
20918 LIBS="-lkrb5 $LIBS"
20919 cat >conftest.$ac_ext <<_ACEOF
20920 #line $LINENO "configure"
20921 #include "confdefs.h"
20923 /* Override any gcc2 internal prototype to avoid an error. */
20924 #ifdef __cplusplus
20925 extern "C"
20926 #endif
20927 /* We use char because int might match the return type of a gcc2
20928 builtin and then its argument prototype would still apply. */
20929 char krb5_mk_req_extended ();
20930 #ifdef F77_DUMMY_MAIN
20931 # ifdef __cplusplus
20932 extern "C"
20933 # endif
20934 int F77_DUMMY_MAIN() { return 1; }
20935 #endif
20937 main ()
20939 krb5_mk_req_extended ();
20941 return 0;
20943 _ACEOF
20944 rm -f conftest.$ac_objext conftest$ac_exeext
20945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20946 (eval $ac_link) 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } &&
20950 { ac_try='test -s conftest$ac_exeext'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; }; then
20956 ac_cv_lib_krb5_krb5_mk_req_extended=yes
20957 else
20958 echo "$as_me: failed program was:" >&5
20959 cat conftest.$ac_ext >&5
20960 ac_cv_lib_krb5_krb5_mk_req_extended=no
20962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20963 LIBS=$ac_check_lib_save_LIBS
20965 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_mk_req_extended" >&5
20966 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_mk_req_extended" >&6
20967 if test $ac_cv_lib_krb5_krb5_mk_req_extended = yes; then
20968 LIBS="$LIBS -lkrb5";
20970 cat >>confdefs.h <<\_ACEOF
20971 #define HAVE_KRB5 1
20972 _ACEOF
20977 ########################################################
20978 # now see if we can find the gssapi libs in standard paths
20979 echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
20980 echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
20981 if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
20982 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 else
20984 ac_check_lib_save_LIBS=$LIBS
20985 LIBS="-lgssapi_krb5 $LIBS"
20986 cat >conftest.$ac_ext <<_ACEOF
20987 #line $LINENO "configure"
20988 #include "confdefs.h"
20990 /* Override any gcc2 internal prototype to avoid an error. */
20991 #ifdef __cplusplus
20992 extern "C"
20993 #endif
20994 /* We use char because int might match the return type of a gcc2
20995 builtin and then its argument prototype would still apply. */
20996 char gss_display_status ();
20997 #ifdef F77_DUMMY_MAIN
20998 # ifdef __cplusplus
20999 extern "C"
21000 # endif
21001 int F77_DUMMY_MAIN() { return 1; }
21002 #endif
21004 main ()
21006 gss_display_status ();
21008 return 0;
21010 _ACEOF
21011 rm -f conftest.$ac_objext conftest$ac_exeext
21012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21013 (eval $ac_link) 2>&5
21014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } &&
21017 { ac_try='test -s conftest$ac_exeext'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 ac_cv_lib_gssapi_krb5_gss_display_status=yes
21024 else
21025 echo "$as_me: failed program was:" >&5
21026 cat conftest.$ac_ext >&5
21027 ac_cv_lib_gssapi_krb5_gss_display_status=no
21029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21030 LIBS=$ac_check_lib_save_LIBS
21032 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
21033 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6
21034 if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
21035 LIBS="$LIBS -lgssapi_krb5";
21037 cat >>confdefs.h <<\_ACEOF
21038 #define HAVE_GSSAPI 1
21039 _ACEOF
21045 ########################################################
21046 # Compile with LDAP support?
21048 with_ldap_support=yes
21049 echo "$as_me:$LINENO: checking whether to use LDAP" >&5
21050 echo $ECHO_N "checking whether to use LDAP... $ECHO_C" >&6
21053 # Check whether --with-ldap or --without-ldap was given.
21054 if test "${with_ldap+set}" = set; then
21055 withval="$with_ldap"
21056 case "$withval" in
21058 with_ldap_support=no
21060 esac
21063 echo "$as_me:$LINENO: result: $with_ldap_support" >&5
21064 echo "${ECHO_T}$with_ldap_support" >&6
21066 if test x"$with_ldap_support" = x"yes"; then
21068 ##################################################################
21069 # we might need the lber lib on some systems. To avoid link errors
21070 # this test must be before the libldap test
21071 echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
21072 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
21073 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
21074 echo $ECHO_N "(cached) $ECHO_C" >&6
21075 else
21076 ac_check_lib_save_LIBS=$LIBS
21077 LIBS="-llber $LIBS"
21078 cat >conftest.$ac_ext <<_ACEOF
21079 #line $LINENO "configure"
21080 #include "confdefs.h"
21082 /* Override any gcc2 internal prototype to avoid an error. */
21083 #ifdef __cplusplus
21084 extern "C"
21085 #endif
21086 /* We use char because int might match the return type of a gcc2
21087 builtin and then its argument prototype would still apply. */
21088 char ber_scanf ();
21089 #ifdef F77_DUMMY_MAIN
21090 # ifdef __cplusplus
21091 extern "C"
21092 # endif
21093 int F77_DUMMY_MAIN() { return 1; }
21094 #endif
21096 main ()
21098 ber_scanf ();
21100 return 0;
21102 _ACEOF
21103 rm -f conftest.$ac_objext conftest$ac_exeext
21104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21105 (eval $ac_link) 2>&5
21106 ac_status=$?
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } &&
21109 { ac_try='test -s conftest$ac_exeext'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 ac_cv_lib_lber_ber_scanf=yes
21116 else
21117 echo "$as_me: failed program was:" >&5
21118 cat conftest.$ac_ext >&5
21119 ac_cv_lib_lber_ber_scanf=no
21121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21122 LIBS=$ac_check_lib_save_LIBS
21124 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
21125 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6
21126 if test $ac_cv_lib_lber_ber_scanf = yes; then
21127 LIBS="$LIBS -llber"
21131 ########################################################
21132 # now see if we can find the ldap libs in standard paths
21133 if test x$have_ldap != xyes; then
21134 echo "$as_me:$LINENO: checking for ldap_domain2hostlist in -lldap" >&5
21135 echo $ECHO_N "checking for ldap_domain2hostlist in -lldap... $ECHO_C" >&6
21136 if test "${ac_cv_lib_ldap_ldap_domain2hostlist+set}" = set; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21138 else
21139 ac_check_lib_save_LIBS=$LIBS
21140 LIBS="-lldap $LIBS"
21141 cat >conftest.$ac_ext <<_ACEOF
21142 #line $LINENO "configure"
21143 #include "confdefs.h"
21145 /* Override any gcc2 internal prototype to avoid an error. */
21146 #ifdef __cplusplus
21147 extern "C"
21148 #endif
21149 /* We use char because int might match the return type of a gcc2
21150 builtin and then its argument prototype would still apply. */
21151 char ldap_domain2hostlist ();
21152 #ifdef F77_DUMMY_MAIN
21153 # ifdef __cplusplus
21154 extern "C"
21155 # endif
21156 int F77_DUMMY_MAIN() { return 1; }
21157 #endif
21159 main ()
21161 ldap_domain2hostlist ();
21163 return 0;
21165 _ACEOF
21166 rm -f conftest.$ac_objext conftest$ac_exeext
21167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21168 (eval $ac_link) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
21172 { ac_try='test -s conftest$ac_exeext'
21173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174 (eval $ac_try) 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; }; then
21178 ac_cv_lib_ldap_ldap_domain2hostlist=yes
21179 else
21180 echo "$as_me: failed program was:" >&5
21181 cat conftest.$ac_ext >&5
21182 ac_cv_lib_ldap_ldap_domain2hostlist=no
21184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21185 LIBS=$ac_check_lib_save_LIBS
21187 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_domain2hostlist" >&5
21188 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_domain2hostlist" >&6
21189 if test $ac_cv_lib_ldap_ldap_domain2hostlist = yes; then
21190 LIBS="$LIBS -lldap";
21192 cat >>confdefs.h <<\_ACEOF
21193 #define HAVE_LDAP 1
21194 _ACEOF
21199 ########################################################
21200 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
21201 # Check found in pam_ldap 145.
21203 for ac_func in ldap_set_rebind_proc
21205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21206 echo "$as_me:$LINENO: checking for $ac_func" >&5
21207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21208 if eval "test \"\${$as_ac_var+set}\" = set"; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211 cat >conftest.$ac_ext <<_ACEOF
21212 #line $LINENO "configure"
21213 #include "confdefs.h"
21214 /* System header to define __stub macros and hopefully few prototypes,
21215 which can conflict with char $ac_func (); below. */
21216 #include <assert.h>
21217 /* Override any gcc2 internal prototype to avoid an error. */
21218 #ifdef __cplusplus
21219 extern "C"
21220 #endif
21221 /* We use char because int might match the return type of a gcc2
21222 builtin and then its argument prototype would still apply. */
21223 char $ac_func ();
21224 char (*f) ();
21226 #ifdef F77_DUMMY_MAIN
21227 # ifdef __cplusplus
21228 extern "C"
21229 # endif
21230 int F77_DUMMY_MAIN() { return 1; }
21231 #endif
21233 main ()
21235 /* The GNU C library defines this for functions which it implements
21236 to always fail with ENOSYS. Some functions are actually named
21237 something starting with __ and the normal name is an alias. */
21238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21239 choke me
21240 #else
21241 f = $ac_func;
21242 #endif
21245 return 0;
21247 _ACEOF
21248 rm -f conftest.$ac_objext conftest$ac_exeext
21249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21250 (eval $ac_link) 2>&5
21251 ac_status=$?
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
21254 { ac_try='test -s conftest$ac_exeext'
21255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256 (eval $ac_try) 2>&5
21257 ac_status=$?
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); }; }; then
21260 eval "$as_ac_var=yes"
21261 else
21262 echo "$as_me: failed program was:" >&5
21263 cat conftest.$ac_ext >&5
21264 eval "$as_ac_var=no"
21266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21270 if test `eval echo '${'$as_ac_var'}'` = yes; then
21271 cat >>confdefs.h <<_ACEOF
21272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21273 _ACEOF
21276 done
21278 echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
21279 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
21280 if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21284 cat >conftest.$ac_ext <<_ACEOF
21285 #line $LINENO "configure"
21286 #include "confdefs.h"
21288 #include <lber.h>
21289 #include <ldap.h>
21290 #ifdef F77_DUMMY_MAIN
21291 # ifdef __cplusplus
21292 extern "C"
21293 # endif
21294 int F77_DUMMY_MAIN() { return 1; }
21295 #endif
21297 main ()
21299 ldap_set_rebind_proc(0, 0, 0);
21301 return 0;
21303 _ACEOF
21304 rm -f conftest.$ac_objext
21305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21306 (eval $ac_compile) 2>&5
21307 ac_status=$?
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } &&
21310 { ac_try='test -s conftest.$ac_objext'
21311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312 (eval $ac_try) 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; }; then
21316 pam_ldap_cv_ldap_set_rebind_proc=3
21317 else
21318 echo "$as_me: failed program was:" >&5
21319 cat conftest.$ac_ext >&5
21320 pam_ldap_cv_ldap_set_rebind_proc=2
21322 rm -f conftest.$ac_objext conftest.$ac_ext
21324 echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
21325 echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
21327 cat >>confdefs.h <<_ACEOF
21328 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
21329 _ACEOF
21334 ########################################################
21335 # Compile with MySQL support?
21337 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
21338 if test "${with_mysql_prefix+set}" = set; then
21339 withval="$with_mysql_prefix"
21340 mysql_prefix="$withval"
21341 else
21342 mysql_prefix=""
21345 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
21346 if test "${with_mysql_exec_prefix+set}" = set; then
21347 withval="$with_mysql_exec_prefix"
21348 mysql_exec_prefix="$withval"
21349 else
21350 mysql_exec_prefix=""
21352 # Check whether --enable-mysqltest or --disable-mysqltest was given.
21353 if test "${enable_mysqltest+set}" = set; then
21354 enableval="$enable_mysqltest"
21356 else
21357 enable_mysqltest=yes
21360 if test x$mysql_exec_prefix != x ; then
21361 mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
21362 if test x${MYSQL_CONFIG+set} != xset ; then
21363 MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
21366 if test x$mysql_prefix != x ; then
21367 mysql_args="$mysql_args --prefix=$mysql_prefix"
21368 if test x${MYSQL_CONFIG+set} != xset ; then
21369 MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
21374 # Extract the first word of "mysql_config", so it can be a program name with args.
21375 set dummy mysql_config; ac_word=$2
21376 echo "$as_me:$LINENO: checking for $ac_word" >&5
21377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21378 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 else
21381 case $MYSQL_CONFIG in
21382 [\\/]* | ?:[\\/]*)
21383 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
21386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21387 for as_dir in $PATH
21389 IFS=$as_save_IFS
21390 test -z "$as_dir" && as_dir=.
21391 for ac_exec_ext in '' $ac_executable_extensions; do
21392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21393 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21395 break 2
21397 done
21398 done
21400 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
21402 esac
21404 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
21406 if test -n "$MYSQL_CONFIG"; then
21407 echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
21408 echo "${ECHO_T}$MYSQL_CONFIG" >&6
21409 else
21410 echo "$as_me:$LINENO: result: no" >&5
21411 echo "${ECHO_T}no" >&6
21414 min_mysql_version=0.11.0
21415 echo "$as_me:$LINENO: checking for MYSQL - version >= $min_mysql_version" >&5
21416 echo $ECHO_N "checking for MYSQL - version >= $min_mysql_version... $ECHO_C" >&6
21417 no_mysql=""
21418 if test "$MYSQL_CONFIG" = "no" ; then
21419 no_mysql=yes
21420 else
21421 MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
21422 MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
21424 mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
21425 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21426 mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
21427 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21428 mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
21429 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21430 if test "x$enable_mysqltest" = "xyes" ; then
21431 ac_save_CFLAGS="$CFLAGS"
21432 ac_save_LIBS="$LIBS"
21433 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21434 LIBS="$LIBS $MYSQL_LIBS"
21435 rm -f conf.mysqltest
21436 if test "$cross_compiling" = yes; then
21437 echo $ac_n "cross compiling; assumed OK... $ac_c"
21438 else
21439 cat >conftest.$ac_ext <<_ACEOF
21440 #line $LINENO "configure"
21441 #include "confdefs.h"
21443 #include <stdio.h>
21444 #include <stdlib.h>
21445 #include <string.h>
21446 #include <mysql.h>
21448 char*
21449 my_strdup (char *str)
21451 char *new_str;
21453 if (str)
21455 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
21456 strcpy (new_str, str);
21458 else
21459 new_str = NULL;
21461 return new_str;
21464 int main (int argc, char *argv[])
21466 int major, minor, micro;
21467 char *tmp_version;
21469 /* This hangs on some systems (?)
21470 system ("touch conf.mysqltest");
21472 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
21474 /* HP/UX 9 (%@#!) writes to sscanf strings */
21475 tmp_version = my_strdup("$min_mysql_version");
21476 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21477 printf("%s, bad version string\n", "$min_mysql_version");
21478 exit(1);
21481 if (($mysql_major_version > major) ||
21482 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
21483 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
21485 return 0;
21487 else
21489 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
21490 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
21491 printf("*** best to upgrade to the required version.\n");
21492 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
21493 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
21494 printf("*** config.cache before re-running configure\n");
21495 return 1;
21500 _ACEOF
21501 rm -f conftest$ac_exeext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21503 (eval $ac_link) 2>&5
21504 ac_status=$?
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; }; then
21513 else
21514 echo "$as_me: program exited with status $ac_status" >&5
21515 echo "$as_me: failed program was:" >&5
21516 cat conftest.$ac_ext >&5
21517 ( exit $ac_status )
21518 no_mysql=yes
21520 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21522 CFLAGS="$ac_save_CFLAGS"
21523 LIBS="$ac_save_LIBS"
21526 if test "x$no_mysql" = x ; then
21527 echo "$as_me:$LINENO: result: yes" >&5
21528 echo "${ECHO_T}yes" >&6
21529 MODULE_MYSQL=bin/mysql.so
21530 else
21531 echo "$as_me:$LINENO: result: no" >&5
21532 echo "${ECHO_T}no" >&6
21533 if test "$MYSQL_CONFIG" = "no" ; then
21534 echo "*** The mysql_config script installed by MYSQL could not be found"
21535 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
21536 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
21537 echo "*** full path to mysql_config."
21538 else
21539 if test -f conf.mysqltest ; then
21541 else
21542 echo "*** Could not run MYSQL test program, checking why..."
21543 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21544 LIBS="$LIBS $MYSQL_LIBS"
21545 cat >conftest.$ac_ext <<_ACEOF
21546 #line $LINENO "configure"
21547 #include "confdefs.h"
21549 #include <stdio.h>
21550 #include <mysql.h>
21552 int main(int argc, char *argv[])
21553 { return 0; }
21554 #undef main
21555 #define main K_and_R_C_main
21557 #ifdef F77_DUMMY_MAIN
21558 # ifdef __cplusplus
21559 extern "C"
21560 # endif
21561 int F77_DUMMY_MAIN() { return 1; }
21562 #endif
21564 main ()
21566 return 0;
21568 return 0;
21570 _ACEOF
21571 rm -f conftest.$ac_objext conftest$ac_exeext
21572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21573 (eval $ac_link) 2>&5
21574 ac_status=$?
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } &&
21577 { ac_try='test -s conftest$ac_exeext'
21578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579 (eval $ac_try) 2>&5
21580 ac_status=$?
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); }; }; then
21583 echo "*** The test program compiled, but did not run. This usually means"
21584 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
21585 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
21586 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21587 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21588 echo "*** is required on your system"
21589 echo "***"
21590 echo "*** If you have an old version installed, it is best to remove it, although"
21591 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21592 else
21593 echo "$as_me: failed program was:" >&5
21594 cat conftest.$ac_ext >&5
21595 echo "*** The test program failed to compile or link. See the file config.log for the"
21596 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
21597 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
21598 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
21600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21601 CFLAGS="$ac_save_CFLAGS"
21602 LIBS="$ac_save_LIBS"
21605 MYSQL_CFLAGS=""
21606 MYSQL_LIBS=""
21607 MODULE_MYSQL=
21611 rm -f conf.mysqltest
21613 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21616 ########################################################
21617 # Compile with XML support?
21620 # Check whether --with-xml-prefix or --without-xml-prefix was given.
21621 if test "${with_xml_prefix+set}" = set; then
21622 withval="$with_xml_prefix"
21623 xml_config_prefix="$withval"
21624 else
21625 xml_config_prefix=""
21628 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
21629 if test "${with_xml_exec_prefix+set}" = set; then
21630 withval="$with_xml_exec_prefix"
21631 xml_config_exec_prefix="$withval"
21632 else
21633 xml_config_exec_prefix=""
21635 # Check whether --enable-xmltest or --disable-xmltest was given.
21636 if test "${enable_xmltest+set}" = set; then
21637 enableval="$enable_xmltest"
21639 else
21640 enable_xmltest=yes
21643 if test x$xml_config_exec_prefix != x ; then
21644 xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
21645 if test x${XML2_CONFIG+set} != xset ; then
21646 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
21649 if test x$xml_config_prefix != x ; then
21650 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
21651 if test x${XML2_CONFIG+set} != xset ; then
21652 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
21656 # Extract the first word of "xml2-config", so it can be a program name with args.
21657 set dummy xml2-config; ac_word=$2
21658 echo "$as_me:$LINENO: checking for $ac_word" >&5
21659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21660 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21662 else
21663 case $XML2_CONFIG in
21664 [\\/]* | ?:[\\/]*)
21665 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
21668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21669 for as_dir in $PATH
21671 IFS=$as_save_IFS
21672 test -z "$as_dir" && as_dir=.
21673 for ac_exec_ext in '' $ac_executable_extensions; do
21674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21675 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21677 break 2
21679 done
21680 done
21682 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
21684 esac
21686 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
21688 if test -n "$XML2_CONFIG"; then
21689 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
21690 echo "${ECHO_T}$XML2_CONFIG" >&6
21691 else
21692 echo "$as_me:$LINENO: result: no" >&5
21693 echo "${ECHO_T}no" >&6
21696 min_xml_version=2.0.0
21697 echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
21698 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
21699 no_xml=""
21700 if test "$XML2_CONFIG" = "no" ; then
21701 no_xml=yes
21702 else
21703 XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
21704 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
21705 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
21706 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21707 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
21708 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21709 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
21710 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21711 if test "x$enable_xmltest" = "xyes" ; then
21712 ac_save_CFLAGS="$CFLAGS"
21713 ac_save_LIBS="$LIBS"
21714 CFLAGS="$CFLAGS $XML_CFLAGS"
21715 LIBS="$XML_LIBS $LIBS"
21716 rm -f conf.xmltest
21717 if test "$cross_compiling" = yes; then
21718 echo $ac_n "cross compiling; assumed OK... $ac_c"
21719 else
21720 cat >conftest.$ac_ext <<_ACEOF
21721 #line $LINENO "configure"
21722 #include "confdefs.h"
21724 #include <stdlib.h>
21725 #include <stdio.h>
21726 #include <string.h>
21727 #include <libxml/xmlversion.h>
21730 main()
21732 int xml_major_version, xml_minor_version, xml_micro_version;
21733 int major, minor, micro;
21734 char *tmp_version;
21736 system("touch conf.xmltest");
21738 /* Capture xml2-config output via autoconf/configure variables */
21739 /* HP/UX 9 (%@#!) writes to sscanf strings */
21740 tmp_version = (char *)strdup("$min_xml_version");
21741 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21742 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
21743 exit(1);
21745 free(tmp_version);
21747 /* Capture the version information from the header files */
21748 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
21749 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
21750 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
21751 exit(1);
21753 free(tmp_version);
21755 /* Compare xml2-config output to the libxml headers */
21756 if ((xml_major_version != $xml_config_major_version) ||
21757 (xml_minor_version != $xml_config_minor_version) ||
21758 (xml_micro_version != $xml_config_micro_version))
21760 printf("*** libxml header files (version %d.%d.%d) do not match\n",
21761 xml_major_version, xml_minor_version, xml_micro_version);
21762 printf("*** xml2-config (version %d.%d.%d)\n",
21763 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
21764 return 1;
21766 /* Compare the headers to the library to make sure we match */
21767 /* Less than ideal -- doesn't provide us with return value feedback,
21768 * only exits if there's a serious mismatch between header and library.
21770 LIBXML_TEST_VERSION;
21772 /* Test that the library is greater than our minimum version */
21773 if ((xml_major_version > major) ||
21774 ((xml_major_version == major) && (xml_minor_version > minor)) ||
21775 ((xml_major_version == major) && (xml_minor_version == minor) &&
21776 (xml_micro_version >= micro)))
21778 return 0;
21780 else
21782 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
21783 xml_major_version, xml_minor_version, xml_micro_version);
21784 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
21785 major, minor, micro);
21786 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
21787 printf("***\n");
21788 printf("*** If you have already installed a sufficiently new version, this error\n");
21789 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
21790 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21791 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
21792 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
21793 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21794 printf("*** so that the correct libraries are found at run-time))\n");
21796 return 1;
21799 _ACEOF
21800 rm -f conftest$ac_exeext
21801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21802 (eval $ac_link) 2>&5
21803 ac_status=$?
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
21812 else
21813 echo "$as_me: program exited with status $ac_status" >&5
21814 echo "$as_me: failed program was:" >&5
21815 cat conftest.$ac_ext >&5
21816 ( exit $ac_status )
21817 no_xml=yes
21819 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21821 CFLAGS="$ac_save_CFLAGS"
21822 LIBS="$ac_save_LIBS"
21826 if test "x$no_xml" = x ; then
21827 echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
21828 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
21829 MODULE_XML=bin/xml.so
21830 else
21831 echo "$as_me:$LINENO: result: no" >&5
21832 echo "${ECHO_T}no" >&6
21833 if test "$XML2_CONFIG" = "no" ; then
21834 echo "*** The xml2-config script installed by LIBXML could not be found"
21835 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
21836 echo "*** your path, or set the XML2_CONFIG environment variable to the"
21837 echo "*** full path to xml2-config."
21838 else
21839 if test -f conf.xmltest ; then
21841 else
21842 echo "*** Could not run libxml test program, checking why..."
21843 CFLAGS="$CFLAGS $XML_CFLAGS"
21844 LIBS="$LIBS $XML_LIBS"
21845 cat >conftest.$ac_ext <<_ACEOF
21846 #line $LINENO "configure"
21847 #include "confdefs.h"
21849 #include <libxml/xmlversion.h>
21850 #include <stdio.h>
21852 #ifdef F77_DUMMY_MAIN
21853 # ifdef __cplusplus
21854 extern "C"
21855 # endif
21856 int F77_DUMMY_MAIN() { return 1; }
21857 #endif
21859 main ()
21861 LIBXML_TEST_VERSION; return 0;
21863 return 0;
21865 _ACEOF
21866 rm -f conftest.$ac_objext conftest$ac_exeext
21867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21868 (eval $ac_link) 2>&5
21869 ac_status=$?
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } &&
21872 { ac_try='test -s conftest$ac_exeext'
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21875 ac_status=$?
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; }; then
21878 echo "*** The test program compiled, but did not run. This usually means"
21879 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
21880 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
21881 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21882 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21883 echo "*** is required on your system"
21884 echo "***"
21885 echo "*** If you have an old version installed, it is best to remove it, although"
21886 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21887 else
21888 echo "$as_me: failed program was:" >&5
21889 cat conftest.$ac_ext >&5
21890 echo "*** The test program failed to compile or link. See the file config.log for the"
21891 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
21892 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
21893 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
21895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21896 CFLAGS="$ac_save_CFLAGS"
21897 LIBS="$ac_save_LIBS"
21901 XML_CFLAGS=""
21902 XML_LIBS=""
21903 MODULE_XML=
21907 rm -f conf.xmltest
21909 CFLAGS="$CFLAGS $XML_CFLAGS"
21912 #################################################
21913 # check for automount support
21914 echo "$as_me:$LINENO: checking whether to use automount" >&5
21915 echo $ECHO_N "checking whether to use automount... $ECHO_C" >&6
21917 # Check whether --with-automount or --without-automount was given.
21918 if test "${with_automount+set}" = set; then
21919 withval="$with_automount"
21920 case "$withval" in
21921 yes)
21922 echo "$as_me:$LINENO: result: yes" >&5
21923 echo "${ECHO_T}yes" >&6
21925 cat >>confdefs.h <<\_ACEOF
21926 #define WITH_AUTOMOUNT 1
21927 _ACEOF
21931 echo "$as_me:$LINENO: result: no" >&5
21932 echo "${ECHO_T}no" >&6
21934 esac
21935 else
21936 echo "$as_me:$LINENO: result: no" >&5
21937 echo "${ECHO_T}no" >&6
21941 #################################################
21942 # check for smbmount support
21943 echo "$as_me:$LINENO: checking whether to use smbmount" >&5
21944 echo $ECHO_N "checking whether to use smbmount... $ECHO_C" >&6
21946 # Check whether --with-smbmount or --without-smbmount was given.
21947 if test "${with_smbmount+set}" = set; then
21948 withval="$with_smbmount"
21949 case "$withval" in
21950 yes)
21951 case "$host_os" in
21952 *linux*)
21953 echo "$as_me:$LINENO: result: yes" >&5
21954 echo "${ECHO_T}yes" >&6
21956 cat >>confdefs.h <<\_ACEOF
21957 #define WITH_SMBMOUNT 1
21958 _ACEOF
21960 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
21963 { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
21964 echo "$as_me: error: not on a linux system!" >&2;}
21965 { (exit 1); exit 1; }; }
21967 esac
21970 echo "$as_me:$LINENO: result: no" >&5
21971 echo "${ECHO_T}no" >&6
21973 esac
21974 else
21975 echo "$as_me:$LINENO: result: no" >&5
21976 echo "${ECHO_T}no" >&6
21981 #################################################
21982 # check for a PAM clear-text auth, accounts, password and session support
21983 with_pam_for_crypt=no
21984 echo "$as_me:$LINENO: checking whether to use PAM" >&5
21985 echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
21987 # Check whether --with-pam or --without-pam was given.
21988 if test "${with_pam+set}" = set; then
21989 withval="$with_pam"
21990 case "$withval" in
21991 yes)
21992 echo "$as_me:$LINENO: result: yes" >&5
21993 echo "${ECHO_T}yes" >&6
21995 cat >>confdefs.h <<\_ACEOF
21996 #define WITH_PAM 1
21997 _ACEOF
21999 AUTHLIBS="$AUTHLIBS -lpam"
22000 with_pam_for_crypt=yes
22003 echo "$as_me:$LINENO: result: no" >&5
22004 echo "${ECHO_T}no" >&6
22006 esac
22007 else
22008 echo "$as_me:$LINENO: result: no" >&5
22009 echo "${ECHO_T}no" >&6
22013 # we can't build a pam module if we don't have pam.
22014 echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
22015 echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
22016 if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019 ac_check_lib_save_LIBS=$LIBS
22020 LIBS="-lpam $LIBS"
22021 cat >conftest.$ac_ext <<_ACEOF
22022 #line $LINENO "configure"
22023 #include "confdefs.h"
22025 /* Override any gcc2 internal prototype to avoid an error. */
22026 #ifdef __cplusplus
22027 extern "C"
22028 #endif
22029 /* We use char because int might match the return type of a gcc2
22030 builtin and then its argument prototype would still apply. */
22031 char pam_get_data ();
22032 #ifdef F77_DUMMY_MAIN
22033 # ifdef __cplusplus
22034 extern "C"
22035 # endif
22036 int F77_DUMMY_MAIN() { return 1; }
22037 #endif
22039 main ()
22041 pam_get_data ();
22043 return 0;
22045 _ACEOF
22046 rm -f conftest.$ac_objext conftest$ac_exeext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22048 (eval $ac_link) 2>&5
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } &&
22052 { ac_try='test -s conftest$ac_exeext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 ac_cv_lib_pam_pam_get_data=yes
22059 else
22060 echo "$as_me: failed program was:" >&5
22061 cat conftest.$ac_ext >&5
22062 ac_cv_lib_pam_pam_get_data=no
22064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22065 LIBS=$ac_check_lib_save_LIBS
22067 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
22068 echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
22069 if test $ac_cv_lib_pam_pam_get_data = yes; then
22071 cat >>confdefs.h <<\_ACEOF
22072 #define HAVE_LIBPAM 1
22073 _ACEOF
22078 #################################################
22079 # check for pam_smbpass support
22080 echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
22081 echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
22083 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
22084 if test "${with_pam_smbpass+set}" = set; then
22085 withval="$with_pam_smbpass"
22086 case "$withval" in
22087 yes)
22088 echo "$as_me:$LINENO: result: yes" >&5
22089 echo "${ECHO_T}yes" >&6
22091 # Conditions under which pam_smbpass should not be built.
22093 if test x$PICFLAG = x; then
22094 echo "$as_me:$LINENO: result: No support for PIC code - disabling pam_smbpass" >&5
22095 echo "${ECHO_T}No support for PIC code - disabling pam_smbpass" >&6
22096 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
22097 echo "$as_me:$LINENO: result: No libpam found -- disabling pam_smbpass" >&5
22098 echo "${ECHO_T}No libpam found -- disabling pam_smbpass" >&6
22099 else
22100 SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.so"
22104 echo "$as_me:$LINENO: result: no" >&5
22105 echo "${ECHO_T}no" >&6
22107 esac
22108 else
22109 echo "$as_me:$LINENO: result: no" >&5
22110 echo "${ECHO_T}no" >&6
22115 ###############################################
22116 # test for where we get crypt() from, but only
22117 # if not using PAM
22118 if test x"$with_pam_for_crypt" = x"no"; then
22120 for ac_func in crypt
22122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22123 echo "$as_me:$LINENO: checking for $ac_func" >&5
22124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22125 if eval "test \"\${$as_ac_var+set}\" = set"; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22127 else
22128 cat >conftest.$ac_ext <<_ACEOF
22129 #line $LINENO "configure"
22130 #include "confdefs.h"
22131 /* System header to define __stub macros and hopefully few prototypes,
22132 which can conflict with char $ac_func (); below. */
22133 #include <assert.h>
22134 /* Override any gcc2 internal prototype to avoid an error. */
22135 #ifdef __cplusplus
22136 extern "C"
22137 #endif
22138 /* We use char because int might match the return type of a gcc2
22139 builtin and then its argument prototype would still apply. */
22140 char $ac_func ();
22141 char (*f) ();
22143 #ifdef F77_DUMMY_MAIN
22144 # ifdef __cplusplus
22145 extern "C"
22146 # endif
22147 int F77_DUMMY_MAIN() { return 1; }
22148 #endif
22150 main ()
22152 /* The GNU C library defines this for functions which it implements
22153 to always fail with ENOSYS. Some functions are actually named
22154 something starting with __ and the normal name is an alias. */
22155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22156 choke me
22157 #else
22158 f = $ac_func;
22159 #endif
22162 return 0;
22164 _ACEOF
22165 rm -f conftest.$ac_objext conftest$ac_exeext
22166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22167 (eval $ac_link) 2>&5
22168 ac_status=$?
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } &&
22171 { ac_try='test -s conftest$ac_exeext'
22172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173 (eval $ac_try) 2>&5
22174 ac_status=$?
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); }; }; then
22177 eval "$as_ac_var=yes"
22178 else
22179 echo "$as_me: failed program was:" >&5
22180 cat conftest.$ac_ext >&5
22181 eval "$as_ac_var=no"
22183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22187 if test `eval echo '${'$as_ac_var'}'` = yes; then
22188 cat >>confdefs.h <<_ACEOF
22189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22190 _ACEOF
22193 done
22195 if test x"$ac_cv_func_crypt" = x"no"; then
22196 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22197 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22198 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22199 echo $ECHO_N "(cached) $ECHO_C" >&6
22200 else
22201 ac_check_lib_save_LIBS=$LIBS
22202 LIBS="-lcrypt $LIBS"
22203 cat >conftest.$ac_ext <<_ACEOF
22204 #line $LINENO "configure"
22205 #include "confdefs.h"
22207 /* Override any gcc2 internal prototype to avoid an error. */
22208 #ifdef __cplusplus
22209 extern "C"
22210 #endif
22211 /* We use char because int might match the return type of a gcc2
22212 builtin and then its argument prototype would still apply. */
22213 char crypt ();
22214 #ifdef F77_DUMMY_MAIN
22215 # ifdef __cplusplus
22216 extern "C"
22217 # endif
22218 int F77_DUMMY_MAIN() { return 1; }
22219 #endif
22221 main ()
22223 crypt ();
22225 return 0;
22227 _ACEOF
22228 rm -f conftest.$ac_objext conftest$ac_exeext
22229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22230 (eval $ac_link) 2>&5
22231 ac_status=$?
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } &&
22234 { ac_try='test -s conftest$ac_exeext'
22235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236 (eval $ac_try) 2>&5
22237 ac_status=$?
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); }; }; then
22240 ac_cv_lib_crypt_crypt=yes
22241 else
22242 echo "$as_me: failed program was:" >&5
22243 cat conftest.$ac_ext >&5
22244 ac_cv_lib_crypt_crypt=no
22246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22247 LIBS=$ac_check_lib_save_LIBS
22249 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22250 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22251 if test $ac_cv_lib_crypt_crypt = yes; then
22252 AUTHLIBS="$AUTHLIBS -lcrypt";
22254 cat >>confdefs.h <<\_ACEOF
22255 #define HAVE_CRYPT 1
22256 _ACEOF
22264 ## moved after the check for -lcrypt in order to
22265 ## ensure that the necessary libraries are included
22266 ## check checking for truncated salt. Wrapped by the
22267 ## $with_pam_for_crypt variable as above --jerry
22269 if test $with_pam_for_crypt = no; then
22270 echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
22271 echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
22272 if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
22273 echo $ECHO_N "(cached) $ECHO_C" >&6
22274 else
22276 crypt_LIBS="$LIBS"
22277 LIBS="$AUTHLIBS $LIBS"
22278 if test "$cross_compiling" = yes; then
22279 samba_cv_HAVE_TRUNCATED_SALT=cross
22280 else
22281 cat >conftest.$ac_ext <<_ACEOF
22282 #line $LINENO "configure"
22283 #include "confdefs.h"
22284 #include "${srcdir-.}/tests/crypttest.c"
22285 _ACEOF
22286 rm -f conftest$ac_exeext
22287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22288 (eval $ac_link) 2>&5
22289 ac_status=$?
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; }; then
22297 samba_cv_HAVE_TRUNCATED_SALT=no
22298 else
22299 echo "$as_me: program exited with status $ac_status" >&5
22300 echo "$as_me: failed program was:" >&5
22301 cat conftest.$ac_ext >&5
22302 ( exit $ac_status )
22303 samba_cv_HAVE_TRUNCATED_SALT=yes
22305 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22307 LIBS="$crypt_LIBS"
22309 echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
22310 echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
22311 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
22313 cat >>confdefs.h <<\_ACEOF
22314 #define HAVE_TRUNCATED_SALT 1
22315 _ACEOF
22320 # New experimental SAM system
22322 echo "$as_me:$LINENO: checking whether to build the new (experimental) SAM database" >&5
22323 echo $ECHO_N "checking whether to build the new (experimental) SAM database... $ECHO_C" >&6
22325 # Check whether --with-sam or --without-sam was given.
22326 if test "${with_sam+set}" = set; then
22327 withval="$with_sam"
22328 case "$withval" in
22329 yes)
22330 echo "$as_me:$LINENO: result: yes" >&5
22331 echo "${ECHO_T}yes" >&6
22333 cat >>confdefs.h <<\_ACEOF
22334 #define WITH_SAM 1
22335 _ACEOF
22339 echo "$as_me:$LINENO: result: no" >&5
22340 echo "${ECHO_T}no" >&6
22342 esac
22343 else
22344 echo "$as_me:$LINENO: result: no" >&5
22345 echo "${ECHO_T}no" >&6
22350 ########################################################################################
22352 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
22354 ########################################################################################
22356 #################################################
22357 # check for a LDAP password database configuration backwards compatibility
22358 echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
22359 echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
22361 # Check whether --with-ldapsam or --without-ldapsam was given.
22362 if test "${with_ldapsam+set}" = set; then
22363 withval="$with_ldapsam"
22364 case "$withval" in
22365 yes)
22366 echo "$as_me:$LINENO: result: yes" >&5
22367 echo "${ECHO_T}yes" >&6
22369 cat >>confdefs.h <<\_ACEOF
22370 #define WITH_LDAP_SAMCONFIG 1
22371 _ACEOF
22375 echo "$as_me:$LINENO: result: no" >&5
22376 echo "${ECHO_T}no" >&6
22378 esac
22379 else
22380 echo "$as_me:$LINENO: result: no" >&5
22381 echo "${ECHO_T}no" >&6
22385 #################################################
22386 # check for a TDB password database
22387 echo "$as_me:$LINENO: checking whether to use TDB SAM database" >&5
22388 echo $ECHO_N "checking whether to use TDB SAM database... $ECHO_C" >&6
22390 # Check whether --with-tdbsam or --without-tdbsam was given.
22391 if test "${with_tdbsam+set}" = set; then
22392 withval="$with_tdbsam"
22393 case "$withval" in
22394 yes)
22395 echo "$as_me:$LINENO: result: yes" >&5
22396 echo "${ECHO_T}yes" >&6
22398 cat >>confdefs.h <<\_ACEOF
22399 #define WITH_TDB_SAM 1
22400 _ACEOF
22404 echo "$as_me:$LINENO: result: no" >&5
22405 echo "${ECHO_T}no" >&6
22407 esac
22408 else
22409 echo "$as_me:$LINENO: result: no" >&5
22410 echo "${ECHO_T}no" >&6
22414 #################################################
22415 # check for a NISPLUS password database
22416 echo "$as_me:$LINENO: checking whether to use NISPLUS SAM database" >&5
22417 echo $ECHO_N "checking whether to use NISPLUS SAM database... $ECHO_C" >&6
22419 # Check whether --with-nisplussam or --without-nisplussam was given.
22420 if test "${with_nisplussam+set}" = set; then
22421 withval="$with_nisplussam"
22422 case "$withval" in
22423 yes)
22424 echo "$as_me:$LINENO: result: yes" >&5
22425 echo "${ECHO_T}yes" >&6
22427 cat >>confdefs.h <<\_ACEOF
22428 #define WITH_NISPLUS_SAM 1
22429 _ACEOF
22433 echo "$as_me:$LINENO: result: no" >&5
22434 echo "${ECHO_T}no" >&6
22436 esac
22437 else
22438 echo "$as_me:$LINENO: result: no" >&5
22439 echo "${ECHO_T}no" >&6
22443 ########################################################################################
22445 ## END OF TESTS FOR SAM BACKENDS.
22447 ########################################################################################
22449 #################################################
22450 # check for a NISPLUS_HOME support
22451 echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
22452 echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
22454 # Check whether --with-nisplus-home or --without-nisplus-home was given.
22455 if test "${with_nisplus_home+set}" = set; then
22456 withval="$with_nisplus_home"
22457 case "$withval" in
22458 yes)
22459 echo "$as_me:$LINENO: result: yes" >&5
22460 echo "${ECHO_T}yes" >&6
22462 cat >>confdefs.h <<\_ACEOF
22463 #define WITH_NISPLUS_HOME 1
22464 _ACEOF
22468 echo "$as_me:$LINENO: result: no" >&5
22469 echo "${ECHO_T}no" >&6
22471 esac
22472 else
22473 echo "$as_me:$LINENO: result: no" >&5
22474 echo "${ECHO_T}no" >&6
22478 #################################################
22479 # check for syslog logging
22480 echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
22481 echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
22483 # Check whether --with-syslog or --without-syslog was given.
22484 if test "${with_syslog+set}" = set; then
22485 withval="$with_syslog"
22486 case "$withval" in
22487 yes)
22488 echo "$as_me:$LINENO: result: yes" >&5
22489 echo "${ECHO_T}yes" >&6
22491 cat >>confdefs.h <<\_ACEOF
22492 #define WITH_SYSLOG 1
22493 _ACEOF
22497 echo "$as_me:$LINENO: result: no" >&5
22498 echo "${ECHO_T}no" >&6
22500 esac
22501 else
22502 echo "$as_me:$LINENO: result: no" >&5
22503 echo "${ECHO_T}no" >&6
22507 #################################################
22508 # check for a shared memory profiling support
22509 echo "$as_me:$LINENO: checking whether to use profiling" >&5
22510 echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
22512 # Check whether --with-profiling-data or --without-profiling-data was given.
22513 if test "${with_profiling_data+set}" = set; then
22514 withval="$with_profiling_data"
22515 case "$withval" in
22516 yes)
22517 echo "$as_me:$LINENO: result: yes" >&5
22518 echo "${ECHO_T}yes" >&6
22520 cat >>confdefs.h <<\_ACEOF
22521 #define WITH_PROFILE 1
22522 _ACEOF
22526 echo "$as_me:$LINENO: result: no" >&5
22527 echo "${ECHO_T}no" >&6
22529 esac
22530 else
22531 echo "$as_me:$LINENO: result: no" >&5
22532 echo "${ECHO_T}no" >&6
22537 #################################################
22538 # check for experimental disk-quotas support
22539 QUOTAOBJS=smbd/noquotas.o
22541 echo "$as_me:$LINENO: checking whether to support disk-quotas" >&5
22542 echo $ECHO_N "checking whether to support disk-quotas... $ECHO_C" >&6
22544 # Check whether --with-quotas or --without-quotas was given.
22545 if test "${with_quotas+set}" = set; then
22546 withval="$with_quotas"
22547 case "$withval" in
22548 yes)
22549 echo "$as_me:$LINENO: result: yes" >&5
22550 echo "${ECHO_T}yes" >&6
22551 case "$host_os" in
22552 *linux*)
22553 # Check for kernel 2.4.x quota braindamage...
22554 echo "$as_me:$LINENO: checking for linux 2.4.x quota braindamage.." >&5
22555 echo $ECHO_N "checking for linux 2.4.x quota braindamage..... $ECHO_C" >&6
22556 if test "${samba_cv_linux_2_4_quota_braindamage+set}" = set; then
22557 echo $ECHO_N "(cached) $ECHO_C" >&6
22558 else
22560 cat >conftest.$ac_ext <<_ACEOF
22561 #line $LINENO "configure"
22562 #include "confdefs.h"
22563 #include <stdio.h>
22564 #include <sys/types.h>
22565 #include <asm/types.h>
22566 #include <linux/quota.h>
22567 #include <mntent.h>
22568 #include <linux/unistd.h>
22569 #ifdef F77_DUMMY_MAIN
22570 # ifdef __cplusplus
22571 extern "C"
22572 # endif
22573 int F77_DUMMY_MAIN() { return 1; }
22574 #endif
22576 main ()
22578 struct mem_dqblk D;
22580 return 0;
22582 _ACEOF
22583 rm -f conftest.$ac_objext
22584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22585 (eval $ac_compile) 2>&5
22586 ac_status=$?
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); } &&
22589 { ac_try='test -s conftest.$ac_objext'
22590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22591 (eval $ac_try) 2>&5
22592 ac_status=$?
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); }; }; then
22595 samba_cv_linux_2_4_quota_braindamage=yes
22596 else
22597 echo "$as_me: failed program was:" >&5
22598 cat conftest.$ac_ext >&5
22599 samba_cv_linux_2_4_quota_braindamage=no
22601 rm -f conftest.$ac_objext conftest.$ac_ext
22603 echo "$as_me:$LINENO: result: $samba_cv_linux_2_4_quota_braindamage" >&5
22604 echo "${ECHO_T}$samba_cv_linux_2_4_quota_braindamage" >&6
22605 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
22607 cat >>confdefs.h <<\_ACEOF
22608 #define LINUX_QUOTAS_2 1
22609 _ACEOF
22611 else
22613 cat >>confdefs.h <<\_ACEOF
22614 #define LINUX_QUOTAS_1 1
22615 _ACEOF
22621 esac
22622 QUOTAOBJS=smbd/quotas.o
22624 cat >>confdefs.h <<\_ACEOF
22625 #define WITH_QUOTAS 1
22626 _ACEOF
22630 echo "$as_me:$LINENO: result: no" >&5
22631 echo "${ECHO_T}no" >&6
22633 esac
22634 else
22635 echo "$as_me:$LINENO: result: no" >&5
22636 echo "${ECHO_T}no" >&6
22641 #################################################
22642 # check for experimental utmp accounting
22644 echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
22645 echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
22647 # Check whether --with-utmp or --without-utmp was given.
22648 if test "${with_utmp+set}" = set; then
22649 withval="$with_utmp"
22650 case "$withval" in
22651 yes)
22652 echo "$as_me:$LINENO: result: yes" >&5
22653 echo "${ECHO_T}yes" >&6
22655 cat >>confdefs.h <<\_ACEOF
22656 #define WITH_UTMP 1
22657 _ACEOF
22661 echo "$as_me:$LINENO: result: no" >&5
22662 echo "${ECHO_T}no" >&6
22664 esac
22665 else
22666 echo "$as_me:$LINENO: result: no" >&5
22667 echo "${ECHO_T}no" >&6
22671 #################################################
22672 # choose native language(s) of man pages
22673 echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
22674 echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
22676 # Check whether --with-manpages-langs or --without-manpages-langs was given.
22677 if test "${with_manpages_langs+set}" = set; then
22678 withval="$with_manpages_langs"
22679 case "$withval" in
22680 yes|no)
22681 { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
22682 echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
22683 manlangs="en"
22686 manlangs="$withval"
22688 esac
22690 echo "$as_me:$LINENO: result: $manlangs" >&5
22691 echo "${ECHO_T}$manlangs" >&6
22692 manlangs=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
22694 else
22695 manlangs="en"
22696 echo "$as_me:$LINENO: result: $manlangs" >&5
22697 echo "${ECHO_T}$manlangs" >&6
22702 #################################################
22703 # should we build libsmbclient?
22705 LIBSMBCLIENT_SHARED=
22706 LIBSMBCLIENT=
22707 echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
22708 echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
22710 # Check whether --with-libsmbclient or --without-libsmbclient was given.
22711 if test "${with_libsmbclient+set}" = set; then
22712 withval="$with_libsmbclient"
22713 case "$withval" in
22715 echo "$as_me:$LINENO: result: no" >&5
22716 echo "${ECHO_T}no" >&6
22719 if test $BLDSHARED = true; then
22720 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
22721 LIBSMBCLIENT=libsmbclient
22722 echo "$as_me:$LINENO: result: yes" >&5
22723 echo "${ECHO_T}yes" >&6
22724 else
22725 echo "$as_me:$LINENO: result: no shared library support" >&5
22726 echo "${ECHO_T}no shared library support" >&6
22729 esac
22730 else
22731 echo "$as_me:$LINENO: result: yes" >&5
22732 echo "${ECHO_T}yes" >&6
22737 #################################################
22738 # these tests are taken from the GNU fileutils package
22739 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
22740 echo "$as_me: checking how to get filesystem space usage..." >&6;}
22741 space=no
22743 # Test for statvfs64.
22744 if test $space = no; then
22745 # SVR4
22746 echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
22747 echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
22748 if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
22749 echo $ECHO_N "(cached) $ECHO_C" >&6
22750 else
22751 if test "$cross_compiling" = yes; then
22752 fu_cv_sys_stat_statvfs64=cross
22753 else
22754 cat >conftest.$ac_ext <<_ACEOF
22755 #line $LINENO "configure"
22756 #include "confdefs.h"
22758 #if defined(HAVE_UNISTD_H)
22759 #include <unistd.h>
22760 #endif
22761 #include <sys/types.h>
22762 #include <sys/statvfs.h>
22763 main ()
22765 struct statvfs64 fsd;
22766 exit (statvfs64 (".", &fsd));
22768 _ACEOF
22769 rm -f conftest$ac_exeext
22770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22771 (eval $ac_link) 2>&5
22772 ac_status=$?
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776 (eval $ac_try) 2>&5
22777 ac_status=$?
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; }; then
22780 fu_cv_sys_stat_statvfs64=yes
22781 else
22782 echo "$as_me: program exited with status $ac_status" >&5
22783 echo "$as_me: failed program was:" >&5
22784 cat conftest.$ac_ext >&5
22785 ( exit $ac_status )
22786 fu_cv_sys_stat_statvfs64=no
22788 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22791 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
22792 echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
22793 if test $fu_cv_sys_stat_statvfs64 = yes; then
22794 space=yes
22796 cat >>confdefs.h <<\_ACEOF
22797 #define STAT_STATVFS64 1
22798 _ACEOF
22803 # Perform only the link test since it seems there are no variants of the
22804 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
22805 # because that got a false positive on SCO OSR5. Adding the declaration
22806 # of a `struct statvfs' causes this test to fail (as it should) on such
22807 # systems. That system is reported to work fine with STAT_STATFS4 which
22808 # is what it gets when this test fails.
22809 if test $space = no; then
22810 # SVR4
22811 echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
22812 echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
22813 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
22814 echo $ECHO_N "(cached) $ECHO_C" >&6
22815 else
22816 cat >conftest.$ac_ext <<_ACEOF
22817 #line $LINENO "configure"
22818 #include "confdefs.h"
22819 #include <sys/types.h>
22820 #include <sys/statvfs.h>
22821 #ifdef F77_DUMMY_MAIN
22822 # ifdef __cplusplus
22823 extern "C"
22824 # endif
22825 int F77_DUMMY_MAIN() { return 1; }
22826 #endif
22828 main ()
22830 struct statvfs fsd; statvfs (0, &fsd);
22832 return 0;
22834 _ACEOF
22835 rm -f conftest.$ac_objext conftest$ac_exeext
22836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22837 (eval $ac_link) 2>&5
22838 ac_status=$?
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); } &&
22841 { ac_try='test -s conftest$ac_exeext'
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22844 ac_status=$?
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; }; then
22847 fu_cv_sys_stat_statvfs=yes
22848 else
22849 echo "$as_me: failed program was:" >&5
22850 cat conftest.$ac_ext >&5
22851 fu_cv_sys_stat_statvfs=no
22853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22855 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
22856 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
22857 if test $fu_cv_sys_stat_statvfs = yes; then
22858 space=yes
22860 cat >>confdefs.h <<\_ACEOF
22861 #define STAT_STATVFS 1
22862 _ACEOF
22867 if test $space = no; then
22868 # DEC Alpha running OSF/1
22869 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
22870 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
22871 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22873 else
22874 if test "$cross_compiling" = yes; then
22875 fu_cv_sys_stat_statfs3_osf1=no
22876 else
22877 cat >conftest.$ac_ext <<_ACEOF
22878 #line $LINENO "configure"
22879 #include "confdefs.h"
22881 #include <sys/param.h>
22882 #include <sys/types.h>
22883 #include <sys/mount.h>
22884 main ()
22886 struct statfs fsd;
22887 fsd.f_fsize = 0;
22888 exit (statfs (".", &fsd, sizeof (struct statfs)));
22890 _ACEOF
22891 rm -f conftest$ac_exeext
22892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22893 (eval $ac_link) 2>&5
22894 ac_status=$?
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22898 (eval $ac_try) 2>&5
22899 ac_status=$?
22900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); }; }; then
22902 fu_cv_sys_stat_statfs3_osf1=yes
22903 else
22904 echo "$as_me: program exited with status $ac_status" >&5
22905 echo "$as_me: failed program was:" >&5
22906 cat conftest.$ac_ext >&5
22907 ( exit $ac_status )
22908 fu_cv_sys_stat_statfs3_osf1=no
22910 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22914 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
22915 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
22916 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
22917 space=yes
22919 cat >>confdefs.h <<\_ACEOF
22920 #define STAT_STATFS3_OSF1 1
22921 _ACEOF
22926 if test $space = no; then
22927 # AIX
22928 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
22929 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
22930 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
22931 echo $ECHO_N "(cached) $ECHO_C" >&6
22932 else
22933 if test "$cross_compiling" = yes; then
22934 fu_cv_sys_stat_statfs2_bsize=no
22935 else
22936 cat >conftest.$ac_ext <<_ACEOF
22937 #line $LINENO "configure"
22938 #include "confdefs.h"
22940 #ifdef HAVE_SYS_PARAM_H
22941 #include <sys/param.h>
22942 #endif
22943 #ifdef HAVE_SYS_MOUNT_H
22944 #include <sys/mount.h>
22945 #endif
22946 #ifdef HAVE_SYS_VFS_H
22947 #include <sys/vfs.h>
22948 #endif
22949 main ()
22951 struct statfs fsd;
22952 fsd.f_bsize = 0;
22953 exit (statfs (".", &fsd));
22955 _ACEOF
22956 rm -f conftest$ac_exeext
22957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22958 (eval $ac_link) 2>&5
22959 ac_status=$?
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963 (eval $ac_try) 2>&5
22964 ac_status=$?
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); }; }; then
22967 fu_cv_sys_stat_statfs2_bsize=yes
22968 else
22969 echo "$as_me: program exited with status $ac_status" >&5
22970 echo "$as_me: failed program was:" >&5
22971 cat conftest.$ac_ext >&5
22972 ( exit $ac_status )
22973 fu_cv_sys_stat_statfs2_bsize=no
22975 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22979 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
22980 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
22981 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
22982 space=yes
22984 cat >>confdefs.h <<\_ACEOF
22985 #define STAT_STATFS2_BSIZE 1
22986 _ACEOF
22991 if test $space = no; then
22992 # SVR3
22993 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
22994 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
22995 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
22996 echo $ECHO_N "(cached) $ECHO_C" >&6
22997 else
22998 if test "$cross_compiling" = yes; then
22999 fu_cv_sys_stat_statfs4=no
23000 else
23001 cat >conftest.$ac_ext <<_ACEOF
23002 #line $LINENO "configure"
23003 #include "confdefs.h"
23004 #include <sys/types.h>
23005 #include <sys/statfs.h>
23006 main ()
23008 struct statfs fsd;
23009 exit (statfs (".", &fsd, sizeof fsd, 0));
23011 _ACEOF
23012 rm -f conftest$ac_exeext
23013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23014 (eval $ac_link) 2>&5
23015 ac_status=$?
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23019 (eval $ac_try) 2>&5
23020 ac_status=$?
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); }; }; then
23023 fu_cv_sys_stat_statfs4=yes
23024 else
23025 echo "$as_me: program exited with status $ac_status" >&5
23026 echo "$as_me: failed program was:" >&5
23027 cat conftest.$ac_ext >&5
23028 ( exit $ac_status )
23029 fu_cv_sys_stat_statfs4=no
23031 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23035 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
23036 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
23037 if test $fu_cv_sys_stat_statfs4 = yes; then
23038 space=yes
23040 cat >>confdefs.h <<\_ACEOF
23041 #define STAT_STATFS4 1
23042 _ACEOF
23047 if test $space = no; then
23048 # 4.4BSD and NetBSD
23049 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
23050 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
23051 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
23052 echo $ECHO_N "(cached) $ECHO_C" >&6
23053 else
23054 if test "$cross_compiling" = yes; then
23055 fu_cv_sys_stat_statfs2_fsize=no
23056 else
23057 cat >conftest.$ac_ext <<_ACEOF
23058 #line $LINENO "configure"
23059 #include "confdefs.h"
23060 #include <sys/types.h>
23061 #ifdef HAVE_SYS_PARAM_H
23062 #include <sys/param.h>
23063 #endif
23064 #ifdef HAVE_SYS_MOUNT_H
23065 #include <sys/mount.h>
23066 #endif
23067 main ()
23069 struct statfs fsd;
23070 fsd.f_fsize = 0;
23071 exit (statfs (".", &fsd));
23073 _ACEOF
23074 rm -f conftest$ac_exeext
23075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23076 (eval $ac_link) 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; }; then
23085 fu_cv_sys_stat_statfs2_fsize=yes
23086 else
23087 echo "$as_me: program exited with status $ac_status" >&5
23088 echo "$as_me: failed program was:" >&5
23089 cat conftest.$ac_ext >&5
23090 ( exit $ac_status )
23091 fu_cv_sys_stat_statfs2_fsize=no
23093 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23097 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
23098 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
23099 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
23100 space=yes
23102 cat >>confdefs.h <<\_ACEOF
23103 #define STAT_STATFS2_FSIZE 1
23104 _ACEOF
23109 if test $space = no; then
23110 # Ultrix
23111 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
23112 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
23113 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 else
23116 if test "$cross_compiling" = yes; then
23117 fu_cv_sys_stat_fs_data=no
23118 else
23119 cat >conftest.$ac_ext <<_ACEOF
23120 #line $LINENO "configure"
23121 #include "confdefs.h"
23122 #include <sys/types.h>
23123 #ifdef HAVE_SYS_PARAM_H
23124 #include <sys/param.h>
23125 #endif
23126 #ifdef HAVE_SYS_MOUNT_H
23127 #include <sys/mount.h>
23128 #endif
23129 #ifdef HAVE_SYS_FS_TYPES_H
23130 #include <sys/fs_types.h>
23131 #endif
23132 main ()
23134 struct fs_data fsd;
23135 /* Ultrix's statfs returns 1 for success,
23136 0 for not mounted, -1 for failure. */
23137 exit (statfs (".", &fsd) != 1);
23139 _ACEOF
23140 rm -f conftest$ac_exeext
23141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23142 (eval $ac_link) 2>&5
23143 ac_status=$?
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23147 (eval $ac_try) 2>&5
23148 ac_status=$?
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); }; }; then
23151 fu_cv_sys_stat_fs_data=yes
23152 else
23153 echo "$as_me: program exited with status $ac_status" >&5
23154 echo "$as_me: failed program was:" >&5
23155 cat conftest.$ac_ext >&5
23156 ( exit $ac_status )
23157 fu_cv_sys_stat_fs_data=no
23159 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23163 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
23164 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
23165 if test $fu_cv_sys_stat_fs_data = yes; then
23166 space=yes
23168 cat >>confdefs.h <<\_ACEOF
23169 #define STAT_STATFS2_FS_DATA 1
23170 _ACEOF
23176 # As a gating factor for large file support, in order to
23177 # use <4GB files we must have the following minimal support
23178 # available.
23179 # long long, and a 64 bit off_t or off64_t.
23180 # If we don't have all of these then disable large
23181 # file support.
23183 echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
23184 echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
23185 cat >conftest.$ac_ext <<_ACEOF
23186 #line $LINENO "configure"
23187 #include "confdefs.h"
23189 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
23190 #include <sys/types.h>
23191 #else
23192 __COMPILE_ERROR_
23193 #endif
23195 #ifdef F77_DUMMY_MAIN
23196 # ifdef __cplusplus
23197 extern "C"
23198 # endif
23199 int F77_DUMMY_MAIN() { return 1; }
23200 #endif
23202 main ()
23204 int i
23206 return 0;
23208 _ACEOF
23209 rm -f conftest.$ac_objext
23210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23211 (eval $ac_compile) 2>&5
23212 ac_status=$?
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } &&
23215 { ac_try='test -s conftest.$ac_objext'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23218 ac_status=$?
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
23222 else
23223 echo "$as_me: failed program was:" >&5
23224 cat conftest.$ac_ext >&5
23225 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
23227 rm -f conftest.$ac_objext conftest.$ac_ext
23228 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
23230 cat >>confdefs.h <<\_ACEOF
23231 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
23232 _ACEOF
23235 echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
23236 echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
23239 # Check whether --with-spinlocks or --without-spinlocks was given.
23240 if test "${with_spinlocks+set}" = set; then
23241 withval="$with_spinlocks"
23244 if test "x$with_spinlocks" = "xyes"; then
23246 cat >>confdefs.h <<\_ACEOF
23247 #define USE_SPINLOCKS 1
23248 _ACEOF
23251 case "$host_cpu" in
23252 sparc)
23254 cat >>confdefs.h <<\_ACEOF
23255 #define SPARC_SPINLOCKS 1
23256 _ACEOF
23260 i386|i486|i586|i686)
23262 cat >>confdefs.h <<\_ACEOF
23263 #define INTEL_SPINLOCKS 1
23264 _ACEOF
23268 mips)
23270 cat >>confdefs.h <<\_ACEOF
23271 #define MIPS_SPINLOCKS 1
23272 _ACEOF
23276 powerpc)
23278 cat >>confdefs.h <<\_ACEOF
23279 #define POWERPC_SPINLOCKS 1
23280 _ACEOF
23283 esac
23286 #################################################
23287 # check for ACL support
23289 echo "$as_me:$LINENO: checking whether to support ACLs" >&5
23290 echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
23292 # Check whether --with-acl-support or --without-acl-support was given.
23293 if test "${with_acl_support+set}" = set; then
23294 withval="$with_acl_support"
23295 case "$withval" in
23296 yes)
23298 case "$host_os" in
23299 *sysv5*)
23300 echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
23301 echo "${ECHO_T}Using UnixWare ACLs" >&6
23303 cat >>confdefs.h <<\_ACEOF
23304 #define HAVE_UNIXWARE_ACLS 1
23305 _ACEOF
23308 *solaris*)
23309 echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
23310 echo "${ECHO_T}Using solaris ACLs" >&6
23312 cat >>confdefs.h <<\_ACEOF
23313 #define HAVE_SOLARIS_ACLS 1
23314 _ACEOF
23317 *hpux*)
23318 echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
23319 echo "${ECHO_T}Using HPUX ACLs" >&6
23321 cat >>confdefs.h <<\_ACEOF
23322 #define HAVE_HPUX_ACLS 1
23323 _ACEOF
23326 *irix*)
23327 echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
23328 echo "${ECHO_T}Using IRIX ACLs" >&6
23330 cat >>confdefs.h <<\_ACEOF
23331 #define HAVE_IRIX_ACLS 1
23332 _ACEOF
23335 *aix*)
23336 echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
23337 echo "${ECHO_T}Using AIX ACLs" >&6
23339 cat >>confdefs.h <<\_ACEOF
23340 #define HAVE_AIX_ACLS 1
23341 _ACEOF
23344 *osf*)
23345 echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
23346 echo "${ECHO_T}Using Tru64 ACLs" >&6
23348 cat >>confdefs.h <<\_ACEOF
23349 #define HAVE_TRU64_ACLS 1
23350 _ACEOF
23352 LIBS="$LIBS -lpacl"
23356 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
23357 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
23358 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361 ac_check_lib_save_LIBS=$LIBS
23362 LIBS="-lacl $LIBS"
23363 cat >conftest.$ac_ext <<_ACEOF
23364 #line $LINENO "configure"
23365 #include "confdefs.h"
23367 /* Override any gcc2 internal prototype to avoid an error. */
23368 #ifdef __cplusplus
23369 extern "C"
23370 #endif
23371 /* We use char because int might match the return type of a gcc2
23372 builtin and then its argument prototype would still apply. */
23373 char acl_get_file ();
23374 #ifdef F77_DUMMY_MAIN
23375 # ifdef __cplusplus
23376 extern "C"
23377 # endif
23378 int F77_DUMMY_MAIN() { return 1; }
23379 #endif
23381 main ()
23383 acl_get_file ();
23385 return 0;
23387 _ACEOF
23388 rm -f conftest.$ac_objext conftest$ac_exeext
23389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23390 (eval $ac_link) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } &&
23394 { ac_try='test -s conftest$ac_exeext'
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; }; then
23400 ac_cv_lib_acl_acl_get_file=yes
23401 else
23402 echo "$as_me: failed program was:" >&5
23403 cat conftest.$ac_ext >&5
23404 ac_cv_lib_acl_acl_get_file=no
23406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23407 LIBS=$ac_check_lib_save_LIBS
23409 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
23410 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
23411 if test $ac_cv_lib_acl_acl_get_file = yes; then
23412 cat >>confdefs.h <<_ACEOF
23413 #define HAVE_LIBACL 1
23414 _ACEOF
23416 LIBS="-lacl $LIBS"
23420 echo "$as_me:$LINENO: checking for ACL support" >&5
23421 echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
23422 if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23424 else
23426 cat >conftest.$ac_ext <<_ACEOF
23427 #line $LINENO "configure"
23428 #include "confdefs.h"
23429 #include <sys/types.h>
23430 #include <sys/acl.h>
23431 #ifdef F77_DUMMY_MAIN
23432 # ifdef __cplusplus
23433 extern "C"
23434 # endif
23435 int F77_DUMMY_MAIN() { return 1; }
23436 #endif
23438 main ()
23440 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
23442 return 0;
23444 _ACEOF
23445 rm -f conftest.$ac_objext conftest$ac_exeext
23446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23447 (eval $ac_link) 2>&5
23448 ac_status=$?
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } &&
23451 { ac_try='test -s conftest$ac_exeext'
23452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453 (eval $ac_try) 2>&5
23454 ac_status=$?
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); }; }; then
23457 samba_cv_HAVE_POSIX_ACLS=yes
23458 else
23459 echo "$as_me: failed program was:" >&5
23460 cat conftest.$ac_ext >&5
23461 samba_cv_HAVE_POSIX_ACLS=no
23463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23465 echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
23466 echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
23467 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
23468 echo "$as_me:$LINENO: result: Using posix ACLs" >&5
23469 echo "${ECHO_T}Using posix ACLs" >&6
23471 cat >>confdefs.h <<\_ACEOF
23472 #define HAVE_POSIX_ACLS 1
23473 _ACEOF
23475 echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
23476 echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
23477 if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
23478 echo $ECHO_N "(cached) $ECHO_C" >&6
23479 else
23481 cat >conftest.$ac_ext <<_ACEOF
23482 #line $LINENO "configure"
23483 #include "confdefs.h"
23484 #include <sys/types.h>
23485 #include <sys/acl.h>
23486 #ifdef F77_DUMMY_MAIN
23487 # ifdef __cplusplus
23488 extern "C"
23489 # endif
23490 int F77_DUMMY_MAIN() { return 1; }
23491 #endif
23493 main ()
23495 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
23497 return 0;
23499 _ACEOF
23500 rm -f conftest.$ac_objext conftest$ac_exeext
23501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23502 (eval $ac_link) 2>&5
23503 ac_status=$?
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); } &&
23506 { ac_try='test -s conftest$ac_exeext'
23507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23508 (eval $ac_try) 2>&5
23509 ac_status=$?
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); }; }; then
23512 samba_cv_HAVE_ACL_GET_PERM_NP=yes
23513 else
23514 echo "$as_me: failed program was:" >&5
23515 cat conftest.$ac_ext >&5
23516 samba_cv_HAVE_ACL_GET_PERM_NP=no
23518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23520 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
23521 echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
23522 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
23524 cat >>confdefs.h <<\_ACEOF
23525 #define HAVE_ACL_GET_PERM_NP 1
23526 _ACEOF
23531 esac
23534 echo "$as_me:$LINENO: result: no" >&5
23535 echo "${ECHO_T}no" >&6
23537 cat >>confdefs.h <<\_ACEOF
23538 #define HAVE_NO_ACLS 1
23539 _ACEOF
23542 esac
23543 else
23545 cat >>confdefs.h <<\_ACEOF
23546 #define HAVE_NO_ACLS 1
23547 _ACEOF
23549 echo "$as_me:$LINENO: result: no" >&5
23550 echo "${ECHO_T}no" >&6
23554 #################################################
23555 # check for sendfile support
23557 with_sendfile_support=yes
23558 echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
23559 echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
23561 # Check whether --with-sendfile-support or --without-sendfile-support was given.
23562 if test "${with_sendfile_support+set}" = set; then
23563 withval="$with_sendfile_support"
23564 case "$withval" in
23565 yes)
23567 echo "$as_me:$LINENO: result: yes" >&5
23568 echo "${ECHO_T}yes" >&6;
23570 case "$host_os" in
23571 *linux*)
23572 echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
23573 echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
23574 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
23576 else
23578 cat >conftest.$ac_ext <<_ACEOF
23579 #line $LINENO "configure"
23580 #include "confdefs.h"
23581 #include <sys/sendfile.h>
23582 #ifdef F77_DUMMY_MAIN
23583 # ifdef __cplusplus
23584 extern "C"
23585 # endif
23586 int F77_DUMMY_MAIN() { return 1; }
23587 #endif
23589 main ()
23592 int tofd, fromfd;
23593 off64_t offset;
23594 size_t total;
23595 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
23598 return 0;
23600 _ACEOF
23601 rm -f conftest.$ac_objext conftest$ac_exeext
23602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23603 (eval $ac_link) 2>&5
23604 ac_status=$?
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } &&
23607 { ac_try='test -s conftest$ac_exeext'
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23610 ac_status=$?
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; }; then
23613 samba_cv_HAVE_SENDFILE64=yes
23614 else
23615 echo "$as_me: failed program was:" >&5
23616 cat conftest.$ac_ext >&5
23617 samba_cv_HAVE_SENDFILE64=no
23619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23621 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
23622 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
23624 echo "$as_me:$LINENO: checking for linux sendfile support" >&5
23625 echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
23626 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23628 else
23630 cat >conftest.$ac_ext <<_ACEOF
23631 #line $LINENO "configure"
23632 #include "confdefs.h"
23633 #include <sys/sendfile.h>
23634 #ifdef F77_DUMMY_MAIN
23635 # ifdef __cplusplus
23636 extern "C"
23637 # endif
23638 int F77_DUMMY_MAIN() { return 1; }
23639 #endif
23641 main ()
23644 int tofd, fromfd;
23645 off_t offset;
23646 size_t total;
23647 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
23650 return 0;
23652 _ACEOF
23653 rm -f conftest.$ac_objext conftest$ac_exeext
23654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23655 (eval $ac_link) 2>&5
23656 ac_status=$?
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } &&
23659 { ac_try='test -s conftest$ac_exeext'
23660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23661 (eval $ac_try) 2>&5
23662 ac_status=$?
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); }; }; then
23665 samba_cv_HAVE_SENDFILE=yes
23666 else
23667 echo "$as_me: failed program was:" >&5
23668 cat conftest.$ac_ext >&5
23669 samba_cv_HAVE_SENDFILE=no
23671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23673 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
23674 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
23676 # Try and cope with broken Linux sendfile....
23677 echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
23678 echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
23679 if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
23680 echo $ECHO_N "(cached) $ECHO_C" >&6
23681 else
23683 cat >conftest.$ac_ext <<_ACEOF
23684 #line $LINENO "configure"
23685 #include "confdefs.h"
23687 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
23688 #undef _FILE_OFFSET_BITS
23689 #endif
23690 #include <sys/sendfile.h>
23691 #ifdef F77_DUMMY_MAIN
23692 # ifdef __cplusplus
23693 extern "C"
23694 # endif
23695 int F77_DUMMY_MAIN() { return 1; }
23696 #endif
23698 main ()
23701 int tofd, fromfd;
23702 off_t offset;
23703 size_t total;
23704 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
23707 return 0;
23709 _ACEOF
23710 rm -f conftest.$ac_objext conftest$ac_exeext
23711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23712 (eval $ac_link) 2>&5
23713 ac_status=$?
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); } &&
23716 { ac_try='test -s conftest$ac_exeext'
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23719 ac_status=$?
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; }; then
23722 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
23723 else
23724 echo "$as_me: failed program was:" >&5
23725 cat conftest.$ac_ext >&5
23726 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
23728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23730 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
23731 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
23733 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
23735 cat >>confdefs.h <<\_ACEOF
23736 #define HAVE_SENDFILE64 1
23737 _ACEOF
23740 cat >>confdefs.h <<\_ACEOF
23741 #define LINUX_SENDFILE_API 1
23742 _ACEOF
23745 cat >>confdefs.h <<\_ACEOF
23746 #define WITH_SENDFILE 1
23747 _ACEOF
23749 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
23751 cat >>confdefs.h <<\_ACEOF
23752 #define HAVE_SENDFILE 1
23753 _ACEOF
23756 cat >>confdefs.h <<\_ACEOF
23757 #define LINUX_SENDFILE_API 1
23758 _ACEOF
23761 cat >>confdefs.h <<\_ACEOF
23762 #define WITH_SENDFILE 1
23763 _ACEOF
23765 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
23767 cat >>confdefs.h <<\_ACEOF
23768 #define LINUX_BROKEN_SENDFILE_API 1
23769 _ACEOF
23772 cat >>confdefs.h <<\_ACEOF
23773 #define WITH_SENDFILE 1
23774 _ACEOF
23776 else
23777 echo "$as_me:$LINENO: result: no" >&5
23778 echo "${ECHO_T}no" >&6;
23782 *freebsd*)
23783 echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
23784 echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
23785 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23786 echo $ECHO_N "(cached) $ECHO_C" >&6
23787 else
23789 cat >conftest.$ac_ext <<_ACEOF
23790 #line $LINENO "configure"
23791 #include "confdefs.h"
23793 #include <sys/types.h>
23794 #include <unistd.h>
23795 #include <sys/socket.h>
23796 #include <sys/uio.h>
23797 #ifdef F77_DUMMY_MAIN
23798 # ifdef __cplusplus
23799 extern "C"
23800 # endif
23801 int F77_DUMMY_MAIN() { return 1; }
23802 #endif
23804 main ()
23807 int fromfd, tofd, ret, total=0;
23808 off_t offset, nwritten;
23809 struct sf_hdtr hdr;
23810 struct iovec hdtrl;
23811 hdr.headers = &hdtrl;
23812 hdr.hdr_cnt = 1;
23813 hdr.trailers = NULL;
23814 hdr.trl_cnt = 0;
23815 hdtrl.iov_base = NULL;
23816 hdtrl.iov_len = 0;
23817 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
23820 return 0;
23822 _ACEOF
23823 rm -f conftest.$ac_objext conftest$ac_exeext
23824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23825 (eval $ac_link) 2>&5
23826 ac_status=$?
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); } &&
23829 { ac_try='test -s conftest$ac_exeext'
23830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23831 (eval $ac_try) 2>&5
23832 ac_status=$?
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); }; }; then
23835 samba_cv_HAVE_SENDFILE=yes
23836 else
23837 echo "$as_me: failed program was:" >&5
23838 cat conftest.$ac_ext >&5
23839 samba_cv_HAVE_SENDFILE=no
23841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23843 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
23844 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
23846 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
23848 cat >>confdefs.h <<\_ACEOF
23849 #define HAVE_SENDFILE 1
23850 _ACEOF
23853 cat >>confdefs.h <<\_ACEOF
23854 #define FREEBSD_SENDFILE_API 1
23855 _ACEOF
23858 cat >>confdefs.h <<\_ACEOF
23859 #define WITH_SENDFILE 1
23860 _ACEOF
23862 else
23863 echo "$as_me:$LINENO: result: no" >&5
23864 echo "${ECHO_T}no" >&6;
23868 *hpux*)
23869 echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
23870 echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
23871 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23873 else
23875 cat >conftest.$ac_ext <<_ACEOF
23876 #line $LINENO "configure"
23877 #include "confdefs.h"
23879 #include <sys/socket.h>
23880 #include <sys/uio.h>
23881 #ifdef F77_DUMMY_MAIN
23882 # ifdef __cplusplus
23883 extern "C"
23884 # endif
23885 int F77_DUMMY_MAIN() { return 1; }
23886 #endif
23888 main ()
23891 int fromfd, tofd;
23892 size_t total=0;
23893 struct iovec hdtrl[2];
23894 ssize_t nwritten;
23895 off64_t offset;
23897 hdtrl[0].iov_base = 0;
23898 hdtrl[0].iov_len = 0;
23900 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
23903 return 0;
23905 _ACEOF
23906 rm -f conftest.$ac_objext conftest$ac_exeext
23907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23908 (eval $ac_link) 2>&5
23909 ac_status=$?
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); } &&
23912 { ac_try='test -s conftest$ac_exeext'
23913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23914 (eval $ac_try) 2>&5
23915 ac_status=$?
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); }; }; then
23918 samba_cv_HAVE_SENDFILE64=yes
23919 else
23920 echo "$as_me: failed program was:" >&5
23921 cat conftest.$ac_ext >&5
23922 samba_cv_HAVE_SENDFILE64=no
23924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23926 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
23927 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
23928 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
23930 cat >>confdefs.h <<\_ACEOF
23931 #define HAVE_SENDFILE64 1
23932 _ACEOF
23935 cat >>confdefs.h <<\_ACEOF
23936 #define HPUX_SENDFILE_API 1
23937 _ACEOF
23940 cat >>confdefs.h <<\_ACEOF
23941 #define WITH_SENDFILE 1
23942 _ACEOF
23944 else
23945 echo "$as_me:$LINENO: result: no" >&5
23946 echo "${ECHO_T}no" >&6;
23949 echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
23950 echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
23951 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23952 echo $ECHO_N "(cached) $ECHO_C" >&6
23953 else
23955 cat >conftest.$ac_ext <<_ACEOF
23956 #line $LINENO "configure"
23957 #include "confdefs.h"
23959 #include <sys/socket.h>
23960 #include <sys/uio.h>
23961 #ifdef F77_DUMMY_MAIN
23962 # ifdef __cplusplus
23963 extern "C"
23964 # endif
23965 int F77_DUMMY_MAIN() { return 1; }
23966 #endif
23968 main ()
23971 int fromfd, tofd;
23972 size_t total=0;
23973 struct iovec hdtrl[2];
23974 ssize_t nwritten;
23975 off_t offset;
23977 hdtrl[0].iov_base = 0;
23978 hdtrl[0].iov_len = 0;
23980 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
23983 return 0;
23985 _ACEOF
23986 rm -f conftest.$ac_objext conftest$ac_exeext
23987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23988 (eval $ac_link) 2>&5
23989 ac_status=$?
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } &&
23992 { ac_try='test -s conftest$ac_exeext'
23993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994 (eval $ac_try) 2>&5
23995 ac_status=$?
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); }; }; then
23998 samba_cv_HAVE_SENDFILE=yes
23999 else
24000 echo "$as_me: failed program was:" >&5
24001 cat conftest.$ac_ext >&5
24002 samba_cv_HAVE_SENDFILE=no
24004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24006 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
24007 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
24008 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
24010 cat >>confdefs.h <<\_ACEOF
24011 #define HAVE_SENDFILE 1
24012 _ACEOF
24015 cat >>confdefs.h <<\_ACEOF
24016 #define HPUX_SENDFILE_API 1
24017 _ACEOF
24020 cat >>confdefs.h <<\_ACEOF
24021 #define WITH_SENDFILE 1
24022 _ACEOF
24024 else
24025 echo "$as_me:$LINENO: result: no" >&5
24026 echo "${ECHO_T}no" >&6;
24030 *solaris*)
24032 echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
24033 echo $ECHO_N "checking for sendfilev in -lsendfile... $ECHO_C" >&6
24034 if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24036 else
24037 ac_check_lib_save_LIBS=$LIBS
24038 LIBS="-lsendfile $LIBS"
24039 cat >conftest.$ac_ext <<_ACEOF
24040 #line $LINENO "configure"
24041 #include "confdefs.h"
24043 /* Override any gcc2 internal prototype to avoid an error. */
24044 #ifdef __cplusplus
24045 extern "C"
24046 #endif
24047 /* We use char because int might match the return type of a gcc2
24048 builtin and then its argument prototype would still apply. */
24049 char sendfilev ();
24050 #ifdef F77_DUMMY_MAIN
24051 # ifdef __cplusplus
24052 extern "C"
24053 # endif
24054 int F77_DUMMY_MAIN() { return 1; }
24055 #endif
24057 main ()
24059 sendfilev ();
24061 return 0;
24063 _ACEOF
24064 rm -f conftest.$ac_objext conftest$ac_exeext
24065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24066 (eval $ac_link) 2>&5
24067 ac_status=$?
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); } &&
24070 { ac_try='test -s conftest$ac_exeext'
24071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24072 (eval $ac_try) 2>&5
24073 ac_status=$?
24074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); }; }; then
24076 ac_cv_lib_sendfile_sendfilev=yes
24077 else
24078 echo "$as_me: failed program was:" >&5
24079 cat conftest.$ac_ext >&5
24080 ac_cv_lib_sendfile_sendfilev=no
24082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24083 LIBS=$ac_check_lib_save_LIBS
24085 echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
24086 echo "${ECHO_T}$ac_cv_lib_sendfile_sendfilev" >&6
24087 if test $ac_cv_lib_sendfile_sendfilev = yes; then
24088 cat >>confdefs.h <<_ACEOF
24089 #define HAVE_LIBSENDFILE 1
24090 _ACEOF
24092 LIBS="-lsendfile $LIBS"
24096 echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
24097 echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
24098 if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
24099 echo $ECHO_N "(cached) $ECHO_C" >&6
24100 else
24102 cat >conftest.$ac_ext <<_ACEOF
24103 #line $LINENO "configure"
24104 #include "confdefs.h"
24106 #include <sys/sendfile.h>
24107 #ifdef F77_DUMMY_MAIN
24108 # ifdef __cplusplus
24109 extern "C"
24110 # endif
24111 int F77_DUMMY_MAIN() { return 1; }
24112 #endif
24114 main ()
24117 int sfvcnt;
24118 size_t xferred;
24119 struct sendfilevec vec[2];
24120 ssize_t nwritten;
24121 int tofd;
24123 sfvcnt = 2;
24125 vec[0].sfv_fd = SFV_FD_SELF;
24126 vec[0].sfv_flag = 0;
24127 vec[0].sfv_off = 0;
24128 vec[0].sfv_len = 0;
24130 vec[1].sfv_fd = 0;
24131 vec[1].sfv_flag = 0;
24132 vec[1].sfv_off = 0;
24133 vec[1].sfv_len = 0;
24134 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
24137 return 0;
24139 _ACEOF
24140 rm -f conftest.$ac_objext conftest$ac_exeext
24141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24142 (eval $ac_link) 2>&5
24143 ac_status=$?
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); } &&
24146 { ac_try='test -s conftest$ac_exeext'
24147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148 (eval $ac_try) 2>&5
24149 ac_status=$?
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); }; }; then
24152 samba_cv_HAVE_SENDFILEV64=yes
24153 else
24154 echo "$as_me: failed program was:" >&5
24155 cat conftest.$ac_ext >&5
24156 samba_cv_HAVE_SENDFILEV64=no
24158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24160 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
24161 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
24163 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
24165 cat >>confdefs.h <<\_ACEOF
24166 #define HAVE_SENDFILEV64 1
24167 _ACEOF
24170 cat >>confdefs.h <<\_ACEOF
24171 #define SOLARIS_SENDFILE_API 1
24172 _ACEOF
24175 cat >>confdefs.h <<\_ACEOF
24176 #define WITH_SENDFILE 1
24177 _ACEOF
24179 else
24180 echo "$as_me:$LINENO: result: no" >&5
24181 echo "${ECHO_T}no" >&6;
24184 echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
24185 echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
24186 if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24188 else
24190 cat >conftest.$ac_ext <<_ACEOF
24191 #line $LINENO "configure"
24192 #include "confdefs.h"
24194 #include <sys/sendfile.h>
24195 #ifdef F77_DUMMY_MAIN
24196 # ifdef __cplusplus
24197 extern "C"
24198 # endif
24199 int F77_DUMMY_MAIN() { return 1; }
24200 #endif
24202 main ()
24205 int sfvcnt;
24206 size_t xferred;
24207 struct sendfilevec vec[2];
24208 ssize_t nwritten;
24209 int tofd;
24211 sfvcnt = 2;
24213 vec[0].sfv_fd = SFV_FD_SELF;
24214 vec[0].sfv_flag = 0;
24215 vec[0].sfv_off = 0;
24216 vec[0].sfv_len = 0;
24218 vec[1].sfv_fd = 0;
24219 vec[1].sfv_flag = 0;
24220 vec[1].sfv_off = 0;
24221 vec[1].sfv_len = 0;
24222 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
24225 return 0;
24227 _ACEOF
24228 rm -f conftest.$ac_objext conftest$ac_exeext
24229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24230 (eval $ac_link) 2>&5
24231 ac_status=$?
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); } &&
24234 { ac_try='test -s conftest$ac_exeext'
24235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); }; }; then
24240 samba_cv_HAVE_SENDFILEV=yes
24241 else
24242 echo "$as_me: failed program was:" >&5
24243 cat conftest.$ac_ext >&5
24244 samba_cv_HAVE_SENDFILEV=no
24246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24248 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
24249 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
24251 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
24253 cat >>confdefs.h <<\_ACEOF
24254 #define HAVE_SENDFILEV 1
24255 _ACEOF
24258 cat >>confdefs.h <<\_ACEOF
24259 #define SOLARIS_SENDFILE_API 1
24260 _ACEOF
24263 cat >>confdefs.h <<\_ACEOF
24264 #define WITH_SENDFILE 1
24265 _ACEOF
24267 else
24268 echo "$as_me:$LINENO: result: no" >&5
24269 echo "${ECHO_T}no" >&6;
24275 esac
24278 echo "$as_me:$LINENO: result: no" >&5
24279 echo "${ECHO_T}no" >&6
24281 esac
24282 else
24283 echo "$as_me:$LINENO: result: yes" >&5
24284 echo "${ECHO_T}yes" >&6
24289 #################################################
24290 # Check whether winbind is supported on this platform. If so we need to
24291 # build and install client programs, sbin programs and shared libraries
24293 echo "$as_me:$LINENO: checking whether to build winbind" >&5
24294 echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
24296 # Initially, the value of $host_os decides whether winbind is supported
24298 case "$host_os" in
24299 *linux*|*irix*)
24300 HAVE_WINBIND=yes
24302 *solaris*)
24303 HAVE_WINBIND=yes
24304 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
24305 WINBIND_NSS_EXTRA_LIBS="-lsocket"
24307 *hpux11*)
24308 HAVE_WINBIND=yes
24309 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
24312 HAVE_WINBIND=no
24313 winbind_no_reason=", unsupported on $host_os"
24315 esac
24320 # Check the setting of --with-winbindd
24323 # Check whether --with-winbind or --without-winbind was given.
24324 if test "${with_winbind+set}" = set; then
24325 withval="$with_winbind"
24327 case "$withval" in
24328 yes)
24329 HAVE_WINBIND=yes
24332 HAVE_WINBIND=no
24333 winbind_reason=""
24335 esac
24338 # We need unix domain sockets for winbind
24340 if test x"$HAVE_WINBIND" = x"yes"; then
24341 if test x"$samba_cv_unixsocket" = x"no"; then
24342 winbind_no_reason=", no unix domain socket support on $host_os"
24343 HAVE_WINBIND=no
24347 # Display test results
24349 if test x"$HAVE_WINBIND" = x"yes"; then
24350 echo "$as_me:$LINENO: result: yes" >&5
24351 echo "${ECHO_T}yes" >&6
24353 cat >>confdefs.h <<\_ACEOF
24354 #define WITH_WINBIND 1
24355 _ACEOF
24358 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
24359 EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
24360 if test x"$BLDSHARED" = x"true"; then
24361 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libnss_winbind.so"
24362 if test x"$with_pam" = x"yes"; then
24363 SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.so"
24366 else
24367 echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
24368 echo "${ECHO_T}no$winbind_no_reason" >&6
24371 # Solaris has some extra fields in struct passwd that need to be
24372 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
24373 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
24374 # this.
24376 #AC_CHECK_MEMBER(struct passwd.pw_comment,
24377 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
24378 # [#include <pwd.h>])
24380 echo "$as_me:$LINENO: checking whether struct passwd has pw_comment" >&5
24381 echo $ECHO_N "checking whether struct passwd has pw_comment... $ECHO_C" >&6
24382 if test "${samba_cv_passwd_pw_comment+set}" = set; then
24383 echo $ECHO_N "(cached) $ECHO_C" >&6
24384 else
24386 cat >conftest.$ac_ext <<_ACEOF
24387 #line $LINENO "configure"
24388 #include "confdefs.h"
24389 #include <pwd.h>
24390 #ifdef F77_DUMMY_MAIN
24391 # ifdef __cplusplus
24392 extern "C"
24393 # endif
24394 int F77_DUMMY_MAIN() { return 1; }
24395 #endif
24397 main ()
24399 struct passwd p; p.pw_comment;
24401 return 0;
24403 _ACEOF
24404 rm -f conftest.$ac_objext
24405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24406 (eval $ac_compile) 2>&5
24407 ac_status=$?
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); } &&
24410 { ac_try='test -s conftest.$ac_objext'
24411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24412 (eval $ac_try) 2>&5
24413 ac_status=$?
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); }; }; then
24416 samba_cv_passwd_pw_comment=yes
24417 else
24418 echo "$as_me: failed program was:" >&5
24419 cat conftest.$ac_ext >&5
24420 samba_cv_passwd_pw_comment=no
24422 rm -f conftest.$ac_objext conftest.$ac_ext
24424 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_comment" >&5
24425 echo "${ECHO_T}$samba_cv_passwd_pw_comment" >&6
24426 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
24428 cat >>confdefs.h <<\_ACEOF
24429 #define HAVE_PASSWD_PW_COMMENT 1
24430 _ACEOF
24434 #AC_CHECK_MEMBER(struct passwd.pw_age,
24435 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
24436 # [#include <pwd.h>])
24438 echo "$as_me:$LINENO: checking whether struct passwd has pw_age" >&5
24439 echo $ECHO_N "checking whether struct passwd has pw_age... $ECHO_C" >&6
24440 if test "${samba_cv_passwd_pw_age+set}" = set; then
24441 echo $ECHO_N "(cached) $ECHO_C" >&6
24442 else
24444 cat >conftest.$ac_ext <<_ACEOF
24445 #line $LINENO "configure"
24446 #include "confdefs.h"
24447 #include <pwd.h>
24448 #ifdef F77_DUMMY_MAIN
24449 # ifdef __cplusplus
24450 extern "C"
24451 # endif
24452 int F77_DUMMY_MAIN() { return 1; }
24453 #endif
24455 main ()
24457 struct passwd p; p.pw_age;
24459 return 0;
24461 _ACEOF
24462 rm -f conftest.$ac_objext
24463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24464 (eval $ac_compile) 2>&5
24465 ac_status=$?
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } &&
24468 { ac_try='test -s conftest.$ac_objext'
24469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470 (eval $ac_try) 2>&5
24471 ac_status=$?
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); }; }; then
24474 samba_cv_passwd_pw_age=yes
24475 else
24476 echo "$as_me: failed program was:" >&5
24477 cat conftest.$ac_ext >&5
24478 samba_cv_passwd_pw_age=no
24480 rm -f conftest.$ac_objext conftest.$ac_ext
24482 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_age" >&5
24483 echo "${ECHO_T}$samba_cv_passwd_pw_age" >&6
24484 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
24486 cat >>confdefs.h <<\_ACEOF
24487 #define HAVE_PASSWD_PW_AGE 1
24488 _ACEOF
24492 #################################################
24493 # Check to see if we should use the included popt
24496 # Check whether --with-included-popt or --without-included-popt was given.
24497 if test "${with_included_popt+set}" = set; then
24498 withval="$with_included_popt"
24500 case "$withval" in
24501 yes)
24502 INCLUDED_POPT=yes
24505 INCLUDED_POPT=no
24507 esac
24509 if test x"$INCLUDED_POPT" != x"yes"; then
24510 echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
24511 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
24512 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
24513 echo $ECHO_N "(cached) $ECHO_C" >&6
24514 else
24515 ac_check_lib_save_LIBS=$LIBS
24516 LIBS="-lpopt $LIBS"
24517 cat >conftest.$ac_ext <<_ACEOF
24518 #line $LINENO "configure"
24519 #include "confdefs.h"
24521 /* Override any gcc2 internal prototype to avoid an error. */
24522 #ifdef __cplusplus
24523 extern "C"
24524 #endif
24525 /* We use char because int might match the return type of a gcc2
24526 builtin and then its argument prototype would still apply. */
24527 char poptGetContext ();
24528 #ifdef F77_DUMMY_MAIN
24529 # ifdef __cplusplus
24530 extern "C"
24531 # endif
24532 int F77_DUMMY_MAIN() { return 1; }
24533 #endif
24535 main ()
24537 poptGetContext ();
24539 return 0;
24541 _ACEOF
24542 rm -f conftest.$ac_objext conftest$ac_exeext
24543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24544 (eval $ac_link) 2>&5
24545 ac_status=$?
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); } &&
24548 { ac_try='test -s conftest$ac_exeext'
24549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24550 (eval $ac_try) 2>&5
24551 ac_status=$?
24552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553 (exit $ac_status); }; }; then
24554 ac_cv_lib_popt_poptGetContext=yes
24555 else
24556 echo "$as_me: failed program was:" >&5
24557 cat conftest.$ac_ext >&5
24558 ac_cv_lib_popt_poptGetContext=no
24560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24561 LIBS=$ac_check_lib_save_LIBS
24563 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
24564 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
24565 if test $ac_cv_lib_popt_poptGetContext = yes; then
24566 INCLUDED_POPT=no
24567 else
24568 INCLUDED_POPT=yes
24573 echo "$as_me:$LINENO: checking whether to use included popt" >&5
24574 echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
24575 if test x"$INCLUDED_POPT" = x"yes"; then
24576 echo "$as_me:$LINENO: result: yes" >&5
24577 echo "${ECHO_T}yes" >&6
24578 BUILD_POPT='$(POPT_OBJS)'
24579 FLAGS1="-I$srcdir/popt"
24580 else
24581 echo "$as_me:$LINENO: result: no" >&5
24582 echo "${ECHO_T}no" >&6
24583 LIBS="$LIBS -lpopt"
24588 #################################################
24589 # Check if the user wants Python
24591 # At the moment, you can use this to set which Python binary to link
24592 # against. (Libraries built for Python2.2 can't be used by 2.1,
24593 # though they can coexist in different directories.) In the future
24594 # this might make the Python stuff be built by default.
24596 # Defaulting python breaks the clean target if python isn't installed
24598 PYTHON=
24601 # Check whether --with-python or --without-python was given.
24602 if test "${with_python+set}" = set; then
24603 withval="$with_python"
24604 case "${withval-python}" in
24605 yes)
24606 PYTHON=python
24607 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
24610 PYTHON=
24613 PYTHON=${withval-python}
24615 esac
24619 #################################################
24620 # do extra things if we are running insure
24622 if test "${ac_cv_prog_CC}" = "insure"; then
24623 CPPFLAGS="$CPPFLAGS -D__INSURE__"
24626 #################################################
24627 # final configure stuff
24629 echo "$as_me:$LINENO: checking configure summary" >&5
24630 echo $ECHO_N "checking configure summary... $ECHO_C" >&6
24631 if test "$cross_compiling" = yes; then
24632 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
24633 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
24634 else
24635 cat >conftest.$ac_ext <<_ACEOF
24636 #line $LINENO "configure"
24637 #include "confdefs.h"
24638 #include "${srcdir-.}/tests/summary.c"
24639 _ACEOF
24640 rm -f conftest$ac_exeext
24641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24642 (eval $ac_link) 2>&5
24643 ac_status=$?
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24647 (eval $ac_try) 2>&5
24648 ac_status=$?
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); }; }; then
24651 echo "$as_me:$LINENO: result: yes" >&5
24652 echo "${ECHO_T}yes" >&6
24653 else
24654 echo "$as_me: program exited with status $ac_status" >&5
24655 echo "$as_me: failed program was:" >&5
24656 cat conftest.$ac_ext >&5
24657 ( exit $ac_status )
24658 { { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
24659 echo "$as_me: error: summary failure. Aborting config" >&2;}
24660 { (exit 1); exit 1; }; }; exit 1;
24662 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24665 builddir=`pwd`
24668 ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb"
24669 cat >confcache <<\_ACEOF
24670 # This file is a shell script that caches the results of configure
24671 # tests run on this system so they can be shared between configure
24672 # scripts and configure runs, see configure's option --config-cache.
24673 # It is not useful on other systems. If it contains results you don't
24674 # want to keep, you may remove or edit it.
24676 # config.status only pays attention to the cache file if you give it
24677 # the --recheck option to rerun configure.
24679 # `ac_cv_env_foo' variables (set or unset) will be overriden when
24680 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24681 # following values.
24683 _ACEOF
24685 # The following way of writing the cache mishandles newlines in values,
24686 # but we know of no workaround that is simple, portable, and efficient.
24687 # So, don't put newlines in cache variables' values.
24688 # Ultrix sh set writes to stderr and can't be redirected directly,
24689 # and sets the high bit in the cache file unless we assign to the vars.
24691 (set) 2>&1 |
24692 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24693 *ac_space=\ *)
24694 # `set' does not quote correctly, so add quotes (double-quote
24695 # substitution turns \\\\ into \\, and sed turns \\ into \).
24696 sed -n \
24697 "s/'/'\\\\''/g;
24698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24701 # `set' quotes correctly as required by POSIX, so do not add quotes.
24702 sed -n \
24703 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24705 esac;
24707 sed '
24708 t clear
24709 : clear
24710 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24711 t end
24712 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24713 : end' >>confcache
24714 if cmp -s $cache_file confcache; then :; else
24715 if test -w $cache_file; then
24716 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24717 cat confcache >$cache_file
24718 else
24719 echo "not updating unwritable cache $cache_file"
24722 rm -f confcache
24724 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24725 # Let make expand exec_prefix.
24726 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24728 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24729 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24730 # trailing colons and then remove the whole line if VPATH becomes empty
24731 # (actually we leave an empty line to preserve line numbers).
24732 if test "x$srcdir" = x.; then
24733 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24734 s/:*\$(srcdir):*/:/;
24735 s/:*\${srcdir}:*/:/;
24736 s/:*@srcdir@:*/:/;
24737 s/^\([^=]*=[ ]*\):*/\1/;
24738 s/:*$//;
24739 s/^[^=]*=[ ]*$//;
24743 DEFS=-DHAVE_CONFIG_H
24746 : ${CONFIG_STATUS=./config.status}
24747 ac_clean_files_save=$ac_clean_files
24748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24749 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24750 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24751 cat >$CONFIG_STATUS <<_ACEOF
24752 #! $SHELL
24753 # Generated by $as_me.
24754 # Run this file to recreate the current configuration.
24755 # Compiler output produced by configure, useful for debugging
24756 # configure, is in config.log if it exists.
24758 debug=false
24759 SHELL=\${CONFIG_SHELL-$SHELL}
24760 _ACEOF
24762 cat >>$CONFIG_STATUS <<\_ACEOF
24764 ## --------------------- ##
24765 ## M4sh Initialization. ##
24766 ## --------------------- ##
24768 # Be Bourne compatible
24769 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24770 emulate sh
24771 NULLCMD=:
24772 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24773 set -o posix
24776 # NLS nuisances.
24777 # Support unset when possible.
24778 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24779 as_unset=unset
24780 else
24781 as_unset=false
24784 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
24785 { $as_unset LANG || test "${LANG+set}" != set; } ||
24786 { LANG=C; export LANG; }
24787 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
24788 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
24789 { LC_ALL=C; export LC_ALL; }
24790 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
24791 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
24792 { LC_TIME=C; export LC_TIME; }
24793 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
24794 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
24795 { LC_CTYPE=C; export LC_CTYPE; }
24796 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
24797 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
24798 { LANGUAGE=C; export LANGUAGE; }
24799 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
24800 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
24801 { LC_COLLATE=C; export LC_COLLATE; }
24802 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
24803 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
24804 { LC_NUMERIC=C; export LC_NUMERIC; }
24805 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
24806 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
24807 { LC_MESSAGES=C; export LC_MESSAGES; }
24810 # Name of the executable.
24811 as_me=`(basename "$0") 2>/dev/null ||
24812 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24813 X"$0" : 'X\(//\)$' \| \
24814 X"$0" : 'X\(/\)$' \| \
24815 . : '\(.\)' 2>/dev/null ||
24816 echo X/"$0" |
24817 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24818 /^X\/\(\/\/\)$/{ s//\1/; q; }
24819 /^X\/\(\/\).*/{ s//\1/; q; }
24820 s/.*/./; q'`
24822 # PATH needs CR, and LINENO needs CR and PATH.
24823 # Avoid depending upon Character Ranges.
24824 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24825 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24826 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24827 as_cr_digits='0123456789'
24828 as_cr_alnum=$as_cr_Letters$as_cr_digits
24830 # The user is always right.
24831 if test "${PATH_SEPARATOR+set}" != set; then
24832 echo "#! /bin/sh" >conftest.sh
24833 echo "exit 0" >>conftest.sh
24834 chmod +x conftest.sh
24835 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
24836 PATH_SEPARATOR=';'
24837 else
24838 PATH_SEPARATOR=:
24840 rm -f conftest.sh
24844 as_lineno_1=$LINENO
24845 as_lineno_2=$LINENO
24846 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24847 test "x$as_lineno_1" != "x$as_lineno_2" &&
24848 test "x$as_lineno_3" = "x$as_lineno_2" || {
24849 # Find who we are. Look in the path if we contain no path at all
24850 # relative or not.
24851 case $0 in
24852 *[\\/]* ) as_myself=$0 ;;
24853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24854 for as_dir in $PATH
24856 IFS=$as_save_IFS
24857 test -z "$as_dir" && as_dir=.
24858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24859 done
24862 esac
24863 # We did not find ourselves, most probably we were run as `sh COMMAND'
24864 # in which case we are not to be found in the path.
24865 if test "x$as_myself" = x; then
24866 as_myself=$0
24868 if test ! -f "$as_myself"; then
24869 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24870 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24871 { (exit 1); exit 1; }; }
24873 case $CONFIG_SHELL in
24875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24876 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24878 IFS=$as_save_IFS
24879 test -z "$as_dir" && as_dir=.
24880 for as_base in sh bash ksh sh5; do
24881 case $as_dir in
24883 if ("$as_dir/$as_base" -c '
24884 as_lineno_1=$LINENO
24885 as_lineno_2=$LINENO
24886 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24887 test "x$as_lineno_1" != "x$as_lineno_2" &&
24888 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24889 CONFIG_SHELL=$as_dir/$as_base
24890 export CONFIG_SHELL
24891 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24892 fi;;
24893 esac
24894 done
24895 done
24897 esac
24899 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24900 # uniformly replaced by the line number. The first 'sed' inserts a
24901 # line-number line before each line; the second 'sed' does the real
24902 # work. The second script uses 'N' to pair each line-number line
24903 # with the numbered line, and appends trailing '-' during
24904 # substitution so that $LINENO is not a special case at line end.
24905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24906 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24907 sed '=' <$as_myself |
24908 sed '
24910 s,$,-,
24911 : loop
24912 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24913 t loop
24914 s,-$,,
24915 s,^['$as_cr_digits']*\n,,
24916 ' >$as_me.lineno &&
24917 chmod +x $as_me.lineno ||
24918 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24919 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24920 { (exit 1); exit 1; }; }
24922 # Don't try to exec as it changes $[0], causing all sort of problems
24923 # (the dirname of $[0] is not the place where we might find the
24924 # original and so on. Autoconf is especially sensible to this).
24925 . ./$as_me.lineno
24926 # Exit status is that of the last command.
24927 exit
24931 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24932 *c*,-n*) ECHO_N= ECHO_C='
24933 ' ECHO_T=' ' ;;
24934 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24935 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24936 esac
24938 if expr a : '\(a\)' >/dev/null 2>&1; then
24939 as_expr=expr
24940 else
24941 as_expr=false
24944 rm -f conf$$ conf$$.exe conf$$.file
24945 echo >conf$$.file
24946 if ln -s conf$$.file conf$$ 2>/dev/null; then
24947 # We could just check for DJGPP; but this test a) works b) is more generic
24948 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24949 if test -f conf$$.exe; then
24950 # Don't use ln at all; we don't have any links
24951 as_ln_s='cp -p'
24952 else
24953 as_ln_s='ln -s'
24955 elif ln conf$$.file conf$$ 2>/dev/null; then
24956 as_ln_s=ln
24957 else
24958 as_ln_s='cp -p'
24960 rm -f conf$$ conf$$.exe conf$$.file
24962 as_executable_p="test -f"
24964 # Sed expression to map a string onto a valid CPP name.
24965 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24967 # Sed expression to map a string onto a valid variable name.
24968 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24971 # IFS
24972 # We need space, tab and new line, in precisely that order.
24973 as_nl='
24975 IFS=" $as_nl"
24977 # CDPATH.
24978 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
24980 exec 6>&1
24982 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24983 # report actual input values of CONFIG_FILES etc. instead of their
24984 # values after options handling. Logging --version etc. is OK.
24985 exec 5>>config.log
24987 echo
24988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24989 ## Running $as_me. ##
24990 _ASBOX
24991 } >&5
24992 cat >&5 <<_CSEOF
24994 This file was extended by $as_me, which was
24995 generated by GNU Autoconf 2.53. Invocation command line was
24997 CONFIG_FILES = $CONFIG_FILES
24998 CONFIG_HEADERS = $CONFIG_HEADERS
24999 CONFIG_LINKS = $CONFIG_LINKS
25000 CONFIG_COMMANDS = $CONFIG_COMMANDS
25001 $ $0 $@
25003 _CSEOF
25004 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25005 echo >&5
25006 _ACEOF
25008 # Files that config.status was made for.
25009 if test -n "$ac_config_files"; then
25010 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25013 if test -n "$ac_config_headers"; then
25014 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25017 if test -n "$ac_config_links"; then
25018 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25021 if test -n "$ac_config_commands"; then
25022 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25025 cat >>$CONFIG_STATUS <<\_ACEOF
25027 ac_cs_usage="\
25028 \`$as_me' instantiates files from templates according to the
25029 current configuration.
25031 Usage: $0 [OPTIONS] [FILE]...
25033 -h, --help print this help, then exit
25034 -V, --version print version number, then exit
25035 -d, --debug don't remove temporary files
25036 --recheck update $as_me by reconfiguring in the same conditions
25037 --file=FILE[:TEMPLATE]
25038 instantiate the configuration file FILE
25039 --header=FILE[:TEMPLATE]
25040 instantiate the configuration header FILE
25042 Configuration files:
25043 $config_files
25045 Configuration headers:
25046 $config_headers
25048 Report bugs to <bug-autoconf@gnu.org>."
25049 _ACEOF
25051 cat >>$CONFIG_STATUS <<_ACEOF
25052 ac_cs_version="\\
25053 config.status
25054 configured by $0, generated by GNU Autoconf 2.53,
25055 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25057 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25058 Free Software Foundation, Inc.
25059 This config.status script is free software; the Free Software Foundation
25060 gives unlimited permission to copy, distribute and modify it."
25061 srcdir=$srcdir
25062 INSTALL="$INSTALL"
25063 _ACEOF
25065 cat >>$CONFIG_STATUS <<\_ACEOF
25066 # If no file are specified by the user, then we need to provide default
25067 # value. By we need to know if files were specified by the user.
25068 ac_need_defaults=:
25069 while test $# != 0
25071 case $1 in
25072 --*=*)
25073 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25074 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25075 shift
25076 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
25077 shift
25079 -*);;
25080 *) # This is not an option, so the user has probably given explicit
25081 # arguments.
25082 ac_need_defaults=false;;
25083 esac
25085 case $1 in
25086 # Handling of the options.
25087 _ACEOF
25088 cat >>$CONFIG_STATUS <<_ACEOF
25089 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25090 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25091 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25092 _ACEOF
25093 cat >>$CONFIG_STATUS <<\_ACEOF
25094 --version | --vers* | -V )
25095 echo "$ac_cs_version"; exit 0 ;;
25096 --he | --h)
25097 # Conflict between --help and --header
25098 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25099 Try \`$0 --help' for more information." >&5
25100 echo "$as_me: error: ambiguous option: $1
25101 Try \`$0 --help' for more information." >&2;}
25102 { (exit 1); exit 1; }; };;
25103 --help | --hel | -h )
25104 echo "$ac_cs_usage"; exit 0 ;;
25105 --debug | --d* | -d )
25106 debug=: ;;
25107 --file | --fil | --fi | --f )
25108 shift
25109 CONFIG_FILES="$CONFIG_FILES $1"
25110 ac_need_defaults=false;;
25111 --header | --heade | --head | --hea )
25112 shift
25113 CONFIG_HEADERS="$CONFIG_HEADERS $1"
25114 ac_need_defaults=false;;
25116 # This is an error.
25117 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25118 Try \`$0 --help' for more information." >&5
25119 echo "$as_me: error: unrecognized option: $1
25120 Try \`$0 --help' for more information." >&2;}
25121 { (exit 1); exit 1; }; } ;;
25123 *) ac_config_targets="$ac_config_targets $1" ;;
25125 esac
25126 shift
25127 done
25129 _ACEOF
25135 cat >>$CONFIG_STATUS <<\_ACEOF
25136 for ac_config_target in $ac_config_targets
25138 case "$ac_config_target" in
25139 # Handling of arguments.
25140 "include/stamp-h" ) CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
25141 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25142 "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
25143 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25144 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25145 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25146 { (exit 1); exit 1; }; };;
25147 esac
25148 done
25150 # If the user did not use the arguments to specify the items to instantiate,
25151 # then the envvar interface is used. Set only those that are not.
25152 # We use the long form for the default assignment because of an extremely
25153 # bizarre bug on SunOS 4.1.3.
25154 if $ac_need_defaults; then
25155 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25156 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25159 # Create a temporary directory, and hook for its removal unless debugging.
25160 $debug ||
25162 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25163 trap '{ (exit 1); exit 1; }' 1 2 13 15
25166 # Create a (secure) tmp directory for tmp files.
25167 : ${TMPDIR=/tmp}
25169 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25170 test -n "$tmp" && test -d "$tmp"
25171 } ||
25173 tmp=$TMPDIR/cs$$-$RANDOM
25174 (umask 077 && mkdir $tmp)
25175 } ||
25177 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25178 { (exit 1); exit 1; }
25181 _ACEOF
25183 cat >>$CONFIG_STATUS <<_ACEOF
25186 # CONFIG_FILES section.
25189 # No need to generate the scripts if there are no CONFIG_FILES.
25190 # This happens for instance when ./config.status config.h
25191 if test -n "\$CONFIG_FILES"; then
25192 # Protect against being on the right side of a sed subst in config.status.
25193 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25194 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25195 s,@SHELL@,$SHELL,;t t
25196 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25197 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25198 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25199 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25200 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25201 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25202 s,@exec_prefix@,$exec_prefix,;t t
25203 s,@prefix@,$prefix,;t t
25204 s,@program_transform_name@,$program_transform_name,;t t
25205 s,@bindir@,$bindir,;t t
25206 s,@sbindir@,$sbindir,;t t
25207 s,@libexecdir@,$libexecdir,;t t
25208 s,@datadir@,$datadir,;t t
25209 s,@sysconfdir@,$sysconfdir,;t t
25210 s,@sharedstatedir@,$sharedstatedir,;t t
25211 s,@localstatedir@,$localstatedir,;t t
25212 s,@libdir@,$libdir,;t t
25213 s,@includedir@,$includedir,;t t
25214 s,@oldincludedir@,$oldincludedir,;t t
25215 s,@infodir@,$infodir,;t t
25216 s,@mandir@,$mandir,;t t
25217 s,@build_alias@,$build_alias,;t t
25218 s,@host_alias@,$host_alias,;t t
25219 s,@target_alias@,$target_alias,;t t
25220 s,@DEFS@,$DEFS,;t t
25221 s,@ECHO_C@,$ECHO_C,;t t
25222 s,@ECHO_N@,$ECHO_N,;t t
25223 s,@ECHO_T@,$ECHO_T,;t t
25224 s,@LIBS@,$LIBS,;t t
25225 s,@configdir@,$configdir,;t t
25226 s,@lockdir@,$lockdir,;t t
25227 s,@piddir@,$piddir,;t t
25228 s,@logfilebase@,$logfilebase,;t t
25229 s,@privatedir@,$privatedir,;t t
25230 s,@swatdir@,$swatdir,;t t
25231 s,@LDSHFLAGS@,$LDSHFLAGS,;t t
25232 s,@SONAMEFLAG@,$SONAMEFLAG,;t t
25233 s,@SHLD@,$SHLD,;t t
25234 s,@HOST_OS@,$HOST_OS,;t t
25235 s,@PICFLAG@,$PICFLAG,;t t
25236 s,@PICSUFFIX@,$PICSUFFIX,;t t
25237 s,@POBAD_CC@,$POBAD_CC,;t t
25238 s,@SHLIBEXT@,$SHLIBEXT,;t t
25239 s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
25240 s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
25241 s,@PRINTLIBS@,$PRINTLIBS,;t t
25242 s,@AUTHLIBS@,$AUTHLIBS,;t t
25243 s,@SHLIB_PROGS@,$SHLIB_PROGS,;t t
25244 s,@SMBWRAPPER@,$SMBWRAPPER,;t t
25245 s,@EXTRA_BIN_PROGS@,$EXTRA_BIN_PROGS,;t t
25246 s,@EXTRA_SBIN_PROGS@,$EXTRA_SBIN_PROGS,;t t
25247 s,@EXTRA_ALL_TARGETS@,$EXTRA_ALL_TARGETS,;t t
25248 s,@CC@,$CC,;t t
25249 s,@CFLAGS@,$CFLAGS,;t t
25250 s,@LDFLAGS@,$LDFLAGS,;t t
25251 s,@CPPFLAGS@,$CPPFLAGS,;t t
25252 s,@ac_ct_CC@,$ac_ct_CC,;t t
25253 s,@EXEEXT@,$EXEEXT,;t t
25254 s,@OBJEXT@,$OBJEXT,;t t
25255 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25256 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25257 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25258 s,@AWK@,$AWK,;t t
25259 s,@BROKEN_CC@,$BROKEN_CC,;t t
25260 s,@build@,$build,;t t
25261 s,@build_cpu@,$build_cpu,;t t
25262 s,@build_vendor@,$build_vendor,;t t
25263 s,@build_os@,$build_os,;t t
25264 s,@host@,$host,;t t
25265 s,@host_cpu@,$host_cpu,;t t
25266 s,@host_vendor@,$host_vendor,;t t
25267 s,@host_os@,$host_os,;t t
25268 s,@target@,$target,;t t
25269 s,@target_cpu@,$target_cpu,;t t
25270 s,@target_vendor@,$target_vendor,;t t
25271 s,@target_os@,$target_os,;t t
25272 s,@CPP@,$CPP,;t t
25273 s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
25274 s,@LIBOBJS@,$LIBOBJS,;t t
25275 s,@TERMLIBS@,$TERMLIBS,;t t
25276 s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
25277 s,@ROFF@,$ROFF,;t t
25278 s,@DYNEXP@,$DYNEXP,;t t
25279 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
25280 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
25281 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
25282 s,@MODULE_MYSQL@,$MODULE_MYSQL,;t t
25283 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
25284 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
25285 s,@XML_LIBS@,$XML_LIBS,;t t
25286 s,@MODULE_XML@,$MODULE_XML,;t t
25287 s,@QUOTAOBJS@,$QUOTAOBJS,;t t
25288 s,@manlangs@,$manlangs,;t t
25289 s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
25290 s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
25291 s,@BUILD_POPT@,$BUILD_POPT,;t t
25292 s,@FLAGS1@,$FLAGS1,;t t
25293 s,@PYTHON@,$PYTHON,;t t
25294 s,@builddir@,$builddir,;t t
25295 CEOF
25297 _ACEOF
25299 cat >>$CONFIG_STATUS <<\_ACEOF
25300 # Split the substitutions into bite-sized pieces for seds with
25301 # small command number limits, like on Digital OSF/1 and HP-UX.
25302 ac_max_sed_lines=48
25303 ac_sed_frag=1 # Number of current file.
25304 ac_beg=1 # First line for current file.
25305 ac_end=$ac_max_sed_lines # Line after last line for current file.
25306 ac_more_lines=:
25307 ac_sed_cmds=
25308 while $ac_more_lines; do
25309 if test $ac_beg -gt 1; then
25310 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25311 else
25312 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25314 if test ! -s $tmp/subs.frag; then
25315 ac_more_lines=false
25316 else
25317 # The purpose of the label and of the branching condition is to
25318 # speed up the sed processing (if there are no `@' at all, there
25319 # is no need to browse any of the substitutions).
25320 # These are the two extra sed commands mentioned above.
25321 (echo ':t
25322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25323 if test -z "$ac_sed_cmds"; then
25324 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25325 else
25326 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25328 ac_sed_frag=`expr $ac_sed_frag + 1`
25329 ac_beg=$ac_end
25330 ac_end=`expr $ac_end + $ac_max_sed_lines`
25332 done
25333 if test -z "$ac_sed_cmds"; then
25334 ac_sed_cmds=cat
25336 fi # test -n "$CONFIG_FILES"
25338 _ACEOF
25339 cat >>$CONFIG_STATUS <<\_ACEOF
25340 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25341 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25342 case $ac_file in
25343 - | *:- | *:-:* ) # input from stdin
25344 cat >$tmp/stdin
25345 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25346 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25347 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25348 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25349 * ) ac_file_in=$ac_file.in ;;
25350 esac
25352 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25353 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25355 X"$ac_file" : 'X\(//\)[^/]' \| \
25356 X"$ac_file" : 'X\(//\)$' \| \
25357 X"$ac_file" : 'X\(/\)' \| \
25358 . : '\(.\)' 2>/dev/null ||
25359 echo X"$ac_file" |
25360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25362 /^X\(\/\/\)$/{ s//\1/; q; }
25363 /^X\(\/\).*/{ s//\1/; q; }
25364 s/.*/./; q'`
25365 { case "$ac_dir" in
25366 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25367 *) as_incr_dir=.;;
25368 esac
25369 as_dummy="$ac_dir"
25370 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25371 case $as_mkdir_dir in
25372 # Skip DOS drivespec
25373 ?:) as_incr_dir=$as_mkdir_dir ;;
25375 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25376 test -d "$as_incr_dir" ||
25377 mkdir "$as_incr_dir" ||
25378 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25379 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25380 { (exit 1); exit 1; }; }
25382 esac
25383 done; }
25385 ac_builddir=.
25387 if test "$ac_dir" != .; then
25388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25389 # A "../" for each directory in $ac_dir_suffix.
25390 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25391 else
25392 ac_dir_suffix= ac_top_builddir=
25395 case $srcdir in
25396 .) # No --srcdir option. We are building in place.
25397 ac_srcdir=.
25398 if test -z "$ac_top_builddir"; then
25399 ac_top_srcdir=.
25400 else
25401 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25402 fi ;;
25403 [\\/]* | ?:[\\/]* ) # Absolute path.
25404 ac_srcdir=$srcdir$ac_dir_suffix;
25405 ac_top_srcdir=$srcdir ;;
25406 *) # Relative path.
25407 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25408 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25409 esac
25410 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25411 # absolute.
25412 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25413 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
25414 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25415 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25418 case $INSTALL in
25419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25420 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25421 esac
25423 if test x"$ac_file" != x-; then
25424 { echo "$as_me:$LINENO: creating $ac_file" >&5
25425 echo "$as_me: creating $ac_file" >&6;}
25426 rm -f "$ac_file"
25428 # Let's still pretend it is `configure' which instantiates (i.e., don't
25429 # use $as_me), people would be surprised to read:
25430 # /* config.h. Generated by config.status. */
25431 if test x"$ac_file" = x-; then
25432 configure_input=
25433 else
25434 configure_input="$ac_file. "
25436 configure_input=$configure_input"Generated from `echo $ac_file_in |
25437 sed 's,.*/,,'` by configure."
25439 # First look for the input files in the build tree, otherwise in the
25440 # src tree.
25441 ac_file_inputs=`IFS=:
25442 for f in $ac_file_in; do
25443 case $f in
25444 -) echo $tmp/stdin ;;
25445 [\\/$]*)
25446 # Absolute (can't be DOS-style, as IFS=:)
25447 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25448 echo "$as_me: error: cannot find input file: $f" >&2;}
25449 { (exit 1); exit 1; }; }
25450 echo $f;;
25451 *) # Relative
25452 if test -f "$f"; then
25453 # Build tree
25454 echo $f
25455 elif test -f "$srcdir/$f"; then
25456 # Source tree
25457 echo $srcdir/$f
25458 else
25459 # /dev/null tree
25460 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25461 echo "$as_me: error: cannot find input file: $f" >&2;}
25462 { (exit 1); exit 1; }; }
25463 fi;;
25464 esac
25465 done` || { (exit 1); exit 1; }
25466 _ACEOF
25467 cat >>$CONFIG_STATUS <<_ACEOF
25468 sed "$ac_vpsub
25469 $extrasub
25470 _ACEOF
25471 cat >>$CONFIG_STATUS <<\_ACEOF
25473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25474 s,@configure_input@,$configure_input,;t t
25475 s,@srcdir@,$ac_srcdir,;t t
25476 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25477 s,@top_srcdir@,$ac_top_srcdir,;t t
25478 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25479 s,@builddir@,$ac_builddir,;t t
25480 s,@abs_builddir@,$ac_abs_builddir,;t t
25481 s,@top_builddir@,$ac_top_builddir,;t t
25482 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25483 s,@INSTALL@,$ac_INSTALL,;t t
25484 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25485 rm -f $tmp/stdin
25486 if test x"$ac_file" != x-; then
25487 mv $tmp/out $ac_file
25488 else
25489 cat $tmp/out
25490 rm -f $tmp/out
25493 done
25494 _ACEOF
25495 cat >>$CONFIG_STATUS <<\_ACEOF
25498 # CONFIG_HEADER section.
25501 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25502 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25504 # ac_d sets the value in "#define NAME VALUE" lines.
25505 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25506 ac_dB='[ ].*$,\1#\2'
25507 ac_dC=' '
25508 ac_dD=',;t'
25509 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25510 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25511 ac_uB='$,\1#\2define\3'
25512 ac_uC=' '
25513 ac_uD=',;t'
25515 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25516 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25517 case $ac_file in
25518 - | *:- | *:-:* ) # input from stdin
25519 cat >$tmp/stdin
25520 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25521 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25522 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25523 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25524 * ) ac_file_in=$ac_file.in ;;
25525 esac
25527 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25528 echo "$as_me: creating $ac_file" >&6;}
25530 # First look for the input files in the build tree, otherwise in the
25531 # src tree.
25532 ac_file_inputs=`IFS=:
25533 for f in $ac_file_in; do
25534 case $f in
25535 -) echo $tmp/stdin ;;
25536 [\\/$]*)
25537 # Absolute (can't be DOS-style, as IFS=:)
25538 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25539 echo "$as_me: error: cannot find input file: $f" >&2;}
25540 { (exit 1); exit 1; }; }
25541 echo $f;;
25542 *) # Relative
25543 if test -f "$f"; then
25544 # Build tree
25545 echo $f
25546 elif test -f "$srcdir/$f"; then
25547 # Source tree
25548 echo $srcdir/$f
25549 else
25550 # /dev/null tree
25551 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25552 echo "$as_me: error: cannot find input file: $f" >&2;}
25553 { (exit 1); exit 1; }; }
25554 fi;;
25555 esac
25556 done` || { (exit 1); exit 1; }
25557 # Remove the trailing spaces.
25558 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25560 _ACEOF
25562 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25563 # `conftest.undefs', that substitutes the proper values into
25564 # config.h.in to produce config.h. The first handles `#define'
25565 # templates, and the second `#undef' templates.
25566 # And first: Protect against being on the right side of a sed subst in
25567 # config.status. Protect against being in an unquoted here document
25568 # in config.status.
25569 rm -f conftest.defines conftest.undefs
25570 # Using a here document instead of a string reduces the quoting nightmare.
25571 # Putting comments in sed scripts is not portable.
25573 # `end' is used to avoid that the second main sed command (meant for
25574 # 0-ary CPP macros) applies to n-ary macro definitions.
25575 # See the Autoconf documentation for `clear'.
25576 cat >confdef2sed.sed <<\_ACEOF
25577 s/[\\&,]/\\&/g
25578 s,[\\$`],\\&,g
25579 t clear
25580 : clear
25581 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25582 t end
25583 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25584 : end
25585 _ACEOF
25586 # If some macros were called several times there might be several times
25587 # the same #defines, which is useless. Nevertheless, we may not want to
25588 # sort them, since we want the *last* AC-DEFINE to be honored.
25589 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25590 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25591 rm -f confdef2sed.sed
25593 # This sed command replaces #undef with comments. This is necessary, for
25594 # example, in the case of _POSIX_SOURCE, which is predefined and required
25595 # on some systems where configure will not decide to define it.
25596 cat >>conftest.undefs <<\_ACEOF
25597 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25598 _ACEOF
25600 # Break up conftest.defines because some shells have a limit on the size
25601 # of here documents, and old seds have small limits too (100 cmds).
25602 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25603 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25604 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25605 echo ' :' >>$CONFIG_STATUS
25606 rm -f conftest.tail
25607 while grep . conftest.defines >/dev/null
25609 # Write a limited-size here document to $tmp/defines.sed.
25610 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25611 # Speed up: don't consider the non `#define' lines.
25612 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25613 # Work around the forget-to-reset-the-flag bug.
25614 echo 't clr' >>$CONFIG_STATUS
25615 echo ': clr' >>$CONFIG_STATUS
25616 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25617 echo 'CEOF
25618 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25619 rm -f $tmp/in
25620 mv $tmp/out $tmp/in
25621 ' >>$CONFIG_STATUS
25622 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25623 rm -f conftest.defines
25624 mv conftest.tail conftest.defines
25625 done
25626 rm -f conftest.defines
25627 echo ' fi # egrep' >>$CONFIG_STATUS
25628 echo >>$CONFIG_STATUS
25630 # Break up conftest.undefs because some shells have a limit on the size
25631 # of here documents, and old seds have small limits too (100 cmds).
25632 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25633 rm -f conftest.tail
25634 while grep . conftest.undefs >/dev/null
25636 # Write a limited-size here document to $tmp/undefs.sed.
25637 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25638 # Speed up: don't consider the non `#undef'
25639 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25640 # Work around the forget-to-reset-the-flag bug.
25641 echo 't clr' >>$CONFIG_STATUS
25642 echo ': clr' >>$CONFIG_STATUS
25643 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25644 echo 'CEOF
25645 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25646 rm -f $tmp/in
25647 mv $tmp/out $tmp/in
25648 ' >>$CONFIG_STATUS
25649 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25650 rm -f conftest.undefs
25651 mv conftest.tail conftest.undefs
25652 done
25653 rm -f conftest.undefs
25655 cat >>$CONFIG_STATUS <<\_ACEOF
25656 # Let's still pretend it is `configure' which instantiates (i.e., don't
25657 # use $as_me), people would be surprised to read:
25658 # /* config.h. Generated by config.status. */
25659 if test x"$ac_file" = x-; then
25660 echo "/* Generated by configure. */" >$tmp/config.h
25661 else
25662 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25664 cat $tmp/in >>$tmp/config.h
25665 rm -f $tmp/in
25666 if test x"$ac_file" != x-; then
25667 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
25668 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25669 echo "$as_me: $ac_file is unchanged" >&6;}
25670 else
25671 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25673 X"$ac_file" : 'X\(//\)[^/]' \| \
25674 X"$ac_file" : 'X\(//\)$' \| \
25675 X"$ac_file" : 'X\(/\)' \| \
25676 . : '\(.\)' 2>/dev/null ||
25677 echo X"$ac_file" |
25678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25680 /^X\(\/\/\)$/{ s//\1/; q; }
25681 /^X\(\/\).*/{ s//\1/; q; }
25682 s/.*/./; q'`
25683 { case "$ac_dir" in
25684 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25685 *) as_incr_dir=.;;
25686 esac
25687 as_dummy="$ac_dir"
25688 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25689 case $as_mkdir_dir in
25690 # Skip DOS drivespec
25691 ?:) as_incr_dir=$as_mkdir_dir ;;
25693 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25694 test -d "$as_incr_dir" ||
25695 mkdir "$as_incr_dir" ||
25696 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25697 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25698 { (exit 1); exit 1; }; }
25700 esac
25701 done; }
25703 rm -f $ac_file
25704 mv $tmp/config.h $ac_file
25706 else
25707 cat $tmp/config.h
25708 rm -f $tmp/config.h
25710 done
25711 _ACEOF
25713 cat >>$CONFIG_STATUS <<\_ACEOF
25715 { (exit 0); exit 0; }
25716 _ACEOF
25717 chmod +x $CONFIG_STATUS
25718 ac_clean_files=$ac_clean_files_save
25721 # configure is writing to config.log, and then calls config.status.
25722 # config.status does its own redirection, appending to config.log.
25723 # Unfortunately, on DOS this fails, as config.log is still kept open
25724 # by configure, so config.status won't be able to write to it; its
25725 # output is simply discarded. So we exec the FD to /dev/null,
25726 # effectively closing config.log, so it can be properly (re)opened and
25727 # appended to by config.status. When coming back to configure, we
25728 # need to make the FD available again.
25729 if test "$no_create" != yes; then
25730 ac_cs_success=:
25731 exec 5>/dev/null
25732 $SHELL $CONFIG_STATUS || ac_cs_success=false
25733 exec 5>>config.log
25734 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25735 # would make configure fail if this is the last instruction.
25736 $ac_cs_success || { (exit 1); exit 1; }
25740 #################################################
25741 # Print very concise instructions on building/use
25742 if test "x$enable_dmalloc" = xyes
25743 then
25744 echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included. To turn it on use" >&5
25745 echo "${ECHO_T}Note: The dmalloc debug library will be included. To turn it on use" >&6
25746 echo "$as_me:$LINENO: result: \$ eval \\`dmalloc samba\\`." >&5
25747 echo "${ECHO_T} \$ eval \\`dmalloc samba\\`." >&6